gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
[gnulib.git] / ChangeLog
1 2012-05-05  Bruno Haible  <bruno@clisp.org>
2
3         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
4         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
5         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
6
7 2012-05-04  Bruno Haible  <bruno@clisp.org>
8
9         Tweak last commit.
10         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
11         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12
13 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
14
15         unistd_h: make it easier to avoid sys_types_h
16         This is useful for Emacs, which has its own method of porting to
17         Windows, and which therefore does not need the sys_types_h module.
18         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
19         code moved here from gl_SYS_TYPES_H.
20         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
21         using the code directly.
22         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
23         gl_SYS_TYPES_H.
24         * modules/sys_types (Files):
25         * modules/unistd (Files): Add m4/off_t.m4.
26
27 2012-05-03  Bruno Haible  <bruno@clisp.org>
28
29         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
30         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
31         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
32         "guessing yes" or "guessing no".
33         (gl_FUNC_LSTAT): Update.
34         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
35         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
36         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
37
38 2012-05-03  Bruno Haible  <bruno@clisp.org>
39
40         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
41         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
42         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
43         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
44         cross-compiling, choose the first alternative on glibc systems.
45         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
46
47 2012-05-03  Bruno Haible  <bruno@clisp.org>
48
49         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
50         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
51         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
52
53 2012-05-03  Bruno Haible  <bruno@clisp.org>
54
55         chown: Avoid "guessing no" when cross-compiling to glibc systems.
56         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
57
58 2012-05-03  Bruno Haible  <bruno@clisp.org>
59
60         Avoid "guessing no" guesses when cross-compiling to glibc systems.
61         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
62         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
63         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
64         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
65         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
66         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
67         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
68         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
69         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
70         compiling to glibc systems, set gl_cv_func_chown_slash_works,
71         gl_cv_func_chown_ctime_works to "guessing yes".
72         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
73         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
74         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
75         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
76         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
77         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
78         compiling to glibc systems, set gl_cv_func_open_directory_works to
79         "guessing yes".
80         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
81         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
82         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
83         "guessing yes".
84         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
85         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
86         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
87         compiling to glibc systems, set gl_cv_func_floorf_ieee to
88         "guessing yes".
89         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
90         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
91         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
92         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
93         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
94         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
95         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
96         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
97         "guessing yes".
98         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
99         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
100         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
101         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
102         "guessing yes".
103         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
104         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
105         "guessing yes".
106         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
107         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
108         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
109         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
110         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
111         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
112         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
113         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
114         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
115         compiling to glibc systems, set gl_cv_func_log10f_ieee to
116         "guessing yes".
117         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
118         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
119         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
120         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
121         "guessing yes".
122         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
123         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
124         "guessing yes".
125         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
126         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
127         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
128         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
129         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
130         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
131         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
132         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
133         compiling to glibc systems, set gl_cv_func_mkfifo_works to
134         "guessing yes".
135         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
136         compiling to glibc systems, set gl_cv_func_mknod_works to
137         "guessing yes".
138         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
139         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
140         "guessing yes".
141         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
142         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
143         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
144         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
145         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
146         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
147         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
148         compiling to glibc systems, set gl_cv_func_svid_putenv to
149         "guessing yes".
150         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
151         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
152         "guessing yes".
153         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
154         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
155         "guessing yes".
156         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
157         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
158         to "guessing yes".
159         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
160         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
161         to "guessing yes".
162         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
163         compiling to glibc systems, set gl_cv_func_rmdir_works to
164         "guessing yes".
165         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
166         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
167         gl_cv_func_unlink_parent_fails to "guessing yes".
168         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
169         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
170         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
171         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
172         gl_cv_func_rename_dest_works to "guessing yes".
173         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
174         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
175         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
176         compiling to glibc systems, set gl_cv_func_roundf_ieee to
177         "guessing yes".
178         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
179         compiling to glibc systems, set gl_cv_func_roundl_ieee to
180         "guessing yes".
181         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
182         compiling to glibc systems, set gl_cv_func_setenv_works to
183         "guessing yes".
184         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
185         compiling to glibc systems, set gl_cv_func_unsetenv_works to
186         "guessing yes".
187         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
188         compiling to glibc systems, set gl_cv_func_sleep_works to
189         "guessing yes".
190         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
191         compiling to glibc systems, set gl_cv_func_stat_file_slash to
192         "guessing yes".
193         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
194         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
195         "guessing yes".
196         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
197         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
198         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
199         compiling to glibc systems, set gl_cv_func_truncf_ieee to
200         "guessing yes".
201         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
202         compiling to glibc systems, set gl_cv_func_truncl_ieee to
203         "guessing yes".
204         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
205         compiling to glibc systems, set gl_cv_func_usleep_works to
206         "guessing yes".
207         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
208         compiling to glibc systems, set gl_cv_func_futimesat_works to
209         "guessing yes".
210
211 2012-05-03  Bruno Haible  <bruno@clisp.org>
212
213         Say "guessing yes" or "guessing no" when cross-compiling.
214         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
215         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
216         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
217         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
218         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
219         am_cv_func_working_getline to "guessing yes" or "guessing no".
220         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
221         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
222         (gl_FUNC_MEMMEM): When cross-compiling, set
223         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
224         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
225         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
226         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
227         set gl_cv_func_strcasestr_works_always to "guessing yes" or
228         "guessing no".
229         (gl_FUNC_STRCASESTR): When cross-compiling, set
230         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
231         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
232         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
233         (gl_FUNC_STRSTR): When cross-compiling, set
234         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
235         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
236         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
237         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
238         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
239
240 2012-05-01  Bruno Haible  <bruno@clisp.org>
241
242         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
243         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
244         * build-aux/reloc-ldflags: Likewise.
245         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
246
247 2012-05-01  Bruno Haible  <bruno@clisp.org>
248
249         gnulib-tool: Remove transitional code.
250         * gnulib-tool: Don't warn about --import with 0 arguments any more.
251         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
252
253 2012-05-01  Bruno Haible  <bruno@clisp.org>
254
255         getcwd: Fix misindentation.
256         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
257
258 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
259
260         exclude: process exclude and include directives in order
261         This restores the pre-2009 behavior, and is part of a fix of a
262         grep bug reported by Quentin Arce in
263         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
264         * lib/exclude.c (struct exclude): Remove 'tail' member.
265         (new_exclude_segment): Prepend the new segment instead of appending.
266         Return void, since that's now more convenient.
267         (file_pattern_matches): Renamed from excluded_file_pattern_p.
268         (file_name_matches): Renamed from excluded_file_name_p.
269         (file_pattern_matches, file_name_matches):
270         Return true if the pattern matches, not if it excludes.
271         All callers changed.
272         (excluded_file_name): Process the list in reverse order;
273         since the list is now reversed this restores the pre-2009 behavior.
274         (add_exclude): Adjust to new reversed-order list.  Use local var
275         rather than macro, for clarity.
276         * tests/test-exclude7.sh: Adjust to corrected behavior.
277
278         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
279         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
280         it's not possible here.  Handle the case of \ at end of pattern
281         without dumping core.
282         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
283
284         _Noreturn: future-proof non-GNU and non-MSVC compilers
285         * build-aux/snippet/_Noreturn.h (_Noreturn):
286         * m4/gnulib-common.m4 (gl_COMMON_BODY):
287         Do not define _Noreturn if __STDC_VERSION__ indicates this is
288         C11 or later.  This is more likely to work with random future C
289         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
290         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
291
292         exclude: handle wildcards with FNM_EXTMATCH
293         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
294         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
295         comment that "has wildcards" really means "has or may have
296         wildcards".  Simplify by avoiding the need to call strcspn.
297
298 2012-04-29  Bruno Haible  <bruno@clisp.org>
299
300         gnulib-tool: Fix list of authors.
301         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
302
303 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
304
305         bootstrap: support Automake-NG in $buildreq
306         * bootstrap (check_versions): Handle automake and aclocal from
307         Automake-NG specially.  They can be specified as respectively
308         the "automake-ng" and "aclocal-ng" requirements.
309
310 2012-04-25  Eric Blake  <eblake@redhat.com>
311
312         bootstrap: only force latest Makefile.in.in for gettext module
313         * build-aux/bootstrap (with_gettext): Only install latest
314         Makefile.in.in for projects requesting bleeding edge gettext.
315
316 2012-04-22  Bruno Haible  <bruno@clisp.org>
317
318         doc: Mention reason for replacement on glibc/Linux systems.
319         * doc/posix-functions/dprintf.texi: Mention the problem with special
320         'long double' values.
321         * doc/posix-functions/fprintf.texi: Likewise.
322         * doc/posix-functions/printf.texi: Likewise.
323         * doc/posix-functions/snprintf.texi: Likewise.
324         * doc/posix-functions/sprintf.texi: Likewise.
325         * doc/posix-functions/vdprintf.texi: Likewise.
326         * doc/posix-functions/vfprintf.texi: Likewise.
327         * doc/posix-functions/vprintf.texi: Likewise.
328         * doc/posix-functions/vsnprintf.texi: Likewise.
329         * doc/posix-functions/vsprintf.texi: Likewise.
330         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
331         platforms with F_DUPFD_CLOEXEC problems.
332         * doc/posix-functions/glob.texi: Mention which platforms are affected
333         by the problem with symbolic links.
334         * doc/posix-functions/linkat.texi: Mention the problem with
335         AT_SYMLINK_FOLLOW on Linux.
336
337 2012-04-22  Bruno Haible  <bruno@clisp.org>
338
339         pwrite: Don't replace on all platforms.
340         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
341
342 2012-04-22  Bruno Haible  <bruno@clisp.org>
343
344         rint* tests: Avoid gcc warnings.
345         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
346         * tests/test-rintf.c (INFINITY, NAN): Likewise.
347         * tests/test-rintl.c (INFINITY, NAN): Likewise.
348
349 2012-04-21  Bruno Haible  <bruno@clisp.org>
350
351         users.txt: Update.
352         * users.txt: Add freedink, wdiff. Update URLs for projects that have
353         switched from CVS to git, bzr, or svn.
354
355 2012-04-21  Bruno Haible  <bruno@clisp.org>
356
357         Large File Support for native Windows platforms.
358
359         * m4/largefile.m4 (gl_LARGEFILE): New macro.
360         * modules/largefile (configure.ac): Require gl_LARGEFILE.
361
362         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
363         type.
364         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
365         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
366         * doc/posix-headers/sys_types.texi: Mention the effect of the
367         'largefile' module.
368
369         * lib/fcntl.in.h: Add comments about off_t.
370         * modules/fcntl-h (Depends-on): Add sys_types.
371
372         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
373         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
374         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
375         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
376         * modules/unistd (Depends-on): Add sys_types.
377         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
378
379         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
380         instead of lseek.
381         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
382         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
383         * modules/lseek (Depends-on): Add sys_types.
384
385         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
386         msvc-nothrow.h.
387         (SetFileSize): New function.
388         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
389         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
390         if Large File Support is requested.
391         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
392         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
393
394         * lib/stdio.in.h: Add comments about off_t.
395         * modules/stdio (Depends-on): Add sys_types.
396
397         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
398         instead of ftello.
399         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
400         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
401         (gl_PREREQ_FTELLO): New macro.
402         * modules/ftello (Depends-on): Add sys_types.
403         (configure.ac): Incoke gl_PREREQ_FTELLO.
404
405         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
406         instead of fseeko.
407         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
408         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
409         (gl_PREREQ_FSEEKO): New macro.
410         * modules/fseeko (Depends-on): Add sys_types.
411         (configure.ac): Invoke gl_PREREQ_FSEEKO.
412
413         * lib/sys_stat.in.h: Add comments about off_t.
414         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
415         64-bit integer for st_size in 'struct stat'.
416         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
417         Define _GL_WINDOWS_64_BIT_ST_SIZE.
418         * modules/sys_stat (Depends-on): Add sys_types.
419         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
420
421         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
422         instead of stat or _stat.
423
424         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
425         'struct _stati64' instead of fstat and 'struct stat'.
426         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
427         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
428
429         Reported by Ray Satiro <raysatiro@yahoo.com>.
430
431 2012-04-19  Eric Blake  <eblake@redhat.com>
432
433         bootstrap: accommodate older libtool
434         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
435         Reported by Daniel P. Berrange.
436
437 2012-04-19  Jim Meyering  <meyering@redhat.com>
438
439         announce-gen: avoid failure due to lack of Digest::SHA1
440         Even with the preferred Digest::SHA available, this script
441         would fail when the backup module, Digest::SHA1, was not installed.
442         * build-aux/announce-gen: Quote the conditional use of "use".
443         Reported by Reuben Thomas in:
444         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
445
446         bootstrap: don't let a user's CDPATH setting affect this script
447         When CDPATH is set, cd will sometimes generate output.
448         When "cd" is run in a subshell whose output matters, that
449         surprising-to-some output can cause malfunction.
450         Unsetting CDPATH turns off this shell "feature."
451         * build-aux/bootstrap (CDPATH): Unset.
452         Reported by Reuben Thomas in:
453         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
454         and inspired by his patch here:
455         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
456
457 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
458         and Jim Meyering  <meyering@redhat.com>
459
460         maint.mk: catch "see @xref{}" and similar
461         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
462         prohibit "See also @xref{", "Also see @pxref{", and similar.
463
464 2012-04-16  Jim Meyering  <meyering@redhat.com>
465
466         bootstrap: really use gnulib's po/Makefile.in.in
467         * build-aux/bootstrap: Correct the source file name in previous change.
468         Reported by Akim Demaille.
469
470         configmake: correct minor inconsistency in Makefile rule
471         * modules/configmake (Makefile.am): All other rules like this one
472         run the final "mv -f ..." in the same backslash-continued command
473         as the one that does everything else.  This one put the mv -f ...
474         command on a separate, non-backslash-continued line.
475         Make it like the others.
476
477         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
478         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
479         the one from gettext.  Reported by Akim Demaille.
480
481 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
482
483         Fix recursion of install-* into po directories.
484         Bison's install-pdf bug reported by Hans Aberg at
485         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
486         * build-aux/po/Makefile.in.in (install-dvi, install-html)
487         (install-info, install-pdf, install-ps): New targets.
488
489 2012-04-16  Jim Meyering  <meyering@redhat.com>
490
491         maint: avoid spurious "make sc_maint" failure
492         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
493         exempt all *.class file names, for lib/javaversion.class.
494
495 2012-04-15  Bruno Haible  <bruno@clisp.org>
496
497         lseek: Make configure test independent of environment.
498         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
499         Windows, we know that lseek() on pipes is broken; skip the runtime
500         test.
501
502 2012-04-14  Bruno Haible  <bruno@clisp.org>
503
504         stat: Bypass buggy override in mingw64.
505         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
506         * lib/stat.c (stat) [mingw64]: Define to _stat.
507         * doc/posix-functions/stat.texi: Mention mingw64 bug.
508
509 2012-04-14  Bruno Haible  <bruno@clisp.org>
510
511         pathmax: Fix compilation error on MSVC 9.
512         * modules/pathmax (Depends-on): Add unistd.
513
514 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
515
516         README: document pointer comparison assumption
517         * README (Portability guidelines): Document assumption about
518         pointer comparisons, in response to a recent bug-gnulib comment by
519         Jeffrey Kegler.
520
521 2012-04-12  Bruno Haible  <bruno@clisp.org>
522
523         Tests for module 'getrusage'.
524         * modules/getrusage-tests: New file.
525         * tests/test-getrusage.c: New file.
526
527         New module 'getrusage'.
528         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
529         warn-on-use.h.
530         (getrusage): New declaration.
531         * lib/getrusage.c: New file.
532         * m4/getrusage.m4: New file.
533         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
534         is declared.
535         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
536         HAVE_GETRUSAGE.
537         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
538         snippet/c++defs, snippet/warn-on-use.
539         (Makefile.am): Update generation of sys/resource.h. Substitute
540         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
541         * modules/getrusage: New file.
542         * doc/posix-functions/getrusage.texi: Mention the new module.
543
544 2012-04-12  Bruno Haible  <bruno@clisp.org>
545
546         Tests for module 'sys_resource'.
547         * modules/sys_resource-tests: New file.
548         * tests/test-sys_resource.c: New file.
549
550         New module 'sys_resource'.
551         * lib/sys_resource.in.h: New file.
552         * m4/sys_resource_h.m4: New file.
553         * modules/sys_resource: New file.
554         * doc/posix-headers/sys_resource.texi: Mention the new module.
555
556 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
557
558         ioctl: Fix compilation error on mingw.
559         * lib/ioctl.c: Include <windows.h>.
560         Also reported by Ray Satiro <raysatiro@yahoo.com>.
561
562 2012-04-04  Jim Meyering  <meyering@redhat.com>
563
564         regex: correct #pragma guard expression
565         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
566         not 4.3.  Correct its cpp guard expression.
567
568 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
569
570         regex: remove unnecessary type punning
571         Problem reported by Vladimir Serbinenko in
572         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
573         * lib/regex.h (struct re_pattern_buffer): Change the type of
574         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
575         Fix comment to match code.
576         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
577         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
578         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
579         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
580         (set_regs):
581         Omit no-longer-necessary casts.
582
583 2012-04-03  Bruno Haible  <bruno@clisp.org>
584
585         Tests for module 'ilogbl'.
586         * modules/ilogbl-tests: New file.
587         * tests/test-ilogbl.c: New file.
588
589         New module 'ilogbl'.
590         * lib/math.in.h (ilogbl): New declaration.
591         * lib/ilogbl.c: New file.
592         * m4/ilogbl.m4: New file.
593         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
594         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
595         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
596         Split sed invocation, to avoid the limit of 100 substitutions of
597         HP-UX 'sed'.
598         * modules/ilogbl: New file.
599         * tests/test-math-c++.cc: Check the declaration of ilogbl.
600         * doc/posix-functions/ilogbl.texi: Mention the new module.
601
602 2012-04-03  Bruno Haible  <bruno@clisp.org>
603
604         Tests for module 'ilogbf'.
605         * modules/ilogbf-tests: New file.
606         * tests/test-ilogbf.c: New file.
607
608         New module 'ilogbf'.
609         * lib/math.in.h (ilogbf): New declaration.
610         * lib/ilogbf.c: New file.
611         * m4/ilogbf.m4: New file.
612         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
613         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
614         REPLACE_ILOGBF.
615         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
616         REPLACE_ILOGBF.
617         * modules/ilogbf: New file.
618         * tests/test-math-c++.cc: Check the declaration of ilogbf.
619         * doc/posix-functions/ilogbf.texi: Mention the new module.
620
621 2012-04-03  Bruno Haible  <bruno@clisp.org>
622
623         Tests for module 'ilogb'.
624         * modules/ilogb-tests: New file.
625         * tests/test-ilogb.c: New file.
626         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
627         tests/test-logb-ieee.h.
628
629         New module 'ilogb'.
630         * lib/math.in.h (ilogb): New declaration.
631         * lib/ilogb.c: New file.
632         * m4/ilogb.m4: New file.
633         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
635         REPLACE_ILOGB.
636         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
637         REPLACE_ILOGB.
638         * modules/ilogb: New file.
639         * tests/test-math-c++.cc: Check the declaration of ilogb.
640         * doc/posix-functions/ilogb.texi: Mention the new module.
641
642 2012-04-03  Bruno Haible  <bruno@clisp.org>
643
644         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
645         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
646         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
647         (main): Check their values.
648         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
649         problem.
650
651 2012-04-03  Bruno Haible  <bruno@clisp.org>
652
653         Tests for module 'logbl-ieee'.
654         * modules/logbl-ieee-tests: New file.
655         * tests/test-logbl-ieee.c: New file.
656
657         New module 'logbl-ieee'.
658         * modules/logbl-ieee: New file.
659
660         Tests for module 'logb-ieee'.
661         * modules/logb-ieee-tests: New file.
662         * tests/test-logb-ieee.c: New file.
663
664         New module 'logb-ieee'.
665         * modules/logb-ieee: New file.
666
667         Tests for module 'logbf-ieee'.
668         * modules/logbf-ieee-tests: New file.
669         * tests/test-logbf-ieee.c: New file.
670         * tests/test-logb-ieee.h: New file.
671
672         New module 'logbf-ieee'.
673         * modules/logbf-ieee: New file.
674
675 2012-04-03  Bruno Haible  <bruno@clisp.org>
676
677         Tests for module 'logbl'.
678         * modules/logbl-tests: New file.
679         * tests/test-logbl.c: New file.
680
681         New module 'logbl'.
682         * lib/math.in.h (logbl): New declaration.
683         * lib/logbl.c: New file.
684         * m4/logbl.m4: New file.
685         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
687         REPLACE_LOGBL.
688         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
689         REPLACE_LOGBL.
690         * modules/logbl: New file.
691         * tests/test-math-c++.cc: Check the declaration of logbl.
692         * doc/posix-functions/logbl.texi: Mention the new module.
693
694 2012-04-02  Bruno Haible  <bruno@clisp.org>
695
696         Tests for module 'logbf'.
697         * modules/logbf-tests: New file.
698         * tests/test-logbf.c: New file.
699
700         New module 'logbf'.
701         * lib/math.in.h (logbf): New declaration.
702         * lib/logbf.c: New file.
703         * m4/logbf.m4: New file.
704         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
706         REPLACE_LOGBF.
707         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
708         REPLACE_LOGBF.
709         * modules/logbf: New file.
710         * tests/test-math-c++.cc: Check the declaration of logbf.
711         * doc/posix-functions/logbf.texi: Mention the new module.
712
713 2012-04-02  Bruno Haible  <bruno@clisp.org>
714
715         logb tests: More tests.
716         * tests/test-logb.h: New file, based on tests/test-logb.c and
717         tests/test-frexp.h.
718         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
719         (main): Just invoke test_function.
720         * modules/logb-tests (Files): Add tests/test-logb.h,
721         tests/minus-zero.h, tests/randomd.c.
722         (Makefile.am): Add randomd.c to test_logb_SOURCES.
723
724         logb: Provide replacement and workarounds.
725         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
726         is 1.
727         * lib/logb.c: New file.
728         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
729         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
731         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
732         * modules/logb (Files): Add lib/logb.c.
733         (Depends-on): Add isfinite, frexp, isnand.
734         (configure.ac): Compile the replacement code logb.c if needed.
735         * tests/test-math-c++.cc: Check the declaration of logb.
736         * doc/posix-functions/logb.texi: Mention the replacement and the bug
737         with subnormal numbers.
738
739 2012-04-02  Bruno Haible  <bruno@clisp.org>
740
741         log10* tests: Speed up.
742         * tests/test-log10.h (test_function): Reduce amount of random numbers
743         to test.
744
745 2012-04-01  Bruno Haible  <bruno@clisp.org>
746
747         logf-ieee: Fix test whether logf works.
748         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
749
750 2012-04-01  Bruno Haible  <bruno@clisp.org>
751
752         log10l: Work around log10l-ieee test failure on IRIX 6.5.
753         * lib/log10l.c: Include <float.h>
754         (log10l): On IRIX, normalize the +Infinity value.
755         * modules/log10l (Depends-on): Add 'float'.
756         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
757         +Infinity.
758
759         log10f-ieee: Work around test failure on NetBSD 5.1.
760         * m4/log10f-ieee.m4: New file.
761         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
762         test whether log10f works with a negative argument. Replace it if not.
763         * lib/log10f.c (log10f): For negative arguments, return NaN.
764         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
765         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
766         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
767
768         log10f-ieee: Work around test failure on Solaris 9.
769         * modules/log10f-ieee (Depends-on): Add log10-ieee.
770         (configure.ac): Require gl_FUNC_LOG10F.
771
772         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
773         * m4/log10-ieee.m4: New file.
774         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
775         whether log10 works with a negative argument. Replace it if not.
776         * lib/log10.c (log10): For negative arguments, return NaN.
777         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
778         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
779         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
780
781         Tests for module 'log10l-ieee'.
782         * modules/log10l-ieee-tests: New file.
783         * tests/test-log10l-ieee.c: New file.
784
785         New module 'log10l-ieee'.
786         * modules/log10l-ieee: New file.
787
788         Tests for module 'log10-ieee'.
789         * modules/log10-ieee-tests: New file.
790         * tests/test-log10-ieee.c: New file.
791
792         New module 'log10-ieee'.
793         * modules/log10-ieee: New file.
794
795         Tests for module 'log10f-ieee'.
796         * modules/log10f-ieee-tests: New file.
797         * tests/test-log10f-ieee.c: New file.
798         * tests/test-log10-ieee.h: New file.
799
800         New module 'log10f-ieee'.
801         * modules/log10f-ieee: New file.
802
803 2012-04-01  Bruno Haible  <bruno@clisp.org>
804
805         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
806         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
807         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
808         workaround.
809         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
810         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
812         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
813         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
814         (Depends-on): Update conditions.
815         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
816         IRIX 6.5, OSF/1 5.1 problems.
817
818 2012-04-01  Bruno Haible  <bruno@clisp.org>
819
820         log10f: Work around OSF/1 5.1 bug.
821         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
822         * lib/log10f.c (log10f): If logf exists, use it and provide just the
823         workaround.
824         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
825         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
827         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
828         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
829         (Depends-on): Update conditions.
830         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
831
832 2012-04-01  Bruno Haible  <bruno@clisp.org>
833
834         log10: Work around OSF/1 5.1 bug.
835         * lib/math.in.h (log10): New declaration.
836         * lib/log10.c: New file.
837         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
838         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
839         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
841         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
842         * modules/log10 (Files): Add lib/log10.c.
843         (Depends-on): Add math.
844         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
845         * tests/test-math-c++.cc: Check the declaration of log10.
846         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
847
848 2012-03-31  Bruno Haible  <bruno@clisp.org>
849
850         log10l tests: More tests.
851         * modules/log10l-tests (Files): Add tests/test-log10l.h,
852         tests/minus-zero.h, tests/randoml.c.
853         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
854         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
855         (main): Invoke test_function.
856
857         log10f tests: More tests.
858         * modules/log10f-tests (Files): Add tests/test-log10.h,
859         tests/minus-zero.h, tests/randomf.c.
860         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
861         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
862         (main): Invoke test_function.
863
864         log10 tests: More tests.
865         * tests/test-log10.h: New file.
866         * modules/log10-tests (Files): Add tests/test-log10.h,
867         tests/minus-zero.h, tests/randomd.c.
868         (Makefile.am): Add randomd.c to test_log10_SOURCES.
869         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
870         (main): Invoke test_function.
871
872 2012-03-31  Simon Josefsson  <simon@josefsson.org>
873
874         fflush: Fix syntax error.
875         * lib/fflush.c: Include unused-parameter.h, needed for
876         _GL_UNUSED_PARAMETER.
877         * modules/fflush (Depends-on): Add snippet/unused-parameter.
878
879 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
880
881         regex: pacify GCC when compiling GRUB
882         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
883         a diagnostic.  Reported by Vladimir Serbinenko in
884         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
885
886 2012-03-29  Eric Blake  <eblake@redhat.com>
887
888         stdio: don't assume gets any more
889         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
890         support.
891         * modules/stdio (Makefile.am): Likewise.
892         * lib/stdio-read.c (gets): Likewise.
893         * tests/test-stdio-c++.cc: Likewise.
894         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
895         * lib/stdio.in.h (gets): Make warning occur in more places.
896         * doc/posix-functions/gets.texi (gets): Update documentation.
897         Reported by Christer Solskogen.
898
899         maint.mk: fix syntax checks without exclusions
900         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
901         Reported by Daniel P. Berrange.
902
903         strerror_r: avoid compiler warning
904         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
905         level.
906
907         fflush: avoid compiler warning
908         * lib/fflush.c (update_fpos_cache): Mark variables that are
909         potentially unused.
910
911 2012-03-25  Bruno Haible  <bruno@clisp.org>
912
913         Tests for module 'localeconv'.
914         * modules/localeconv-tests: New file.
915         * tests/test-localeconv.c: New file.
916
917         New module 'localeconv'.
918         * lib/locale.in.h (localeconv): New declaration.
919         * lib/localeconv.c: New file.
920         * m4/localeconv.m4: New file.
921         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
922         REPLACE_LOCALECONV.
923         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
924         REPLACE_LOCALECONV.
925         * modules/localeconv: New file.
926         * modules/nl_langinfo (Depends-on): Add localeconv.
927         * modules/human (Depends-on): Likewise.
928         * doc/posix-functions/localeconv.texi: Mention the new module.
929
930 2012-03-25  Bruno Haible  <bruno@clisp.org>
931
932         locale: Provide a complete 'struct lconv'.
933         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
934         'struct lconv' does not contain int_p_cs_precedes.
935         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
936         * doc/posix-headers/locale.texi: Update.
937
938         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
939         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
940         * doc/posix-headers/locale.texi: Update.
941
942         locale: Provide a working 'struct lconv'.
943         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
944         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
945         'struct lconv' does not even contain decimal_point.
946         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
947         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
948         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
949         * doc/posix-headers/locale.texi: Mention the problems with
950         'struct lconv'.
951         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
952
953 2012-03-24  Bruno Haible  <bruno@clisp.org>
954
955         Enable common subexpression optimization in GCC.
956         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
957         macros.
958         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
959         GCC attribute 'const'.
960         (uc_locale_language): Declare with GCC attribute 'pure'.
961         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
962         with GCC attribute 'const'.
963         * lib/unictype.in.h (uc_is_general_category_withtable,
964         uc_combining_class, uc_combining_class_name,
965         uc_combining_class_long_name, uc_bidi_class_name,
966         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
967         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
968         uc_decimal_value, uc_digit_value, uc_numeric_value,
969         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
970         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
971         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
972         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
973         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
974         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
975         Declare with GCC attribute 'const'.
976         (uc_general_category_name, uc_general_category_long_name,
977         uc_general_category_byname, uc_general_category,
978         uc_is_general_category, uc_combining_class_byname,
979         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
980         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
981         Declare with GCC attribute 'pure'.
982         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
983         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
984         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
985         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
986         with GCC attribute 'pure'.
987         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
988         'const'.
989         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
990         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
991         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
992         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
993         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
994         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
995         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
996         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
997         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
998         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
999         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1000         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1001         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1002         GCC attribute 'pure'.
1003         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1004         'const'.
1005         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1006         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1007         u32_strwidth): Declare with GCC attribute 'pure'.
1008
1009         Enable common subexpression optimization in GCC.
1010         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1011         (alphasort): Declare with GCC attribute 'pure'.
1012         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1013         (atoll): Declare with GCC attribute 'pure'.
1014         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1015         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1016         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1017         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1018         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1019         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1020         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1021
1022 2012-03-24  Bruno Haible  <bruno@clisp.org>
1023
1024         gnulib-tool: Avoid unintended error output from 'cmp'.
1025         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1026         "cmp -s", not "cmp > /dev/null".
1027
1028 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1029
1030         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1031
1032         It's not just Automake versions < 1.9b that creates an empty
1033         pkgdatadir at installation time if pkgdata_DATA is specified
1034         to empty; modern automake versions do this as well, at least
1035         until automake 1.11.4 (not yet released at the moment of writing,
1036         but soon to appear).  That behaviour was generally considered a
1037         feature rather than a bug, at least until this discussion:
1038         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1039
1040         See also automake bugs #10997 and #11030.
1041
1042         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1043         reference to relevant automake bug numbers.
1044         (func_emit_tests_Makefile_am): Likewise.
1045
1046 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1047
1048         announce-gen: use Digest::SHA when possible
1049         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1050         back to Digest::SHA1 if necessary.
1051
1052 2012-03-20  Jim Meyering  <meyering@redhat.com>
1053
1054         tests: avoid gcc warnings about argv vs. const initializers
1055         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1056         warnings about discarding 'const' qualifier from pointer target type.
1057         * tests/test-posix_spawn2.c (main): Likewise.
1058
1059 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1060
1061         README-release: simplify slightly
1062         * top/README-release: Run "git checkout master" only once.
1063
1064 2012-03-15  Mark Wielaard  <mark@klomp.org>
1065
1066         git-merge-changelog: add specific example on how to use with hg.
1067         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1068
1069 2012-03-18  Mark Wielaard  <mark@klomp.org>
1070
1071         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1072
1073 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1074
1075         git-version-gen: don't let "prefix" envvar cause trouble
1076         * build-aux/git-version-gen (prefix): Initialize properly,
1077         so as not to use a value specified via the environment.
1078         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1079
1080 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1081
1082         regex: diagnose too-large repeat counts in EREs
1083         Previously, the code did not diagnose the too-large repeat count
1084         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1085         as if it were 'b\{1000000000}', which is unexpected.
1086         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1087         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1088         is a reasonable one for this problem.  Another option would be to
1089         create a new REG_OVERFLOW error for repeat counts that are too large.
1090         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1091         count is too large, so that the caller can distinguish the two cases.
1092         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1093         "Too large" return code, and that repeat counts are one example of this.
1094
1095 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1096
1097         doc: some glibc x32 integer width issues
1098         * doc/posix-headers/sys_types.texi (sys/types.h):
1099         * doc/posix-headers/time.texi (time.h):
1100         Mention that glibc x32 does not conform to POSIX in a couple of
1101         areas related to integer widths.
1102
1103 2012-03-15  Bruno Haible  <bruno@clisp.org>
1104
1105         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1106         * lib/fma.c (VOLATILE): New macro.
1107         (FUNC): Use it to work around a GCC compiler bug.
1108
1109 2012-03-13  Bruno Haible  <bruno@clisp.org>
1110
1111         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1112         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1113         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1114         REPLACE_HYPOTL to 1.
1115         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1116
1117 2012-03-13  Bruno Haible  <bruno@clisp.org>
1118
1119         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1120         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1121         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1122         REPLACE_REMAINDERL to 1.
1123         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1124         bug.
1125
1126 2012-03-13  Bruno Haible  <bruno@clisp.org>
1127
1128         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1129         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1130         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1131         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1132         too big rounding errors.
1133         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1134         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1135         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1136         (Depends-on): Update conditions.
1137         * tests/test-sqrtl.c (my_ldexpl): New function.
1138         (main): Add test of a particular value.
1139         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1140
1141 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1142
1143         doc: Update timer_* platform portability notes.
1144         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1145         that always return ENOSYS.
1146         * doc/posix-functions/timer_delete.texi: Likewise.
1147         * doc/posix-functions/timer_gettime.texi: Likewise.
1148         * doc/posix-functions/timer_settime.texi: Likewise.
1149
1150 2012-03-13  Bruno Haible  <bruno@clisp.org>
1151
1152         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1153         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1154         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1155         REPLACE_CBRTL to 1.
1156         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1157
1158 2012-03-13  Bruno Haible  <bruno@clisp.org>
1159
1160         remainderl: Avoid compilation error on AIX >= 5.2.
1161         * lib/math.in.h (remainderl): Undefine macro from the system header.
1162
1163 2012-03-13  Bruno Haible  <bruno@clisp.org>
1164
1165         Avoid compilation errors with MSVC option -fp:strict.
1166         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1167         * lib/cbrtf.c: Likewise.
1168         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1169
1170 2012-03-12  Bruno Haible  <bruno@clisp.org>
1171
1172         uninorm: Don't crash in out-of-memory conditions.
1173         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1174         gracefully.
1175         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1176         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1177
1178 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1179
1180         quote: fix syntax-check
1181         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1182         also exports quote_quoting_options.
1183
1184 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1185
1186         Collapse list of copyright years to ranges.  See
1187         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1188         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1189         build-aux/csharpexec.sh.in, build-aux/gnupload,
1190         build-aux/install-reloc, build-aux/javacomp.sh.in,
1191         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1192         build-aux/move-if-change, build-aux/reloc-ldflags,
1193         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1194
1195 2012-03-11  Bruno Haible  <bruno@clisp.org>
1196
1197         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1198         * m4/log2f-ieee.m4: New file.
1199         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1200         whether log2f works with a minus zero argument. Replace it if not.
1201         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1202         (Depends-on): Add log2-ieee.
1203         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1204         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1205
1206         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1207         * m4/log2-ieee.m4: New file.
1208         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1209         whether log2 works with a minus zero argument. Replace it if not.
1210         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1211         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1212         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1213
1214         Tests for module 'log2l-ieee'.
1215         * modules/log2l-ieee-tests: New file.
1216         * tests/test-log2l-ieee.c: New file.
1217
1218         New module 'log2l-ieee'.
1219         * modules/log2l-ieee: New file.
1220
1221         Tests for module 'log2-ieee'.
1222         * modules/log2-ieee-tests: New file.
1223         * tests/test-log2-ieee.c: New file.
1224
1225         New module 'log2-ieee'.
1226         * modules/log2-ieee: New file.
1227
1228         Tests for module 'log2f-ieee'.
1229         * modules/log2f-ieee-tests: New file.
1230         * tests/test-log2f-ieee.c: New file.
1231         * tests/test-log2-ieee.h: New file.
1232
1233         New module 'log2f-ieee'.
1234         * modules/log2f-ieee: New file.
1235
1236 2012-03-11  Bruno Haible  <bruno@clisp.org>
1237
1238         Tests for module 'log2l'.
1239         * modules/log2l-tests: New file.
1240         * tests/test-log2l.c: New file.
1241
1242         New module 'log2l'.
1243         * lib/math.in.h (log2l): New declaration.
1244         * lib/log2l.c: New file.
1245         * m4/log2l.m4: New file.
1246         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1247         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1248         REPLACE_LOG2L.
1249         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1250         REPLACE_LOG2L.
1251         * modules/log2l: New file.
1252         * tests/test-math-c++.cc: Check the declaration of log2l.
1253         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1254         and OSF/1 problems.
1255
1256 2012-03-11  Bruno Haible  <bruno@clisp.org>
1257
1258         Tests for module 'log2f'.
1259         * modules/log2f-tests: New file.
1260         * tests/test-log2f.c: New file.
1261
1262         New module 'log2f'.
1263         * lib/math.in.h (log2f): New declaration.
1264         * lib/log2f.c: New file.
1265         * m4/log2f.m4: New file.
1266         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1268         REPLACE_LOG2F.
1269         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1270         REPLACE_LOG2F.
1271         * modules/log2f: New file.
1272         * tests/test-math-c++.cc: Check the declaration of log2f.
1273         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1274         and OSF/1 and Cygwin problems.
1275
1276 2012-03-11  Bruno Haible  <bruno@clisp.org>
1277
1278         Tests for module 'log2'.
1279         * modules/log2-tests: New file.
1280         * tests/test-log2.c: New file.
1281         * tests/test-log2.h: New file.
1282
1283         New module 'log2'.
1284         * lib/math.in.h (log2): New declaration.
1285         * lib/log2.c: New file.
1286         * m4/log2.m4: New file.
1287         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1288         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1289         REPLACE_LOG2.
1290         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1291         REPLACE_LOG2.
1292         * modules/log2: New file.
1293         * tests/test-math-c++.cc: Check the declaration of log2.
1294         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1295         and OSF/1 and Cygwin problems.
1296
1297 2012-03-11  Bruno Haible  <bruno@clisp.org>
1298
1299         exp2* tests: More tests.
1300         * tests/test-exp2.h (test_function): Test all integral arguments that
1301         don't need to overflow or denormalized numbers.
1302         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1303         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1304         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1305
1306 2012-03-10  Bruno Haible  <bruno@clisp.org>
1307
1308         log1pl-ieee: Work around test failure on AIX 7.1.
1309         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1310
1311         log1pl-ieee: Work around test failure on IRIX 6.5.
1312         * m4/log1pl-ieee.m4: New file.
1313         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1314         test whether log1pl works with a minus zero argument. Replace it if
1315         not.
1316         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1317         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1318         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1319         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1320         (Depends-on): Update conditions.
1321         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1322         m4/signbit.m4.
1323         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1324         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1325
1326         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1327         * m4/log1pf-ieee.m4: New file.
1328         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1329         test whether log1pf works with a minus zero argument. Replace it if
1330         not.
1331         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1332         m4/signbit.m4.
1333         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1334         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1335
1336         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1337         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1338         (configure.ac): Require gl_FUNC_LOG1PF.
1339
1340         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1341         * m4/log1p-ieee.m4: New file.
1342         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1343         whether log1p works with a minus zero argument. Replace it if not.
1344         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1346         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1347         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1348         (Depends-on): Update conditions.
1349         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1350         m4/signbit.m4.
1351         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1352         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1353
1354         Tests for module 'log1pl-ieee'.
1355         * modules/log1pl-ieee-tests: New file.
1356         * tests/test-log1pl-ieee.c: New file.
1357
1358         New module 'log1pl-ieee'.
1359         * modules/log1pl-ieee: New file.
1360
1361         Tests for module 'log1p-ieee'.
1362         * modules/log1p-ieee-tests: New file.
1363         * tests/test-log1p-ieee.c: New file.
1364
1365         New module 'log1p-ieee'.
1366         * modules/log1p-ieee: New file.
1367
1368         Tests for module 'log1pf-ieee'.
1369         * modules/log1pf-ieee-tests: New file.
1370         * tests/test-log1pf-ieee.c: New file.
1371         * tests/test-log1p-ieee.h: New file.
1372
1373         New module 'log1pf-ieee'.
1374         * modules/log1pf-ieee: New file.
1375
1376 2012-03-10  Bruno Haible  <bruno@clisp.org>
1377
1378         Tests for module 'log1pl'.
1379         * modules/log1pl-tests: New file.
1380         * tests/test-log1pl.c: New file.
1381
1382         New module 'log1pl'.
1383         * lib/math.in.h (log1pl): New declaration.
1384         * lib/log1pl.c: New file.
1385         * m4/log1pl.m4: New file.
1386         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1387         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1388         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1389         * modules/log1pl: New file.
1390         * tests/test-math-c++.cc: Check the declaration of log1pl.
1391         * doc/posix-functions/log1pl.texi: Mention the new module.
1392
1393 2012-03-10  Bruno Haible  <bruno@clisp.org>
1394
1395         Tests for module 'log1pf'.
1396         * modules/log1pf-tests: New file.
1397         * tests/test-log1pf.c: New file.
1398
1399         New module 'log1pf'.
1400         * lib/math.in.h (log1pf): New declaration.
1401         * lib/log1pf.c: New file.
1402         * m4/log1pf.m4: New file.
1403         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1404         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1405         REPLACE_LOG1PF.
1406         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1407         REPLACE_LOG1PF.
1408         * modules/log1pf: New file.
1409         * tests/test-math-c++.cc: Check the declaration of log1pf.
1410         * doc/posix-functions/log1pf.texi: Mention the new module.
1411
1412 2012-03-10  Bruno Haible  <bruno@clisp.org>
1413
1414         log1p tests: More tests.
1415         * tests/test-log1p.h: New file.
1416         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1417         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1418         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1419         (main): Invoke test_function.
1420
1421         log1p: Provide replacement for Minix and MSVC.
1422         * lib/math.in.h (log1p): New declaration.
1423         * lib/log1p.c: New file.
1424         * m4/log1p.m4: New file.
1425         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1426         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1427         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1428         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1429         (Depends-on): Add math, isnand, log, round.
1430         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1431         HAVE_LOG1P is 0.
1432         * tests/test-math-c++.cc: Check the declaration of log1p.
1433         * doc/posix-functions/log1p.texi: Mention the replacement.
1434
1435 2012-03-10  Bruno Haible  <bruno@clisp.org>
1436
1437         math tests: Small simplification.
1438         * tests/test-exp.h (test_function): Use the same err_bound for
1439         'double' on platforms with sizeof (long double) == sizeof (double)
1440         than on platforms with sizeof (long double) > sizeof (double).
1441         * tests/test-exp2.h (test_function): Likewise.
1442         * tests/test-expm1.h (test_function): Likewise.
1443         * tests/test-log.h (test_function): Likewise.
1444
1445 2012-03-10  Bruno Haible  <bruno@clisp.org>
1446
1447         Fix some comments.
1448         * lib/expl.c: Fix an ambiguous comment.
1449         * lib/expm1.c: Likewise.
1450         * lib/expm1l.c: Likewise.
1451         * lib/exp2.c: Likewise.
1452         * lib/exp2l.c: Likewise.
1453
1454 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1455
1456         regex: allow inclusion of <regex.h> before <limits.h>
1457         Without this patch, portable programs had to include <limits.h> before
1458         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1459         I ran into this problem with a test version of GNU grep on Solaris 8.
1460         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1461         This is done conditionally so that this change can be merged
1462         back to glibc.
1463         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1464         using the included regex.
1465
1466         fts: depend on fdopendir
1467         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1468         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1469         problem was introduced when fdopendir was split out.
1470
1471 2012-03-10  Bruno Haible  <bruno@clisp.org>
1472
1473         Remove unused variables.
1474         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1475         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1476
1477 2012-03-10  Bruno Haible  <bruno@clisp.org>
1478
1479         isnanf-nolibm: Fix last commit.
1480         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1481
1482         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1483         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1484
1485 2012-03-10  Bruno Haible  <bruno@clisp.org>
1486
1487         logf-ieee: Work around test failure on NetBSD 5.1.
1488         * m4/logf-ieee.m4: New file.
1489         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1490         whether logf works with a negative argument. Replace it if not.
1491         * lib/logf.c (logf): For negative arguments, return NaN.
1492         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1493         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1494         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1495
1496         logf-ieee: Work around test failure on Solaris 9.
1497         * modules/logf-ieee (Depends-on): Add log-ieee.
1498         (configure.ac): Require gl_FUNC_LOGF.
1499
1500         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1501         * m4/log-ieee.m4: New file.
1502         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1503         log works with a negative argument. Replace it if not.
1504         * lib/log.c (log): For negative arguments, return NaN.
1505         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1506         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1507         * doc/posix-functions/log.texi: Mention the log-ieee module.
1508
1509         Tests for module 'logl-ieee'.
1510         * modules/logl-ieee-tests: New file.
1511         * tests/test-logl-ieee.c: New file.
1512
1513         New module 'logl-ieee'.
1514         * modules/logl-ieee: New file.
1515
1516         Tests for module 'log-ieee'.
1517         * modules/log-ieee-tests: New file.
1518         * tests/test-log-ieee.c: New file.
1519
1520         New module 'log-ieee'.
1521         * modules/log-ieee: New file.
1522
1523         Tests for module 'logf-ieee'.
1524         * modules/logf-ieee-tests: New file.
1525         * tests/test-logf-ieee.c: New file.
1526         * tests/test-log-ieee.h: New file.
1527
1528         New module 'logf-ieee'.
1529         * modules/logf-ieee: New file.
1530
1531 2012-03-10  Bruno Haible  <bruno@clisp.org>
1532
1533         log: Fix bug introduced on 2012-03-09.
1534         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1535
1536 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1537
1538         timer-time: link explicitly with pthreads on glibc
1539         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1540         to support static linking, when newer glibc is
1541         detected, as that contains pthread emulation of
1542         POSIX timer functions where required.
1543         * modules/timer-time: Depend on threadlib to
1544         pull in the appropriate library to link.
1545
1546 2012-03-10  Bruno Haible  <bruno@clisp.org>
1547
1548         log* tests: More tests.
1549         * tests/test-log.h: New file.
1550         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1551         (main): Invoke test_function.
1552         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1553         (main): Invoke test_function.
1554         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1555         (main): Invoke test_function.
1556         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1557         tests/randomd.c.
1558         (Makefile.am): Add randomd.c to test_log_SOURCES.
1559         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1560         tests/randomf.c.
1561         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1562         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1563         tests/randoml.c.
1564         (Depends-on): Add 'float'.
1565         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1566
1567 2012-03-09  Bruno Haible  <bruno@clisp.org>
1568
1569         logl: Work around OSF/1 5.1 bug.
1570         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1571         * lib/logl.c (logl): If logl exists, use it and provide just the
1572         workaround.
1573         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1574         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1575         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1576         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1577         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1578         (Depends-on): Update conditions.
1579         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1580
1581 2012-03-09  Bruno Haible  <bruno@clisp.org>
1582
1583         logf: Work around OSF/1 5.1 bug.
1584         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1585         * lib/logf.c (logf): If logf exists, use it and provide just the
1586         workaround.
1587         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1588         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1590         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1591         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1592         (Depends-on): Update conditions.
1593         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1594
1595 2012-03-09  Bruno Haible  <bruno@clisp.org>
1596
1597         log: Work around OSF/1 5.1 bug.
1598         * lib/math.in.h (log): New declaration.
1599         * lib/log.c: New file.
1600         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1601         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1602         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1603         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1604         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1605         * modules/log (Files): Add lib/log.c.
1606         (Depends-on): Add math.
1607         (configure.ac): If REPLACE_LOG is 1, compile an override.
1608         * tests/test-math-c++.cc: Check the declaration of log.
1609         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1610
1611 2012-03-09  Jim Meyering  <meyering@redhat.com>
1612
1613         readtokens.c: adjust wording in a comment
1614         * lib/readtokens.c: Insert omitted "that" in a comment.
1615
1616 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1617
1618         modechange: add notations +40, 00440, etc.
1619         * lib/modechange.c (mode_compile): Support new notations
1620         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1621
1622 2012-03-08  Bruno Haible  <bruno@clisp.org>
1623
1624         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1625         * m4/exp2l-ieee.m4: New file.
1626         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1627         test whether exp2l works with a NaN argument and with a negative
1628         infinity argument. Replace it if not.
1629         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1631         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1632         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1633         (Depends-on): Update conditions.
1634         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1635         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1636         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1637
1638         Tests for module 'exp2l-ieee'.
1639         * modules/exp2l-ieee-tests: New file.
1640         * tests/test-exp2l-ieee.c: New file.
1641
1642         New module 'exp2l-ieee'.
1643         * modules/exp2l-ieee: New file.
1644
1645         Tests for module 'exp2-ieee'.
1646         * modules/exp2-ieee-tests: New file.
1647         * tests/test-exp2-ieee.c: New file.
1648
1649         New module 'exp2-ieee'.
1650         * modules/exp2-ieee: New file.
1651
1652         Tests for module 'exp2f-ieee'.
1653         * modules/exp2f-ieee-tests: New file.
1654         * tests/test-exp2f-ieee.c: New file.
1655         * tests/test-exp2-ieee.h: New file.
1656
1657         New module 'exp2f-ieee'.
1658         * modules/exp2f-ieee: New file.
1659
1660 2012-03-08  Bruno Haible  <bruno@clisp.org>
1661
1662         Tests for module 'exp2l'.
1663         * modules/exp2l-tests: New file.
1664         * tests/test-exp2l.c: New file.
1665
1666         New module 'exp2l'.
1667         * lib/math.in.h (exp2l): New declaration.
1668         * lib/exp2l.c: New file.
1669         * lib/expl-table.c: New file, extracted from lib/expl.c.
1670         * lib/expl.c (gl_expl_table): New declaration.
1671         (expl): Remove expl_table. Update reference.
1672         * m4/exp2l.m4: New file.
1673         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1675         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1676         * modules/exp2l: New file.
1677         * modules/expl (Files): Add lib/expl-table.c.
1678         (configure.ac): Compile also expl-table.c.
1679         * tests/test-math-c++.cc: Check the declaration of exp2l.
1680         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1681         problem.
1682
1683 2012-03-08  Bruno Haible  <bruno@clisp.org>
1684
1685         Tests for module 'exp2f'.
1686         * modules/exp2f-tests: New file.
1687         * tests/test-exp2f.c: New file.
1688
1689         New module 'exp2f'.
1690         * lib/math.in.h (exp2f): New declaration.
1691         * lib/exp2f.c: New file.
1692         * m4/exp2f.m4: New file.
1693         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1694         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1695         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1696         * modules/exp2f: New file.
1697         * tests/test-math-c++.cc: Check the declaration of exp2f.
1698         * doc/posix-functions/exp2f.texi: Mention the new module and the
1699         IRIX problem.
1700
1701 2012-03-08  Bruno Haible  <bruno@clisp.org>
1702
1703         Tests for module 'exp2'.
1704         * modules/exp2-tests: New file.
1705         * tests/test-exp2.c: New file.
1706         * tests/test-exp2.h: New file.
1707
1708         New module 'exp2'.
1709         * lib/math.in.h (exp2): New declaration.
1710         * lib/exp2.c: New file.
1711         * m4/exp2.m4: New file.
1712         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1714         REPLACE_EXP2.
1715         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1716         REPLACE_EXP2.
1717         * modules/exp2: New file.
1718         * tests/test-math-c++.cc: Check the declaration of exp2.
1719         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1720         and OpenBSD problems.
1721
1722 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1723
1724         savedir: fix comment typo
1725         * lib/savedir.c (savedirstream): Fix typo in comment.
1726
1727 2012-03-08  Bruno Haible  <bruno@clisp.org>
1728
1729         test-readtokens.c: use const; remove unwarranted cast
1730         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1731
1732 2012-03-08  Bruno Haible  <bruno@clisp.org>
1733
1734         fmal: Avoid compilation error on AIX.
1735         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1736         AIX 5.2..7.1.
1737
1738 2012-03-08  Bruno Haible  <bruno@clisp.org>
1739
1740         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1741         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1742         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1743         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1744         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1745         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1746         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1747
1748 2012-03-08  Bruno Haible  <bruno@clisp.org>
1749
1750         remainderf: Override buggy system function on IRIX 6.5.
1751         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1752         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1753         when it exists.
1754         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1755
1756 2012-03-08  Jim Meyering  <meyering@redhat.com>
1757
1758         test-readtokens.c: avoid const-related compilation warnings
1759         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1760
1761 2012-03-07  Jim Meyering  <meyering@redhat.com>
1762             Bruno Haible  <bruno@clisp.org>
1763
1764         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1765         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1766         tests/randomd.c.
1767         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1768         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1769         tests/randoml.c.
1770         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1771
1772 2012-03-07  Bruno Haible  <bruno@clisp.org>
1773
1774         expm1l: Avoid compilation error on AIX.
1775         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1776         AIX 5.2..7.1.
1777
1778 2012-03-07  Bruno Haible  <bruno@clisp.org>
1779
1780         expm1l: Don't override undeclared system function on IRIX 6.5.
1781         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1782         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1783         it exists. Set HAVE_DECL_EXPM1L.
1784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1785         HAVE_EXPM1L.
1786         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1787         HAVE_EXPM1L.
1788         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1789
1790 2012-03-07  Bruno Haible  <bruno@clisp.org>
1791
1792         remainderl: Don't override undeclared system function on IRIX 6.5.
1793         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1794         HAVE_REMAINDERL.
1795         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1796         declared when it exists. Set HAVE_DECL_REMAINDERL.
1797         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1798         not HAVE_REMAINDERL.
1799         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1800         HAVE_REMAINDERL.
1801         * doc/posix-functions/remainderl.texi: Mention missing declaration
1802         problem.
1803
1804 2012-03-07  Bruno Haible  <bruno@clisp.org>
1805
1806         rintf: Don't override undeclared system function on IRIX 6.5.
1807         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1808         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1809         exists. Set HAVE_DECL_RINTF.
1810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1811         HAVE_RINTF.
1812         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1813         HAVE_RINTF.
1814         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1815
1816 2012-03-07  Bruno Haible  <bruno@clisp.org>
1817
1818         roundl: Avoid compilation error on AIX.
1819         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1820         AIX 5.2..7.1.
1821
1822 2012-03-07  Bruno Haible  <bruno@clisp.org>
1823
1824         roundl: Don't override undeclared system function on IRIX 6.5.
1825         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1826         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1827         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1828         * modules/roundl (configure.ac): For replacement code, test
1829         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1830         (Depends-on): Update conditions.
1831         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1832
1833 2012-03-07  Bruno Haible  <bruno@clisp.org>
1834
1835         roundf: Don't override undeclared system function on IRIX 6.5.
1836         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1837         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1838         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1839         * modules/roundf (configure.ac): For replacement code, test
1840         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1841         (Depends-on): Update conditions.
1842         * modules/roundf-ieee (Depends-on): Update conditions.
1843         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1844
1845 2012-03-07  Bruno Haible  <bruno@clisp.org>
1846
1847         round: Don't override undeclared system function on IRIX 6.5.
1848         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1849         argument.
1850         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1851         also when it is not declared. Set HAVE_ROUND. For replacement code,
1852         test HAVE_ROUND, not HAVE_DECL_ROUND.
1853         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1854         not HAVE_DECL_ROUND.
1855         (Depends-on): Update conditions.
1856         * modules/round-ieee (Depends-on): Update conditions.
1857         * doc/posix-functions/round.texi: Mention the IRIX problem.
1858
1859 2012-03-07  Bruno Haible  <bruno@clisp.org>
1860
1861         copysignf: Don't override undeclared system function on IRIX 6.5.
1862         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1863         HAVE_COPYSIGNF.
1864         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1865         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1867         not HAVE_COPYSIGNF.
1868         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1869         HAVE_COPYSIGNF.
1870         * doc/posix-functions/copysignf.texi: Mention missing declaration
1871         problem.
1872
1873 2012-03-07  Jim Meyering  <meyering@redhat.com>
1874
1875         readtokens: add tests
1876         * modules/readtokens-tests: New file.
1877         * tests/test-readtokens.c: New file.
1878
1879 2012-03-07  Jim Meyering  <meyering@redhat.com>
1880
1881         quotearg: the module must now include quote.h
1882         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1883         So must the module.
1884         * modules/quotearg (Files): Add quote.h.
1885
1886 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1887
1888         readtokens: avoid core dumps with unusual calling patterns
1889         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1890         * lib/readtokens.c: Include limits.h.
1891         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1892         (readtoken): Don't cache the delimiters; the cache code was buggy
1893         if !delim && saved_delim, or if the new n_delim differs from the old.
1894         Also, it wasn't thread-safe.
1895
1896 2012-03-07  Bruno Haible  <bruno@clisp.org>
1897
1898         quote: Adhere to common module description layout.
1899         * modules/quote (Makefile.am): Add back empty section.
1900
1901 2012-03-06  Akim Demaille  <demaille@gostai.com>
1902
1903         quote: fuse into quotearg
1904         This patch is made for the benefit of Bison.
1905         quote does not leave the choice of the quoting style to the user.
1906         quoting_style provides poor customizability, yet quoting_options,
1907         which is very rich, is hidden inside quotearg.c.  So in order to
1908         allow quote customization, move its implementation to quotearg.c.
1909         * lib/quote.c: Remove.
1910         * modules/quote: Adjust.
1911         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1912         warning: provide all the members of literal structs.
1913         (quote_quoting_options): New.
1914         (quote, quote_n): Import implementation from quote.c.
1915         * lib/quote.h: Import the comments from quote.c.
1916         (quote_quoting_options): New.
1917
1918 2012-03-06  Bruno Haible  <bruno@clisp.org>
1919
1920         Tests for module 'expm1l-ieee'.
1921         * modules/expm1l-ieee-tests: New file.
1922         * tests/test-expm1l-ieee.c: New file.
1923
1924         New module 'expm1l-ieee'.
1925         * modules/expm1l-ieee: New file.
1926
1927         Tests for module 'expm1f-ieee'.
1928         * modules/expm1f-ieee-tests: New file.
1929         * tests/test-expm1f-ieee.c: New file.
1930
1931         New module 'expm1f-ieee'.
1932         * modules/expm1f-ieee: New file.
1933
1934         Tests for module 'expm1-ieee'.
1935         * modules/expm1-ieee-tests: New file.
1936         * tests/test-expm1-ieee.c: New file.
1937         * tests/test-expm1-ieee.h: New file.
1938
1939         New module 'expm1-ieee'.
1940         * modules/expm1-ieee: New file.
1941         * m4/expm1-ieee.m4: New file.
1942         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1943         whether expm1 works with a minus zero argument. Replace it if not.
1944         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1946         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1947         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1948         (Depends-on): Update conditions.
1949         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1950         AIX problem.
1951
1952 2012-03-06  Bruno Haible  <bruno@clisp.org>
1953
1954         Work around expm1f bug on IRIX 6.5.
1955         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1956         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1957         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1958         not work.
1959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1960         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1961         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1962         (Depends-on): Update conditions.
1963         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1964
1965 2012-03-06  Bruno Haible  <bruno@clisp.org>
1966
1967         Tests for module 'expm1l'.
1968         * modules/expm1l-tests: New file.
1969         * tests/test-expm1l.c: New file.
1970
1971         New module 'expm1l'.
1972         * lib/math.in.h (expm1l): New declaration.
1973         * lib/expm1l.c: New file.
1974         * m4/expm1l.m4: New file.
1975         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1976         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1977         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1978         * modules/expm1l: New file.
1979         * tests/test-math-c++.cc: Check the declaration of expm1l.
1980         * doc/posix-functions/expm1l.texi: Mention the new module.
1981
1982 2012-03-06  Bruno Haible  <bruno@clisp.org>
1983
1984         Tests for module 'expm1f'.
1985         * modules/expm1f-tests: New file.
1986         * tests/test-expm1f.c: New file.
1987
1988         New module 'expm1f'.
1989         * lib/math.in.h (expm1f): New declaration.
1990         * lib/expm1f.c: New file.
1991         * m4/expm1f.m4: New file.
1992         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1993         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1994         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1995         * modules/expm1f: New file.
1996         * tests/test-math-c++.cc: Check the declaration of expm1f.
1997         * doc/posix-functions/expm1f.texi: Mention the new module.
1998
1999 2012-03-06  Bruno Haible  <bruno@clisp.org>
2000
2001         Tests for module 'expm1'.
2002         * modules/expm1-tests: New file.
2003         * tests/test-expm1.c: New file.
2004         * tests/test-expm1.h: New file.
2005
2006         New module 'expm1'.
2007         * lib/math.in.h (expm1): New declaration.
2008         * lib/expm1.c: New file.
2009         * m4/expm1.m4: New file.
2010         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2011         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2012         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2013         * modules/expm1: New file.
2014         * tests/test-math-c++.cc: Check the declaration of expm1.
2015         * doc/posix-functions/expm1.texi: Mention the new module.
2016
2017 2012-03-06  Bruno Haible  <bruno@clisp.org>
2018
2019         math: Ensure declarations of math functions.
2020         * modules/acosf (Depends-on): Add 'extensions'.
2021         * modules/asinf (Depends-on): Likewise.
2022         * modules/atan2f (Depends-on): Likewise.
2023         * modules/atanf (Depends-on): Likewise.
2024         * modules/cbrt (Depends-on): Likewise.
2025         * modules/cbrtf (Depends-on): Likewise.
2026         * modules/cbrtl (Depends-on): Likewise.
2027         * modules/copysignf (Depends-on): Likewise.
2028         * modules/copysignl (Depends-on): Likewise.
2029         * modules/cosf (Depends-on): Likewise.
2030         * modules/coshf (Depends-on): Likewise.
2031         * modules/expf (Depends-on): Likewise.
2032         * modules/fabsf (Depends-on): Likewise.
2033         * modules/fabsl (Depends-on): Likewise.
2034         * modules/fmaf (Depends-on): Likewise.
2035         * modules/fmal (Depends-on): Likewise.
2036         * modules/fmodf (Depends-on): Likewise.
2037         * modules/fmodl (Depends-on): Likewise.
2038         * modules/frexpf (Depends-on): Likewise.
2039         * modules/frexpl (Depends-on): Likewise.
2040         * modules/hypot (Depends-on): Likewise.
2041         * modules/hypotf (Depends-on): Likewise.
2042         * modules/hypotl (Depends-on): Likewise.
2043         * modules/ldexpf (Depends-on): Likewise.
2044         * modules/ldexpl (Depends-on): Likewise.
2045         * modules/log10f (Depends-on): Likewise.
2046         * modules/log10l (Depends-on): Likewise.
2047         * modules/log1p (Depends-on): Likewise.
2048         * modules/logb (Depends-on): Likewise.
2049         * modules/logf (Depends-on): Likewise.
2050         * modules/modff (Depends-on): Likewise.
2051         * modules/modfl (Depends-on): Likewise.
2052         * modules/powf (Depends-on): Likewise.
2053         * modules/remainderf (Depends-on): Likewise.
2054         * modules/remainderl (Depends-on): Likewise.
2055         * modules/rintf (Depends-on): Likewise.
2056         * modules/rintl (Depends-on): Likewise.
2057         * modules/sinf (Depends-on): Likewise.
2058         * modules/sinhf (Depends-on): Likewise.
2059         * modules/sqrtf (Depends-on): Likewise.
2060         * modules/tanf (Depends-on): Likewise.
2061         * modules/tanhf (Depends-on): Likewise.
2062         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2063         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2064         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2065         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2066         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2067         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2068         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2069         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2070         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2071         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2072         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2073         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2074         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2075         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2076         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2077         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2078         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2079         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2080         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2081         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2082         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2083         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2084         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2085         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2086         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2087         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2088         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2089         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2090         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2091         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2092         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2093         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2094         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2095         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2096         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2097         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2098         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2099         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2100         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2101         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2102         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2103
2104 2012-03-06  Bruno Haible  <bruno@clisp.org>
2105
2106         math: Update module names in warnings.
2107         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2108         tanl): Use specific module name in warn-on-use warning.
2109
2110 2012-03-06  Bruno Haible  <bruno@clisp.org>
2111
2112         expl: Simplify computation.
2113         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2114
2115 2012-03-05  Bruno Haible  <bruno@clisp.org>
2116
2117         exp* tests: More tests.
2118         * tests/test-exp.h: New file.
2119         * tests/test-exp.c: Include <float.h> and test-exp.h.
2120         (main): Invoke test_function.
2121         * tests/test-expf.c: Include <float.h> and test-exp.h.
2122         (main): Invoke test_function.
2123         * tests/test-expl.c: Include <float.h> and test-exp.h.
2124         (main): Invoke test_function.
2125         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2126         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2127         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2128         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2129         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2130         (Depends-on): Add 'float'.
2131         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2132
2133         expl: Fix precision of computed result.
2134         * lib/expl.c: Completely rewritten.
2135         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2136         (Maintainer): Add me.
2137         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2138
2139 2012-03-05  Bruno Haible  <bruno@clisp.org>
2140
2141         cbrt* tests: More tests.
2142         * tests/test-cbrt.h: New file.
2143         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2144         (main): Invoke test_function.
2145         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2146         (main): Invoke test_function.
2147         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2148         (main): Invoke test_function.
2149         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2150         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2151         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2152         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2153         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2154         (Depends-on): Add 'float'.
2155         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2156
2157 2012-03-05  Bruno Haible  <bruno@clisp.org>
2158
2159         hypot* tests: More tests.
2160         * tests/test-hypot.h: New file, partially extracted from
2161         tests/test-hypotl.c.
2162         * tests/test-hypot.c: Include test-hypot.h.
2163         (main): Invoke test_function.
2164         * tests/test-hypotf.c: Include test-hypot.h.
2165         (main): Invoke test_function.
2166         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2167         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2168         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2169         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2170         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2171         tests/randomf.c.
2172         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2173         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2174         tests/randoml.c.
2175         (Depends-on): Add 'fpucw', 'float'.
2176         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2177
2178 2012-03-05  Bruno Haible  <bruno@clisp.org>
2179
2180         fpucw: Doc about FreeBSD.
2181         * lib/fpucw.h: Mention FreeBSD in comments.
2182
2183 2012-03-04  Bruno Haible  <bruno@clisp.org>
2184
2185         sqrt* tests: More tests.
2186         * tests/test-sqrt.h: New file.
2187         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2188         (main): Invoke test_function.
2189         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2190         (main): Invoke test_function.
2191         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2192         (main): Invoke test_function.
2193         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2194         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2195         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2196         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2197         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2198         (Depends-on): Add 'float'.
2199         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2200
2201 2012-03-04  Bruno Haible  <bruno@clisp.org>
2202
2203         remainder* tests: More tests.
2204         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2205         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2206         (main): Invoke test_function.
2207         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2208         (main): Invoke test_function.
2209         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2210         (main): Invoke test_function.
2211         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2212         tests/randomd.c.
2213         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2214         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2215         tests/randomf.c.
2216         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2217         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2218         tests/randoml.c.
2219         (Depends-on): Add 'float'.
2220         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2221
2222 2012-03-04  Bruno Haible  <bruno@clisp.org>
2223
2224         remainder, remainderf, remainderl: Fix computation for large quotients.
2225         * lib/remainder.c: Completely rewritten.
2226         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2227         USE_FLOAT.
2228         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2229         USE_LONG_DOUBLE.
2230         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2231         isnand, isinf. Remove round, fma.
2232         * modules/remainderf (Files): Add lib/remainder.c.
2233         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2234         Remove roundf, fmaf.
2235         * modules/remainderl (Files): Add lib/remainder.c.
2236         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2237         isinf. Remove roundl, fmal.
2238         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2239         REMAINDER_LIBM.
2240         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2241         REMAINDERF_LIBM.
2242         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2243         REMAINDERL_LIBM.
2244
2245 2012-03-04  Bruno Haible  <bruno@clisp.org>
2246
2247         fmod* tests: More tests.
2248         * tests/test-fmod.h (my_ldexp): New function.
2249         (test_function): Reduce amount of random numbers to test. Add tests
2250         of very large quotients x / y.
2251         * tests/test-fmod.c (MAX_EXP): New macro.
2252         * tests/test-fmodf.c (MAX_EXP): Likewise.
2253         * tests/test-fmodl.c (MAX_EXP): Likewise.
2254
2255 2012-03-04  Bruno Haible  <bruno@clisp.org>
2256
2257         fmod, fmodl: Fix computation for large quotients x / y.
2258         * lib/fmod.c: Completely rewritten.
2259         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2260         USE_LONG_DOUBLE.
2261         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2262         isnand. Remove fma.
2263         * modules/fmodl (Files): Add lib/fmod.c.
2264         (Depends-on): Add float, isfinite, signbit, fabsl,
2265         frexpl, ldexpl, isnanl. Remove fma.
2266         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2267         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2268
2269 2012-03-03  Bruno Haible  <bruno@clisp.org>
2270
2271         fmod* tests: More tests.
2272         * tests/test-fmod.h: New file.
2273         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2274         (main): Invoke test_function.
2275         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2276         (main): Invoke test_function.
2277         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2278         (main): Invoke test_function.
2279         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2280         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2281         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2282         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2283         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2284         (Depends-on): Add 'float'.
2285         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2286
2287 2012-03-03  Bruno Haible  <bruno@clisp.org>
2288
2289         rint* tests: More tests.
2290         * tests/test-rint.h: New file, partially extracted from
2291         tests/test-rintl.c.
2292         * tests/test-rint.c: Include test-rint.h.
2293         (main): Invoke test_function.
2294         * tests/test-rintf.c: Include test-rint.h.
2295         (main): Invoke test_function.
2296         * tests/test-rintl.c: Include test-rint.h.
2297         (main): Invoke test_function.
2298         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2299         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2300         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2301         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2302         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2303         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2304
2305 2012-03-03  Bruno Haible  <bruno@clisp.org>
2306
2307         modf* tests: More tests.
2308         * tests/test-modf.h: New file.
2309         * tests/test-modf.c: Include <float.h> and test-modf.h.
2310         (main): Invoke test_function.
2311         * tests/test-modff.c: Include <float.h> and test-modf.h.
2312         (main): Invoke test_function.
2313         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2314         (main): Invoke test_function.
2315         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2316         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2317         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2318         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2319         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2320         (Depends-on): Add 'float'.
2321         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2322
2323 2012-03-03  Bruno Haible  <bruno@clisp.org>
2324
2325         fabs* tests: More tests.
2326         * tests/test-fabs.h: New file, partially extracted from
2327         tests/test-fabsl.c.
2328         * tests/test-fabs.c (RANDOM): New macro.
2329         * tests/test-fabsf.c (RANDOM): New macro.
2330         * tests/test-fabsl.c (RANDOM): New macro.
2331         * modules/fabs-tests (Files): Add tests/randomd.c.
2332         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2333         * modules/fabsf-tests (Files): Add tests/randomf.c.
2334         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2335         * modules/fabsl-tests (Files): Add tests/randoml.c.
2336         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2337
2338 2012-03-03  Bruno Haible  <bruno@clisp.org>
2339
2340         ldexp* tests: More tests.
2341         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2342         * tests/test-ldexp.c (RANDOM): New macro.
2343         * tests/test-ldexpf.c (RANDOM): New macro.
2344         * tests/test-ldexpl.c (RANDOM): New macro.
2345         * modules/ldexp-tests (Files): Add tests/randomd.c.
2346         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2347         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2348         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2349         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2350         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2351
2352 2012-03-03  Bruno Haible  <bruno@clisp.org>
2353
2354         frexp* tests: More tests.
2355         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2356         * tests/test-frexp.c (RANDOM): New macro.
2357         * tests/test-frexpf.c (RANDOM): New macro.
2358         * tests/test-frexpl.c (RANDOM): New macro.
2359         * modules/frexp-tests (Files): Add tests/randomd.c.
2360         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2361         * modules/frexpf-tests (Files): Add tests/randomf.c.
2362         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2363         * modules/frexpl-tests (Files): Add tests/randoml.c.
2364         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2365
2366 2012-03-03  Bruno Haible  <bruno@clisp.org>
2367
2368         Support for pseudo-random numbers in tests.
2369         * tests/randomf.c: New file.
2370         * tests/randomd.c: New file.
2371         * tests/randoml.c: New file.
2372         * tests/macros.h (randomf, randomd, randoml): New declarations.
2373
2374 2012-03-03  Bruno Haible  <bruno@clisp.org>
2375
2376         frexp* tests: Refactor.
2377         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2378         * tests/test-frexp.c: Include and use it.
2379         * tests/test-frexpf.c: Likewise.
2380         * tests/test-frexpl.c: Likewise.
2381         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2382         * modules/frexpf-tests (Files): Likewise.
2383         * modules/frexpl-tests (Files): Likewise.
2384
2385 2012-03-02  Jim Meyering  <meyering@redhat.com>
2386
2387         maint: don't specify XZ_OPT=-9ev in dist-related rule
2388         Using xz's -9 option is warranted only if you have a very large
2389         tarball (see xz's documentation for the sizes vs. presets), and
2390         requires 64MiB of memory at decompression time.
2391         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2392         Automake's default of just "-e" is fine.  Override on a
2393         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2394
2395 2012-03-01  Eric Blake  <eblake@redhat.com>
2396
2397         maint.mk: allow announcement for non-gnulib project
2398         * maint.mk (announcement): Skip gnulib version if not used.
2399
2400 2012-03-01  Jim Meyering  <meyering@redhat.com>
2401
2402         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2403         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2404         envvar settings cannot interfere.  Otherwise, setting envvars like
2405         prohibit=foo require=bar, etc. would cause spurious test failures.
2406
2407 2012-03-01  Eric Blake  <eblake@redhat.com>
2408
2409         maint.mk: add per-line exclusions to prohibitions
2410         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2411         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2412         (sc_const_long_option): Use it.
2413
2414 2012-03-01  Bruno Haible  <bruno@clisp.org>
2415
2416         Tests for module 'expl-ieee'.
2417         * modules/expl-ieee-tests: New file.
2418         * tests/test-expl-ieee.c: New file.
2419
2420         New module 'expl-ieee'.
2421         * modules/expl-ieee: New file.
2422
2423         Tests for module 'exp-ieee'.
2424         * modules/exp-ieee-tests: New file.
2425         * tests/test-exp-ieee.c: New file.
2426
2427         New module 'exp-ieee'.
2428         * modules/exp-ieee: New file.
2429
2430         Tests for module 'expf-ieee'.
2431         * modules/expf-ieee-tests: New file.
2432         * tests/test-expf-ieee.c: New file.
2433         * tests/test-exp-ieee.h: New file.
2434
2435         New module 'expf-ieee'.
2436         * modules/expf-ieee: New file.
2437
2438 2012-02-29  Bruno Haible  <bruno@clisp.org>
2439
2440         cbrtl-ieee: Work around test failure on IRIX 6.5.
2441         * m4/cbrtl-ieee.m4: New file.
2442         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2443         test whether cbrtl works with a minus zero argument. Replace it if not.
2444         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2446         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2447         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2448         (Depends-on): Update conditions.
2449         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2450         m4/signbit.m4.
2451         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2452         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2453         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2454
2455         Tests for module 'cbrtl-ieee'.
2456         * modules/cbrtl-ieee-tests: New file.
2457         * tests/test-cbrtl-ieee.c: New file.
2458
2459         New module 'cbrtl-ieee'.
2460         * modules/cbrtl-ieee: New file.
2461
2462         Tests for module 'cbrt-ieee'.
2463         * modules/cbrt-ieee-tests: New file.
2464         * tests/test-cbrt-ieee.c: New file.
2465
2466         New module 'cbrt-ieee'.
2467         * modules/cbrt-ieee: New file.
2468
2469         Tests for module 'cbrtf-ieee'.
2470         * modules/cbrtf-ieee-tests: New file.
2471         * tests/test-cbrtf-ieee.c: New file.
2472         * tests/test-cbrt-ieee.h: New file.
2473
2474         New module 'cbrtf-ieee'.
2475         * modules/cbrtf-ieee: New file.
2476
2477 2012-02-29  Bruno Haible  <bruno@clisp.org>
2478
2479         cbrtf: Work around bug in IRIX 6.5 system function.
2480         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2481         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2482         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2483         work.
2484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2485         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2486         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2487         (Depends-on): Update conditions.
2488         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2489
2490 2012-02-29  Bruno Haible  <bruno@clisp.org>
2491
2492         Tests for module 'cbrtl'.
2493         * modules/cbrtl-tests: New file.
2494         * tests/test-cbrtl.c: New file.
2495
2496         New module 'cbrtl'.
2497         * lib/math.in.h (cbrtl): New declaration.
2498         * lib/cbrtl.c: New file.
2499         * m4/cbrtl.m4: New file.
2500         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2501         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2502         HAVE_DECL_CBRTL.
2503         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2504         HAVE_DECL_CBRTL.
2505         * modules/cbrtl: New file.
2506         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2507         * doc/posix-functions/cbrtl.texi: Mention the new module.
2508
2509 2012-02-29  Bruno Haible  <bruno@clisp.org>
2510
2511         Tests for module 'cbrtf'.
2512         * modules/cbrtf-tests: New file.
2513         * tests/test-cbrtf.c: New file.
2514
2515         New module 'cbrtf'.
2516         * lib/math.in.h (cbrtf): New declaration.
2517         * lib/cbrtf.c: New file.
2518         * m4/cbrtf.m4: New file.
2519         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2520         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2521         HAVE_DECL_CBRTF.
2522         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2523         HAVE_DECL_CBRTF.
2524         * modules/cbrtf: New file.
2525         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2526         * doc/posix-functions/cbrtf.texi: Mention the new module.
2527
2528 2012-02-29  Bruno Haible  <bruno@clisp.org>
2529
2530         cbrt: Provide replacement on MSVC and Minix.
2531         * lib/math.in.h (cbrt): New declaration.
2532         * lib/cbrt.c: New file.
2533         * m4/cbrt.m4: New file.
2534         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2536         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2537         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2538         (Depends-on): Add dependencies.
2539         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2540         * tests/test-math-c++.cc: Check the declaration of cbrt.
2541         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2542         replacement.
2543
2544 2012-02-29  Bruno Haible  <bruno@clisp.org>
2545
2546         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2547         * m4/hypotl-ieee.m4: New file.
2548         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2549         test whether hypotl works with mixed NaN and Infinity arguments.
2550         Replace it if not.
2551         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2553         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2554         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2555         (Depends-on): Update conditions.
2556         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2557         (Depends-on): Add hypot-ieee.
2558         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2559         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2560
2561         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2562         * m4/hypotf-ieee.m4: New file.
2563         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2564         test whether hypotf works with mixed NaN and Infinity arguments.
2565         Replace it if not.
2566         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2567         (Depends-on): Add hypot-ieee.
2568         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2569         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2570
2571         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2572         * lib/math.in.h (hypot): New declaration.
2573         * lib/hypot.c: New file.
2574         * m4/hypot-ieee.m4: New file.
2575         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2576         whether hypot works with mixed NaN and Infinity arguments. Replace it
2577         if not.
2578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2579         REPLACE_HYPOT.
2580         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2581         * modules/hypot (Files): Add lib/hypot.c.
2582         (Depends-on): Add dependencies.
2583         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2584         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2585         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2586         * tests/test-math-c++.cc: Check the declaration of hypot.
2587         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2588
2589         Tests for module 'hypotl-ieee'.
2590         * modules/hypotl-ieee-tests: New file.
2591         * tests/test-hypotl-ieee.c: New file.
2592
2593         New module 'hypotl-ieee'.
2594         * modules/hypotl-ieee: New file.
2595
2596         Tests for module 'hypot-ieee'.
2597         * modules/hypot-ieee-tests: New file.
2598         * tests/test-hypot-ieee.c: New file.
2599
2600         New module 'hypot-ieee'.
2601         * modules/hypot-ieee: New file.
2602
2603         Tests for module 'hypotf-ieee'.
2604         * modules/hypotf-ieee-tests: New file.
2605         * tests/test-hypotf-ieee.c: New file.
2606         * tests/test-hypot-ieee.h: New file.
2607
2608         New module 'hypotf-ieee'.
2609         * modules/hypotf-ieee: New file.
2610
2611 2012-02-29  Bruno Haible  <bruno@clisp.org>
2612
2613         Remove unused variables.
2614         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2615         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2616         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2617         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2618
2619 2012-02-29  Eric Blake  <eblake@redhat.com>
2620
2621         termios: fix pid_t always, not just for tcgetsid
2622         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2623         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2624         just when building tcgetsid.
2625
2626 2012-02-29  Bruno Haible  <bruno@clisp.org>
2627
2628         Tests for module 'hypotl'.
2629         * modules/hypotl-tests: New file.
2630         * tests/test-hypotl.c: New file.
2631
2632         New module 'hypotl'.
2633         * lib/math.in.h (hypotl): New declaration.
2634         * lib/hypotl.c: New file.
2635         * m4/hypotl.m4: New file.
2636         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2637         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2638         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2639         * modules/hypotl: New file.
2640         * tests/test-math-c++.cc: Check the hypotl declaration.
2641         * doc/posix-functions/hypotl.texi: Mention the new module.
2642
2643 2012-02-29  Eric Blake  <eblake@redhat.com>
2644
2645         tcgetsid: fix cygwin header bug
2646         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2647
2648         docs: update cygwin progress
2649         * doc/posix-functions/llround.texi (llround): Added in cygwin
2650         1.7.8.
2651         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2652         * doc/glibc-functions/program_invocation_name.texi
2653         (program_invocation_name): Likewise.
2654         * doc/glibc-functions/program_invocation_short_name.texi
2655         (program_invocation_short_name): Likewise.
2656         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2657         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2658         Likewise.
2659         * doc/posix-functions/pthread_spin_destroy.texi
2660         (pthread_spin_destroy): Added in cygwin 1.7.10.
2661         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2662         Likewise.
2663         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2664         Likewise.
2665         * doc/posix-functions/pthread_spin_trylock.texi
2666         (pthread_spin_trylock): Likewise.
2667         * doc/posix-functions/pthread_spin_unlock.texi
2668         (pthread_spin_unlock): Likewise.
2669         * doc/posix-functions/pthread_setschedprio.texi
2670         (pthread_setschedprio): Likewise.
2671         * doc/posix-functions/pthread_attr_getstack.texi
2672         (pthread_attr_getstack): Likewise.
2673         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2674         (pthread_attr_getstackaddr): Likewise.
2675         * doc/glibc-functions/pthread_getattr_np.texi
2676         (pthread_getattr_np): Likewise.
2677         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2678         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2679         * doc/posix-functions/clock_settime.texi (clock_settime):
2680         Likewise.
2681         * doc/posix-functions/pthread_attr_getguardsize.texi
2682         (pthread_attr_getguardsize): Likewise.
2683         * doc/posix-functions/pthread_attr_setguardsize.texi
2684         (pthread_attr_setguardsize): Likewise.
2685         * doc/posix-functions/pthread_attr_setstack.texi
2686         (pthread_attr_setstack): Likewise.
2687         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2688         (pthread_attr_setstackaddr): Likewise.
2689         * doc/posix-functions/clock_getcpuclockid.texi
2690         (clock_getcpuclockid): Likewise.
2691         * doc/posix-functions/pthread_getcpuclockid.texi
2692         (pthread_getcpuclockid): Likewise.
2693         * doc/glibc-functions/error.texi (error): Likewise.
2694         * doc/glibc-functions/error_at_line.texi (error_at_line):
2695         Likewise.
2696         * doc/glibc-functions/error_message_count.texi
2697         (error_message_count): Likewise.
2698         * doc/glibc-functions/error_one_per_line.texi
2699         (error_one_per_line): Likewise.
2700         * doc/glibc-functions/error_print_progname.texi
2701         (error_print_progname): Likewise.
2702         * doc/posix-functions/pthread_condattr_getclock.texi
2703         (pthread_condattr_getclock): Likewise.
2704         * doc/posix-functions/pthread_condattr_setclock.texi
2705         (pthread_condattr_setclock): Likewise.
2706         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2707         Likewise.
2708         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2709         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2710         * doc/glibc-functions/get_current_dir_name.texi
2711         (get_current_dir_name): Likewise.
2712         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2713         Likewise.
2714         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2715         wrong return type.
2716         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2717         1.7.11.
2718
2719 2012-02-29  Bruno Haible  <bruno@clisp.org>
2720
2721         Tests for module 'hypotf'.
2722         * modules/hypotf-tests: New file.
2723         * tests/test-hypotf.c: New file.
2724
2725         New module 'hypotf'.
2726         * lib/math.in.h (hypotf): New declaration.
2727         * lib/hypotf.c: New file.
2728         * m4/hypotf.m4: New file.
2729         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2731         REPLACE_HYPOTF.
2732         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2733         REPLACE_HYPOTF.
2734         * modules/hypotf: New file.
2735         * tests/test-math-c++.cc: Check the hypotf declaration.
2736         * doc/posix-functions/hypotf.texi: Mention the new module.
2737
2738         hypot: Prepare for hypotf module.
2739         * m4/hypot.m4: New file.
2740         * modules/hypot (Files): Add m4/hypot.m4.
2741         (configure.ac): Invoke gl_FUNC_HYPOT.
2742
2743 2012-02-29  Bruno Haible  <bruno@clisp.org>
2744
2745         hypot tests: More tests.
2746         * tests/test-hypot.c: Include <float.h>.
2747         (main): Add tests about overflow and underflow.
2748
2749 2012-02-29  Bruno Haible  <bruno@clisp.org>
2750
2751         math code: Add comments.
2752         * lib/acosl.c: Add comment about related glibc source files.
2753         * lib/asinl.c: Likewise.
2754         * lib/atanl.c: Likewise.
2755         * lib/expl.c: Likewise.
2756         * lib/logl.c: Likewise.
2757         * lib/sincosl.c: Likewise.
2758         * lib/sinl.c: Likewise.
2759         * lib/tanl.c: Likewise.
2760         * lib/trigl.c: Likewise.
2761         * lib/cosl.c: Likewise. Fix comments.
2762
2763 2012-02-28  Bruno Haible  <bruno@clisp.org>
2764
2765         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2766         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2767         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2768         HUGE_VALL are defined.
2769         (numeric_equald): Renamed from numeric_equal.
2770         (numeric_equalf, numeric_equall): New functions.
2771         (main): Check also HUGE_VALF, HUGE_VALL.
2772         * modules/math-tests (Files): Add tests/macros.h.
2773         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2774         HUGE_VALL.
2775
2776 2012-02-28  Bruno Haible  <bruno@clisp.org>
2777
2778         doc: Move ISO C11 feature notes into POSIX chapters.
2779         * doc/posix-functions/aligned_alloc.texi: Renamed from
2780         doc/glibc-functions/aligned_alloc.texi.
2781         * doc/posix-functions/quick_exit.texi: Renamed from
2782         doc/glibc-functions/quick_exit.texi.
2783         * doc/posix-headers/uchar.texi: Renamed from
2784         doc/glibc-headers/uchar.texi.
2785         * doc/posix-functions/c16rtomb.texi: Renamed from
2786         doc/glibc-functions/c16rtomb.texi.
2787         * doc/posix-functions/c32rtomb.texi: Renamed from
2788         doc/glibc-functions/c32rtomb.texi.
2789         * doc/posix-functions/mbrtoc16.texi: Renamed from
2790         doc/glibc-functions/mbrtoc16.texi.
2791         * doc/posix-functions/mbrtoc32.texi: Renamed from
2792         doc/glibc-functions/mbrtoc32.texi.
2793         * doc/gnulib.texi: Update.
2794         (Glibc uchar.h): Remove section.
2795         Suggested by Eric Blake.
2796
2797 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2798
2799         stdnoreturn: port to MSVC better
2800         MSVC standard headers use __declspec(noreturn), so #define noreturn
2801         to empty on that platform.  Reported by Bruno Haible in
2802         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2803         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2804         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2805
2806 2012-02-28  Bruno Haible  <bruno@clisp.org>
2807
2808         doc: Mention new glibc headers and functions.
2809         * doc/glibc-headers/uchar.texi: New file.
2810         * doc/glibc-functions/aligned_alloc.texi: New file.
2811         * doc/glibc-functions/c16rtomb.texi: New file.
2812         * doc/glibc-functions/c32rtomb.texi: New file.
2813         * doc/glibc-functions/clock_adjtime.texi: New file.
2814         * doc/glibc-functions/fanotify_init.texi: New file.
2815         * doc/glibc-functions/fanotify_mark.texi: New file.
2816         * doc/glibc-functions/inet6_opt_append.texi: New file.
2817         * doc/glibc-functions/inet6_opt_find.texi: New file.
2818         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2819         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2820         * doc/glibc-functions/inet6_opt_init.texi: New file.
2821         * doc/glibc-functions/inet6_opt_next.texi: New file.
2822         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2823         * doc/glibc-functions/inet6_rth_add.texi: New file.
2824         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2825         * doc/glibc-functions/inet6_rth_init.texi: New file.
2826         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2827         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2828         * doc/glibc-functions/inet6_rth_space.texi: New file.
2829         * doc/glibc-functions/login.texi: New file.
2830         * doc/glibc-functions/mbrtoc16.texi: New file.
2831         * doc/glibc-functions/mbrtoc32.texi: New file.
2832         * doc/glibc-functions/name_to_handle_at.texi: New file.
2833         * doc/glibc-functions/ntp_gettimex.texi: New file.
2834         * doc/glibc-functions/open_by_handle_at.texi: New file.
2835         * doc/glibc-functions/prlimit.texi: New file.
2836         * doc/glibc-functions/process_vm_readv.texi: New file.
2837         * doc/glibc-functions/process_vm_writev.texi: New file.
2838         * doc/glibc-functions/recvmmsg.texi: New file.
2839         * doc/glibc-functions/scandirat.texi: New file.
2840         * doc/glibc-functions/sendmmsg.texi: New file.
2841         * doc/glibc-functions/setns.texi: New file.
2842         * doc/glibc-functions/timespec_get.texi: New file.
2843         * doc/gnulib.texi: Include them.
2844         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2845         sections.
2846         Reported by Eric Blake.
2847
2848 2012-02-28  Bruno Haible  <bruno@clisp.org>
2849
2850         Avoid compilation errors with MSVC option -fp:strict.
2851         * lib/floor.c: Use MSVC specific pragma fenv_access.
2852         * lib/ceil.c: Likewise.
2853         * lib/trunc.c: Likewise.
2854         * lib/round.c: Likewise.
2855         * lib/rint.c: Likewise.
2856         * lib/fma.c: Likewise.
2857         * lib/integer_length.c: Likewise.
2858         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2859         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2860         * tests/test-floor2.c: Likewise.
2861         * tests/test-floorf2.c: Likewise.
2862         * tests/test-ceil2.c: Likewise.
2863         * tests/test-ceilf2.c: Likewise.
2864         * tests/test-trunc2.c: Likewise.
2865         * tests/test-truncf2.c: Likewise.
2866         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2867
2868 2012-02-27  Bruno Haible  <bruno@clisp.org>
2869
2870         Tests for module 'sqrtl-ieee'.
2871         * modules/sqrtl-ieee-tests: New file.
2872         * tests/test-sqrtl-ieee.c: New file.
2873
2874         New module 'sqrtl-ieee'.
2875         * modules/sqrtl-ieee: New file.
2876
2877         Tests for module 'sqrt-ieee'.
2878         * modules/sqrt-ieee-tests: New file.
2879         * tests/test-sqrt-ieee.c: New file.
2880
2881         New module 'sqrt-ieee'.
2882         * modules/sqrt-ieee: New file.
2883
2884         Tests for module 'sqrtf-ieee'.
2885         * modules/sqrtf-ieee-tests: New file.
2886         * tests/test-sqrtf-ieee.c: New file.
2887         * tests/test-sqrt-ieee.h: New file.
2888
2889         New module 'sqrtf-ieee'.
2890         * modules/sqrtf-ieee: New file.
2891
2892 2012-02-27  Bruno Haible  <bruno@clisp.org>
2893
2894         remainderl-ieee: Work around test failure on OSF/1.
2895         * m4/remainderl-ieee.m4: New file.
2896         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2897         present, test whether remainderl works with a zero second argument.
2898         Replace it if not.
2899         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2900         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2901         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2902         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2903         (Depends-on): Update conditions.
2904         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2905         (Depends-on): Add remainder-ieee.
2906         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2907         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2908         module.
2909
2910         remainderf-ieee: Work around test failure on OSF/1.
2911         * m4/remainderf-ieee.m4: New file.
2912         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2913         present, test whether remainderf works with a zero second argument.
2914         Replace it if not.
2915         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2917         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2918         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2919         (Depends-on): Update conditions.
2920         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2921         (Depends-on): Add remainder-ieee.
2922         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2923         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2924         module.
2925
2926         remainder-ieee: Work around test failure on OSF/1.
2927         * m4/remainder-ieee.m4: New file.
2928         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2929         present, test whether remainder works with a zero second argument.
2930         Replace it if not.
2931         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2933         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2934         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2935         (Depends-on): Update dependencies.
2936         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2937         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2938         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2939
2940         Tests for module 'remainderl-ieee'.
2941         * modules/remainderl-ieee-tests: New file.
2942         * tests/test-remainderl-ieee.c: New file.
2943
2944         New module 'remainderl-ieee'.
2945         * modules/remainderl-ieee: New file.
2946
2947         Tests for module 'remainder-ieee'.
2948         * modules/remainder-ieee-tests: New file.
2949         * tests/test-remainder-ieee.c: New file.
2950
2951         New module 'remainder-ieee'.
2952         * modules/remainder-ieee: New file.
2953
2954         Tests for module 'remainderf-ieee'.
2955         * modules/remainderf-ieee-tests: New file.
2956         * tests/test-remainderf-ieee.c: New file.
2957         * tests/test-remainder-ieee.h: New file.
2958
2959         New module 'remainderf-ieee'.
2960         * modules/remainderf-ieee: New file.
2961
2962 2012-02-27  Bruno Haible  <bruno@clisp.org>
2963
2964         modff, modfl: Fix configure syntax error.
2965         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2966         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2967
2968 2012-02-27  Bruno Haible  <bruno@clisp.org>
2969
2970         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2971         * m4/fmodl-ieee.m4: New file.
2972         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2973         whether fmodl works with zero arguments. Replace it if not.
2974         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2975         (Depends-on): Add fmod-ieee.
2976         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2977         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2978
2979         fmodf-ieee: Work around test failure on OSF/1.
2980         * m4/fmodf-ieee.m4: New file.
2981         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2982         whether fmodf works with zero arguments. Replace it if not.
2983         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2985         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2986         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2987         (Depends-on): Update dependencies.
2988         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2989         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2990         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2991
2992         fmodf-ieee: Work around test failure on MSVC 9.
2993         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2994         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2995
2996         fmod-ieee: Work around test failures on OSF/1, mingw.
2997         * m4/fmod-ieee.m4: New file.
2998         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2999         whether fmod works with zero arguments. Replace it if not.
3000         * lib/math.in.h (fmod): New declaration.
3001         * lib/fmod.c: New file.
3002         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3003         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3004         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3005         * modules/fmod (Files): Add lib/fmod.c.
3006         (Depends-on): Add math, isinf, trunc, fma.
3007         (configure.ac): Arrange to compile lib/fmod.c if needed.
3008         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3009         m4/signbit.m4.
3010         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3011         * tests/test-math-c++.cc: Check the declaration of fmod.
3012         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3013
3014         fmodl-ieee: Fix test failures.
3015         * lib/fmodl.c (fmodl): Treat Inf specially.
3016         * modules/fmodl (Depends-on): Add isinf.
3017
3018         Tests for module 'fmodl-ieee'.
3019         * modules/fmodl-ieee-tests: New file.
3020         * tests/test-fmodl-ieee.c: New file.
3021
3022         New module 'fmodl-ieee'.
3023         * modules/fmodl-ieee: New file.
3024
3025         Tests for module 'fmod-ieee'.
3026         * modules/fmod-ieee-tests: New file.
3027         * tests/test-fmod-ieee.c: New file.
3028
3029         New module 'fmod-ieee'.
3030         * modules/fmod-ieee: New file.
3031
3032         Tests for module 'fmodf-ieee'.
3033         * modules/fmodf-ieee-tests: New file.
3034         * tests/test-fmodf-ieee.c: New file.
3035         * tests/test-fmod-ieee.h: New file.
3036
3037         New module 'fmodf-ieee'.
3038         * modules/fmodf-ieee: New file.
3039
3040 2012-02-27  Bruno Haible  <bruno@clisp.org>
3041
3042         Tests for module 'rintl-ieee'.
3043         * modules/rintl-ieee-tests: New file.
3044         * tests/test-rintl-ieee.c: New file.
3045
3046         New module 'rintl-ieee'.
3047         * modules/rintl-ieee: New file.
3048
3049         Tests for module 'rint-ieee'.
3050         * modules/rint-ieee-tests: New file.
3051         * tests/test-rint-ieee.c: New file.
3052
3053         New module 'rint-ieee'.
3054         * modules/rint-ieee: New file.
3055
3056         Tests for module 'rintf-ieee'.
3057         * modules/rintf-ieee-tests: New file.
3058         * tests/test-rintf-ieee.c: New file.
3059         * tests/test-rint-ieee.h: New file.
3060
3061         New module 'rintf-ieee'.
3062         * modules/rintf-ieee: New file.
3063
3064 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3065
3066         regex: re_search etc. should return -2 when memory exhausted
3067         This bug was uncovered when testing 'grep'.  Without the fix,
3068         re_search and friends return -1 when memory is exhausted, but -1
3069         means no match, and this causes grep to falsely report no-match
3070         instead of memory-exhaustion.  See
3071         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3072         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3073         trouble; this can occur if re_search_internal ran out of memory.
3074
3075 2012-02-26  Bruno Haible  <bruno@clisp.org>
3076
3077         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3078         * m4/modfl-ieee.m4: New file.
3079         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3080         whether modfl works with Inf. Replace it if not.
3081         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3082         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3083         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3084         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3085         (Depends-on): Update dependencies.
3086         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3087         m4/signbit.m4.
3088         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3089         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3090
3091         modfl-ieee: Fix dependencies.
3092         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3093
3094         modfl-ieee: Fix test failures.
3095         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3096         * modules/modfl (Depends-on): Add isfinite, isinf.
3097
3098         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3099         * m4/modff-ieee.m4: New file.
3100         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3101         whether modff works with NaN and Inf. Replace it if not.
3102         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3103         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3104         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3105         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3106         (Depends-on): Update dependencies.
3107         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3108         m4/signbit.m4.
3109         (Depends-on): Add modf-ieee.
3110         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3111         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3112
3113         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3114         * m4/modf-ieee.m4: New file.
3115         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3116         whether modf works with NaN and Inf. Replace it if not.
3117         * lib/math.in.h (modf): New declaration.
3118         * lib/modf.c: New file.
3119         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3121         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3122         * modules/modf (Files): Add lib/modf.c.
3123         (Depends-on): Add math, isfinite, trunc, isinf.
3124         (configure.ac): Addrange to compile lib/modf.c if needed.
3125         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3126         m4/signbit.m4.
3127         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3128         * tests/test-math-c++.cc: Check the declaration of modf.
3129         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3130
3131         Tests for module 'modfl-ieee'.
3132         * modules/modfl-ieee-tests: New file.
3133         * tests/test-modfl-ieee.c: New file.
3134
3135         New module 'modfl-ieee'.
3136         * modules/modfl-ieee: New file.
3137
3138         Tests for module 'modf-ieee'.
3139         * modules/modf-ieee-tests: New file.
3140         * tests/test-modf-ieee.c: New file.
3141
3142         New module 'modf-ieee'.
3143         * modules/modf-ieee: New file.
3144
3145         Tests for module 'modff-ieee'.
3146         * modules/modff-ieee-tests: New file.
3147         * tests/test-modff-ieee.c: New file.
3148         * tests/test-modf-ieee.h: New file.
3149
3150         New module 'modff-ieee'.
3151         * modules/modff-ieee: New file.
3152
3153 2012-02-26  Bruno Haible  <bruno@clisp.org>
3154
3155         Tests for module 'fabsl-ieee'.
3156         * modules/fabsl-ieee-tests: New file.
3157         * tests/test-fabsl-ieee.c: New file.
3158
3159         New module 'fabsl-ieee'.
3160         * modules/fabsl-ieee: New file.
3161
3162         Tests for module 'fabs-ieee'.
3163         * modules/fabs-ieee-tests: New file.
3164         * tests/test-fabs-ieee.c: New file.
3165
3166         New module 'fabs-ieee'.
3167         * modules/fabs-ieee: New file.
3168
3169         Tests for module 'fabsf-ieee'.
3170         * modules/fabsf-ieee-tests: New file.
3171         * tests/test-fabsf-ieee.c: New file.
3172         * tests/test-fabs-ieee.h: New file.
3173
3174         New module 'fabsf-ieee'.
3175         * modules/fabsf-ieee: New file.
3176
3177 2012-02-26  Bruno Haible  <bruno@clisp.org>
3178
3179         Tests for module 'fmal-ieee'.
3180         * modules/fmal-ieee-tests: New file.
3181         * tests/test-fmal-ieee.c: New file.
3182
3183         New module 'fmal-ieee'.
3184         * modules/fmal-ieee: New file.
3185
3186         Tests for module 'fma-ieee'.
3187         * modules/fma-ieee-tests: New file.
3188         * tests/test-fma-ieee.c: New file.
3189
3190         New module 'fma-ieee'.
3191         * modules/fma-ieee: New file.
3192
3193         Tests for module 'fmaf-ieee'.
3194         * modules/fmaf-ieee-tests: New file.
3195         * tests/test-fmaf-ieee.c: New file.
3196         * tests/test-fma-ieee.h: New file.
3197
3198         New module 'fmaf-ieee'.
3199         * modules/fmaf-ieee: New file.
3200
3201 2012-02-26  Bruno Haible  <bruno@clisp.org>
3202
3203         Tests for module 'ldexpl-ieee'.
3204         * modules/ldexpl-ieee-tests: New file.
3205         * tests/test-ldexpl-ieee.c: New file.
3206
3207         New module 'ldexpl-ieee'.
3208         * modules/ldexpl-ieee: New file.
3209
3210         Tests for module 'ldexp-ieee'.
3211         * modules/ldexp-ieee-tests: New file.
3212         * tests/test-ldexp-ieee.c: New file.
3213
3214         New module 'ldexp-ieee'.
3215         * modules/ldexp-ieee: New file.
3216
3217         Tests for module 'ldexpf-ieee'.
3218         * modules/ldexpf-ieee-tests: New file.
3219         * tests/test-ldexpf-ieee.c: New file.
3220         * tests/test-ldexp-ieee.h: New file.
3221
3222         New module 'ldexpf-ieee'.
3223         * modules/ldexpf-ieee: New file.
3224
3225 2012-02-26  Bruno Haible  <bruno@clisp.org>
3226
3227         Refactor frexp*-ieee tests.
3228         * tests/test-frexp-ieee.h: New file.
3229         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3230         (main): Just call test_function.
3231         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3232         (main): Just call test_function.
3233         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3234         (main): Just call test_function.
3235         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3236         * modules/frexp-ieee-tests (Files): Likewise.
3237         * modules/frexpl-ieee-tests (Files): Likewise.
3238
3239         Tests for module 'frexpl-ieee'.
3240         * modules/frexpl-ieee-tests: New file.
3241         * tests/test-frexpl-ieee.c: New file.
3242
3243         New module 'frexpl-ieee'.
3244         * modules/frexpl-ieee: New file.
3245
3246         Tests for module 'frexp-ieee'.
3247         * modules/frexp-ieee-tests: New file.
3248         * tests/test-frexp-ieee.c: New file.
3249
3250         New module 'frexp-ieee'.
3251         * modules/frexp-ieee: New file.
3252
3253         Tests for module 'frexpf-ieee'.
3254         * modules/frexpf-ieee-tests: New file.
3255         * tests/test-frexpf-ieee.c: New file.
3256
3257         New module 'frexpf-ieee'.
3258         * modules/frexpf-ieee: New file.
3259
3260 2012-02-26  Bruno Haible  <bruno@clisp.org>
3261
3262         roundl-ieee tests: More tests.
3263         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3264         (main): Add tests for [MX] shaded specification in POSIX.
3265         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3266         (Depends-on): Add isnanl-nolibm.
3267
3268         round-ieee tests: More tests.
3269         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3270         (main): Add tests for [MX] shaded specification in POSIX.
3271         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3272         (Depends-on): Add isnand-nolibm.
3273
3274         roundf-ieee tests: More tests.
3275         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3276         (main): Add tests for [MX] shaded specification in POSIX.
3277         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3278         (Depends-on): Add isnanf-nolibm.
3279
3280         truncl-ieee tests: More tests.
3281         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3282         (main): Add tests for [MX] shaded specification in POSIX.
3283         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3284         (Depends-on): Add isnanl-nolibm.
3285
3286         trunc-ieee tests: More tests.
3287         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3288         (main): Add tests for [MX] shaded specification in POSIX.
3289         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3290         (Depends-on): Add isnand-nolibm.
3291
3292         truncf-ieee tests: More tests.
3293         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3294         (main): Add tests for [MX] shaded specification in POSIX.
3295         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3296         (Depends-on): Add isnanf-nolibm.
3297
3298         ceill-ieee tests: More tests.
3299         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3300         (main): Add tests for [MX] shaded specification in POSIX.
3301         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3302         (Depends-on): Add isnanl-nolibm.
3303
3304         ceil-ieee tests: More tests.
3305         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3306         (main): Add tests for [MX] shaded specification in POSIX.
3307         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3308         (Depends-on): Add isnand-nolibm.
3309
3310         ceilf-ieee tests: More tests.
3311         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3312         (main): Add tests for [MX] shaded specification in POSIX.
3313         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3314         (Depends-on): Add isnanf-nolibm.
3315
3316         floorl-ieee tests: More tests.
3317         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3318         (main): Add tests for [MX] shaded specification in POSIX.
3319         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3320         (Depends-on): Add isnanl-nolibm.
3321
3322         floor-ieee tests: More tests.
3323         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3324         (main): Add tests for [MX] shaded specification in POSIX.
3325         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3326         (Depends-on): Add isnand-nolibm.
3327
3328         floorf-ieee tests: More tests.
3329         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3330         (main): Add tests for [MX] shaded specification in POSIX.
3331         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3332         (Depends-on): Add isnanf-nolibm.
3333
3334 2012-02-26  Bruno Haible  <bruno@clisp.org>
3335
3336         fpieee: More comments.
3337         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3338
3339 2012-02-25  Bruno Haible  <bruno@clisp.org>
3340
3341         Tests for module 'log10l'.
3342         * modules/log10l-tests: New file.
3343         * tests/test-log10l.c: New file.
3344         * tests/test-math-c++.cc: Check the declaration of log10l.
3345
3346         New module 'log10l'.
3347         * lib/math.in.h (log10l): New declaration.
3348         * lib/log10l.c: New file.
3349         * m4/log10l.m4: New file.
3350         * modules/log10l: New file.
3351         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3353         HAVE_DECL_LOG10L.
3354         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3355         HAVE_DECL_LOG10L.
3356         * doc/posix-functions/log10l.texi: Mention the new module.
3357
3358 2012-02-25  Bruno Haible  <bruno@clisp.org>
3359
3360         fmodl, remainder*: Avoid wrong results due to rounding errors.
3361         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3362         expected bounds.
3363         * lib/remainderf.c (remainderf): Likewise.
3364         * lib/remainder.c (remainder): Likewise.
3365         * lib/remainderl.c (remainderl): Likewise.
3366
3367 2012-02-25  Bruno Haible  <bruno@clisp.org>
3368
3369         Tests for module 'remainderl'.
3370         * modules/remainderl-tests: New file.
3371         * tests/test-remainderl.c: New file.
3372         * tests/test-math-c++.cc: Check the declaration of remainderl.
3373
3374         New module 'remainderl'.
3375         * lib/math.in.h (remainderl): New declaration.
3376         * lib/remainderl.c: New file.
3377         * m4/remainderl.m4: New file.
3378         * modules/remainderl: New file.
3379         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3380         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3381         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3382         HAVE_REMAINDERL.
3383         * doc/posix-functions/remainderl.texi: Mention the new module.
3384
3385 2012-02-25  Bruno Haible  <bruno@clisp.org>
3386
3387         Tests for module 'remainderf'.
3388         * modules/remainderf-tests: New file.
3389         * tests/test-remainderf.c: New file.
3390         * tests/test-math-c++.cc: Check the declaration of remainderf.
3391
3392         New module 'remainderf'.
3393         * lib/math.in.h (remainderf): New declaration.
3394         * lib/remainderf.c: New file.
3395         * m4/remainderf.m4: New file.
3396         * modules/remainderf: New file.
3397         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3398         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3399         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3400         HAVE_REMAINDERF.
3401         * doc/posix-functions/remainderf.texi: Mention the new module.
3402
3403 2012-02-25  Bruno Haible  <bruno@clisp.org>
3404
3405         remainder: Support for MSVC.
3406         * lib/math.in.h (remainder): New declaration.
3407         * lib/remainder.c: New file.
3408         * m4/remainder.m4: New file.
3409         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3410         (Depends-on): Add math, round, fma.
3411         (configure.ac): Use results of gl_FUNC_REMAINDER.
3412         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3413         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3414         HAVE_DECL_REMAINDER.
3415         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3416         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3417         * tests/test-math-c++.cc: Check the declaration of remainder.
3418         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3419         problems are fixed.
3420
3421 2012-02-25  Bruno Haible  <bruno@clisp.org>
3422
3423         Tests for module 'fmodl'.
3424         * modules/fmodl-tests: New file.
3425         * tests/test-fmodl.c: New file.
3426         * tests/test-math-c++.cc: Check the declaration of fmodl.
3427
3428         New module 'fmodl'.
3429         * lib/math.in.h (fmodl): New declaration.
3430         * lib/fmodl.c: New file.
3431         * m4/fmodl.m4: New file.
3432         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3433         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3434         REPLACE_FMODL.
3435         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3436         REPLACE_FMODL.
3437         * modules/fmodl: New file.
3438         * doc/posix-functions/fmodl.texi: Mention the new module.
3439
3440 2012-02-25  Bruno Haible  <bruno@clisp.org>
3441
3442         Tests for module 'modfl'.
3443         * modules/modfl-tests: New file.
3444         * tests/test-modfl.c: New file.
3445         * tests/test-math-c++.cc: Check the declaration of modfl.
3446
3447         New module 'modfl'.
3448         * lib/math.in.h (modfl): New declaration.
3449         * lib/modfl.c: New file.
3450         * m4/modfl.m4: New file.
3451         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3452         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3453         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3454         * modules/modfl: New file.
3455         * doc/posix-functions/modfl.texi: Mention the new module.
3456
3457 2012-02-25  Bruno Haible  <bruno@clisp.org>
3458
3459         Tests for module 'fabsl'.
3460         * modules/fabsl-tests: New file.
3461         * tests/test-fabsl.c: New file.
3462         * tests/test-math-c++.cc: Check the declaration of fabsl.
3463
3464         New module 'fabsl'.
3465         * lib/math.in.h (fabsl): New declaration.
3466         * lib/fabsl.c: New file.
3467         * m4/fabsl.m4: New file.
3468         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3469         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3470         REPLACE_FABSL.
3471         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3472         REPLACE_FABSL.
3473         * modules/fabsl: New file.
3474         * doc/posix-functions/fabsl.texi: Mention the new module.
3475
3476 2012-02-25  Bruno Haible  <bruno@clisp.org>
3477
3478         fabs tests: More tests.
3479         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3480         (zero): New variable.
3481         (main): Add tests for signed zero.
3482         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3483
3484         fabsf tests: More tests.
3485         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3486         (zero): New variable.
3487         (main): Add tests for signed zero.
3488         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3489
3490 2012-02-24  Bruno Haible  <bruno@clisp.org>
3491
3492         atanl: Provide function definition on MSVC.
3493         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3494         function pointer.
3495         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3496
3497 2012-02-24  Bruno Haible  <bruno@clisp.org>
3498
3499         acosl: Provide function definition on MSVC.
3500         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3501         function pointer.
3502         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3503
3504 2012-02-24  Bruno Haible  <bruno@clisp.org>
3505
3506         asinl: Provide function definition on MSVC.
3507         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3508         function pointer.
3509         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3510
3511 2012-02-24  Bruno Haible  <bruno@clisp.org>
3512
3513         tanl: Provide function definition on MSVC.
3514         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3515         function pointer.
3516         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3517
3518 2012-02-24  Bruno Haible  <bruno@clisp.org>
3519
3520         cosl: Provide function definition on MSVC.
3521         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3522         function pointer.
3523         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3524
3525 2012-02-24  Bruno Haible  <bruno@clisp.org>
3526
3527         sinl: Provide function definition on MSVC.
3528         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3529         function pointer.
3530         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3531
3532 2012-02-24  Bruno Haible  <bruno@clisp.org>
3533
3534         logl: Provide function definition on MSVC.
3535         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3536         function pointer.
3537         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3538
3539 2012-02-24  Bruno Haible  <bruno@clisp.org>
3540
3541         expl: Provide function definition on MSVC.
3542         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3543         function pointer.
3544         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3545
3546 2012-02-24  Bruno Haible  <bruno@clisp.org>
3547
3548         sqrtl: Provide function definition on MSVC.
3549         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3550         a function pointer.
3551         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3552
3553 2012-02-24  Bruno Haible  <bruno@clisp.org>
3554
3555         ceill: Provide function definition on MSVC.
3556         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3557         used as a function pointer.
3558         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3559
3560 2012-02-24  Bruno Haible  <bruno@clisp.org>
3561
3562         floorl: Provide function definition on MSVC.
3563         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3564         used as a function pointer.
3565         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3566
3567 2012-02-24  Bruno Haible  <bruno@clisp.org>
3568
3569         ceilf: Provide function definition on MSVC.
3570         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3571         used as a function pointer.
3572         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3573
3574 2012-02-24  Bruno Haible  <bruno@clisp.org>
3575
3576         floorf: Provide function definition on MSVC.
3577         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3578         used as a function pointer.
3579         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3580
3581 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3582
3583         stdnoreturn: new module
3584         This implements a replacement for C11's <stdnoreturn.h>.
3585         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3586         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3587         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3588         * tests/test-stdnoreturn.c: New files.
3589
3590 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3591
3592         regex: fix false multibyte matches in some regular expressions
3593         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3594         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3595         * lib/regex_internal.c (re_string_skip_chars):
3596         Fix miscomputation of remain_len that may cause incomplete
3597         multi-byte character and false match.
3598
3599 2012-02-24  Jim Meyering  <meyering@redhat.com>
3600
3601         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3602         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3603         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3604         Remove now-unnecessary str''cmp obfuscation.
3605         Suggested by Akim Demaille.
3606
3607 2012-02-24  Bruno Haible  <bruno@clisp.org>
3608
3609         streq: Rename macro.
3610         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3611         * NEWS: Mention the change.
3612         * lib/mbrtowc.c (mbrtowc): Update.
3613         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3614         * lib/wcwidth.c (wcwidth): Update.
3615         Suggested by Akim Demaille and Jim Meyering.
3616
3617 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3618
3619         regex: fix typo in definition of MIN
3620         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3621         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3622
3623 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3624             Bruno Haible  <bruno@clisp.org>
3625
3626         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3627         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3628         entries into a stack-allocated buffer directly.
3629         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3630
3631 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3632             Bruno Haible  <bruno@clisp.org>
3633
3634         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3635
3636          - There were several instances of this pattern:
3637
3638              for (;;) {
3639                n = acl (f, GETACLCNT, 0, NULL);
3640                [ allocate an array A of size N ]
3641                if (acl (f, GETACL, n, a) == n)
3642                  break;
3643              }
3644
3645            This loop might never terminate if some other process is constantly
3646            manipulating the file's ACL.  The loop should be rewritten to
3647            terminate.
3648
3649          - The acl (... GETACLNT ...) call is merely an optimization; its value
3650            is merely a hint as to how big to make the array.  A better
3651            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3652            and just guess a reasonably-big size, growing the size and trying
3653            again if it's not large enough.  This guarantees termination, and
3654            saves a system call.
3655
3656         * lib/acl-internal.h: Include <limits.h>.
3657         (MIN, SIZE_MAX): New macros.
3658         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3659         a stack-allocated buffer, and use malloc if it does not fit. Don't
3660         use GETACLCNT.
3661         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3662
3663 2012-02-19  Bruno Haible  <bruno@clisp.org>
3664
3665         acl: Fix endless loop on Solaris with vxfs.
3666         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3667         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3668         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3669         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3670         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3671         Reported by Bill Jones in
3672         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3673
3674 2012-02-19  Bruno Haible  <bruno@clisp.org>
3675
3676         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3677         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3678         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3679         that this function returns 0 in some more cases.
3680
3681 2012-02-19  Bruno Haible  <bruno@clisp.org>
3682
3683         acl: Update doc references.
3684         * doc/acl-resources.txt: Update links to Solaris documentation.
3685
3686 2012-02-19  Bruno Haible  <bruno@clisp.org>
3687
3688         Fix test failure in many locales on Solaris 11.
3689         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3690         'tr' arguments.
3691         * tests/test-pipe-filter-ii1.c (main): Likewise.
3692         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3693         expressions in the C locale.
3694         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3695         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3696
3697 2012-02-19  Bruno Haible  <bruno@clisp.org>
3698
3699         gnulib-tool: Improve usage message.
3700         * gnulib-tool (func_usage): Move doc of --help and --version to the
3701         section "Operation modes".
3702
3703 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3704
3705         README-release: make it easier to execute commands
3706         * top/README-release: break commands out on to separate lines.
3707
3708 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3709
3710         GNUmakefile: simplify detection of unconfigured trees
3711         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3712         whether the tree make is being run from is already configured or
3713         not.  Related simplifications.
3714
3715 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3716
3717         * gnulib-tool (func_usage): Document --help and --version.
3718
3719 2012-02-11  Jim Meyering  <meyering@redhat.com>
3720
3721         bootstrap: don't exit 0 upon gnulib-tool failure
3722         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3723         its exit status, not 0.
3724
3725 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3726
3727         README-release: various improvements
3728         * top/README-release: Give a command to push changes for the
3729         release.  Add "distcheck" to list of other pre-release checks.
3730         Fix instance of "make stable" which should be "make TYPE".
3731
3732 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3733
3734         maint: replace FSF snail-mail addresses with URLs
3735         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3736         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3737         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3738         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3739         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3740         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3741         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3742         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3743         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3744         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3745         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3746         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3747         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3748         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3749         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3750         * lib/glthread/thread.c, lib/glthread/thread.h:
3751         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3752         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3753         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3754         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3755         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3756         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3757         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3758         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3759         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3760         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3761         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3762         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3763         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3764         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3765         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3766         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3767         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3768         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3769         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3770         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3771         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3772         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3773         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3774         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3775         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3776         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3777         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3778         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3779         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3780         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3781         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3782         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3783         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3784         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3785         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3786         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3787         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3788         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3789         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3790         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3791         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3792         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3793         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3794         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3795         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3796         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3797         * tests/test-poll.c, tests/test-quotearg-simple.c:
3798         * tests/test-quotearg.c, tests/test-quotearg.h:
3799         * tests/test-round-ieee.c, tests/test-round1.c:
3800         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3801         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3802         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3803         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3804         * tests/test-strerror.c, tests/test-strerror_r.c:
3805         * tests/test-strsignal.c, tests/test-strverscmp.c:
3806         * tests/test-xmemdup0.c:
3807         Replace FSF snail mail addresses with URLs, as per GNU coding
3808         standards.  See glibc bug
3809         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3810
3811 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3812
3813         README-release: capitalize a word and split a line
3814         * top/README-release: Fix punctuation and spacing.
3815
3816 2012-02-08  Akim Demaille  <demaille@gostai.com>
3817
3818         fatal-signal: use C prototypes (with explicit void).
3819         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3820         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3821
3822 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3823
3824         regex: spelling fix
3825         * lib/regexec.c: spelling fix
3826
3827         regex: rely on stdint.h for SIZE_MAX
3828         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3829
3830 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3831
3832         regex: merge glibc changes
3833
3834         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3835         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3836         (init_word_char): Work even if bitset words are not exactly 32 or
3837         64 bits wide.  Don't assume there are no padding bits.
3838         * lib/regex.c [_LIBC]: Do not include <config.h>.
3839         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3840         and -Wtype-limits.
3841         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3842         needless disagreement with glibc.  All uses changed.  Define it to
3843         1 only if _GNU_SOURCE, to match glibc.
3844         (_REG_RM_NAME): Remove; no longer needed, since the names in
3845         question are now all protected by __USE_GNU.
3846         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3847         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3848         * lib/regex_internal.h (MIN): New macro.
3849
3850         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3851         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3852
3853         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3854         * lib/regex_internal.c (re_string_fetch_byte_case):
3855         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3856         is miscompiled, and it turns out it is because of an incorrect
3857         attribute on re_string_fetch_byte_case.  Unlike
3858         re_string_peek_byte_case, this one is really not pure, it modifies
3859         memory (increments pstr->cur_idx), and with the pure attribute GCC
3860         assumed it doesn't and it cached the presumed value of
3861         regexp->cur_idx in a variable across the
3862          for (;; ++i)
3863            {
3864              if (i >= BRACKET_NAME_BUF_SIZE)
3865                return REG_EBRACK;
3866              if (token->type == OP_OPEN_CHAR_CLASS)
3867                ch = re_string_fetch_byte_case (regexp);
3868              else
3869                ch = re_string_fetch_byte (regexp);
3870              if (re_string_eoi(regexp))
3871                return REG_EBRACK;
3872              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3873                break;
3874              elem->opr.name[i] = ch;
3875            }
3876
3877         2011-11-29 Andreas Schwab <schwab@redhat.com>
3878         * lib/regcomp.c (build_equiv_class):
3879         Fix access after end of search string in regex matcher.
3880
3881         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3882         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3883
3884         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3885         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3886
3887         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3888         * lib/regcomp.c (parse_branch, parse_sub_exp):
3889         More regex memory leak fixes and tests.
3890         (parse_sub_exp, parse_bracket_exp):
3891         Fix memory leak for some invalid regular expressions.
3892
3893         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3894         * lib/regex_internal.c, lib/regexec.c:
3895         Fix unnecessary overallocation due to incomplete character.  When
3896         incomplete characters are found at the end of a string the code
3897         ran amok and allocated lots of memory.  Stricter limits are now in
3898         place.
3899
3900         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3901         * lib/regex.h: Update documentation.
3902
3903         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3904         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3905
3906         2010-05-05 Andreas Schwab <schwab@redhat.com>
3907         * lib/regexec.c (find_collation_sequence_value):
3908         Fix lookup of collation sequence value during regexp matching.
3909
3910         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3911         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3912
3913         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3914         * lib/regex.h: Cleanup namespace.
3915
3916         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3917         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3918
3919         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3920         * lib/regex_internal.h: Prevent some declarations and definitions
3921         to be seen when used in tests.
3922
3923         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3924         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3925         __libc_lock_* macros if not _LIBC.
3926         (struct re_dfa_t): Add lock.
3927
3928 2012-02-07  Eric Blake  <eblake@redhat.com>
3929
3930         maint.mk: also prohibit lower-case @var@
3931         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3932         lower case, like @top_srcdir@.
3933
3934 2012-02-04  Eric Blake  <eblake@redhat.com>
3935
3936         canonicalize: avoid uninitialized memory use
3937         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3938         random '/' left in dest.
3939         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3940
3941 2012-02-04  Bruno Haible  <bruno@clisp.org>
3942
3943         isatty: Fix test failure of ptsname_r on native Windows.
3944         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3945         and don't set errno.
3946         (isatty): Test first whether fd is valid. Set errno when returning 0.
3947
3948 2012-02-04  Bruno Haible  <bruno@clisp.org>
3949
3950         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3951         * tests/test-spawn-pipe-main.c: Include progname.h.
3952         (main): Invoke set_program_name.
3953         * modules/spawn-pipe-tests (Depends-on): Add progname.
3954
3955         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3956         * tests/test-nonblocking-socket-main.c: Include progname.h.
3957         (main): Invoke set_program_name.
3958         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3959
3960         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3961         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3962         (main): Invoke set_program_name.
3963         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3964
3965 2012-02-04  Eric Blake  <eblake@redhat.com>
3966
3967         canonicalize-lgpl: fix // handling
3968         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3969
3970         canonicalize: fix // handling
3971         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3972         /// to //, since only // is special.
3973
3974 2012-02-04  Bruno Haible  <bruno@clisp.org>
3975
3976         ioctl: Fix test failure on native Windows.
3977         * lib/ioctl.c: Include msvc-nothrow.h.
3978         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3979
3980 2012-02-04  Bruno Haible  <bruno@clisp.org>
3981
3982         fsync: Avoid test failure on native Windows.
3983         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3984         read-only.
3985
3986 2012-02-04  Bruno Haible  <bruno@clisp.org>
3987
3988         sys_select: Avoid syntax error on OpenBSD 5.0.
3989         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3990         currently being included, just include the system's <sys/select.h>.
3991
3992 2012-02-04  Bruno Haible  <bruno@clisp.org>
3993
3994         sys_select: Avoid syntax error on OpenBSD 5.0.
3995         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3996         <sys/select.h>, not before.
3997         Reported by Jiri B <jirib@devio.us>.
3998
3999 2012-02-04  Bruno Haible  <bruno@clisp.org>
4000
4001         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4002         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4003         global variables.
4004         * tests/test-get-rusage-data.c (main): Likewise.
4005         Reported by Jim Meyering.
4006
4007 2012-02-04  Bruno Haible  <bruno@clisp.org>
4008
4009         stdioext: Fix last commit.
4010         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4011
4012 2012-02-03  Bruno Haible  <bruno@clisp.org>
4013
4014         stdioext: Add tentative support for Plan9.
4015         * lib/stdio-impl.h: Include <errno.h>.
4016         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4017         * lib/freadable.c (freadable): Likewise.
4018         * lib/fwritable.c (fwritable): Likewise.
4019         * lib/fbufmode.c (fbufmode): Likewise.
4020         * lib/freading.c (freading): Likewise.
4021         * lib/fwriting.c (fwriting): Likewise.
4022         * lib/freadptr.c (freadptr): Likewise.
4023         * lib/freadseek.c (freadptrinc): Likewise.
4024         * lib/freadahead.c (freadahead): Likewise.
4025         * lib/fpurge.c (fpurge): Likewise.
4026         * lib/fseeko.c (rpl_fseeko): Likewise.
4027         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4028         Reported by Jens Staal <staal1978@gmail.com>.
4029
4030 2012-02-02  Jim Meyering  <meyering@redhat.com>
4031
4032         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4033         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4034         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4035         not even to try to add the attribute.  Instead, add a pragma to suppress
4036         the suggestion/warning.
4037
4038 2012-01-31  Karl Berry  <karl@gnu.org>
4039
4040         setstate doc: typo.
4041         * doc/posix-functions/setstate.texi (setstate): { not (.
4042
4043 2012-01-31  Bruno Haible  <bruno@clisp.org>
4044
4045         popen: Make more robust on Windows.
4046         * lib/popen.c: On native Windows, use the _popen based code even if
4047         HAVE_POPEN is set.
4048         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4049         environment variable on native Windows.
4050
4051 2012-01-30  Bruno Haible  <bruno@clisp.org>
4052
4053         pclose: Fix typo.
4054         * lib/stdio.in.h (pclose): Fix typo in warning message.
4055
4056 2012-01-30  Bruno Haible  <bruno@clisp.org>
4057
4058         doc about getlogin_r, setstate.
4059         * doc/posix-functions/getlogin_r.texi: List the incompatible
4060         declaration problem under "not fixed by gnulib".
4061         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4062         problem on Solaris 11 and other platforms.
4063
4064 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4065             Bruno Haible  <bruno@clisp.org>
4066
4067         poll tests: Make test more robust.
4068         * tests/test-poll.c: Include macros.h.
4069         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4070         return value of various I/O operations.
4071         * modules/poll-tests (Files): Add tests/macros.h.
4072
4073 2012-01-30  Bruno Haible  <bruno@clisp.org>
4074
4075         sys_stat: Fix support for mingw64 and MSVC.
4076         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4077         header files already do it.
4078         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4079         stat itself.
4080         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4081
4082 2012-01-30  Bruno Haible  <bruno@clisp.org>
4083
4084         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4085         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4086         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4087
4088 2012-01-29  Bruno Haible  <bruno@clisp.org>
4089
4090         quotearg: Fix test failure on MacOS X 10.5.
4091         * tests/test-quotearg-simple.c: Include localcharset.h.
4092         (main): If the locale encoding is not ASCII, bypass the tests of
4093         locale_quoting_style and clocale_quoting_style.
4094         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4095
4096 2012-01-29  Jim Meyering  <meyering@redhat.com>
4097
4098         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4099         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4100         detect uses of canonicalize_file_name.
4101
4102 2012-01-28  Bruno Haible  <bruno@clisp.org>
4103
4104         test-framework-sh: Fix test failure with AIX 7.1 diff.
4105         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4106         in column 1, like 'diff -c' does.
4107         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4108         whether 'diff -u' is used. Instead, test whether the output contains
4109         some '@' character.
4110
4111 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4112
4113         strtoimax: eliminate need for stdint.h, inttypes.h checks
4114         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4115         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4116         the prerequisites for a recently-introduced strtoimax test.
4117         I guess this might cause strtoimax to be replaced when not
4118         strictly necessary on older hosts, but this shouldn't introduce
4119         any bugs and it should make Emacs 'configure' faster on typical
4120         modern hosts.  Problem discovered when importing the latest gnulib
4121         to an Emacs test version.
4122         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4123
4124 2012-01-28  Bruno Haible  <bruno@clisp.org>
4125
4126         sys_time: Override 'struct timeval' on some native Windows platforms.
4127         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4128         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4129         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4130         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4131         needs to be overridden.
4132         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4133         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4134         * tests/test-sys_select.c: Check that the tv_sec member has the same
4135         size as a 'time_t'.
4136         * tests/test-sys_time.c: Likewise.
4137         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4138         is set, set also REPLACE_GETTIMEOFDAY.
4139         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4140         convert the resulting 'struct timeval' before returning.
4141         * lib/select.c: Include <sys/time.h>.
4142         (select, timeval): Undefine at the right place.
4143         * modules/select (Depends-on): Add sys_time.
4144         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4145         some Windows platforms.
4146         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4147
4148 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4149
4150         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4151         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4152         an integer.
4153         * lib/fcntl.c (dupfd): Likewise.
4154         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4155
4156 2012-01-28  Bruno Haible  <bruno@clisp.org>
4157
4158         fcntl: Avoid compilation error on native Windows.
4159         * modules/fcntl (Depends-on): Add 'close'.
4160
4161 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4162
4163         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4164         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4165         pointer to an integer.
4166         * lib/poll.c (IsConsoleHandle): Likewise.
4167         * lib/isatty.c (IsConsoleHandle): Likewise.
4168
4169 2012-01-28  Jim Meyering  <meyering@redhat.com>
4170
4171         doc: clarify README-release
4172         * top/README-release: Clarify: you should make a point to have
4173         the latest stable versions of build tools in your PATH, and the
4174         reference to buildreq is solely for its list of tool names, not
4175         for its minimal-functional version numbers.
4176         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4177
4178         maint.mk: use more readable (yet functionally equivalent) quoting
4179         It is common to quote a single quote in a single quoted string like
4180         this:  '...'\''...'.  Unless you know the idiom, that looks like
4181         gibberish, so prefer to double-quote the string when possible.
4182         Then you can use a more readable, lone single quote: "...'..."
4183         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4184         "don't" is more readable than the equivalent 'don'\''t'.
4185         (sc_cast_of_x_alloc_return_value): Likewise.
4186         (sc_cast_of_alloca_return_value): Likewise.
4187         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4188         rather than '\'':'\''.
4189
4190 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4191
4192         stdalign: relax _Alignof and tighten _Alignas test
4193         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4194         as it was too strict: alignof must divide offsetof, but it need
4195         not equal offsetof.  Inspired by Joseph S. Myers's comment
4196         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4197         Conversely, tighten the _Alignas test a bit, as the resulting
4198         alignment must be exactly 8.
4199
4200 2012-01-27  Bruno Haible  <bruno@clisp.org>
4201
4202         stdalign: Document the last change.
4203         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4204
4205 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4206
4207         stdalign: check that alignof and offsetof are consistent
4208         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4209         Problem reported for gnulib by Richard W.M. Jones in
4210         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4211
4212 2012-01-27  Jim Meyering  <meyering@redhat.com>
4213
4214         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4215         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4216         convert a sequence with gaps to the minimal containing range.
4217         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4218         * tests/test-update-copyright.sh: Test for this.
4219         The FSF confirmed it is ok to do this, assuming there is at
4220         least one significant change per year in the affected range:
4221         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4222
4223 2012-01-26  Bruno Haible  <bruno@clisp.org>
4224
4225         pipe2: refine doc about thread-safety
4226         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4227         multithread-safety problem.
4228         * doc/glibc-functions/accept4.texi: Likewise.
4229
4230 2012-01-26  Bruno Haible  <bruno@clisp.org>
4231
4232         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4233         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4234         In the test program, include <fcntl.h>, for O_RDONLY.
4235
4236 2012-01-26  Eric Blake  <eblake@redhat.com>
4237
4238         pipe2: document lack of thread-safety in replacement
4239         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4240         issue in replacement.
4241         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4242         Based on a report by Eric Wong.
4243
4244 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4245             Bruno Haible  <bruno@clisp.org>
4246
4247         malloca: Avoid warnings on x86_64 mingw64.
4248         * lib/malloca.c: Include <stdint.h>.
4249         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4250         * modules/malloca (Depends-on): Add stdint.
4251         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4252
4253 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4254
4255         obstack: remove __STDC__ conditionals
4256         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4257         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4258         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4259         m4/include_next.m4 as the only gnulib-maintained places that still
4260         refer to __STDC__.
4261
4262 2012-01-24  Bruno Haible  <bruno@clisp.org>
4263
4264         havelib: Modern quoting.
4265         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4266         the recent change to the GNU coding standards.
4267
4268 2012-01-24  Bruno Haible  <bruno@clisp.org>
4269
4270         stdint: Improve support for Android.
4271         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4272         Reported by Simon Josefsson <simon@josefsson.org>.
4273
4274 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4275
4276         doc: omit trailing empty lines from INSTALL etc.
4277         * doc/Makefile (INSTALL): Omit trailing empty lines.
4278         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4279         omit trailing empty lines.  This simplifies the build procedure.
4280
4281 2012-01-23  Jim Meyering  <meyering@redhat.com>
4282
4283         tests: avoid spurious warnings about gl_sockets_startup
4284         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4285         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4286         reporting a "statement with no effect".
4287         * tests/test-accept.c (main): Mark as "(void)".
4288         * tests/test-accept4.c (main): Likewise.
4289         * tests/test-bind.c (main): Likewise.
4290         * tests/test-connect.c (main): Likewise.
4291         * tests/test-getpeername.c (main): Likewise.
4292         * tests/test-getsockname.c (main): Likewise.
4293         * tests/test-getsockopt.c (main): Likewise.
4294         * tests/test-listen.c (main): Likewise.
4295         * tests/test-recv.c (main): Likewise.
4296         * tests/test-recvfrom.c (main): Likewise.
4297         * tests/test-send.c (main): Likewise.
4298         * tests/test-sendto.c (main): Likewise.
4299         * tests/test-setsockopt.c (main): Likewise.
4300         * tests/test-shutdown.c (main): Likewise.
4301
4302 2012-01-21  Bruno Haible  <bruno@clisp.org>
4303
4304         locale-fr.m4: Fix for Android.
4305         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4306         failure of the test program on Bionic libc.
4307
4308 2012-01-21  Jim Meyering  <meyering@redhat.com>
4309
4310         bootstrap: fail when bootstrap_post_import_hook fails
4311         Otherwise, it's far too easy to miss diagnostics emitted
4312         between gnulib-tool's output and that of running configure.
4313         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4314
4315 2012-01-17  Jim Meyering  <meyering@redhat.com>
4316
4317         maint: enable sc_trailing_blank
4318         * build-aux/pmccabe.css: Remove trailing blanks.
4319         * doc/acl-cygwin.txt: Likewise.
4320         * doc/gnu-oids.texi: Likewise
4321         * cfg.mk: Enable sc_trailing_blank.
4322         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4323
4324 2012-01-17  Jim Meyering  <meyering@redhat.com>
4325
4326         maint: enable sc_prohibit_openat_without_use
4327         * cfg.mk: Enable sc_prohibit_openat_without_use.
4328         Exempt lib/selinux-at.c.
4329
4330 2012-01-17  Jim Meyering  <meyering@redhat.com>
4331
4332         maint: enable sc_prohibit_cloexec_without_use
4333         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4334         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4335
4336 2012-01-17  Jim Meyering  <meyering@redhat.com>
4337
4338         maint: enable sc_prohibit_intprops_without_use
4339         * cfg.mk: Enable sc_prohibit_intprops_without_use
4340         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4341
4342 2012-01-17  Jim Meyering  <meyering@redhat.com>
4343
4344         maint: enable sc_prohibit_hash_pjw_without_use
4345         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4346         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4347         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4348         following " (".
4349
4350 2012-01-17  Jim Meyering  <meyering@redhat.com>
4351
4352         maint: enable double-word-prohibiting rule
4353         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4354         Exempt three files.
4355
4356 2012-01-17  Jim Meyering  <meyering@redhat.com>
4357
4358         maint: remove empty lines at EOF, but excluding modules/*
4359         Apply syntax rules at home as well as abroad.  Most changes
4360         were induced by running this:
4361           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4362             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4363             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4364         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4365         Exempt modules/* and two binary files.
4366         Also exempt doc/INSTALL*, per request from Bruno Haible.
4367         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4368         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4369         * doc/Copyright/request-assign.future: Likewise.
4370         * doc/Copyright/request-disclaim.changes: Likewise.
4371         * doc/INSTALL: Likewise.
4372         * doc/INSTALL.ISO: Likewise.
4373         * doc/INSTALL.UTF-8: Likewise.
4374         * doc/acl-cygwin.txt: Likewise.
4375         * doc/acl-resources.txt: Likewise.
4376         * doc/fdl-1.2.texi: Likewise.
4377         * doc/fdl-1.3.texi: Likewise.
4378         * doc/fdl.texi: Likewise.
4379         * lib/argp-pin.c: Likewise.
4380         * lib/round.c: Likewise.
4381         * lib/unicase/u16-totitle.c: Likewise.
4382         * lib/unictype/block_test.c: Likewise.
4383         * lib/uninorm/canonical-decomposition.c: Likewise.
4384         * m4/README: Likewise.
4385         * m4/relocatable-lib.m4: Likewise.
4386         * tests/test-isnand-nolibm.c: Likewise.
4387         * tests/test-isnand.c: Likewise.
4388         * tests/uninorm/NormalizationTest.txt: Likewise.
4389
4390 2012-01-17  Jim Meyering  <meyering@redhat.com>
4391
4392         maint: add framework to run syntax-check rules against gnulib sources
4393         * cfg.mk: New file, to disable all currently-failing tests.
4394         We'll enable them one by one, as they are made to pass.
4395         * Makefile (sc_maint): New rule.
4396
4397 2012-01-21  Bruno Haible  <bruno@clisp.org>
4398
4399         stdint: Add support for Android.
4400         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4401         include the system's <stdint.h>.
4402         Reported by Simon Josefsson <simon@josefsson.org>.
4403
4404 2012-01-19  Jim Meyering  <meyering@redhat.com>
4405
4406         bootstrap: add bootstrap_post_import_hook
4407         Bison does still need something like the gnulib_mk_hook whose
4408         invocation I had to remove along with slurp in commit 767ccd40.
4409         Technically, we could get along without it, but doing so would
4410         have required living with a warning and a mandatory post-bootstrap
4411         automake rerun.
4412         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4413         (bootstrap_post_import_hook): New function.
4414         Invoke it after gnulib-tool --import and before autoreconf.
4415
4416 2012-01-18  Jim Meyering  <meyering@redhat.com>
4417
4418         gitlog-to-changelog: don't use "no_"-prefixed variable name
4419         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4420         to enable both --cluster and --no-cluster.  Change variable name,
4421         s/\$no_cluster/$cluster/, and reverse usage to match.
4422
4423         gitlog-to-changelog: use "||", not "or" in expressions
4424         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4425         expressions.
4426
4427 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4428
4429         gitlog-to-changelog: new option --no-cluster
4430         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4431         clustering of adjacent commit messages.
4432
4433 2012-01-17  Jim Meyering  <meyering@redhat.com>
4434
4435         maint: spell file systems with two words, not one
4436         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4437         two words, not one.
4438
4439 2012-01-16  Jim Meyering  <meyering@redhat.com>
4440
4441         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4442         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4443
4444 2012-01-16  Eric Blake  <eblake@redhat.com>
4445
4446         bootstrap: cater to autoconf 2.59
4447         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4448         is not available.
4449
4450         bootstrap: properly check for libtool
4451         * build-aux/bootstrap (libtoolize): Also run libtool when older
4452         usage is detected.
4453
4454 2012-01-15  Bruno Haible  <bruno@clisp.org>
4455
4456         Improve support for MSVC 9.
4457         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4458         clashes on MSVC.
4459         * lib/fcntl.in.h: Likewise.
4460         * lib/stdlib.in.h: Likewise.
4461         * lib/sys_stat.in.h: Likewise.
4462
4463 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4464
4465         gnupload: we hold the master copy of this script now
4466         For motivation and more information, see:
4467         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4468         * build-aux/gnupload: Make it clear in the heading comments that the
4469         master copy of this file is maintained by gnulib.  Since we are at
4470         it, bump its copyright year and ...
4471         ($scriptversion): ... the date in its version.
4472         ($usage): Patches and bug reports should be sent to the gnulib list,
4473         not the automake one.
4474         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4475         anymore.
4476
4477 2012-01-15  Bruno Haible  <bruno@clisp.org>
4478
4479         Fix module 'random'.
4480         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4481         initstate, setstate are declared.
4482
4483 2012-01-14  Bruno Haible  <bruno@clisp.org>
4484
4485         Tests for module 'random'.
4486         * modules/random-tests: New file.
4487         * tests/test-random.c: New file, based on tests/test-random_r.c.
4488
4489         New module 'random'.
4490         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4491         declarations.
4492         * lib/random.c: New file, based on glibc/stdlib/random.c.
4493         * m4/random.m4: New file.
4494         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4495         HAVE_RANDOM.
4496         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4497         * modules/random: New file.
4498         * config/srclist.txt: Add an entry for random.c.
4499         * doc/posix-functions/random.texi: Mention the 'random' module.
4500         * doc/posix-functions/initstate.texi: Likewise.
4501         * doc/posix-functions/setstate.texi: Likewise.
4502         * doc/posix-functions/srandom.texi: Likewise.
4503
4504 2012-01-12  Bruno Haible  <bruno@clisp.org>
4505
4506         random_r: Use common idioms.
4507         * lib/random_r.c: Include <stdlib.h> first.
4508
4509         random_r: Override incompatible API on AIX, OSF/1.
4510         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4511         Override the system function if REPLACE_RANDOM_R is 1.
4512         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4513         and OSF/1, set REPLACE_RANDOM_R.
4514         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4515         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4516         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4517         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4518         * doc/glibc-functions/random_r.texi: Likewise.
4519         * doc/glibc-functions/setstate_r.texi: Likewise.
4520
4521         random_r: Support for MSVC 9.
4522         * lib/random_r.c: Include stdint.h, not inttypes.h.
4523
4524 2012-01-12  Eric Blake  <eblake@redhat.com>
4525
4526         inet_ntop: guard extra work by IF_LINT
4527         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4528         better code generation when not checking for warnings.
4529         Suggested by Paul Eggert and Jim Meyering.
4530
4531         strptime: fix regression on mingw
4532         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4533         Fix regression.  Reported by Bruno Haible.
4534
4535 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4536             Bruno Haible  <bruno@clisp.org>
4537
4538         copy-file: add error-code-returning variant.
4539         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4540         (qcopy_file_preserving): New declaration.
4541         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4542         copy_file_preserving. Change return type to 'int'. Don't emit an error
4543         message here.
4544         (copy_file_preserving): New function.
4545         * tests/test-copy-file.c: Include <stdlib.h>.
4546         (main): Test qcopy_file_preserving if the environment variable
4547         NO_STDERR_OUTPUT is set.
4548         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4549         with NO_STDERR_OUTPUT
4550         * tests/test-copy-file-2.sh: Likewise.
4551
4552 2012-01-10  Bruno Haible  <bruno@clisp.org>
4553
4554         copy-file: Use 'quote' module consistently.
4555         * lib/copy-file.c (copy_file_preserving): Use quote().
4556
4557         copy-file: Refactor.
4558         * lib/copy-file.c: Include quote.h.
4559         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4560         message here.
4561         * modules/copy-file (Depends-on): Add quote.
4562
4563         acl: Export qcopy_acl.
4564         * lib/acl.h (qcopy_acl): New declaration.
4565         * lib/copy-acl.c (qcopy_acl): Make non-static.
4566
4567         acl: Rename a local variable.
4568         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4569
4570         acl: Align return values of copy_acl and qcopy_acl.
4571         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4572         maybe < -1.
4573
4574 2012-01-11  Eric Blake  <eblake@redhat.com>
4575
4576         strptime: silence gcc warnings
4577         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4578         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4579         Reported by Daniel P. Berrange.
4580
4581         inet_ntop: silence gcc warning
4582         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4583         Reported by Daniel P. Berrange.
4584
4585 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4586
4587         getloadavg test: skip the test on GNU/Linux without /proc mounted
4588         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4589         file.  When /proc is not mounted, it always fails with ENOENT.
4590         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4591         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4592
4593 2012-01-10  Bruno Haible  <bruno@clisp.org>
4594
4595         regex: Avoid link error on MSVC 9.
4596         * modules/regex (Depends-on): Add wctype.
4597
4598 2012-01-10  Bruno Haible  <bruno@clisp.org>
4599
4600         doc: Mention --with-tests option.
4601         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4602         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4603         --with-tests.
4604         Reported by Reuben Thomas.
4605
4606 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4607
4608         users.txt: order package names lexicographically.
4609         * users.txt: Order package names lexicographically.
4610
4611 2012-01-10  Jim Meyering  <meyering@redhat.com>
4612
4613         maint.mk: fix description in comment
4614         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4615
4616         ignore-value: remove deprecated ignore_ptr function
4617         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4618         * NEWS: Note this.
4619
4620 2012-01-09  Jim Meyering  <meyering@redhat.com>
4621
4622         test-init.sh: avoid a subshell
4623         * tests/test-init.sh: Remove protective subshell.
4624         Suggested by Bernhard Voelker.  While a subshell is normally
4625         required to protect against older shells (Solaris, FreeBSD) that
4626         warn about a missing program before performing redirection, the
4627         shell-selection tests performed by init.sh probably exclude any
4628         offending shell.
4629
4630 2012-01-08  Bruno Haible  <bruno@clisp.org>
4631
4632         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4633         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4634         variable.
4635
4636 2012-01-08  Bruno Haible  <bruno@clisp.org>
4637
4638         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4639         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4640         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4641         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4642         macro.
4643         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4644         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4645         * lib/spawn_faction_addopen.c: Add workaround implementation if
4646         HAVE_WORKING_POSIX_SPAWN.
4647         * modules/spawn (Makefile): Substitute
4648         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4649         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4650         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4651         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4652         (Depends-on): Update conditions.
4653         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4654         the Solaris 11 bug.
4655
4656 2012-01-08  Bruno Haible  <bruno@clisp.org>
4657
4658         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4659         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4660         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4661         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4662         macro.
4663         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4664         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4665         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4666         HAVE_WORKING_POSIX_SPAWN.
4667         * modules/spawn (Makefile): Substitute
4668         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4669         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4670         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4671         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4672         (Depends-on): Update conditions.
4673         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4674         the Solaris 11 bug.
4675
4676 2012-01-08  Bruno Haible  <bruno@clisp.org>
4677
4678         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4679         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4680         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4681         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4682         HAVE_WORKING_POSIX_SPAWN.
4683         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4684         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4685         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4686         * lib/spawn_faction_addclose.c: Add workaround implementation if
4687         HAVE_WORKING_POSIX_SPAWN.
4688         * modules/spawn (Makefile): Substitute
4689         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4690         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4691         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4692         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4693         (Depends-on): Update conditions.
4694         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4695         the Solaris 11 bug.
4696
4697 2012-01-08  Bruno Haible  <bruno@clisp.org>
4698
4699         doc: Update for Solaris 11 2011-11.
4700         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4701         * m4/printf.m4: Update comments.
4702
4703 2012-01-08  Bruno Haible  <bruno@clisp.org>
4704
4705         mktime: Avoid compilation error on Solaris 11.
4706         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4707
4708 2012-01-08  Bruno Haible  <bruno@clisp.org>
4709
4710         doc: Small fix.
4711         * doc/posix-headers/nl_types.texi: Correct platforms list.
4712
4713 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4714
4715         Add lgpl-3.0 module.
4716         * MODULES.html.sh (Support for building documentation): Add
4717         lgpl-3.0.
4718         * modules/lgpl-3.0: New file.
4719
4720 2012-01-08  Jim Meyering  <meyering@redhat.com>
4721
4722         select.c: indent with spaces, not TABs
4723         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4724
4725 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4726
4727         quotearg: do not use grave accent for left quote
4728         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4729         locale_quoting_style.
4730         (quotearg_buffer_restyled): Fix example.
4731         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4732
4733 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4734
4735         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4736         Most programs do not have translation catalogs for English and much
4737         less separate catalogs for British and American English.  Drop the
4738         suggestion to translators about these two, and provide it
4739         automatically for Unicode locales.  Like most programs, even those
4740         using American English, we use single quotation marks.  This conflicts
4741         with the American typographic convention, but works better when you
4742         cite the entire error message within double quotes.  It also tries not
4743         to clash with established practice and with what non-gnulib programs
4744         will usually do.
4745         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4746         using an UTF-8 or GB-18030 locale.  The list of other locales with
4747         quotes was provided by Bruno Haible.
4748         (quotearg_buffer_restyled): Adjust instructions to translators.
4749         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4750         text, since this would be wrong when using Unicode.
4751         * modules/quotearg: Depend on c-strcaseeq.
4752
4753 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4754
4755         quotearg: fix Wikipedia link
4756         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4757
4758 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4759
4760         Fix for mingw with MSVC9.
4761         * m4/ld-version-script.m4: Check that compiler rejects version
4762         scripts with syntax errors.  Reported by Bruno Haible
4763         <bruno@clisp.org>.
4764
4765 2012-01-06  Bruno Haible  <bruno@clisp.org>
4766
4767         Talk about "native Windows API", not "Woe32".
4768         * lib/accept4.c: Update comments to mention native Windows.
4769         * lib/execute.c: Likewise.
4770         * lib/fatal-signal.c: Likewise.
4771         * lib/localcharset.c: Likewise.
4772         * lib/nanosleep.c: Likewise.
4773         * lib/nl_langinfo.c: Likewise.
4774         * lib/pclose.c: Likewise.
4775         * lib/pipe-filter-gi.c: Likewise.
4776         * lib/pipe-filter-ii.c: Likewise.
4777         * lib/pipe.c: Likewise.
4778         * lib/pipe2.c: Likewise.
4779         * lib/popen.c: Likewise.
4780         * lib/progreloc.c: Likewise.
4781         * lib/relocatable.c: Likewise.
4782         * lib/sigaction.c: Likewise.
4783         * lib/sigprocmask.c: Likewise.
4784         * lib/spawn-pipe.h: Likewise.
4785         * lib/spawn-pipe.c: Likewise.
4786         * lib/spawni.c: Likewise.
4787         * lib/stat-time.h: Likewise.
4788         * lib/w32spawn.h: Likewise.
4789         * tests/test-isatty.c: Likewise.
4790         * lib/config.charset: More comments.
4791         * doc/gnulib-intro.texi: Mention native Windows.
4792         * doc/posix-functions/_Exit_C99.texi: Likewise.
4793         * doc/posix-headers/fcntl.texi: Likewise.
4794
4795 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4796
4797         argp: Avoid crash if translator uses % characters in a translation.
4798         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4799         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4800
4801 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4802
4803         doc: C11 and C++11 are now official
4804         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4805         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4806         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4807         * modules/stdalign:
4808         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4809
4810 2012-01-06  Bruno Haible  <bruno@clisp.org>
4811
4812         uc-is-grapheme-break tests: Tweak.
4813         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4814         message.
4815
4816 2012-01-06  Bruno Haible  <bruno@clisp.org>
4817
4818         test-init.sh: correct the test for diff -u
4819         * tests/test-init.sh: Also redirect stdout to /dev/null.
4820
4821 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4822
4823         Use ', not `, for quoting output.
4824         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4825         (print_changelog_deltas, get_tool_versions, main program):
4826         * build-aux/git-version-gen:
4827         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4828         * build-aux/move-if-change (help):
4829         * build-aux/useless-if-before-free (usage, main program):
4830         * check-module (parse_module_file, usage)
4831         (find_included_lib_files, check_module):
4832         * lib/argmatch.c (main) [TEST]:
4833         * lib/argp-help.c (_help):
4834         * lib/getopt1.c (main) [TEST]:
4835         * lib/git-merge-changelog.c (usage):
4836         * lib/xstrtol-error.c (xstrtol_error):
4837         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4838         * m4/argz.m4 (gl_FUNC_ARGZ):
4839         * m4/bison.m4 (gl_BISON):
4840         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4841         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4842         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4843         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4844         * m4/gc-random.m4 (gl_GC_RANDOM):
4845         * m4/intl.m4 (gt_CHECK_DECL):
4846         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4847         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4848         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4849         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4850         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4851         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4852         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4853         * tests/test-dirname.c (main):
4854         * tests/test-getpass.c (main):
4855         * tests/test-iconvme.c (main):
4856         * tests/test-parse-datetime.c (LOG):
4857         * tests/test-xstrtoimax.sh:
4858         * tests/test-xstrtol.sh:
4859         * tests/test-xstrtoll.sh:
4860         * tests/test-xstrtoumax.sh:
4861         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4862         * top/GNUmakefile (abort-due-to-no-makefile):
4863         Quote 'like this', not `like this', as per the recent change to
4864         the GNU coding standards.
4865
4866 2012-01-05  Bruno Haible  <bruno@clisp.org>
4867
4868         strtoimax: Don't force a replacement on systems where intmax_t is int.
4869         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4870         'intmax_t' is not larger than 'int'.
4871         Reported by Pádraig Brady <P@draigBrady.com>.
4872
4873 2012-01-05  Bruno Haible  <bruno@clisp.org>
4874
4875         doc: Mention NetBSD bugs.
4876         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4877         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4878
4879 2012-01-05  Bruno Haible  <bruno@clisp.org>
4880
4881         strtoumax tests: Enhance tests.
4882         * tests/test-strtoumax.c (main): Add tests for large values.
4883
4884 2012-01-05  Bruno Haible  <bruno@clisp.org>
4885
4886         strtoimax: Work around AIX 5.1 bug.
4887         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4888         definition.
4889         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4890         Set HAVE_STRTOIMAX.
4891         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4892         REPLACE_STRTOIMAX.
4893         * modules/inttypes-incomplete (Makefile.am): Substitute
4894         REPLACE_STRTOIMAX.
4895         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4896         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4897         (Depends-on): Update conditions.
4898         * tests/test-strtoimax.c (main): Add tests for large values.
4899         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4900
4901 2012-01-05  Bruno Haible  <bruno@clisp.org>
4902
4903         inttypes: Modernize.
4904         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4905         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4906         (Makefile.am): Update inttypes.h rule.
4907
4908 2012-01-05  Jim Meyering  <meyering@redhat.com>
4909
4910         init.sh: don't waste a subshell just to redirect stderr
4911         * tests/init.sh: In testing for diff -u and diff -c, use a
4912         stderr-redirecting exec inside `...` rather than a subshell.
4913
4914         test-init.sh: avoid failure on HP-UX 11.00
4915         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4916         resolves to diff -c or cmp.  Reported by Bruno Haible.
4917
4918 2012-01-05  Bruno Haible  <bruno@clisp.org>
4919
4920         Tests for module 'strtoull'.
4921         * modules/strtoull-tests: New file.
4922         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4923
4924 2012-01-05  Bruno Haible  <bruno@clisp.org>
4925
4926         Tests for module 'strtoll'.
4927         * modules/strtoll-tests: New file.
4928         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4929
4930 2012-01-05  Bruno Haible  <bruno@clisp.org>
4931
4932         Tests for module 'strtoul'.
4933         * modules/strtoul-tests: New file.
4934         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4935
4936 2012-01-05  Bruno Haible  <bruno@clisp.org>
4937
4938         Tests for module 'strtol'.
4939         * modules/strtol-tests: New file.
4940         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4941
4942 2012-01-04  Jim Meyering  <meyering@redhat.com>
4943
4944         test-init.sh: accommodate Solaris 5.10's different diff -u output
4945         * tests/test-init.sh: Also exempt @@ lines from the comparison
4946         of diff output, since Solaris 5.10 and GNU diff formats differ.
4947         Reported by Stefano Lattarini.
4948
4949 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4950
4951         test-posixtm: don't assume signed integer wraparound
4952         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4953         after signed integer overflow.  Inspired by (though it may not
4954         fix) Bruno Haible's bug report in
4955         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4956
4957         Spell out "Windows 9x" and "Windows XP".
4958         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4959         "Windows 9x" and "WinXP" with "Windows XP".
4960
4961 2012-01-04  Jim Meyering  <meyering@redhat.com>
4962
4963         test-vc-list-files-cvs.sh: remove obsolete comment
4964         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4965         double exit.  Now that's all encapsulated via skip_ and Exit.
4966
4967 2012-01-04  Bruno Haible  <bruno@clisp.org>
4968
4969         Talk about "native Windows API", not "Win32".
4970         * lib/classpath.c: Update comments to mention native Windows.
4971         * lib/csharpexec.c: Likewise.
4972         * lib/dup2.c: Likewise.
4973         * lib/error.c: Likewise.
4974         * lib/fcntl.c: Likewise.
4975         * lib/filename.h: Likewise.
4976         * lib/findprog.c: Likewise.
4977         * lib/get-rusage-as.c: Likewise.
4978         * lib/get-rusage-data.c: Likewise.
4979         * lib/getpagesize.c: Likewise.
4980         * lib/javaexec.c: Likewise.
4981         * lib/msvc-inval.c: Likewise.
4982         * lib/msvc-nothrow.c: Likewise.
4983         * lib/nanosleep.c: Likewise.
4984         * lib/nonblocking.c: Likewise.
4985         * lib/printf-parse.c: Likewise.
4986         * lib/setlocale.c: Likewise.
4987         * lib/sigaction.c: Likewise.
4988         * lib/strerror_r.c: Likewise.
4989         * lib/tmpdir.c: Likewise.
4990         * lib/vasnprintf.c: Likewise.
4991         * lib/w32spawn.h: Likewise.
4992         * lib/waitpid.c: Likewise.
4993         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4994         * m4/locale-ar.m4: Likewise.
4995         * m4/locale-fr.m4: Likewise.
4996         * m4/locale-ja.m4: Likewise.
4997         * m4/locale-tr.m4: Likewise.
4998         * m4/locale-zh.m4: Likewise.
4999         * m4/printf.m4: Likewise.
5000         * tests/test-cloexec.c: Likewise.
5001         * tests/test-copy-acl.sh: Likewise.
5002         * tests/test-copy-file.sh: Likewise.
5003         * tests/test-file-has-acl.sh: Likewise.
5004         * tests/test-set-mode-acl.sh: Likewise.
5005         * tests/test-dup-safer.c: Likewise.
5006         * tests/test-dup2.c: Likewise.
5007         * tests/test-dup3.c: Likewise.
5008         * tests/test-fcntl.c: Likewise.
5009         * tests/test-nonblocking-pipe.h: Likewise.
5010         * tests/test-nonblocking-socket.h: Likewise.
5011         * tests/test-pipe.c: Likewise.
5012         * tests/test-pipe2.c: Likewise.
5013         * tests/test-spawn-pipe-child.c: Likewise.
5014         * doc/acl-resources.txt: Likewise.
5015         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5016         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5017         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5018         * lib/localcharset.c: Update comments to mention native Windows.
5019         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5020         * lib/localename.c: Likewise.
5021         * lib/progreloc.c: Likewise.
5022         * lib/relocatable.c: Likewise.
5023         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5024         (windows_compute_revents): Renamed from win32_compute_revents.
5025         (windows_compute_revents_socket): Renamed from
5026         win32_compute_revents_socket.
5027         * lib/select.c: Update comments to mention native Windows.
5028         (windows_poll_handle): Renamed from win32_poll_handle.
5029         * m4/threadlib.m4: Update comments to mention native Windows.
5030         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5031         --enable-threads=windows instead of --enable-threads=win32. Set
5032         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5033         * lib/glthread/lock.h: Update comments to mention native Windows.
5034         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5035         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5036         USE_WIN32_THREADS.
5037         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5038         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5039         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5040         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5041         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5042         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5043         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5044         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5045         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5046         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5047         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5048         * tests/test-tls.c: Likewise.
5049         Rationale:
5050         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5051         on both 32-bit and 64-bit Windows systems.
5052         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5053         line of distinction is between "native Windows" on one side and Unix/
5054         POSIX systems on the other side. More details in
5055         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5056         Suggested by Paul Eggert.
5057
5058 2012-01-03  Bruno Haible  <bruno@clisp.org>
5059
5060         isatty: Support for MSVC 9.
5061         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5062         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5063         (_isatty_nothrow): New function.
5064         (isatty): Use it instead of _isatty.
5065         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5066         * lib/poll.c (IsConsoleHandle): Likewise.
5067         * lib/select.c (IsConsoleHandle): Likewise.
5068         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5069         (gl_PREREQ_ISATTY): New macro.
5070         * modules/isatty (Depends-on): Add msvc-inval.
5071         (configure.ac): Invoke gl_PREREQ_ISATTY.
5072
5073 2012-01-03  Jim Meyering  <meyering@redhat.com>
5074
5075         maint.mk: remove temporary transition aid from over 1.5 years ago
5076         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5077         purpose was to aid in the transition (avoiding silent malfunction)
5078         from that old name to the new _sc_search_regexp.  This shim was
5079         added by commit 219c504b.
5080
5081         init.sh: do not try to accommodate compare arguments starting with "-"
5082         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5083         compare arguments that start with "-".  Besides, we do not worry
5084         about this when invoking diff or cmp; why start now with sed?
5085         Using "--" to separate options from argument would trigger sed
5086         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5087         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5088
5089 2012-01-02  Bruno Haible  <bruno@clisp.org>
5090
5091         Enhance tests for module 'isatty'.
5092         * modules/isatty-tests (Depends-on): Add pipe-posix.
5093         * tests/test-isatty.c: Include <fcntl.h>.
5094         (DEV_NULL): New macro.
5095         (main): Test the resut of isatty() also on regular files, pipes, and
5096         /dev/null.
5097
5098         New module 'isatty'.
5099         * lib/unistd.in.h (isatty): New declaration.
5100         * lib/isatty.c: New file, based on an idea of
5101         Bastien Roucariès <roucaries.bastien@gmail.com>.
5102         * m4/isatty.m4: New file.
5103         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5104         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5105         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5106         REPLACE_ISATTY.
5107         * modules/isatty: New file.
5108         * doc/posix-functions/isatty.texi: Mention the new module.
5109         Suggested by Paolo Bonzini.
5110
5111 2012-01-02  Bruno Haible  <bruno@clisp.org>
5112
5113         canonicalize: Tweak 2011-12-29 commit.
5114         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5115         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5116
5117 2012-01-02  Jim Meyering  <meyering@redhat.com>
5118
5119         gitlog-to-changelog: describe input syntax in --help output
5120         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5121
5122         gitlog-to-changelog: fix typo in --help: show backslash before email @
5123         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5124         in sources, but not in actual output.
5125
5126 2011-12-30  Jim Meyering  <meyering@redhat.com>
5127
5128         gitlog-to-changelog: don't malfunction when name contains %-directive
5129         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5130         in a name string cause trouble.  E.g., with a user name of "%s",
5131         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5132
5133 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5134
5135         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5136         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5137         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5138         the "  (tiny change)" notation that is appended to the standard
5139         ChangeLog "date  name  email" header line.
5140
5141 2012-01-01  Jim Meyering  <meyering@redhat.com>
5142
5143         test-framework-sh: init.sh: fix "make dist" failure
5144         When using gnulib-tool's --with-tests option and any module that
5145         depends on test-framework-sh, "make dist" would fail due to the
5146         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5147         in the gltests directory, and not in the gllib/ directory.
5148         One way to work around that is to move the EXTRA_DIST += init.sh
5149         from the primary module to the -tests one:
5150         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5151         * modules/test-framework-sh (Makefile.am): ...not here.
5152         Reported by Tom G. Christensen in
5153         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5154
5155         version-etc: update copyright year reported by --version
5156         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5157
5158 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5159
5160         canonicalize: only stat() if required
5161         * lib/canonicalize.c (canonicalize_filename_mode):
5162         Avoid calling l?stat() when both CAN_MISSING,
5163         and CAN_NOLINKS are set, as we neither need
5164         to resolve symlinks or test component existence.
5165
5166 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5167
5168         doc: cover st_ino issues once; add OpenVMS etc.
5169         * doc/posix-functions/stat.texi (stat):
5170         * doc/posix-functions/lstat.texi (lstat):
5171         * doc/posix-functions/fstatat.texi (fstatat):
5172         * doc/posix-functions/fstat.texi (fstat):
5173         Move general 'struct stat' stuff to sys_stat.texi,
5174         leaving behind a pointer.
5175         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5176         Merge duplicate info about 'struct stat' problems into here.
5177         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5178         and suggest partial workarounds.
5179
5180         same-inode: port to OpenVMS
5181         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5182         three st_ino values.
5183
5184 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5185
5186         canonicalize: fix references to stat() and lstat()
5187         * lib/canonicalize.c (canonicalize_filename_mode):
5188         Ensure references always resolve to a replacement
5189         function if required (even via a macro).
5190
5191 2011-12-30  Jim Meyering  <meyering@redhat.com>
5192
5193         gitlog-to-changelog: remove a little duplication
5194         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5195         rather than twice.
5196
5197 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5198
5199         canonicalize: add support for not resolving symlinks
5200         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5201         indicate we don't want to follow symlinks.  Also
5202         provide CAN_MODE_MASK to aid setting these existing
5203         mutually exclusive values.
5204         * lib/canonicalize.c (canonicalize_filename_mode):
5205         Extract the flags from can_mode parameter, which
5206         are currently just used to select between stat()
5207         and lstat().  Also ensure that mutually exclusive
5208         values are flagged immediately as invalid.
5209         * tests/test-canonicalize.c: Verify symlinks are
5210         not followed, and that invalid flag combinations
5211         are diagnosed.
5212
5213 2011-12-25  Jim Meyering  <meyering@redhat.com>
5214
5215         gitlog-to-changelog: do not clump multi-paragraph entries
5216         Identical header lines (date,name,email+coauthors) are suppressed,
5217         thus putting all entries with those same characteristics under
5218         a single header.  However, when a log entry consists of two or
5219         more paragraphs, it may not be clear where it starts and ends.
5220         This change makes it so that such an entry is always separated
5221         from others by a header line, even when that header would
5222         otherwise be suppressed.
5223         * build-aux/gitlog-to-changelog: Implement the above.
5224         Inspired by a related request from Stefano Lattarini in
5225         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5226
5227 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5228
5229         announce-gen: fix `cmd' typo in diagnostic
5230         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5231         diagnostic: a missing '$' meant that the command was not output.
5232
5233 2011-12-23  Jim Meyering  <meyering@redhat.com>
5234
5235         test-framework-sh: distribute init.sh
5236         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5237         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5238         fail due to the lack of init.sh.
5239
5240         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5241         * modules/atexit-tests: Rather than listing tests/init.sh,
5242         now that there's a module for it, simply depend on that new module.
5243         * modules/closein-tests: Likewise.
5244         * modules/exclude-tests: Likewise.
5245         * modules/getcwd-tests: Likewise.
5246         * modules/perror-tests: Likewise.
5247         * modules/pread-tests: Likewise.
5248         * modules/pwrite-tests: Likewise.
5249         * modules/vc-list-files-tests: Likewise.
5250         * modules/verify-tests: Likewise.
5251         * modules/xalloc-die-tests: Likewise.
5252         * modules/xstrtoimax-tests: Likewise.
5253         * modules/xstrtol-tests: Likewise.
5254         * modules/xstrtoll-tests: Likewise.
5255         * modules/xstrtoumax-tests: Likewise.
5256         * modules/yesno-tests: Likewise.
5257
5258 2011-12-22  Jim Meyering  <meyering@redhat.com>
5259
5260         test-framework-sh: add minimal tests of init.sh's compare function
5261         * modules/test-framework-sh-tests: New file.
5262         * tests/test-init.sh: New file.
5263
5264         test-framework-sh: new module
5265         * modules/test-framework-sh: New file.
5266         * MODULES.html.sh (Support for maintaining and releasing projects):
5267         List it.
5268
5269         init.sh: do not emit simulated diff output to stderr
5270         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5271
5272 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5273
5274         .gitignore: ignore gnulib.dvi and regex.info
5275         * doc/.gitignore:add gnulib.dvi and regex.info
5276
5277 2011-12-22  Jim Meyering  <meyering@redhat.com>
5278
5279         init.sh: correct previous change
5280         * tests/init.sh (compare): My previous change was wrong.
5281         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5282
5283         init.sh: avoid unwarranted test failure when using "set -e"
5284         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5285         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5286         a use like "compare exp out" would get evoke an unconditional failure.
5287
5288 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5289
5290         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5291         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5292         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5293         autoreconf that did not.
5294         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5295         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5296
5297 2011-12-17  Jim Meyering  <meyering@redhat.com>
5298
5299         bootstrap: remove some now-unneeded code
5300         This script arose back when gnulib-tool was young.
5301         Since then, it has seen improvements that render much of this
5302         script unnecessary.  In particular, it can now make symlinks
5303         to the files it uses.  Also, I no longer see as much value in
5304         marking files as read-only via comments.
5305         If you relied on the symlink-creation feature of the preceding
5306         version of this script, you can get most of that functionality
5307         by adding the --symlink option to the definition of
5308         gnulib_tool_option_extras in your bootstrap.conf file.
5309         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5310         Run autopoint and libtoolize *before* gnulib-tool.
5311         After it, run an abbreviated autoreconf, rather than a loop around
5312         all tools.
5313         (slirp, bt_mark_as_generated): Remove functions.
5314
5315 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5316
5317         ftoastr: fix typo
5318         * lib/ftoastr.h: Fix misspelling in comment.
5319
5320 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5321
5322         * top/README-release: fix punctuation.
5323
5324 2011-12-17  Jim Meyering  <meyering@redhat.com>
5325
5326         bootstrap: correct the recent buildreq change
5327         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5328         had no effect.
5329         * build-aux/bootstrap (buildreq): Bracket each search term with
5330         "*...*", so that the shell "case" statement works as intended.
5331         Add comments.
5332
5333 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5334
5335         build: let bootstrap resort to wget when downloading .po files
5336         * build-aux/bootstrap (download_po_files): Fallback to wget when
5337         downloading the .po files via rsync fails.  This is necessary to
5338         bootstrap from behind a strict firewall.
5339
5340 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5341
5342         stdint: don't assume C++11 when compiling with g++
5343         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5345         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5346         work also in C++ before C++11, as that improperly inhibits
5347         generating a substitute stdint.h for that case.
5348
5349 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5350
5351         alloca: protect comment from gnulib-tool
5352         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5353         that gnulib-tool doesn't think it's a license, and munge it to
5354         say "GCC version 3".
5355
5356 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5357
5358         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5359         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5360         $(abs_top_builddir) instead of $(top_builddir).
5361
5362 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5363
5364         strftime-tests: also test nanoseconds
5365         * tests/test-strftime.c (T): Add a test of %N.
5366
5367 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5368
5369         inttypes, stdint: add C++11 support
5370         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5371         when including inttypes.h and stdint.h.  Support this change to
5372         the standard.
5373         * doc/posix-headers/inttypes.texi (inttypes.h):
5374         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5375         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5376         Define if not defined already, for the benefit of pre-C++11 hosts.
5377         Define the standard format macros (e.g., PRId8) always.
5378         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5379         Likewise, if __cpluspus.  Define the standard constant and limit
5380         macros (e.g., INT8_C, INT8_MAX) always.
5381         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5382         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5383         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5384         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5385         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5386         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5387         Likewise.
5388
5389 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5390
5391         nonblocking tests: Fix test failure on Linux/PPC.
5392         Suggested by Prerna Saxena in
5393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5394         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5395         Set to 1100000.
5396
5397 2011-12-12  Jim Meyering  <meyering@redhat.com>
5398
5399         argmatch: don't hard-code `' when listing valid option arguments
5400         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5401         use the quote function to add quotes.  Use fputs rather than
5402         fprintf for the format string with no format directive.
5403
5404 2011-12-07  Eric Blake  <eblake@redhat.com>
5405
5406         bootstrap: detect tools required by gnulib-tool
5407         * build-aux/bootstrap (buildreq): Provide minimum implicit
5408         dependencies.
5409         * DEPENDENCIES: Mention patch as a prereq.
5410
5411 2011-12-04  Bruno Haible  <bruno@clisp.org>
5412
5413         sethostname: Port to Windows platforms.
5414         * lib/sethostname.c: Provide an alternate implementation for Windows
5415         platforms.
5416         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5417         (main): Skip the test if sethostname() fails with EPERM. On Windows
5418         platforms, don't check the result of gethostname().
5419
5420 2011-12-04  Bruno Haible  <bruno@clisp.org>
5421             Jim Meyering  <meyering@redhat.com>
5422
5423         tests: Avoid spurious error message on platforms without mktemp program.
5424         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5425
5426 2011-12-04  Bruno Haible  <bruno@clisp.org>
5427
5428         sethostname: Fix documentation.
5429         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5430         "not fixed" section.
5431
5432 2011-12-03  Bruno Haible  <bruno@clisp.org>
5433
5434         gnulib-tool: Verify that the License field is present and non-empty.
5435         * gnulib-tool (func_get_license_raw): New function, extracted from
5436         func_get_license.
5437         (func_get_license): Use it. Warn if the module is not a test module and
5438         has no license.
5439         Suggested by Jim Meyering.
5440
5441 2011-12-03  Bruno Haible  <bruno@clisp.org>
5442
5443         sethostname tests: Fix link error on mingw.
5444         * tests/test-sethostname1.c: New file, extracted from
5445         tests/test-sethostname.c.
5446         * tests/test-sethostname2.c: New file, extracted from
5447         tests/test-sethostname.c.
5448         * tests/test-sethostname.c: Remove file.
5449         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5450         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5451         (Depends-on): Add gethostname.
5452         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5453         Link the latter with $(GETHOSTNAME_LIB).
5454
5455         sethostname tests: Fix compilation error on mingw.
5456         * tests/test-sethostname.c: Don't include <sys/types.h>.
5457         (geteuid): Use a dummy value without uid_t.
5458         * modules/sethostname-tests (Depends-on): Remove sys_types.
5459
5460         sethostname tests: Avoid a gcc warning.
5461         * tests/test-sethostname.c (main): Remove an unused variable.
5462
5463         Tweak last commit.
5464         * modules/sethostname-tests (Files): Sort by decreasing importance.
5465         (configure.ac): Check for geteuid.
5466         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5467         the test when there's nothing to test. Drop an unnecessary cast.
5468         Improve an error message. Verify that the final sethostname() call
5469         succeeds.
5470
5471 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5472
5473         Add a test suite for the sethostname module.
5474         * modules/sethostname-tests: New file.  A test program
5475         for the sethostname module.
5476         * tests/test-sethostname.c: Likewise.
5477
5478 2011-12-03  Bruno Haible  <bruno@clisp.org>
5479
5480         Tweak last commit.
5481         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5482         Fix preprocessor directives indentation. Fix typos.
5483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5484         * modules/unistd (Makefile): Likewise.
5485
5486 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5487
5488         Integrate the sethostname module into unistd.
5489         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5490         into the unistd.h header.
5491         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5492         preprocessor directives.
5493         * modules/unistd: Setup the Makefile substitutions of the
5494         SETHOSTNAME preprocessor directives.
5495
5496 2011-12-03  Bruno Haible  <bruno@clisp.org>
5497
5498         Tweak last commit.
5499         * lib/sethostname.c: Don't include <string.h>.
5500         (sethostname): No need to copy the argument string to the stack. Don't
5501         call clearerr. Preserve errno when fprintf failed.
5502         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5503         Don't invoke AC_REPLACE_FUNCS.
5504         * modules/sethostname (Link): Remove empty section.
5505         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5506         failure problem.
5507
5508 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5509
5510         New module 'sethostname'.
5511         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5512         for systems that lack it.
5513         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5514         sethostname declaration and function.
5515         * modules/sethostname: New file.  Define the sethostname module.
5516
5517 2011-12-03  Bruno Haible  <bruno@clisp.org>
5518
5519         Tweak last commit.
5520         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5521
5522 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5523
5524         Split the HOST_NAME_MAX detection into a separate m4 macro.
5525         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5526         macro so it can be used by the pending sethostname module.
5527
5528 2011-12-03  Bruno Haible  <bruno@clisp.org>
5529
5530         Fix module descriptions syntax.
5531         * modules/argv-iter (License): Fix syntax.
5532         * modules/di-set (License): Likewise.
5533         * modules/ino-map (License): Likewise.
5534         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5535
5536 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5537
5538         stdalign: port to Clang 3.0
5539         Problem reported by Simon Josefsson in
5540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5541         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5542         which has <stdalign.h> but which does not define alignof.
5543         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5544
5545 2011-12-01  Eric Blake  <eblake@redhat.com>
5546
5547         mktempd: silence dd usage
5548         * build-aux/mktempd (rand_bytes): Silence dd.
5549
5550 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5551
5552         manywarnings: Don't mention gcc version in docstring.
5553         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5554         Jim Meyering <meyering@redhat.com>.
5555
5556 2011-11-30  Jim Meyering  <meyering@redhat.com>
5557
5558         hash: mark a few floating point constants with "f" suffix
5559         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5560         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5561         floating point constants with "f", since they're destined to be
5562         saved/used as "float"s.
5563
5564 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5565
5566         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5567         * tests/test-float.c (test_long_double): Correct and re-enable the
5568         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5569
5570 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5571
5572         Avoid subtracting two pointers that don't point into the same block.
5573         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5574         only pointers into the same memory block are subtracted. We cannot
5575         assume that sizeof (ptrdiff_t) == sizeof (void *).
5576
5577 2011-11-29  Eric Blake  <eblake@redhat.com>
5578
5579         maint.mk: add syntax check for use of compare from init.sh
5580         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5581         moved here from coreutils.
5582
5583         manywarnings: drop -Wunsuffixed-float-constants
5584         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5585         '1.0D', which is the only way to silence this warning for 'double'.
5586
5587 2011-11-29  Jim Meyering  <meyering@redhat.com>
5588
5589         hash: mark compute_bucket_size with the pure attribute
5590         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5591
5592         quotearg, propername: correct pragma guard expression
5593         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5594         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5595
5596 2011-11-28  Jim Meyering  <meyering@redhat.com>
5597
5598         propername: do not mark proper_name with the const attribute
5599         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5600         since it examines data pointed to by its parameter.
5601         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5602         the suggestion from -Wsuggest-attribute=const.
5603
5604         propername: mark one more function as const
5605         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5606
5607 2011-11-27  Jim Meyering  <meyering@redhat.com>
5608
5609         mark functions with const and pure attributes
5610
5611         Mark functions per suggestions from gcc-4.6 when using these options:
5612         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5613         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5614         Follow these guidelines: when possible, apply the attribute to
5615         an extern declaration, not to its definition.  Apply it to the
5616         definition only when the definition is static.
5617         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5618         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5619         * lib/base64.h (isbase64): Likewise.
5620         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5621         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5622         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5623         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5624         (c_tolower, c_toupper): Likewise.
5625         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5626         * lib/chdir-long.c (find_non_slash): Likewise.
5627         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5628         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5629         * lib/file-type.h (file_type): Likewise.
5630         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5631         * lib/filevercmp.c (verrevcmp): Likewise.
5632         * lib/freadahead.h (freadahead): Likewise.
5633         * lib/fts.c (fts_maxarglen): Likewise.
5634         * lib/hash-pjw.h (hash_pjw): Likewise.
5635         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5636         * lib/hash.c (is_prime, next_prime): Likewise.
5637         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5638         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5639         (hash_table_ok, hash_get_first, hash_string): Likewise.
5640         (compute_bucket_size): Likewise.
5641         * lib/i-ring.h (i_ring_empty): Likewise.
5642         * lib/isnan.c (isnanl): Likewise.
5643         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5644         * lib/memcasecmp.h (memcasecmp): Likewise.
5645         * lib/memchr2.h (memchr2): Likewise.
5646         * lib/memcmp2.h (memcmp2): Likewise.
5647         * lib/parse-datetime.y (lookup_zone): Likewise.
5648         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5649         [!WINDOWS_SOCKETS]: Likewise.
5650         * lib/strnlen1.h (strnlen1): Likewise.
5651         * lib/uniwidth.in.h (uc_width): Likewise.
5652         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5653         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5654         (quoting_options_from_style): Add a comment.
5655         * lib/propername.h (proper_name): Add a comment.
5656
5657 2011-11-27  Bruno Haible  <bruno@clisp.org>
5658
5659         Remove unused macros from !_LIBC code in glibc-borrowed files.
5660         * lib/fnmatch.c (STRCOLL): Remove macro.
5661         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5662         * lib/glob.c (__stat, __readdir64): Remove macros.
5663         * lib/tempname.c (__open64, __xstat64): Remove macros.
5664         Suggested by Paul Eggert.
5665
5666 2011-11-27  Bruno Haible  <bruno@clisp.org>
5667
5668         getcwd: Fix link error on MSVC 9.
5669         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5670
5671 2011-11-27  Bruno Haible  <bruno@clisp.org>
5672
5673         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5674         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5675         HAVE_OPENDIR is 0.
5676         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5677         HAVE_CLOSEDIR is 0.
5678         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5679         is 0.
5680         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5681
5682 2011-11-27  Bruno Haible  <bruno@clisp.org>
5683
5684         getcwd: Fix bug from 2011-08-17.
5685         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5686         platforms that need it.
5687         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5688         code of 4 to be a failure, not a success. This ensures that
5689         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5690
5691 2011-11-27  Bruno Haible  <bruno@clisp.org>
5692
5693         binary-io tests: Avoid test failure on mingw when libtool is used.
5694         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5695         Don't verify the size of t-bin-out1.tmp here.
5696         * tests/test-binary-io.sh: Verify it here.
5697         Reported by Simon Josefsson.
5698
5699 2011-11-26  Bruno Haible  <bruno@clisp.org>
5700
5701         Fix conflict between two instantiations of module 'unistd'.
5702         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5703         ${include_guard_prefix} also in the autoconf snippet.
5704         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5706         GNULIB_UNISTD_H_GETOPT.
5707         * modules/getopt-posix (configure.ac): Set the
5708         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5709         * modules/getopt-gnu (configure.ac): Likewise.
5710         * modules/unistd (Makefile.am): Change the substitution value of
5711         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5712         Reported by Simon Josefsson.
5713
5714 2011-11-25  Bruno Haible  <bruno@clisp.org>
5715
5716         pagealign_alloc: Doc and comments.
5717         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5718         module.
5719         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5720
5721 2011-11-25  Jim Meyering  <meyering@redhat.com>
5722
5723         test-update-copyright.sh: avoid false-positive failure
5724         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5725         around false positive failure on Cygwin/Windows.  The latter was
5726         matching erroneously-created files with names like
5727         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5728
5729 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5730
5731         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5732         * m4/valgrind-tests.m4: Check that the parameters that will be
5733         used works, not just a subset of them.  Reported by Bruno Haible
5734         <bruno@clisp.org>.
5735
5736 2011-11-24  Jim Meyering  <meyering@redhat.com>
5737
5738         test-stdalign.c: comment out long double tests
5739         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5740         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5741         error: '_Alignas' specifiers cannot reduce alignment of \
5742         'static_longdouble_alignas'.
5743
5744 2011-11-22  Jim Meyering  <meyering@redhat.com>
5745
5746         init.sh: make "compare /dev/null FILE" output more readable
5747         * tests/init.sh (compare_): Document the preferred order of arguments.
5748         (emit_diff_u_header_): New function.
5749         (compare_dev_null_): Emit a simulated diff, rather than just the
5750         contents of the unexpected file.  Suggestion from Bruno Haible.
5751
5752 2011-11-21  Jim Meyering  <meyering@redhat.com>
5753             Eric Blake  <eblake@redhat.com>
5754
5755         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5756         * tests/init.sh: Make our compare function slightly more portable.
5757         Reported by Bruno Haible in
5758         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5759
5760 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5761
5762         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5763         before using it, in code that ends up in config.h.
5764
5765 2011-11-20  Bruno Haible  <bruno@clisp.org>
5766
5767         getcwd: Work around getcwd bug on AIX 5..7.
5768         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5769         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5770         Use a different value for gl_cv_func_getcwd_path_max. Move the
5771         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5772         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5773         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5774         Define HAVE_MINIMALLY_WORKING_GETCWD.
5775         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5776         where it is not even minimally working, that is, on AIX.
5777         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5778         m4/getcwd-path-max.m4.
5779         (main): Update exit code computation.
5780         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5781         getcwd does not handle long file names.
5782
5783 2011-11-20  Bruno Haible  <bruno@clisp.org>
5784
5785         getcwd: Fix bug from 2009-09-10.
5786         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5787         like "no".
5788
5789 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5790
5791         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5792
5793 2011-11-20  Bruno Haible  <bruno@clisp.org>
5794
5795         fma tests: Avoid shadowing local variables.
5796         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5797         expected.
5798
5799 2011-11-20  Bruno Haible  <bruno@clisp.org>
5800
5801         copysignf tests: Fix.
5802         * tests/test-copysignf.c: Fix signature check.
5803
5804 2011-11-20  Bruno Haible  <bruno@clisp.org>
5805
5806         fma: Remove unused code.
5807         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5808         unused macros.
5809
5810 2011-11-20  Bruno Haible  <bruno@clisp.org>
5811
5812         sethostname: Fix doc about AIX.
5813         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5814         sethostname; it has it.
5815
5816         sethostname: Mention more portability problems.
5817         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5818         problem.
5819         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5820
5821 2011-11-19  Bruno Haible  <bruno@clisp.org>
5822
5823         Depend on module fcntl-h when AT_FDCWD is used.
5824         * modules/utimens (Depends-on): Add fcntl-h.
5825         * modules/areadlinkat (Depends-on): Likewise.
5826         * modules/areadlinkat-with-size (Depends-on): Likewise.
5827         * modules/faccessat (Depends-on): Likewise.
5828         * modules/fchmodat (Depends-on): Likewise.
5829         * modules/fchownat (Depends-on): Likewise.
5830         * modules/getcwd (Depends-on): Likewise.
5831         * modules/mkdirat (Depends-on): Likewise.
5832         * modules/mkfifoat (Depends-on): Likewise.
5833         * modules/readlinkat (Depends-on): Likewise.
5834         * modules/symlinkat (Depends-on): Likewise.
5835         * modules/dup2-tests (Depends-on): Likewise.
5836         * modules/fdutimensat-tests (Depends-on): Likewise.
5837         * modules/futimens-tests (Depends-on): Likewise.
5838
5839 2011-11-19  Bruno Haible  <bruno@clisp.org>
5840
5841         euidaccess: Update a comment.
5842         * lib/euidaccess.c: Update comment about platforms with faccessat.
5843
5844 2011-11-19  Bruno Haible  <bruno@clisp.org>
5845
5846         openat: Fix file list.
5847         * modules/openat (Files): Remove lib/at-func.c.
5848
5849 2011-11-19  Bruno Haible  <bruno@clisp.org>
5850
5851         fstatat: Simplify.
5852         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5853         gnulib should define rpl_fstatat, there is a
5854         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5855
5856 2011-11-19  Bruno Haible  <bruno@clisp.org>
5857
5858         Ensure 'inline' can be used in tests/test-utimens-common.h.
5859         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5860         * modules/futimens-tests (configure.ac): Likewise.
5861         * modules/utimens-tests (configure.ac): Likewise.
5862         * modules/utimensat-tests (configure.ac): Likewise.
5863
5864 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5865
5866         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5867         not hash_insert0.
5868         (hash_insert_if_absent): Doc fix.
5869
5870 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5871
5872         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5873
5874 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5875
5876         test-getcwd: disambiguate exit status
5877         * tests/test-getcwd.c (test_long_name): Return 0..7.
5878         (main): Exit with an unambiguous exit status.  The old
5879         code yielded a mysterious mixture of two failure codes.
5880
5881         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5882         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5883         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5884         rpl_fstatat or fstatat.  This should fix the other problem
5885         reported by Kai Habel in
5886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5887         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5889         and I reproduced it on a Solaris 8 host we still have in production.
5890
5891 2011-11-18  Jim Meyering  <meyering@redhat.com>
5892
5893         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5894         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5895         Add a sentence to the comment.
5896         (hash_insert0): New function that simply calls hash_insert_if_absent.
5897         * lib/hash.h (hash_insert_if_absent): Declare it.
5898         (hash_insert0): Add deprecation attribute.
5899         (_GL_ATTRIBUTE_DEPRECATED): Define.
5900         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5901         not hash_insert0.
5902         * NEWS: Mention it, even though it's not really an incompatible change.
5903
5904 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5905
5906         openat: avoid compilation failure due to lack of <errno.h> inclusion
5907         * lib/openat.c: Include <errno.h>.
5908
5909 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5910
5911         * modules/getcwd (Depends-on): Add fdopendir.
5912         This fixes one of the two problems reported by Kai Habel in
5913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5914
5915         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5916         stdalign problem reported by Ian Beckwith in
5917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5918         * modules/crypto/gc-arcfour (Depends-on):
5919         Depend conditionally on crypto/arcfour.
5920         * modules/crypto/gc-arctwo (Depends-on):
5921         Depend conditionally on crypto/arctwo.
5922         * modules/crypto/gc-des (Depends-on):
5923         Depend conditionally on crypto/des.
5924         * modules/crypto/gc-hmac-md5 (Depends-on):
5925         Depend conditionally on crypto/hmac-md5.
5926         * modules/crypto/gc-hmac-sha1 (Depends-on):
5927         Depend conditionally on crypto/hmac-sha1.
5928         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5929         * modules/crypto/gc-md4 (Depends-on):
5930         Depend conditionally on crypto/md4.
5931         * modules/crypto/gc-md5 (Depends-on):
5932         Depend conditionally on crypto/md5.
5933         * modules/crypto/gc-rijndael (Depends-on):
5934         Depend conditionally on crypto/rijndael.
5935         * modules/crypto/gc-sha1 (Depends-on):
5936         Depend conditionally on crypto/sha1.
5937         * modules/crypto/gc-arcfour:
5938         * modules/crypto/gc-arctwo:
5939         * modules/crypto/gc-des:
5940         * modules/crypto/gc-hmac-md5:
5941         * modules/crypto/gc-hmac-sha1:
5942         * modules/crypto/gc-md2:
5943         * modules/crypto/gc-md4:
5944         * modules/crypto/gc-md5:
5945         * modules/crypto/gc-rijndael:
5946         * modules/crypto/gc-sha1:
5947         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5948         now that the conditional dependencies do the work for us.
5949
5950 2011-11-17  Jim Meyering  <meyering@redhat.com>
5951
5952         tests: factor st_ctime-comparison out of two headers
5953         * tests/test-utimens-common.h (ctime_compare): Define.
5954         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5955         * tests/test-lutimens.h (test_lutimens): Likewise.
5956         * tests/test-utimens.h (test_utimens): Likewise.
5957
5958         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5959         Invoke the test program via an init.sh-using wrapper.
5960         * tests/test-getcwd.sh: New file.
5961         * modules/getcwd-tests (Files): Add it.
5962         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5963
5964 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5965
5966         gitlog-to-changelog: support multi-author commits.
5967         The FSF cares about keeping track of all authors of patches to its
5968         projects, but Git doesn't provide obvious support for multi-author
5969         changesets. Consensus seems to be forming around the use of extra
5970         Signed-off-by inspired lines in the log message formatted as
5971         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5972         multi-author commits between version control systems.
5973         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5974         log message and output in standard ChangeLog multi-author format.
5975         Reported by Peter Rosin <peda@lysator.liu.se>
5976
5977 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5978             Bruno Haible  <bruno@clisp.org>
5979
5980         Fix some modules' file list.
5981         * modules/fstatat (Files): Add m4/lstat.m4.
5982         * modules/openat (Files): Likewise.
5983         * modules/unlinkat (Files): Likewise.
5984
5985 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5986
5987         maint.mk: fix tight-scope.mk generation in VPATH builds.
5988         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5989         reference with $(srcdir) so that the file is found correctly even
5990         when running `make syntax-check' in a VPATH build.
5991
5992 2011-11-13  Bruno Haible  <bruno@clisp.org>
5993             Jim Meyering  <meyering@redhat.com>
5994
5995         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5996         * tests/init.sh (compare): Remove "No differences encountered" or
5997         synonymous output from the 'diff' program.
5998
5999 2011-11-13  Bruno Haible  <bruno@clisp.org>
6000
6001         Makefile: Tweak indentation.
6002         * Makefile: Use tab as first character in every line that contains rule
6003         commands.
6004
6005 2011-11-13  Bruno Haible  <bruno@clisp.org>
6006
6007         Syntax check for copyright statements.
6008         * check-copyright: New file.
6009         * Makefile (sc_check_copyright): New rule.
6010
6011 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6012
6013         * build-aux/git-version-gen: Add --prefix to configure the tag
6014         match string.
6015
6016 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6017
6018         * build-aux/git-version-gen: Add --help and --version.
6019
6020 2011-11-12  Jim Meyering  <meyering@redhat.com>
6021
6022         revamp the other test-exclude?.sh scripts to use init.sh, too
6023         * tests/test-exclude1.sh: Use init.sh.
6024         * tests/test-exclude2.sh: Likewise.
6025         * tests/test-exclude3.sh: Likewise.
6026         * tests/test-exclude4.sh: Likewise.
6027         * tests/test-exclude5.sh: Likewise.
6028         * tests/test-exclude6.sh: Likewise.
6029         * tests/test-exclude7.sh: Likewise.
6030         * tests/test-exclude8.sh: Likewise.
6031         * modules/exclude-tests (Files): List init.sh.
6032
6033         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6034         These shell scripts ignored failure of the binary test-exclude,
6035         so making the latter return 77 didn't cause them to be skipped.
6036         * tests/test-exclude5.sh: Exit with test-exclude's error status
6037         when that program fails.  Revamp to use init.sh.
6038         * tests/test-exclude2.sh: Likewise.
6039
6040         test-exclude: fix a typo
6041         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6042
6043 2011-11-11  Bruno Haible  <bruno@clisp.org>
6044
6045         obstack: Fix compilation error on MSVC 9.
6046         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6047
6048 2011-11-11  Jim Meyering  <meyering@redhat.com>
6049
6050         test-exclude: skip tests rather than failing on deficient systems
6051         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6052         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6053         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6054         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6055
6056 2011-11-10  Bruno Haible  <bruno@clisp.org>
6057
6058         ptsname_r test: Avoid gcc warning on glibc systems.
6059         * tests/test-ptsname_r.c (null_ptr): New function.
6060         (test_errors): Use it.
6061
6062 2011-11-10  Bruno Haible  <bruno@clisp.org>
6063
6064         ptsname_r: Avoid compilation error on OSF/1 5.1.
6065         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6067         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6068         function is not declared or incompatibly declared.
6069         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6070         * modules/ptsname_r (Depends-on, configure.ac): Update.
6071         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6072
6073 2011-11-10  Bruno Haible  <bruno@clisp.org>
6074
6075         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6076         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6077         When cross-compiling, guess yes on all platforms except AIX.
6078         Reported by Ludovic Courtès <ludo@gnu.org>.
6079
6080 2011-11-09  Bruno Haible  <bruno@clisp.org>
6081
6082         ptsname_r tests: Fix bugs.
6083         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6084         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6085
6086 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6087
6088         fstatat: work with cross-compilation
6089         Problem reported by Ludovic Courtès in
6090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6091         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6092         "cross-compiling" and assume the bug is present.  Replace
6093         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6094         an inverted sense, to be more conservative about our assumptions.
6095         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6096
6097 2011-11-09  Bruno Haible  <bruno@clisp.org>
6098
6099         Improve MODULES.html output.
6100         * modules/mkfifoat (Description): Use the word "function".
6101         * modules/readlinkat (Description): Likewise.
6102         * modules/symlinkat (Description): Likewise.
6103
6104 2011-11-09  Eric Blake  <eblake@redhat.com>
6105
6106         ptsname_r-tests: new test module
6107         * modules/ptsname_r-tests: New module.
6108         * tests/test-ptsname_r.c: New file.
6109
6110         ptsname_r: new module
6111         * modules/ptsname_r: New module.
6112         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6113         * lib/ptsname.c (__ptsname_r): Split...
6114         * lib/ptsname_r.c: ...into new file.
6115         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6116         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6117         * modules/stdlib (Makefile.am): Substitute witnesses.
6118         * lib/stdlib.in.h (ptsname_r): Declare it.
6119         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6120         * MODULES.html.sh (Misc): Likewise.
6121         * modules/ptsname (Depends-on): Alter dependency.
6122         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6123
6124 2011-11-09  Jim Meyering  <meyering@redhat.com>
6125
6126         announce-gen: be more concise when there's only one URL+tarball
6127         * build-aux/announce-gen (get_tool_versions): When you distribute
6128         only one type of tarball, combine the first two "Here are..."
6129         sections and make the key-checking grammar independent of
6130         how many tarballs there are.
6131
6132 2011-11-09  Eric Blake  <eblake@redhat.com>
6133
6134         openpty: provide a stub on mingw
6135         * lib/pty.in.h (includes): Provide forward declarations.
6136         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6137
6138         raise: fix mingw handling of SIGPIPE
6139         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6140
6141 2011-11-08  Bruno Haible  <bruno@clisp.org>
6142
6143         More conditional dependencies.
6144         * modules/faccessat (Depends-on): Add conditions.
6145         * modules/fchmodat (Depends-on): Likewise.
6146         * modules/fchownat (Depends-on): Likewise.
6147         * modules/fstatat (Depends-on): Likewise.
6148         * modules/mkfifoat (Depends-on): Likewise.
6149         * modules/readlinkat (Depends-on): Likewise.
6150         * modules/symlinkat (Depends-on): Likewise.
6151         * modules/unlinkat (Depends-on): Likewise.
6152         * modules/utimensat (Depends-on): Likewise.
6153         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6154         * modules/linkat (Depends-on): Refine the conditions.
6155         * modules/renameat (Depends-on): Likewise.
6156
6157 2011-11-08  Bruno Haible  <bruno@clisp.org>
6158
6159         faccessat: Move AC_LIBOBJ invocation to module description.
6160         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6161         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6162         invocation from here...
6163         * modules/faccessat (configure.ac): ... to here. Invoke
6164         gl_PREREQ_FACCESSAT.
6165
6166 2011-11-08  Bruno Haible  <bruno@clisp.org>
6167
6168         faccessat: Simplify autoconf macro.
6169         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6170         gl_FUNC_EUIDACCESS.
6171
6172 2011-11-08  Bruno Haible  <bruno@clisp.org>
6173
6174         renameat: Fix dependencies.
6175         * modules/renameat (Depends-on): Add stdbool.
6176
6177 2011-11-08  Bruno Haible  <bruno@clisp.org>
6178
6179         mkfifoat: Fix module description.
6180         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6181         not gl_UNISTD_MODULE_INDICATOR.
6182
6183 2011-11-08  Bruno Haible  <bruno@clisp.org>
6184
6185         fstatat: Remove unused dependency.
6186         * modules/fstatat (Depends-on): Remove fstat.
6187
6188 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6189
6190         GNUmakefile: behave when Makefile is missing.
6191         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6192
6193 2011-11-08  Bruno Haible  <bruno@clisp.org>
6194
6195         openat: Conditionalize dependencies.
6196         * lib/openat.c: Reduce the scope of some #includes.
6197         * modules/openat (Depends-on): Add conditions.
6198
6199 2011-11-07  Jim Meyering  <meyering@redhat.com>
6200
6201         maint.mk: extract GPG key ID without using a temporary file
6202         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6203         without using a temporary file.  Based on a suggestion from Werner Koch
6204         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6205
6206 2011-11-07  Eric Blake  <eblake@redhat.com>
6207
6208         grantpt: fix typo
6209         * lib/stdlib.in.h (grantpt): Check correct function.
6210
6211         maint.mk: silence new syntax check
6212         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6213
6214 2011-11-06  Bruno Haible  <bruno@clisp.org>
6215
6216         Doc about floating-point and math API.
6217         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6218         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6219
6220 2011-11-06  Bruno Haible  <bruno@clisp.org>
6221
6222         stdalign tests: Skip the test when compiled by Sun C.
6223         * tests/test-stdalign.c (main): Skip the test on Sun C.
6224
6225 2011-11-06  Bruno Haible  <bruno@clisp.org>
6226
6227         ansi-c++-opt: Complete the 2011-06-05 change.
6228         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6229         does not support namespaces, set the variable to "no", not to ":".
6230
6231 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6232
6233         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6234
6235 2011-11-06  Bruno Haible  <bruno@clisp.org>
6236
6237         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6238         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6239         (minus_zerol) [HP-UX]: New macro.
6240         (unary_minus) [HP-UX]: New function.
6241         (copysignl) [HP-UX]: Use unary_minus function.
6242
6243 2011-11-06  Bruno Haible  <bruno@clisp.org>
6244
6245         ldexp, ldexpf, ldexpl: Enhance tests.
6246         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6247         and tests/test-ldexpl.c.
6248         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6249         LDEXP, MIN_EXP, MAX_EXP): New macros.
6250         Include test-ldexp.h.
6251         (main): Just call test_function.
6252         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6253         infinity.h, nan.h.
6254         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6255         MAX_EXP): New macros.
6256         Include test-ldexp.h.
6257         (x, y): Remove variables.
6258         (main): Just call test_function.
6259         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6260         infinity.h, nan.h.
6261         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6262         MAX_EXP): New macros.
6263         Include test-ldexp.h.
6264         (x, y): Remove variables.
6265         (main): Just call test_function.
6266         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6267         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6268         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6269         (Depends-on): Add isnand-nolibm, signbit, float.
6270         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6271         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6272         (Depends-on): Add isnanf-nolibm, signbit, float.
6273
6274 2011-11-06  Bruno Haible  <bruno@clisp.org>
6275
6276         math tests: Cosmetics.
6277         * tests/test-math-c++.cc: Reorder declarations.
6278
6279 2011-11-05  Bruno Haible  <bruno@clisp.org>
6280
6281         fma*: Simplify test.
6282         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6283         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6284
6285         Tests for module 'fmal'.
6286         * modules/fmal-tests: New file.
6287         * tests/test-fmal1.c: New file.
6288         * tests/test-fmal2.c: New file.
6289
6290         New module 'fmal'.
6291         * lib/math.in.h (fmal): New declaration.
6292         * lib/fmal.c: New file.
6293         * m4/fmal.m4: New file.
6294         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6296         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6297         REPLACE_FMAL.
6298         * modules/fmal: New file.
6299         * doc/posix-functions/fmal.texi: Mention the new module and the various
6300         bugs.
6301
6302         Tests for module 'fmaf'.
6303         * modules/fmaf-tests: New file.
6304         * tests/test-fmaf1.c: New file.
6305         * tests/test-fmaf2.c: New file.
6306
6307         New module 'fmaf'.
6308         * lib/math.in.h (fmaf): New declaration.
6309         * lib/fmaf.c: New file.
6310         * m4/fmaf.m4: New file.
6311         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6312         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6313         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6314         REPLACE_FMAF.
6315         * modules/fmaf: New file.
6316         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6317         bugs.
6318
6319         Tests for module 'fma'.
6320         * modules/fma-tests: New file.
6321         * tests/test-fma1.c: New file.
6322         * tests/test-fma1.h: New file.
6323         * tests/test-fma2.c: New file.
6324         * tests/test-fma2.h: New file.
6325
6326         New module 'fma'.
6327         * lib/math.in.h (fma): New declaration.
6328         * lib/fma.c: New file.
6329         * m4/fma.m4: New file.
6330         * m4/fegetround.m4: New file.
6331         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6332         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6333         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6334         REPLACE_FMA.
6335         * modules/fma: New file.
6336         * doc/posix-functions/fma.texi: Mention the new module and the various
6337         bugs.
6338
6339         Extend gl_MATHFUNC.
6340         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6341         Support 'void' as argument type.
6342         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6343
6344 2011-11-05  Jim Meyering  <meyering@redhat.com>
6345
6346         maint.mk: also prohibit inclusion of dirent.h without use
6347         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6348
6349 2011-11-05  Bruno Haible  <bruno@clisp.org>
6350
6351         ldexpl tests: Avoid test failure on MSVC 9.
6352         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6353         value. Needed in order to enforce the conversion from a value greater
6354         than LDBL_MAX to Infinity.
6355
6356 2011-11-05  Bruno Haible  <bruno@clisp.org>
6357
6358         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6359         * modules/at-internal: New file, extracted from modules/openat.
6360         * modules/openat-h: New file.
6361         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6362         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6363         * modules/openat (Description): Add reference to POSIX function.
6364         (Files): Remove lib/openat.h, lib/openat-proc.c.
6365         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6366         intprops, unistd.
6367         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6368         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6369         gl_FCNTL_MODULE_INDICATOR.
6370         (Include): Remove unistd.h, openat.h.
6371         * modules/areadlinkat (Files): Add lib/at-func.c.
6372         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6373         openat-die, openat-h, save-cwd.
6374         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6375         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6376         openat-die, openat-h, save-cwd, unistd.
6377         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6378         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6379         openat-h, save-cwd. Remove fcntl-h, openat.
6380         * modules/fchmodat (Files): Remove lib/openat.h.
6381         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6382         openat, stdbool, unistd.
6383         * modules/fchownat (Files): Remove lib/openat.h.
6384         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6385         openat, stdbool, sys_stat.
6386         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6387         lib/openat-proc.c.
6388         (Depends-on): Add at-internal.
6389         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6390         * modules/fstatat (Files): Remove lib/openat.h.
6391         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6392         stdbool, unistd.
6393         * modules/fts (Depends-on): Add openat-h.
6394         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6395         openat.
6396         * modules/mkdirat (Files): Remove lib/openat.h.
6397         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6398         openat, stdbool, sys_stat.
6399         * modules/mkfifoat (Files): Add lib/at-func.c.
6400         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6401         openat-h, save-cwd. Remove fcntl-h, openat.
6402         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6403         * modules/readlinkat (Files): Add lib/at-func.c.
6404         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6405         openat-h, save-cwd. Remove fcntl-h, openat.
6406         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6407         openat.
6408         * modules/selinux-at (Files): Add lib/at-func.c.
6409         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6410         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6411         * modules/symlinkat (Files): Add lib/at-func.c.
6412         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6413         openat-h, save-cwd. Remove fcntl-h, openat.
6414         * modules/unlinkat (Files): Remove lib/openat.h.
6415         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6416         stdbool.
6417         * modules/utimensat (Files): Add lib/at-func.c.
6418         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6419         openat-die, openat-h, save-cwd.
6420         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6421         * modules/fdutimensat-tests (Depends-on): Add openat.
6422         * modules/fstatat-tests (Depends-on): Add openat-h.
6423         * modules/readlinkat-tests (Depends-on): Add openat.
6424         * modules/symlinkat-tests (Depends-on): Add openat.
6425
6426 2011-11-05  Bruno Haible  <bruno@clisp.org>
6427
6428         openat: Include <stdbool.h>.
6429         * lib/openat.c: Include <stdbool.h>.
6430
6431 2011-11-04  Bruno Haible  <bruno@clisp.org>
6432
6433         fchownat, renameat, unlinkat: Fix dependencies.
6434         * modules/fchownat (Depends-on): Add fstatat.
6435         * modules/renameat (Depends-on): Likewise.
6436         * modules/unlinkat (Depends-on): Likewise.
6437
6438 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6439
6440         openat: remove direct dependency on dirent
6441         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6442         and hasn't been needed ever since fdopendir was split into its own
6443         module on 2009-08-31.
6444         * modules/openat (Depends-on): Remove dirent.
6445
6446 2011-11-04  Bruno Haible  <bruno@clisp.org>
6447
6448         renameat: Optimize code size.
6449         * modules/renameat (configure.ac): Don't compile at-func2.c if
6450         REPLACE_RENAMEAT is 1.
6451
6452 2011-11-04  Bruno Haible  <bruno@clisp.org>
6453
6454         openat tests: Fix file list.
6455         * modules/openat-tests (Files): Add tests/test-open.h.
6456
6457 2011-11-04  Bruno Haible  <bruno@clisp.org>
6458
6459         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6460         * modules/fchmodat (Depends-on): Add openat-die.
6461         * modules/fchownat (Depends-on): Likewise.
6462         * modules/linkat (Depends-on): Likewise.
6463         * modules/renameat (Depends-on): Likewise.
6464         * modules/openat (Depends-on): Add dirent.
6465
6466 2011-11-04  Jim Meyering  <meyering@redhat.com>
6467
6468         at-func*.c: fix comments
6469         * lib/at-func2.c: Correct/improve first-line comment.
6470         * lib/at-func.c: Correct grammar in first-line comment.
6471
6472 2011-11-04  Bruno Haible  <bruno@clisp.org>
6473
6474         New module 'mkdirat', split off from module 'openat'.
6475         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6476         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6477         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6478         * modules/mkdirat: New file, extracted from modules/openat.
6479         * modules/openat (Files): Remove lib/mkdirat.c.
6480         (Depends-on): Remove mkdir.
6481         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6482         (Include): Remove <sys/stat.h>.
6483         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6484         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6485         tests/test-mkdir.h.
6486         (Depends-on): Remove ignore-value.
6487         (Makefile.am): Remove rules for test-mkdirat.
6488         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6489         of module 'openat'.
6490         * NEWS: Mention the change.
6491
6492 2011-11-04  Bruno Haible  <bruno@clisp.org>
6493
6494         closedir: Avoid warning on mingw.
6495         * lib/closedir.c: Include <unistd.h>.
6496
6497 2011-11-04  Bruno Haible  <bruno@clisp.org>
6498
6499         New module 'fstatat', split off from module 'openat'.
6500         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6501         defined.
6502         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6503         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6504         gl_FUNC_FSTATAT.
6505         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6506         * modules/fstatat: New file, extracted from modules/openat.
6507         * modules/openat (Files): Remove lib/fstatat.c.
6508         (Depends-on): Remove lstat.
6509         (configure.ac): Remove AC_LIBOBJ of fstatat.
6510         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6511         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6512         tests/test-lstat.h, tests/test-stat.h.
6513         (Depends-on): Remove getcwd-lgpl.
6514         (Makefile.am): Remove rules for test-fstatat.
6515         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6516         of module 'openat'.
6517         * NEWS: Mention the change.
6518         * modules/getcwd (Depends-on): Add fstatat.
6519         * modules/linkat (Depends-on): Likewise.
6520         * modules/mkfifoat-tests (Depends-on): Likewise.
6521         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6522
6523 2011-11-03  Bruno Haible  <bruno@clisp.org>
6524
6525         New module 'unlinkat', split off from module 'openat'.
6526         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6527         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6528         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6529         * modules/unlinkat: New file, extracted from modules/openat. Correct
6530         the dependency conditions.
6531         * modules/openat (Files): Remove lib/unlinkat.c.
6532         (Depends-on): Remove rmdir, unlink.
6533         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6534         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6535         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6536         tests/test-rmdir.h, tests/test-unlink.h.
6537         (Depends-on): Remove unlinkdir.
6538         (Makefile.am): Remove rules for test-unlinkat.
6539         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6540         of module 'openat'.
6541         * NEWS: Mention the change.
6542         * modules/linkat-tests (Depends-on): Add unlinkat.
6543         * modules/mkfifoat-tests (Depends-on): Likewise.
6544         * modules/readlinkat-tests (Depends-on): Likewise.
6545
6546 2011-11-02  Bruno Haible  <bruno@clisp.org>
6547
6548         New module 'fchmodat', split off from module 'openat'.
6549         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6550         defined.
6551         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6552         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6553         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6554         * modules/fchmodat: New file, extracted from modules/openat.
6555         * modules/openat (Files): Remove lib/fchmodat.c.
6556         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6557         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6558         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6559         (Makefile.am): Remove rules for test-fchmodat.
6560         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6561         of module 'openat'.
6562         * NEWS: Mention the change.
6563
6564 2011-11-02  Jim Meyering  <meyering@redhat.com>
6565
6566         putenv: indent #definition of "environ" to placate cppi
6567         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6568
6569         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6570         Git logs are often treated as immutable, because editing them
6571         changes the SHA1 checksums of all descendants.  Thus, errors in
6572         git logs tend to stay there forever.  However, when we generate
6573         a ChangeLog file -- typically for distribution -- from that git log,
6574         we can actually make corrections in the generated file.  The key
6575         lies in recording in machine-readable/applicable form the desired
6576         corrections.  See --help for description and an example.
6577         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6578         (usage): Describe it; alphabetize option descriptions.
6579         (main): Honor the new option, carefully.
6580
6581 2011-11-01  Jim Meyering  <meyering@redhat.com>
6582
6583         gitlog-to-changelog: avoid an infloop
6584         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6585         that ends up being empty.
6586
6587 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6588
6589         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6590         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6591         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6592         contains (possibly-quoted) backslashes.  This should avoid
6593         all-too-common shell bugs if COMPLICATED contains backslashes in
6594         the "wrong" places.  Reported by David Evans in
6595         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6596         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6597         because we want ASCII ranges.  Is there some reason we don't use
6598         the C locale everywhere in this script?
6599         (func_module, top level): Avoid unwanted pathname expansion when
6600         $repo_url_prefix or $repo_url_suffix_repl contain shell
6601         metacharacters like '?' and '*'.
6602
6603 2011-11-01  Bruno Haible  <bruno@clisp.org>
6604
6605         fchownat: Improve description.
6606         * modules/fchownat (Description): Add link to function.
6607
6608 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6609
6610         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6611         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6613         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6614
6615 2011-11-01  Bruno Haible  <bruno@clisp.org>
6616
6617         alignof: Avoid collision with stdalign module.
6618         * lib/alignof.h (alignof): Remove macro.
6619         * NEWS: Mention the change.
6620         Reported by Paul Eggert.
6621
6622 2011-11-01  Bruno Haible  <bruno@clisp.org>
6623
6624         New module 'fchownat', split off from module 'openat'.
6625         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6626         defined.
6627         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6628         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6629         invoke gl_FUNC_FCHOWNAT.
6630         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6631         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6632         * modules/fchownat: New file, extracted from modules/openat.
6633         * modules/openat (Files): Remove lib/fchownat.c.
6634         (Depends-on): Remove lchown.
6635         (configure.ac): Remove AC_LIBOBJ of fchownat.
6636         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6637         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6638         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6639         (Depends-on): Remove mgetgroups, usleep, stat-time.
6640         (configure.ac): Remove test for getegid.
6641         (Makefile.am): Remove rules for test-fchownat.
6642         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6643         of module 'openat'.
6644         * NEWS: Mention the change.
6645
6646 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6647
6648         stdalign: port better to MSVC and to Sun C 5.11
6649         This fixes some of the problems reported by Bruno Haible in
6650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6651         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6652         shortcomings of MSVC and of Sun C 5.11.
6653         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6654         around __declspec arg.
6655         * modules/stdalign-tests (Files): Add tests/macros.h.
6656         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6657         Include macros.h, for ASSERT.
6658         (DECLARE_ALIGNED): Remove.
6659         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6660         to catch bug), and to 1 if not (simplifies the rest of the code).
6661         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6662         (CHECK_AUTO): Remove.
6663         (CHECK_ALIGNED): Check only the alignment of the static vars,
6664         since auto var alignment isn't supported by Sun C 5.11.
6665         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6666         ASSERT failures are easier to diagnose.
6667
6668 2011-10-31  Bruno Haible  <bruno@clisp.org>
6669
6670         doc about some IRIX 5.3 problems.
6671         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6672         on IRIX 5.3.
6673         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6674         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6675         5.3.
6676         * doc/posix-functions/grantpt.texi: Likewise.
6677         * doc/posix-functions/unlockpt.texi: Likewise.
6678         * doc/posix-functions/lgamma.texi: Likewise.
6679         * doc/posix-functions/nextafter.texi: Likewise.
6680         * doc/posix-functions/remainder.texi: Likewise.
6681         * doc/posix-functions/select.texi: Mention misplaced declaration on
6682         IRIX 5.3.
6683         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6684
6685 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6686
6687         gitlog-to-changelog: fix git-log invocation.
6688         git-log mishandles date strings before 1970-01-01 UTC, and there is
6689         no use to specify --since=1970-01-01 by default anyway.
6690         * build-aux/gitlog-to-changelog: By default, when no --since option
6691         was given, do not specify explicit --since option to git-log.
6692
6693 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6694
6695         gitlog-to-changelog: new option --append-dot.
6696         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6697         first non-blank line of each commit message terminated with a dot.
6698
6699 2011-10-30  Bruno Haible  <bruno@clisp.org>
6700
6701         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6702         * lib/ffsl.h: Include <config.h>.
6703         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6704
6705 2011-10-30  Jim Meyering  <meyering@redhat.com>
6706
6707         GNUmakefile: reenable "make syntax-check" for most projects
6708         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6709         build-aux variable", "syntax-check" would do nothing but succeed with
6710         the "No version control files detected..." diagnostic (unless you
6711         happened to override _build-aux via cfg.mk).
6712         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6713         to precede inclusion of maint.mk.  Otherwise, these variables would
6714         be used undefined in any project that does not override the default.
6715
6716 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6717
6718         gitlog-to-changelog: treat a message with only blank lines as empty.
6719         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6720         trailing blank lines before the code that issues a warning about an
6721         empty commit message.
6722
6723 2011-10-30  Jim Meyering  <meyering@redhat.com>
6724
6725         test-parse-datetime.c: avoid new DST-related false positive test failure
6726         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6727         based on the time/date we'll convert, not the current time.
6728         Otherwise, the moment we cross a DST boundary like today's in
6729         Europe, (CEST to CET), that offset ends up being one hour off.
6730
6731 2011-10-27  Bruno Haible  <bruno@clisp.org>
6732
6733         fstat: Tweak documentation.
6734         * modules/fstat (Description): More precise description.
6735
6736 2011-10-27  Bruno Haible  <bruno@clisp.org>
6737
6738         Update documentation regarding 'largefile' module.
6739         * doc/posix-functions/fstat.texi: Tweak wording.
6740         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6741         problems with huge directories and/or small ino_t types.
6742         * doc/posix-functions/readdir.texi: Likewise.
6743         * doc/posix-functions/rewinddir.texi: Likewise.
6744
6745 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6746
6747         maint.mk: don't maintain a second build-aux variable.
6748         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6749         depends on GNUmakefile, which already maintains a cfg.mk
6750         overridable $(_build-aux) for projects with a non-standard
6751         build-aux directory location, although without the $(srcdir)
6752         prefix.  Use that variable consistently instead of introducing a
6753         second one.  Adjust all call sites.
6754
6755 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6756
6757         Add stdalign module and use it in other modules.
6758         This is based on a previous proposal by Bruno Haible
6759         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6760
6761         stdalign: new module
6762         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6763         * modules/stdalign: New files.
6764         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6765         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6766
6767         stdalign-tests: new module
6768         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6769
6770         argp: use stdalign
6771         * lib/argp-parse.c: Include <stdalign.h>.
6772         (alignof): Remove.
6773         * modules/argp (Depends-on): Add stdalign.
6774
6775         crypto libraries: use stdalign
6776         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6777         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6778         Do not include <stdlib.h> twice, in md4.c.
6779         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6780         because we are accessing a pointer's bit-pattern, not a size.
6781         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6782         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6783         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6784         * modules/crypto/sha512: Likewise.
6785
6786         sys_socket: use stdalign, not alignof
6787         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6788         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6789
6790 2011-10-27  Bruno Haible  <bruno@clisp.org>
6791
6792         raise test: Avoid a test failure on Linux/MIPS.
6793         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6794         because 99 is a valid signal on Linux/MIPS.
6795
6796 2011-10-27  Bruno Haible  <bruno@clisp.org>
6797
6798         nonblocking tests: Fix test failure on Linux/MIPS.
6799         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6800         Set to 270000.
6801
6802 2011-10-27  Bruno Haible  <bruno@clisp.org>
6803
6804         utimensat: Work around problem on Linux/hppa.
6805         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6806         values.
6807         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6808
6809 2011-10-25  Jim Meyering  <meyering@redhat.com>
6810
6811         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6812         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6813         after symbols like NULL, size_t, etc.
6814         Reported by Alfred M. Szmidt.
6815
6816         maint.mk: exempt ENODATA from a syntax-check rule
6817         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6818         from the sc_prohibit_always-defined_macros syntax-check rule.
6819         Add a comment.  See this for more details:
6820         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6821
6822 2011-10-23  Jim Meyering  <meyering@redhat.com>
6823
6824         fts: close parent dir FD before returning from post-traversal fts_read
6825         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6826         unlink A, even though an FD open on A remained.  This is suboptimal
6827         (holding a file descriptor open longer than needed), but otherwise not
6828         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6829         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6830         that represents a real problem: it causes the removal of A to fail
6831         with e.g., "rm: cannot remove `A': Device or resource busy"
6832
6833         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6834         directory file descriptors.  After completing the final, FTS_DP,
6835         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6836         cache, but then proceeded to add a new FD to it via the subsequent
6837         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6838         final file descriptor would be closed only via fts_close's call to
6839         fd_ring_clear.  Now, it is usually closed earlier, via the final
6840         FTS_DP-returning fts_read call.
6841         * lib/fts.c (restore_initial_cwd): New function, converted from
6842         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6843         Update callers.
6844         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6845         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6846
6847 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6848             Bruno Haible  <bruno@clisp.org>
6849             Jim Meyering  <jim@meyering.net>
6850
6851         readme-release: improve safety of release prep instructions.
6852         * README-release: Don't git pull all branches when only master
6853         is needed for the release process.
6854         Run make maintainer-clean before changing trees and merging.
6855         Don't try to run ./configure right after git pull in case files
6856         that influence the bootstrap process have changed, move the
6857         ./configure step to after running ./bootstrap.
6858         Don't bootstrap "one last time"... it's the first time!
6859
6860 2011-10-22  Bruno Haible  <bruno@clisp.org>
6861
6862         errno, strerror-override: Support for MSVC 10.
6863         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6864         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6865         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6866         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6867         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6868         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6869         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6870         Assign values compatible with MSVC 10.
6871         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6872         New macros.
6873         (GNULIB_defined_EWINSOCK): New macro.
6874         * lib/strerror-override.c (strerror_override): Update accordingly.
6875         * lib/strerror-override.h: Likewise.
6876         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6877         longer equal to the corresponding errno value.
6878         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6879
6880 2011-10-22  Bruno Haible  <bruno@clisp.org>
6881
6882         perror: Recognize when test program crashes.
6883         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6884         strerror, set gl_cv_func_perror_works to no.
6885         Reported by Daniel Richard G. <skunk@iskunk.org>.
6886
6887         perror: Fix indentation.
6888         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6889
6890 2011-10-22  Bruno Haible  <bruno@clisp.org>
6891
6892         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6893         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6894         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6895         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6896         functions, not as a macro.
6897         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6898         macros.
6899         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6900         absence of macro.
6901         Suggested by Eric Blake.
6902         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6903
6904 2011-10-21  Bruno Haible  <bruno@clisp.org>
6905
6906         relocatable-prog-wrapper: Don't leave object files behind.
6907         * build-aux/install-reloc: Re-synchronize list of .o files to be
6908         removed with list of compilation units.
6909
6910 2011-10-20  Bruno Haible  <bruno@clisp.org>
6911
6912         openpty, posix_openpt: Remove code duplication.
6913         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6914         * lib/openpty.c: Include <stdlib.h>.
6915         (openpty): Use posix_openpt on all platforms except IRIX.
6916         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6917
6918 2011-10-20  Bruno Haible  <bruno@clisp.org>
6919
6920         unlockpt: Detect invalid argument.
6921         * lib/unlockpt.c: Include <fcntl.h>.
6922         (unlockpt): Check whether fd is valid, using fcntl().
6923         * modules/unlockpt (Depends-on): Add fcntl-h.
6924
6925 2011-10-20  Bruno Haible  <bruno@clisp.org>
6926
6927         openpty: Avoid compilation error on AIX 6.1.
6928         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6929
6930 2011-10-20  Bruno Haible  <bruno@clisp.org>
6931
6932         posix_openpt: Support for OpenBSD.
6933         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6934         (posix_openpt) [OpenBSD]: New code.
6935         * lib/grantpt.c: Include <fcntl.h>.
6936         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6937         * modules/grantpt (Depends-on): Add fcntl-h.
6938
6939 2011-10-20  Bruno Haible  <bruno@clisp.org>
6940
6941         posix_openpt test: Coding style.
6942         * tests/test-posix_openpt.c: Use GNU coding style.
6943
6944 2011-10-20  Bruno Haible  <bruno@clisp.org>
6945
6946         grantpt: Support --avoid=pt_chown.
6947         * modules/grantpt (Files): Add lib/pty-private.h.
6948
6949 2011-10-20  Bruno Haible  <bruno@clisp.org>
6950
6951         posix_openpt: Fix autoconf macro.
6952         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6953         unneeded check for _getpty.
6954
6955 2011-10-20  Bruno Haible  <bruno@clisp.org>
6956
6957         openpty: Update comments.
6958         * lib/openpty.c: Add comments about Minix.
6959
6960 2011-10-19  Eric Blake  <eblake@redhat.com>
6961
6962         openpty: relax license
6963         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6964
6965         pt_chown: use configmake to simplify build
6966         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6967
6968         ptsname and others: relax license
6969         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6970         * modules/unlockpt (License): Likewise.
6971         * modules/pt_chown (License): Likewise.
6972         * modules/ptsname (License): Likewise.
6973         * modules/ttyname_r (License): Likewise.
6974
6975 2011-10-19  Jim Meyering  <meyering@redhat.com>
6976
6977         posix_openpt: remove spurious #endif
6978         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6979
6980 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6981
6982         maint.mk: Respect $(build_aux) in web-manual rule.
6983         * top/maint.mk (web-manual): Find gen-announce script in user's
6984         $(build_aux) directory instead of hard-coding 'build-aux'.
6985
6986 2011-10-19  Bruno Haible  <bruno@clisp.org>
6987
6988         posix_openpt: Fix compilation error.
6989         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6990         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6991         Mention the openpty module as an alternative.
6992
6993 2011-10-19  Bruno Haible  <bruno@clisp.org>
6994
6995         Support for old NeXTstep 3.3 frexp().
6996         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6997         execution time of the test to 5 seconds.
6998         Reported by Daniel Richard G. <skunk@iskunk.org>.
6999
7000 2011-10-19  Bruno Haible  <bruno@clisp.org>
7001
7002         Support for old NeXTstep 3.3 sed.
7003         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7004         part, use /.../, not \|...|. Escape periods in the header file name.
7005         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7006         Reported by Daniel Richard G. <skunk@iskunk.org>.
7007
7008 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7009
7010         Support for old NeXTstep 3.3 gcc.
7011         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7012         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7013         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7014         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7015         * lib/regex.h (_Restrict_arr_): Likewise.
7016         * lib/regex_internal.h (re_token_t): Likewise.
7017         * lib/regexec.c (check_node_accept_bytes): Likewise.
7018         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7019
7020 2011-10-18  Eric Blake  <eblake@redhat.com>
7021
7022         posix_openpt: new module
7023         * modules/posix_openpt: New module.
7024         * m4/posix_openpt.m4: New file.
7025         * lib/posix_openpt.c: Likewise.
7026         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7027         (gl_STDLIB_H_DEFAULTS): Set defaults.
7028         * modules/stdlib (Makefile.am): Substitute macros.
7029         * lib/stdlib.in.h (posix_openpt): Declare.
7030         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7031         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7032         * modules/posix_openpt-tests: New test module.
7033         * tests/test-posix_openpt.c: New test.
7034
7035 2011-10-15  Bruno Haible  <bruno@clisp.org>
7036
7037         xstrtoll: Fix compilation failure.
7038         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7039         from lib/strtol.c.
7040         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7041         some platforms.
7042         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7043
7044 2011-10-15  Bruno Haible  <bruno@clisp.org>
7045
7046         vasnprintf: Optimize bit search operation.
7047         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7048         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7049         gl_DOUBLE_EXPONENT_LOCATION.
7050         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7051         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7052         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7053         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7054         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7055         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7056         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7057         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7058         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7059
7060 2011-10-15  Bruno Haible  <bruno@clisp.org>
7061
7062         vasnprintf: Fix comments.
7063         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7064
7065 2011-10-14  Bruno Haible  <bruno@clisp.org>
7066
7067         Tests for module 'integer_length_ll'.
7068         * modules/integer_length_ll-tests: New file.
7069         * tests/test-integer_length_ll.c: New file.
7070
7071         New module 'integer_length_ll'.
7072         * lib/integer_length_ll.c: New file.
7073         * modules/integer_length_ll: New file.
7074
7075 2011-10-14  Bruno Haible  <bruno@clisp.org>
7076
7077         Tests for module 'integer_length_l'.
7078         * modules/integer_length_l-tests: New file.
7079         * tests/test-integer_length_l.c: New file.
7080
7081         New module 'integer_length_l'.
7082         * lib/integer_length_l.c: New file.
7083         * modules/integer_length_l: New file.
7084
7085 2011-10-14  Bruno Haible  <bruno@clisp.org>
7086
7087         Tests for module 'integer_length'.
7088         * modules/integer_length-tests: New file.
7089         * tests/test-integer_length.c: New file.
7090
7091         New module 'integer_length'.
7092         * lib/integer_length.h: New file.
7093         * lib/integer_length.c: New file.
7094         * modules/integer_length: New file.
7095
7096 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7097
7098         popen: Fix dependency conditions.
7099         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7100
7101 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7102
7103         perror: Fix autoconf test.
7104         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7105         <stdlib.h> and <string.h>.
7106
7107 2011-10-14  Bruno Haible  <bruno@clisp.org>
7108
7109         ffsl: Optimize on 64-bit platforms.
7110         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7111         unrolling.
7112
7113 2011-10-13  Bruno Haible  <bruno@clisp.org>
7114
7115         ffsl: Optimize on 32-bit platforms.
7116         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7117         use ffs() without a loop.
7118
7119         ffsl, ffsll: Optimize for GCC.
7120         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7121         * lib/ffsl.c (GCC_BUILTIN): New macro.
7122         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7123
7124 2011-10-13  Bruno Haible  <bruno@clisp.org>
7125
7126         ffs, bcopy, memset: Support symbol renaming via config.h.
7127         * lib/ffs.c: Include <config.h>.
7128         * lib/bcopy.c: Likewise.
7129         * lib/memset.c: Likewise.
7130
7131 2011-10-10  Bruno Haible  <bruno@clisp.org>
7132
7133         atanl: Simplify for platforms where 'long double' == 'double'.
7134         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7135         alternative implementation.
7136         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7137         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7138         * modules/atanl (Depends-on): Add atan. Update conditions.
7139
7140 2011-10-10  Bruno Haible  <bruno@clisp.org>
7141
7142         acosl: Simplify for platforms where 'long double' == 'double'.
7143         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7144         alternative implementation.
7145         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7146         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7147         * modules/acosl (Depends-on): Add acos. Update conditions.
7148
7149 2011-10-10  Bruno Haible  <bruno@clisp.org>
7150
7151         asinl: Simplify for platforms where 'long double' == 'double'.
7152         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7153         alternative implementation.
7154         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7155         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7156         * modules/asinl (Depends-on): Add asin. Update conditions.
7157
7158 2011-10-10  Bruno Haible  <bruno@clisp.org>
7159
7160         tanl: Simplify for platforms where 'long double' == 'double'.
7161         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7162         implementation.
7163         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7164         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7165         * modules/tanl (Depends-on): Add tan. Update conditions.
7166         (configure.ac): Don't compile trigl.c if
7167         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7168
7169 2011-10-10  Bruno Haible  <bruno@clisp.org>
7170
7171         cosl: Simplify for platforms where 'long double' == 'double'.
7172         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7173         implementation.
7174         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7175         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7176         * modules/cosl (Depends-on): Add cos. Update conditions.
7177         (configure.ac): Don't compile sincosl.c and trigl.c if
7178         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7179
7180 2011-10-10  Bruno Haible  <bruno@clisp.org>
7181
7182         sinl: Simplify for platforms where 'long double' == 'double'.
7183         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7184         implementation.
7185         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7186         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7187         * modules/sinl (Depends-on): Add sin. Update conditions.
7188         (configure.ac): Don't compile sincosl.c and trigl.c if
7189         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7190
7191 2011-10-10  Bruno Haible  <bruno@clisp.org>
7192
7193         logl: Simplify for platforms where 'long double' == 'double'.
7194         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7195         implementation.
7196         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7197         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7198         * modules/logl (Depends-on): Add log. Update conditions.
7199
7200 2011-10-10  Bruno Haible  <bruno@clisp.org>
7201
7202         expl: Simplify for platforms where 'long double' == 'double'.
7203         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7204         implementation.
7205         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7206         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7207         * modules/expl (Depends-on): Add exp. Update conditions.
7208
7209 2011-10-10  Bruno Haible  <bruno@clisp.org>
7210
7211         sqrtl: Simplify for platforms where 'long double' == 'double'.
7212         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7213         alternative implementation.
7214         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7215         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7216         * modules/sqrtl (Depends-on): Update conditions.
7217
7218 2011-10-10  Bruno Haible  <bruno@clisp.org>
7219
7220         ldexpl: Simplify for platforms where 'long double' == 'double'.
7221         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7222         alternative implementation.
7223         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7224         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7225         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7226
7227 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7228
7229         ffsll: set correct witness
7230         * modules/ffsll (configure.ac): Fix typo.
7231
7232 2011-10-10  Bruno Haible  <bruno@clisp.org>
7233
7234         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7235         * lib/printf-frexpl.c: Include <config.h>.
7236         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7237         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7238         second time.
7239         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7240         gl_LONG_DOUBLE_VS_DOUBLE.
7241         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7242         conditions.
7243
7244 2011-10-10  Bruno Haible  <bruno@clisp.org>
7245
7246         frexpl: Simplify for platforms where 'long double' == 'double'.
7247         * lib/frexpl.c: Include <config.h>.
7248         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7249         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7250         time.
7251         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7252         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7253         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7254         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7255         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7256         conditions.
7257
7258 2011-10-10  Jim Meyering  <meyering@redhat.com>
7259
7260         test-renameat: don't leave behind a temporary file
7261         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7262           ERROR: files left in build directory after distclean:
7263           ./gltests/test-renameat.too
7264           make[1]: *** [distcleancheck] Error 1
7265         Reported by Tom G. Christensen.
7266
7267 2011-10-09  Bruno Haible  <bruno@clisp.org>
7268
7269         rint: Determine RINT_LIBM correctly on AIX 7.
7270         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7271         directly, not only through a function pointer. Also accept an optional
7272         4th argument with extra code.
7273         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7274         rintf() call by gcc when optimizing.
7275
7276         mathfunc.m4: Refactor.
7277         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7278         m4 variable.
7279
7280 2011-10-09  Bruno Haible  <bruno@clisp.org>
7281
7282         rintl: Simplify for platforms where 'long double' == 'double'.
7283         * lib/rintl.c: Include <config.h>.
7284         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7285         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7286         time.
7287         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7288         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7289         * modules/rintl (Depends-on): Add rint. Update conditions.
7290
7291 2011-10-09  Bruno Haible  <bruno@clisp.org>
7292
7293         roundl: Simplify for platforms where 'long double' == 'double'.
7294         * lib/roundl.c: Include <config.h>.
7295         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7296         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7297         time.
7298         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7299         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7300         * modules/roundl (Depends-on): Add round. Update conditions.
7301
7302 2011-10-09  Bruno Haible  <bruno@clisp.org>
7303
7304         truncl: Simplify for platforms where 'long double' == 'double'.
7305         * lib/truncl.c: Include <config.h>.
7306         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7307         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7308         time.
7309         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7310         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7311         * modules/truncl (Depends-on): Add trunc. Update conditions.
7312
7313 2011-10-09  Bruno Haible  <bruno@clisp.org>
7314
7315         ceill: Simplify for platforms where 'long double' == 'double'.
7316         * lib/ceill.c: Include <config.h>.
7317         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7318         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7319         time.
7320         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7321         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7322         * modules/ceill (Depends-on): Add ceil. Update conditions.
7323
7324 2011-10-09  Bruno Haible  <bruno@clisp.org>
7325
7326         floorl: Simplify for platforms where 'long double' == 'double'.
7327         * lib/floorl.c: Include <config.h>.
7328         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7329         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7330         time.
7331         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7332         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7333         * modules/floorl (Depends-on): Add floor. Update conditions.
7334
7335 2011-10-09  Bruno Haible  <bruno@clisp.org>
7336
7337         rint: Fix ordering constraints.
7338         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7339         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7340         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7341
7342 2011-10-09  Bruno Haible  <bruno@clisp.org>
7343
7344         copysignl: Simplify for platforms where 'long double' == 'double'.
7345         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7346         alternative.
7347         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7348         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7349         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7350
7351 2011-10-09  Bruno Haible  <bruno@clisp.org>
7352
7353         Tests for module 'rintl'.
7354         * modules/rintl-tests: New file.
7355         * tests/test-rintl.c: New file.
7356
7357         New module 'rintl'.
7358         * lib/math.in.h (rintl): New declaration.
7359         * lib/rintl.c: New file.
7360         * m4/rintl.m4: New file.
7361         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7362         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7363         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7364         * modules/rintl: New file.
7365         * tests/test-math-c++.cc: Check the declaration of rintl.
7366         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7367         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7368         * doc/posix-functions/rintl.texi: Mention the new module.
7369
7370 2011-10-09  Bruno Haible  <bruno@clisp.org>
7371
7372         Tests for module 'rintf'.
7373         * modules/rintf-tests: New file.
7374         * tests/test-rintf.c: New file.
7375
7376         New module 'rintf'.
7377         * lib/math.in.h (rintf): New declaration.
7378         * lib/rintf.c: New file.
7379         * m4/rintf.m4: New file.
7380         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7381         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7382         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7383         * modules/rintf: New file.
7384         * tests/test-math-c++.cc: Check the declaration of rintf.
7385         * doc/posix-functions/rintf.texi: Mention the new module.
7386
7387 2011-10-09  Bruno Haible  <bruno@clisp.org>
7388
7389         rint: Support for MSVC.
7390         * lib/math.in.h (rint): New declaration.
7391         * lib/rint.c: New file.
7392         * m4/rint.m4: New file.
7393         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7394         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7395         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7396         * modules/rint (Description): Fix.
7397         (Files): Add lib/rint.c, m4/rint.m4.
7398         (Depends-on): Add math.
7399         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7400         gl_MATH_MODULE_INDICATOR.
7401         * tests/test-math-c++.cc: Check the declaration of rint.
7402         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7403         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7404         * doc/posix-functions/rint.texi: Mention the replacement provided by
7405         the module.
7406
7407         rint tests: More tests.
7408         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7409         minus-zero.h, infinity.h, nan.h.
7410         (main): Skip the test if the current rounding mode is not standard. Add
7411         tests for negative numbers, minus zero, infinity, NaN.
7412         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7413         tests/nan.h.
7414         (Depends-on): Add isnand-nolibm.
7415
7416 2011-10-09  Bruno Haible  <bruno@clisp.org>
7417
7418         Tests for module 'copysignl'.
7419         * modules/copysignl-tests: New file.
7420         * tests/test-copysignl.c: New file.
7421
7422         New module 'copysignl'.
7423         * lib/math.in.h (copysignl): New declaration.
7424         * lib/copysignl.c: New file.
7425         * m4/copysignl.m4: New file.
7426         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7427         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7428         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7429         HAVE_COPYSIGNL.
7430         * modules/copysignl: New file.
7431         * tests/test-math-c++.cc: Check the declaration of copysignl.
7432         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7433         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7434         * doc/posix-functions/copysignl.texi: Mention the new module.
7435
7436 2011-10-09  Bruno Haible  <bruno@clisp.org>
7437
7438         Tests for module 'copysignf'.
7439         * modules/copysignf-tests: New file.
7440         * tests/test-copysignf.c: New file.
7441
7442         New module 'copysignf'.
7443         * lib/math.in.h (copysignf): New declaration.
7444         * lib/copysignf.c: New file.
7445         * m4/copysignf.m4: New file.
7446         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7447         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7448         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7449         HAVE_COPYSIGNF.
7450         * modules/copysignf: New file.
7451         * tests/test-math-c++.cc: Check the declaration of copysignf.
7452         * doc/posix-functions/copysignf.texi: Mention the new module.
7453
7454 2011-10-09  Bruno Haible  <bruno@clisp.org>
7455
7456         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7457         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7458         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7459         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7460         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7461         gl_SIGNAL_H_DEFAULTS.
7462
7463 2011-10-09  Bruno Haible  <bruno@clisp.org>
7464
7465         poll: Make macro safer.
7466         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7467         ac_cv_header_poll_h is not set.
7468
7469 2011-10-09  Bruno Haible  <bruno@clisp.org>
7470
7471         copysign: Provide replacement.
7472         * lib/math.in.h (copysign): New declaration.
7473         * lib/copysign.c: New file.
7474         * m4/copysign.m4: New file.
7475         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7476         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7477         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7478         HAVE_COPYSIGN.
7479         * modules/copysign (Description): Clarify.
7480         (Files): Add lib/copysign.c, m4/copysign.m4.
7481         (Depends-on): Add math, signbit.
7482         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7483         gl_MATH_MODULE_INDICATOR.
7484         * tests/test-math-c++.cc: Check the declaration of copysign.
7485         * doc/posix-functions/copysign.texi: Mention the effects of the module
7486         on Minix and MSVC.
7487
7488 2011-10-09  Bruno Haible  <bruno@clisp.org>
7489
7490         isinf: Ensure macro on AIX 5.1.
7491         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7492         macro.
7493         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7494
7495 2011-10-09  Bruno Haible  <bruno@clisp.org>
7496
7497         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7498         * modules/snprintf-posix-tests (configure.ac): Require
7499         gl_LONG_DOUBLE_VS_DOUBLE.
7500         * modules/sprintf-posix-tests (configure.ac): Likewise.
7501         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7502         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7503         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7504         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7505         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7506         tests on platforms where 'long double' is the same as 'double'.
7507         * tests/test-sprintf-posix.h (test_function): Likewise.
7508         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7509         * tests/test-vasprintf-posix.c (test_function): Likewise.
7510
7511         *printf: Fix for platforms where 'long double' == 'double'.
7512         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7513         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7514         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7515         * modules/fprintf-posix (Files): Likewise.
7516         * modules/obstack-printf-posix (Files): Likewise.
7517         * modules/snprintf-posix (Files): Likewise.
7518         * modules/sprintf-posix (Files): Likewise.
7519         * modules/vasnprintf (Files): Likewise.
7520         * modules/vasnprintf-posix (Files): Likewise.
7521         * modules/vasprintf-posix (Files): Likewise.
7522         * modules/vdprintf-posix (Files): Likewise.
7523         * modules/vfprintf-posix (Files): Likewise.
7524         * modules/vsnprintf-posix (Files): Likewise.
7525         * modules/vsprintf-posix (Files): Likewise.
7526         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7527         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7528         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7529         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7530         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7531         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7532         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7533
7534         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7535         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7536         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7537         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7538         'long double'.
7539         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7540
7541         isinf: Fix for platforms where 'long double' == 'double'.
7542         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7543         Don't blindly assume 80-bit 'long double'.
7544
7545         isfinite: Fix for platforms where 'long double' == 'double'.
7546         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7547         Don't blindly assume 80-bit 'long double'.
7548
7549         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7550         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7551         * modules/isfinite-tests (configure.ac): Require
7552         gl_LONG_DOUBLE_VS_DOUBLE.
7553         * modules/isinf-tests (configure.ac): Likewise.
7554         * modules/isnan-tests (configure.ac): Likewise.
7555         * modules/isnanl-tests (configure.ac): Likewise.
7556         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7557         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7558         tests on platforms where 'long double' is the same as 'double'.
7559         * tests/test-isinf.c (test_isinfl): Likewise.
7560         * tests/test-isnan.c (test_long_double): Likewise.
7561         * tests/test-isnanl.h (main): Likewise.
7562
7563 2011-10-08  Bruno Haible  <bruno@clisp.org>
7564
7565         Tests for module 'tanhf'.
7566         * modules/tanhf-tests: New file.
7567         * tests/test-tanhf.c: New file.
7568
7569         New module 'tanhf'.
7570         * lib/math.in.h (tanhf): New declaration.
7571         * lib/tanhf.c: New file.
7572         * m4/tanhf.m4: New file.
7573         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7575         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7576         * modules/tanhf: New file.
7577         * tests/test-math-c++.cc: Check the declaration of tanhf.
7578         * doc/posix-functions/tanhf.texi: Mention the new module.
7579
7580         tanh: Use a .m4 file.
7581         * m4/tanh.m4: New file.
7582         * modules/tanh (Files): Add it.
7583         (configure.ac): Just invoke gl_FUNC_TANH.
7584
7585 2011-10-08  Bruno Haible  <bruno@clisp.org>
7586
7587         Tests for module 'coshf'.
7588         * modules/coshf-tests: New file.
7589         * tests/test-coshf.c: New file.
7590
7591         New module 'coshf'.
7592         * lib/math.in.h (coshf): New declaration.
7593         * lib/coshf.c: New file.
7594         * m4/coshf.m4: New file.
7595         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7597         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7598         * modules/coshf: New file.
7599         * tests/test-math-c++.cc: Check the declaration of coshf.
7600         * doc/posix-functions/coshf.texi: Mention the new module.
7601
7602         cosh: Use a .m4 file.
7603         * m4/cosh.m4: New file.
7604         * modules/cosh (Files): Add it.
7605         (configure.ac): Just invoke gl_FUNC_COSH.
7606
7607 2011-10-08  Bruno Haible  <bruno@clisp.org>
7608
7609         Tests for module 'sinhf'.
7610         * modules/sinhf-tests: New file.
7611         * tests/test-sinhf.c: New file.
7612
7613         New module 'sinhf'.
7614         * lib/math.in.h (sinhf): New declaration.
7615         * lib/sinhf.c: New file.
7616         * m4/sinhf.m4: New file.
7617         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7619         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7620         * modules/sinhf: New file.
7621         * tests/test-math-c++.cc: Check the declaration of sinhf.
7622         * doc/posix-functions/sinhf.texi: Mention the new module.
7623
7624         sinh: Use a .m4 file.
7625         * m4/sinh.m4: New file.
7626         * modules/sinh (Files): Add it.
7627         (configure.ac): Just invoke gl_FUNC_SINH.
7628
7629 2011-10-08  Bruno Haible  <bruno@clisp.org>
7630
7631         Tests for module 'atan2f'.
7632         * modules/atan2f-tests: New file.
7633         * tests/test-atan2f.c: New file.
7634
7635         New module 'atan2f'.
7636         * lib/math.in.h (atan2f): New declaration.
7637         * lib/atan2f.c: New file.
7638         * m4/atan2f.m4: New file.
7639         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7641         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7642         * modules/atan2f: New file.
7643         * tests/test-math-c++.cc: Check the declaration of atan2f.
7644         * doc/posix-functions/atan2f.texi: Mention the new module.
7645
7646         atan2: Use a .m4 file.
7647         * m4/atan2.m4: New file.
7648         * modules/atan2 (Files): Add it.
7649         (configure.ac): Just invoke gl_FUNC_ATAN2.
7650
7651 2011-10-08  Bruno Haible  <bruno@clisp.org>
7652
7653         Tests for module 'atanf'.
7654         * modules/atanf-tests: New file.
7655         * tests/test-atanf.c: New file.
7656
7657         New module 'atanf'.
7658         * lib/math.in.h (atanf): New declaration.
7659         * lib/atanf.c: New file.
7660         * m4/atanf.m4: New file.
7661         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7663         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7664         * modules/atanf: New file.
7665         * tests/test-math-c++.cc: Check the declaration of atanf.
7666         * doc/posix-functions/atanf.texi: Mention the new module.
7667
7668         atan: Use a .m4 file.
7669         * m4/atan.m4: New file.
7670         * modules/atan (Files): Add it.
7671         (configure.ac): Just invoke gl_FUNC_ATAN.
7672
7673 2011-10-08  Bruno Haible  <bruno@clisp.org>
7674
7675         Tests for module 'acosf'.
7676         * modules/acosf-tests: New file.
7677         * tests/test-acosf.c: New file.
7678
7679         New module 'acosf'.
7680         * lib/math.in.h (acosf): New declaration.
7681         * lib/acosf.c: New file.
7682         * m4/acosf.m4: New file.
7683         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7684         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7685         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7686         * modules/acosf: New file.
7687         * tests/test-math-c++.cc: Check the declaration of acosf.
7688         * doc/posix-functions/acosf.texi: Mention the new module.
7689
7690         acos: Use a .m4 file.
7691         * m4/acos.m4: New file.
7692         * modules/acos (Files): Add it.
7693         (configure.ac): Just invoke gl_FUNC_ACOS.
7694
7695 2011-10-08  Bruno Haible  <bruno@clisp.org>
7696
7697         Tests for module 'asinf'.
7698         * modules/asinf-tests: New file.
7699         * tests/test-asinf.c: New file.
7700
7701         New module 'asinf'.
7702         * lib/math.in.h (asinf): New declaration.
7703         * lib/asinf.c: New file.
7704         * m4/asinf.m4: New file.
7705         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7707         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7708         * modules/asinf: New file.
7709         * tests/test-math-c++.cc: Check the declaration of asinf.
7710         * doc/posix-functions/asinf.texi: Mention the new module.
7711
7712         asin: Use a .m4 file.
7713         * m4/asin.m4: New file.
7714         * modules/asin (Files): Add it.
7715         (configure.ac): Just invoke gl_FUNC_ASIN.
7716
7717 2011-10-08  Bruno Haible  <bruno@clisp.org>
7718
7719         Tests for module 'tanf'.
7720         * modules/tanf-tests: New file.
7721         * tests/test-tanf.c: New file.
7722
7723         New module 'tanf'.
7724         * lib/math.in.h (tanf): New declaration.
7725         * lib/tanf.c: New file.
7726         * m4/tanf.m4: New file.
7727         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7729         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7730         * modules/tanf: New file.
7731         * tests/test-math-c++.cc: Check the declaration of tanf.
7732         * doc/posix-functions/tanf.texi: Mention the new module.
7733
7734         tan: Use a .m4 file.
7735         * m4/tan.m4: New file.
7736         * modules/tan (Files): Add it.
7737         (configure.ac): Just invoke gl_FUNC_TAN.
7738
7739 2011-10-08  Bruno Haible  <bruno@clisp.org>
7740
7741         Tests for module 'cosf'.
7742         * modules/cosf-tests: New file.
7743         * tests/test-cosf.c: New file.
7744
7745         New module 'cosf'.
7746         * lib/math.in.h (cosf): New declaration.
7747         * lib/cosf.c: New file.
7748         * m4/cosf.m4: New file.
7749         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7751         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7752         * modules/cosf: New file.
7753         * tests/test-math-c++.cc: Check the declaration of cosf.
7754         * doc/posix-functions/cosf.texi: Mention the new module.
7755
7756         cos: Use a .m4 file.
7757         * m4/cos.m4: New file.
7758         * modules/cos (Files): Add it.
7759         (configure.ac): Just invoke gl_FUNC_COS.
7760
7761 2011-10-08  Bruno Haible  <bruno@clisp.org>
7762
7763         Tests for module 'sinf'.
7764         * modules/sinf-tests: New file.
7765         * tests/test-sinf.c: New file.
7766
7767         New module 'sinf'.
7768         * lib/math.in.h (sinf): New declaration.
7769         * lib/sinf.c: New file.
7770         * m4/sinf.m4: New file.
7771         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7773         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7774         * modules/sinf: New file.
7775         * tests/test-math-c++.cc: Check the declaration of sinf.
7776         * doc/posix-functions/sinf.texi: Mention the new module.
7777
7778         sin: Use a .m4 file.
7779         * m4/sin.m4: New file.
7780         * modules/sin (Files): Add it.
7781         (configure.ac): Just invoke gl_FUNC_SIN.
7782
7783 2011-10-08  Bruno Haible  <bruno@clisp.org>
7784
7785         Tests for module 'powf'.
7786         * modules/powf-tests: New file.
7787         * tests/test-powf.c: New file.
7788
7789         New module 'powf'.
7790         * lib/math.in.h (powf): New declaration.
7791         * lib/powf.c: New file.
7792         * m4/powf.m4: New file.
7793         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7795         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7796         * modules/powf: New file.
7797         * tests/test-math-c++.cc: Check the declaration of powf.
7798         * doc/posix-functions/powf.texi: Mention the new module.
7799
7800         pow: Use a .m4 file.
7801         * m4/pow.m4: New file.
7802         * modules/pow (Files): Add it.
7803         (configure.ac): Just invoke gl_FUNC_POW.
7804
7805 2011-10-08  Bruno Haible  <bruno@clisp.org>
7806
7807         Tests for module 'log10f'.
7808         * modules/log10f-tests: New file.
7809         * tests/test-log10f.c: New file.
7810
7811         New module 'log10f'.
7812         * lib/math.in.h (log10f): New declaration.
7813         * lib/log10f.c: New file.
7814         * m4/log10f.m4: New file.
7815         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7817         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7818         * modules/log10f: New file.
7819         * tests/test-math-c++.cc: Check the declaration of log10f.
7820         * doc/posix-functions/log10f.texi: Mention the new module.
7821
7822         log10: Use a .m4 file.
7823         * m4/log10.m4: New file.
7824         * modules/log10 (Files): Add it.
7825         (configure.ac): Just invoke gl_FUNC_LOG10.
7826
7827 2011-10-08  Bruno Haible  <bruno@clisp.org>
7828
7829         Tests for module 'logf'.
7830         * modules/logf-tests: New file.
7831         * tests/test-logf.c: New file.
7832
7833         New module 'logf'.
7834         * lib/math.in.h (logf): New declaration.
7835         * lib/logf.c: New file.
7836         * m4/logf.m4: New file.
7837         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7839         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7840         * modules/logf: New file.
7841         * tests/test-math-c++.cc: Check the declaration of logf.
7842         * doc/posix-functions/logf.texi: Mention the new module.
7843
7844         log: Use a .m4 file.
7845         * m4/log.m4: New file.
7846         * modules/log (Files): Add it.
7847         (configure.ac): Just invoke gl_FUNC_LOG.
7848
7849 2011-10-08  Bruno Haible  <bruno@clisp.org>
7850
7851         Tests for module 'expf'.
7852         * modules/expf-tests: New file.
7853         * tests/test-expf.c: New file.
7854
7855         New module 'expf'.
7856         * lib/math.in.h (expf): New declaration.
7857         * lib/expf.c: New file.
7858         * m4/expf.m4: New file.
7859         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7861         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7862         * modules/expf: New file.
7863         * tests/test-math-c++.cc: Check the declaration of expf.
7864         * doc/posix-functions/expf.texi: Mention the new module.
7865
7866         exp: Use a .m4 file.
7867         * m4/exp.m4: New file.
7868         * modules/exp (Files): Add it.
7869         (configure.ac): Just invoke gl_FUNC_EXP.
7870
7871 2011-10-08  Bruno Haible  <bruno@clisp.org>
7872
7873         Tests for module 'sqrtf'.
7874         * modules/sqrtf-tests: New file.
7875         * tests/test-sqrtf.c: New file.
7876
7877         New module 'sqrtf'.
7878         * lib/math.in.h (sqrtf): New declaration.
7879         * lib/sqrtf.c: New file.
7880         * m4/sqrtf.m4: New file.
7881         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7883         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7884         * modules/sqrtf: New file.
7885         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7886         * doc/posix-functions/sqrtf.texi: Mention the new module.
7887
7888 2011-10-08  Bruno Haible  <bruno@clisp.org>
7889
7890         Tests: Avoid link failures w.r.t. libintl.
7891         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7892         $(LIBINTL).
7893         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7894         $(LIBINTL).
7895         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7896         against $(LIBINTL).
7897         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7898         $(LIBINTL).
7899         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7900         $(LIBINTL).
7901         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7902
7903 2011-10-08  Bruno Haible  <bruno@clisp.org>
7904
7905         pow tests: Defeat compiler optimizations.
7906         * tests/test-pow.c (main): Assign arguments to x and y before use.
7907
7908 2011-10-08  Bruno Haible  <bruno@clisp.org>
7909
7910         gnulib-tool: Improve last commit.
7911         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7912         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7913         ignore dependencies that are not among the modules list.
7914
7915 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7916
7917         gnulib-tool: don't follow dependencies to avoided modules
7918         This fixes a bug that is related to the previous one.
7919         * gnulib-tool (func_modules_transitive_closure)
7920         (func_emit_autoconf_snippets):
7921         Check whether a dependency is acceptable before using it.
7922         (--extract-dependencies): Report an error if --avoid is also used,
7923         since this combination of options is not yet supported.
7924
7925         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7926         Problem reported by Peter Dyballa in
7927         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7928         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7929         when echoing "$condition".
7930
7931 2011-10-07  Bruno Haible  <bruno@clisp.org>
7932
7933         Fix documentation about math functions on MacOS X.
7934         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7935         MacOS X 10.5.
7936         * doc/posix-functions/fdim.texi: Likewise.
7937         * doc/posix-functions/feclearexcept.texi: Likewise.
7938         * doc/posix-functions/fegetenv.texi: Likewise.
7939         * doc/posix-functions/fegetround.texi: Likewise.
7940         * doc/posix-functions/feholdexcept.texi: Likewise.
7941         * doc/posix-functions/feraiseexcept.texi: Likewise.
7942         * doc/posix-functions/fesetenv.texi: Likewise.
7943         * doc/posix-functions/fesetround.texi: Likewise.
7944         * doc/posix-functions/fetestexcept.texi: Likewise.
7945         * doc/posix-functions/feupdateenv.texi: Likewise.
7946         * doc/posix-functions/fmax.texi: Likewise.
7947         * doc/posix-functions/fmin.texi: Likewise.
7948         * doc/posix-functions/log2.texi: Likewise.
7949         * doc/posix-functions/modff.texi: Likewise.
7950         * doc/posix-functions/nan.texi: Likewise.
7951         * doc/posix-functions/nanf.texi: Likewise.
7952         * doc/posix-functions/nextafterf.texi: Likewise.
7953         * doc/posix-functions/remquo.texi: Likewise.
7954
7955 2011-10-07  Bruno Haible  <bruno@clisp.org>
7956
7957         modff: Drop assumption about library that defines modff.
7958         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7959         AC_CHECK_FUNCS.
7960         * modules/modff (Files): Add m4/mathfunc.m4.
7961
7962 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7963
7964         raise tests: Avoid a GCC warning.
7965         * tests/test-raise.c (handler): Use _Noreturn.
7966
7967 2011-10-07  Bruno Haible  <bruno@clisp.org>
7968
7969         Tests for module 'ldexpf'.
7970         * modules/ldexpf-tests: New file.
7971         * tests/test-ldexpf.c: New file.
7972
7973         New module 'ldexpf'.
7974         * lib/math.in.h (ldexpf): New declaration.
7975         * lib/ldexpf.c: New file.
7976         * m4/ldexpf.m4: New file.
7977         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7978         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7979         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7980         * modules/ldexpf: New file.
7981         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7982         * doc/posix-functions/ldexpf.texi: Mention the new module.
7983
7984 2011-10-06  Bruno Haible  <bruno@clisp.org>
7985
7986         frexpf: Work around problems on IRIX and mingw.
7987         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7989         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7990         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7991         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7992         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7993         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7994
7995 2011-10-06  Bruno Haible  <bruno@clisp.org>
7996
7997         fabsf: Drop assumption about library that defines fabsf.
7998         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7999         AC_CHECK_FUNCS.
8000         * modules/fabsf (Files): Add m4/mathfunc.m4.
8001
8002 2011-10-06  Bruno Haible  <bruno@clisp.org>
8003
8004         frexpf: Drop assumption about library that defines frexpf.
8005         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8006         'int *', 'float *', 'long double *', 'float', 'long double'.
8007         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8008         AC_CHECK_FUNCS.
8009         * modules/frexpf (Files): Add m4/mathfunc.m4.
8010
8011         Tests for module 'frexpf'.
8012         * modules/frexpf-tests: New file.
8013         * tests/test-frexpf.c: New file.
8014
8015         New module 'frexpf'.
8016         * lib/math.in.h (frexpf): New declaration.
8017         * lib/frexpf.c: New file.
8018         * m4/frexpf.m4: New file.
8019         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8020         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8021         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8022         * modules/frexpf: New file.
8023         * tests/test-math-c++.cc: Check the declaration of frexpf.
8024         * doc/posix-functions/frexpf.texi: Mention the new module.
8025
8026 2011-10-06  Bruno Haible  <bruno@clisp.org>
8027
8028         math: Sort function declarations of math.in.h.
8029         * lib/math.in.h (frexp, logb): Move declarations.
8030
8031 2011-10-05  Bruno Haible  <bruno@clisp.org>
8032
8033         Tests for module 'modff'.
8034         * modules/modff-tests: New file.
8035         * tests/test-modff.c: New file.
8036
8037         New module 'modff'.
8038         * lib/math.in.h (modff): New declaration.
8039         * lib/modff.c: New file.
8040         * m4/modff.m4: New file.
8041         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8042         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8043         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8044         * modules/modff: New file.
8045         * tests/test-math-c++.cc: Check the declaration of modff.
8046         * doc/posix-functions/modff.texi: Mention the new module.
8047
8048         modf tests: Make test sharper.
8049         * tests/test-modf.c (main): Strengthen upper bound.
8050
8051         modf: Use a .m4 file.
8052         * m4/modf.m4: New file.
8053         * modules/modf (Files): Add it.
8054         (configure.ac): Just invoke gl_FUNC_MODF.
8055
8056 2011-10-05  Bruno Haible  <bruno@clisp.org>
8057
8058         Tests for module 'fmodf'.
8059         * modules/fmodf-tests: New file.
8060         * tests/test-fmodf.c: New file.
8061
8062         New module 'fmodf'.
8063         * lib/math.in.h (fmodf): New declaration.
8064         * lib/fmodf.c: New file.
8065         * m4/fmodf.m4: New file.
8066         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8067         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8068         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8069         * modules/fmodf: New file.
8070         * tests/test-math-c++.cc: Check the declaration of fmodf.
8071         * doc/posix-functions/fmodf.texi: Mention the new module.
8072
8073         fmod: Use a .m4 file.
8074         * m4/fmod.m4: New file.
8075         * modules/fmod (Files): Add it.
8076         (configure.ac): Just invoke gl_FUNC_FMOD.
8077
8078 2011-10-05  Bruno Haible  <bruno@clisp.org>
8079
8080         Tests for module 'fabsf'.
8081         * modules/fabsf-tests: New file.
8082         * tests/test-fabsf.c: New file.
8083
8084         New module 'fabsf'.
8085         * lib/math.in.h (fabsf): New declaration.
8086         * lib/fabsf.c: New file.
8087         * m4/fabsf.m4: New file.
8088         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8089         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8090         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8091         * modules/fabsf: New file.
8092         * tests/test-math-c++.cc: Check the declaration of fabsf.
8093         * doc/posix-functions/fabsf.texi: Mention the new module.
8094
8095         fabs: Use a .m4 file.
8096         * m4/fabs.m4: New file.
8097         * modules/fabs (Files): Add it.
8098         (configure.ac): Just invoke gl_FUNC_FABS.
8099
8100 2011-10-05  Jim Meyering  <meyering@redhat.com>
8101
8102         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8103         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8104         ls -lL regression introduced in coreutils-8.12, it does so at the
8105         cost of an additional stat call in the common case.  Besides, now
8106         that the kernel change that prompted commit 95f7c57f has been reverted
8107         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8108         we have no use for commit 95f7c57f, "file-has-acl: use
8109         acl_extended_file_nofollow if available".
8110
8111 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8112
8113         file-has-acl: revert unintended change in behavior of ls -L
8114         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8115         derived from...
8116         (file_has_acl): ...code here.  Call it.
8117         This problem was introduced with 2011-07-22 commit 95f7c57f,
8118         "file-has-acl: use acl_extended_file_nofollow if available".
8119         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8120
8121 2011-10-03  Bruno Haible  <bruno@clisp.org>
8122
8123         poll: Avoid link errors on MSVC.
8124         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8125         * modules/poll (Depends-on): Add sockets.
8126         (Link): New section.
8127         * NEWS: Mention the change.
8128         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8129         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8130         $(LIB_POLL) instead of $(LIBSOCKET).
8131
8132 2011-10-03  Bruno Haible  <bruno@clisp.org>
8133
8134         sys_select tests: Fix link error on MSVC 9.
8135         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8136         with $(LIB_SELECT) instead of $(LIBSOCKET).
8137
8138 2011-10-03  Bruno Haible  <bruno@clisp.org>
8139
8140         sys_select: Fix compilation error on mingw.
8141         * lib/sys_select.in.h: On native Windows, include <io.h>.
8142
8143 2011-10-03  Bruno Haible  <bruno@clisp.org>
8144
8145         wmemset: Support for MSVC.
8146         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8147         whether wmemset() exists.
8148
8149 2011-10-03  Bruno Haible  <bruno@clisp.org>
8150
8151         wmemmove: Support for MSVC.
8152         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8153         whether wmemmove() exists.
8154
8155 2011-10-03  Bruno Haible  <bruno@clisp.org>
8156
8157         wmemcpy: Support for MSVC.
8158         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8159         whether wmemcpy() exists.
8160
8161 2011-10-03  Bruno Haible  <bruno@clisp.org>
8162
8163         wmemcmp: Support for MSVC.
8164         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8165         whether wmemcmp() exists.
8166
8167 2011-10-03  Bruno Haible  <bruno@clisp.org>
8168
8169         wmemchr: Support for MSVC.
8170         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8171         whether wmemchr() exists.
8172
8173 2011-10-03  Bruno Haible  <bruno@clisp.org>
8174
8175         glthread/*, strsignal: Support for MSVC.
8176         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8177         including <winsock.h> on MSVC 9.
8178         * lib/glthread/lock.h: Likewise.
8179         * lib/glthread/thread.h: Likewise.
8180         * lib/glthread/tls.h: Likewise.
8181         * lib/glthread/yield.h: Likewise.
8182         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8183         if HAVE_UNISTD_H is false.
8184         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8185
8186 2011-10-03  Bruno Haible  <bruno@clisp.org>
8187
8188         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8189         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8190         Set to 100000.
8191
8192 2011-10-03  Bruno Haible  <bruno@clisp.org>
8193
8194         acl: Fix specification.
8195         * lib/file-has-acl.c (file_has_acl): Fix specification.
8196
8197 2011-10-03  Bruno Haible  <bruno@clisp.org>
8198
8199         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8200         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8201         (compute_curr_prefix, shared_library_fullname,
8202         find_shared_library_fullname, get_shared_library_fullname, relocate):
8203         Use it together with PIC && INSTALLDIR.
8204         Reported by <jojelino@gmail.com>
8205         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8206
8207 2011-10-01  Jim Meyering  <meyering@redhat.com>
8208
8209         maint.mk: adjust a release-related rule not to require use of gzip
8210         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8211         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8212         projects that build only .tar.xz files.  Also fix an erroneous test.
8213
8214         test-linkat: don't leave behind a temporary file
8215         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8216         Otherwise, coreutils' "make distcheck" would fail with this:
8217           Only in /c/cu/tests/torture/coreutils/test/\
8218             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8219           make[2]: *** [my-distcheck] Error 1
8220
8221         float, math: add omitted file
8222         * lib/itold.c: Add file, required for yesterday's float change.
8223
8224 2011-10-01  Bruno Haible  <bruno@clisp.org>
8225
8226         isinf: Fix for OpenBSD/x86.
8227         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8228         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8229         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8230
8231 2011-10-01  Bruno Haible  <bruno@clisp.org>
8232
8233         isfinite: Fix syntax error in configure test.
8234         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8235
8236         isfinite: Fix typo.
8237         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8238         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8239
8240 2011-10-01  Bruno Haible  <bruno@clisp.org>
8241
8242         nonblocking tests: Fix test failure on Linux/IA-64.
8243         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8244         Set to 270000.
8245
8246 2011-10-01  Bruno Haible  <bruno@clisp.org>
8247
8248         mkfifoat tests: Fix a test failure on mingw.
8249         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8250         with error ENOSYS.
8251
8252 2011-09-30  Bruno Haible  <bruno@clisp.org>
8253
8254         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8255         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8256         'long double'. Set REPLACE_ITOLD.
8257         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8258         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8259         * lib/itold.c: New file.
8260         * modules/float (Files): Add lib/itold.c.
8261         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8262         (Makefile.am): Substitute REPLACE_ITOLD.
8263         * modules/math (Depends-on): Add float.
8264         (Makefile.am): Substitute REPLACE_ITOLD.
8265         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8266         * doc/posix-headers/math.texi: Likewise.
8267         * doc/posix-functions/logl.texi: Likewise.
8268
8269 2011-09-30  Bruno Haible  <bruno@clisp.org>
8270
8271         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8272         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8273         Set to 140000.
8274
8275 2011-09-30  Bruno Haible  <bruno@clisp.org>
8276
8277         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8278         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8279         invocation, say "right after AC_PROG_CC_STDC", not "right after
8280         AC_PROG_CC".
8281         Reported by Gary V. Vaughan <gary@gnu.org>.
8282
8283 2011-09-30  Bruno Haible  <bruno@clisp.org>
8284
8285         Centralize C99 requirement.
8286         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8287         * modules/stdarg (configure.ac-early): Invoke it instead of
8288         AC_PROG_CC_STDC.
8289         Reported by Gary V. Vaughan and Paul Eggert.
8290
8291 2011-09-29  Bruno Haible  <bruno@clisp.org>
8292
8293         float: Fix LDBL_MAX value on Linux/PowerPC.
8294         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8295         on Linux/PowerPC.
8296         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8297         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8298         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8299         platform.
8300         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8301
8302 2011-09-29  Bruno Haible  <bruno@clisp.org>
8303
8304         doc: Improve doc about gl_EARLY.
8305         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8306         AC_PROG_CC_STDC invocation.
8307         Reported by Gary V. Vaughan <gary@gnu.org>.
8308
8309 2011-09-28  Bruno Haible  <bruno@clisp.org>
8310
8311         fgetc, fputc, fread, fwrite tests: Fix link error.
8312         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8313         on non-MSVC platforms.
8314         * tests/test-fputc.c (main): Likewise.
8315         * tests/test-fread.c (main): Likewise.
8316         * tests/test-fwrite.c (main): Likewise.
8317         Reported by Jim Meyering.
8318
8319 2011-09-27  Bruno Haible  <bruno@clisp.org>
8320
8321         fputc, fwrite tests: Avoid test failure on MSVC.
8322         * tests/test-fgetc.c: Include msvc-inval.h.
8323         (main): Invoke gl_msvc_inval_ensure_handler.
8324         * tests/test-fputc.c: Include msvc-inval.h.
8325         (main): Invoke gl_msvc_inval_ensure_handler.
8326         * tests/test-fread.c: Include msvc-inval.h.
8327         (main): Invoke gl_msvc_inval_ensure_handler.
8328         * tests/test-fwrite.c: Include msvc-inval.h.
8329         (main): Invoke gl_msvc_inval_ensure_handler.
8330         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8331         * modules/fputc-tests (Depends-on): Likewise.
8332         * modules/fread-tests (Depends-on): Likewise.
8333         * modules/fwrite-tests (Depends-on): Likewise.
8334
8335 2011-09-27  Bruno Haible  <bruno@clisp.org>
8336
8337         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8338         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8339         (raise): Remove older, duplicated declaration.
8340         (_gl_raise_SIGPIPE): New declaration.
8341         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8342         (rpl_raise): Remove function.
8343         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8344         a gnulib-defined SIGPIPE here.
8345         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8346         'sigprocmask' has detected missing signal-blocking and the module
8347         'sigpipe' is enabled.
8348         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8349
8350 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8351
8352         base64-tests: avoid memory leak
8353         * tests/test-base64.c (main): Plug memory leak.
8354
8355         base32: new module
8356         * modules/base32: New module.
8357         * lib/base32.c: New file.
8358         * lib/base32.h: Likewise.
8359         * m4/base32.m4: Likewise.
8360         * modules/base32-tests: New test.
8361         * tests/test-base32.c: Likewise.
8362         * MODULES.html.sh (Misc): Mention it.
8363
8364 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8365
8366         gnulib: use more-standard license notice wording
8367         * gnulib-tool (func_emit_copyright_notice): When emitting a
8368         license notice into a file, use the standard wording as suggested
8369         by the current information for GNU maintainers, except say "file"
8370         rather than "program".  The new wording gives a license version
8371         number, which addresses an issue raised by Glenn Morris in
8372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8373         * m4/onceonly.m4: Use that same wording here, too.
8374
8375         dup2: minor simplification
8376         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8377         as lib/dup2.c no longer uses 'inline'.
8378
8379 2011-09-25  Bruno Haible  <bruno@clisp.org>
8380
8381         strings: Fix compilation error on MSVC.
8382         * lib/strings.in.h: Include <stddef.h> for size_t.
8383
8384 2011-09-25  Bruno Haible  <bruno@clisp.org>
8385
8386         fflush et al.: Document limitation on MSVC.
8387         * doc/posix-functions/fflush.texi: Document possible crash in handling
8388         mode other than DEFAULT_HANDLING.
8389         * doc/posix-functions/fgetc.texi: Likewise.
8390         * doc/posix-functions/fputc.texi: Likewise.
8391         * doc/posix-functions/fread.texi: Likewise.
8392         * doc/posix-functions/fwrite.texi: Likewise.
8393
8394 2011-09-25  Bruno Haible  <bruno@clisp.org>
8395
8396         msvc-inval: Allow three invalid parameter handling modes.
8397         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8398         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8399         macros.
8400         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8401         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8402         SANE_LIBRARY_HANDLING as a no-op.
8403         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8404         <stdlib.h>.
8405         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8406
8407 2011-09-25  Bruno Haible  <bruno@clisp.org>
8408
8409         msvc-inval: Make handler multithread-safe.
8410         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8411         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8412         declarations.
8413         (gl_msvc_inval_current): New declaration.
8414         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8415         Operate on the structure returned by gl_msvc_inval_current().
8416         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8417         Remove varaiables.
8418         (tls_index, tls_initialized): New variables.
8419         (not_per_thread): New variable.
8420         (gl_msvc_inval_current): New function.
8421         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8422         returned by gl_msvc_inval_current().
8423
8424 2011-09-25  Bruno Haible  <bruno@clisp.org>
8425
8426         msvc-inval: Install handler globally.
8427         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8428         !_MSC_VER.
8429         (gl_msvc_invalid_parameter_handler): Remove declaration.
8430         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8431         declarations.
8432         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8433         Install the handler globally, don't uninstall it.
8434         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8435         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8436         currently valid, call RaiseException instead.
8437         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8438         for !_MSC_VER.
8439
8440 2011-09-25  Bruno Haible  <bruno@clisp.org>
8441
8442         strerror_r-posix: Fix for MSVC 9.
8443         * lib/strerror_r.c (local_snprintf): New function.
8444         (snprintf): Define to local_snprintf, not to _snprintf.
8445
8446 2011-09-25  Bruno Haible  <bruno@clisp.org>
8447
8448         ftruncate: Support for MSVC 9.
8449         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8450         (chsize_nothrow): New function.
8451         (chsize): Redefine as a macro.
8452         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8453         * modules/ftruncate (Depends-on): Add msvc-inval.
8454
8455 2011-09-25  Bruno Haible  <bruno@clisp.org>
8456
8457         New module 'fstat'.
8458         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8459         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8460         * lib/fchdir.c (rpl_fstat): Remove function.
8461         * m4/fstat.m4: New file.
8462         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8463         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8464         declared.
8465         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8466         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8467         * modules/fstat: New file.
8468         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8469         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8470         is set.
8471         * doc/posix-functions/fstat.texi: Mention the new module and the
8472         problem on MSVC.
8473         * NEWS: Mention the change.
8474         * modules/acl (Depends-on): Add fstat.
8475         * modules/chdir-safer (Depends-on): Likewise.
8476         * modules/chown (Depends-on): Likewise.
8477         * modules/copy-file (Depends-on): Likewise.
8478         * modules/fchdir (Depends-on): Likewise.
8479         * modules/fdopendir (Depends-on): Likewise.
8480         * modules/fopen (Depends-on): Likewise.
8481         * modules/fts (Depends-on): Likewise.
8482         * modules/getcwd (Depends-on): Likewise.
8483         * modules/isapipe (Depends-on): Likewise.
8484         * modules/linkat (Depends-on): Likewise.
8485         * modules/lseek (Depends-on): Likewise.
8486         * modules/mkdir-p (Depends-on): Likewise.
8487         * modules/open (Depends-on): Likewise.
8488         * modules/openat (Depends-on): Likewise.
8489         * modules/read-file (Depends-on): Likewise.
8490         * modules/renameat (Depends-on): Likewise.
8491         * modules/utimens (Depends-on): Likewise.
8492
8493 2011-09-25  Bruno Haible  <bruno@clisp.org>
8494
8495         linkat: Fix compilation on MSVC 9.
8496         * lib/linkat.c: Don't include <stdint.h>.
8497
8498 2011-09-25  Bruno Haible  <bruno@clisp.org>
8499
8500         fclose: Support for MSVC 9.
8501         * lib/fclose.c: Include msvc-inval.h.
8502         (fclose_nothrow): New function.
8503         (rpl_fclose): Use it.
8504         * modules/fclose (Depends-on): Add msvc-inval.
8505         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8506
8507 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8508
8509         dup2: minor simplifications
8510         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8511         that it's a performance win.
8512         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8513         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8514
8515 2011-09-24  Jim Meyering  <meyering@redhat.com>
8516
8517         test-futimens: avoid a warning from gcc -Wshadow
8518         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8519         to avoid a shadowing warning.
8520
8521 2011-09-24  Bruno Haible  <bruno@clisp.org>
8522
8523         fdopen: Support for MSVC 9.
8524         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8525         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8526         * lib/fdopen.c: Include msvc-inval.h.
8527         (fdopen_nothrow): New function.
8528         (rpl_fdopen): Use it.
8529         * modules/fdopen (Depends-on): Add msvc-inval.
8530         * modules/fclose-tests (Depends-on): Add fdopen.
8531         * modules/fflush-tests (Depends-on): Likewise.
8532         * modules/fgetc-tests (Depends-on): Likewise.
8533         * modules/fputc-tests (Depends-on): Likewise.
8534         * modules/fread-tests (Depends-on): Likewise.
8535         * modules/freopen-tests (Depends-on): Likewise.
8536         * modules/fseeko-tests (Depends-on): Likewise.
8537         * modules/ftello-tests (Depends-on): Likewise.
8538         * modules/fwrite-tests  (Depends-on): Likewise.
8539         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8540
8541 2011-09-24  Bruno Haible  <bruno@clisp.org>
8542
8543         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8544         * modules/fgetc-tests (Depends-on): Add unistd.
8545         * modules/fputc-tests (Depends-on): Likewise.
8546         * modules/fread-tests (Depends-on): Likewise.
8547         * modules/fwrite-tests (Depends-on): Likewise.
8548
8549 2011-09-24  Bruno Haible  <bruno@clisp.org>
8550
8551         dup: Simplify autoconf test.
8552         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8553         on gl_MSVC_INVAL's result.
8554
8555 2011-09-24  Bruno Haible  <bruno@clisp.org>
8556
8557         Tests for function fwrite().
8558         * modules/fwrite-tests: New file.
8559         * tests/test-fwrite.c: New file.
8560         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8561
8562         Tests for function fread().
8563         * modules/fread-tests: New file.
8564         * tests/test-fread.c: New file.
8565         * modules/stdio-tests (Depends-on): Add fread-tests.
8566
8567         Activate fputc tests.
8568         * modules/stdio-tests (Depends-on): Add fputc-tests.
8569
8570         Enhance fgetc, fputc tests.
8571         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8572         * tests/test-fputc.c (main): Likewise.
8573
8574 2011-09-24  Bruno Haible  <bruno@clisp.org>
8575
8576         write: Support for MSVC 9.
8577         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8578         is not 1.
8579         * lib/write.c (write_nothrow): New function.
8580         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8581         not 1. Use write_nothrow.
8582         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8583         invalid parameter handler.
8584         (gl_PREREQ_WRITE): New macro.
8585         * modules/write (Depends-on): Add msvc-inval.
8586         (configure.ac): Invoke gl_PREREQ_WRITE.
8587         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8588
8589 2011-09-24  Bruno Haible  <bruno@clisp.org>
8590
8591         read: Fix last commit.
8592         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8593
8594 2011-09-24  Bruno Haible  <bruno@clisp.org>
8595
8596         dup2: Fix last commit.
8597         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8598         (rpl_dup2): Disable fcntl workaround on native Windows.
8599
8600         sigprocmask: Make code safer.
8601         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8602         section that changes macro definitions for this compilation unit.
8603
8604 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8605
8606         dup2: clarify by coalescing Windows-specific material
8607         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8608         "msvc-nothrow.h"' to the Windows-specific section, so that the
8609         Emacs source need not contain these include files.
8610         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8611         Windows-specific fixes into this function rather than just the
8612         nothrow fix, as this shortens and clarifies the code.  Always
8613         define as a function, as that's a bit cleaner than having it be
8614         sometimes a function and sometimes a macro.
8615         (rpl_dup2): Move the Windows-specific stuff out of here and into
8616         ms_windows_dup2.  Don't protect the Haiku-related fix with
8617         "#if !defined __linux__", as the same code also works around
8618         a Linux kernel bug, and it doesn't add any system calls on any
8619         platform.  Add comment about FreeBSD 6.1.
8620
8621         sigprocmask: move #include directive
8622         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8623         Windows-specific section, so that the Emacs source need not
8624         contain msvc-inval.h.
8625
8626 2011-09-23  Bruno Haible  <bruno@clisp.org>
8627
8628         read: Support for MSVC 9.
8629         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8630         is not 1.
8631         * lib/read.c (read_nothrow): New function.
8632         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8633         read_nothrow.
8634         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8635         invalid parameter handler.
8636         (gl_PREREQ_READ): New macro.
8637         * modules/read (Depends-on): Add msvc-inval.
8638         (configure.ac): Invoke gl_PREREQ_READ.
8639         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8640
8641 2011-09-23  Bruno Haible  <bruno@clisp.org>
8642
8643         close: Support for MSVC 9.
8644         * lib/close.c: Include <errno.h>, msvc-inval.h.
8645         (close_nothrow): New function.
8646         (rpl_close): Use it.
8647         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8648         invalid parameter handler.
8649         * modules/close (Depends-on): Add msvc-inval.
8650         * modules/dup2-tests (Depends-on): Add close.
8651         * modules/dup3-tests (Depends-on): Likewise.
8652         * modules/fcntl-tests (Depends-on): Likewise.
8653         * modules/spawn-pipe-tests (Depends-on): Likewise.
8654         * modules/unistd-safer-tests (Depends-on): Likewise.
8655         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8656
8657 2011-09-23  Bruno Haible  <bruno@clisp.org>
8658
8659         New module 'dup'.
8660         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8661         Allow replacement.
8662         * lib/dup.c: New file.
8663         * lib/fchdir.c (rpl_dup): Remove function.
8664         * m4/dup.m4: New file.
8665         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8666         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8667         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8668         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8669         * modules/dup: New file.
8670         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8671         'dup' module is in use.
8672         * modules/fdopendir (Depends-on): Add dup.
8673         * modules/fdutimensat-tests (Depends-on): Likewise.
8674         * modules/fts (Depends-on): Likewise.
8675         * modules/futimens-tests (Depends-on): Likewise.
8676         * modules/posix_spawnp-tests (Depends-on): Likewise.
8677         * modules/unistd-safer-tests (Depends-on): Likewise.
8678         * modules/utimens-tests (Depends-on): Likewise.
8679         * doc/posix-functions/dup.texi: Mention the new module and the problem
8680         on MSVC.
8681
8682 2011-09-23  Bruno Haible  <bruno@clisp.org>
8683
8684         getdtablesize: Support for MSVC 9.
8685         * lib/getdtablesize.c: Include msvc-inval.h.
8686         (_setmaxstdio_nothrow): New function.
8687         (_setmaxstdio): Redefine it.
8688         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8689         * modules/getdtablesize (Depends-on): Add msvc-inval.
8690         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8691
8692 2011-09-23  Bruno Haible  <bruno@clisp.org>
8693
8694         signal-h: Rename from signal.
8695         * modules/signal-h: Renamed from modules/signal.
8696         * modules/pthread_sigmask (Depends-on): Update.
8697         * modules/raise (Depends-on): Likewise.
8698         * modules/sigaction (Depends-on): Likewise.
8699         * modules/sigpipe (Depends-on): Likewise.
8700         * modules/sigprocmask (Depends-on): Likewise.
8701         * modules/sys_select (Depends-on): Likewise.
8702         * modules/signal-h-tests: Renamed from modules/signal-tests.
8703         (Files, Depends-on, Makefile.am): Update.
8704         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8705         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8706         (Files, Makefile.am): Update.
8707         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8708         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8709         * modules/signal: New placeholder file.
8710         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8711         * doc/posix-headers/signal.texi: Update.
8712         * NEWS: Mention the change.
8713
8714 2011-09-23  Bruno Haible  <bruno@clisp.org>
8715
8716         sigprocmask: Avoid crashes through signal() on MSVC 9.
8717         * lib/sigprocmask.c: Include msvc-inval.h.
8718         (signal_nothrow): New function.
8719         (signal): Redefine it.
8720         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8721         * modules/sigprocmask (Depends-on): Add msvc-inval.
8722         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8723
8724 2011-09-23  Bruno Haible  <bruno@clisp.org>
8725
8726         Tests for module 'raise'.
8727         * modules/raise-tests: New file.
8728         * tests/test-raise.c: New file.
8729
8730         raise: Support for MSVC.
8731         * lib/signal.in.h (raise): New declaration.
8732         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8733         for native Windows platforms.
8734         * m4/raise.m4: New file.
8735         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8736         HAVE_RAISE, REPLACE_RAISE.
8737         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8738         REPLACE_RAISE.
8739         * modules/raise (Status, Notice): Remove fields.
8740         (Files): Add m4/raise.m4.
8741         (Depends-on): Add signal, msvc-inval.
8742         (configure.ac): Use the common idioms.
8743         (Maintainer): Add me.
8744         * tests/test-signal-c++.cc: Check the signature of raise.
8745         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8746
8747 2011-09-23  Bruno Haible  <bruno@clisp.org>
8748
8749         pipe2: Fix compilation on pre-C99 compilers.
8750         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8751
8752 2011-09-23  Bruno Haible  <bruno@clisp.org>
8753
8754         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8755         * lib/msvc-nothrow.h: New file.
8756         * lib/msvc-nothrow.c: New file.
8757         * m4/msvc-nothrow.m4: New file.
8758         * modules/msvc-nothrow: New file.
8759         * lib/dup2.c: Include msvc-nothrow.h.
8760         (rpl_dup2): No need to protect _get_osfhandle call here.
8761         * lib/accept4.c: Include msvc-nothrow.h.
8762         * lib/error.c: Likewise.
8763         * lib/fcntl.c: Likewise.
8764         * lib/lseek.c: Likewise.
8765         * lib/nonblocking.c: Likewise.
8766         * lib/poll.c: Likewise.
8767         * lib/read.c: Likewise.
8768         * lib/select.c: Likewise.
8769         * lib/sockets.h: Likewise.
8770         * lib/sockets.c: Likewise.
8771         * lib/stdio-read.c: Likewise.
8772         * lib/stdio-write.c: Likewise.
8773         * lib/write.c: Likewise.
8774         * lib/w32sock.h: Likewise.
8775         * lib/w32spawn.h: Likewise.
8776         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8777         * lib/fsync.c: Likewise.
8778         * lib/isapipe.c: Likewise.
8779         * modules/dup2 (Depends-on): Add msvc-nothrow.
8780         * modules/accept4 (Depends-on): Likewise.
8781         * modules/error (Depends-on): Likewise.
8782         * modules/fcntl (Depends-on): Likewise.
8783         * modules/lseek (Depends-on): Likewise.
8784         * modules/nonblocking (Depends-on): Likewise.
8785         * modules/poll (Depends-on): Likewise.
8786         * modules/read (Depends-on): Likewise.
8787         * modules/select (Depends-on): Likewise.
8788         * modules/sockets (Depends-on): Likewise.
8789         * modules/sigpipe (Depends-on): Likewise.
8790         * modules/write (Depends-on): Likewise.
8791         * modules/accept (Depends-on): Likewise.
8792         * modules/bind (Depends-on): Likewise.
8793         * modules/connect (Depends-on): Likewise.
8794         * modules/gethostname (Depends-on): Likewise.
8795         * modules/getpeername (Depends-on): Likewise.
8796         * modules/getsockname (Depends-on): Likewise.
8797         * modules/getsockopt (Depends-on): Likewise.
8798         * modules/ioctl (Depends-on): Likewise.
8799         * modules/listen (Depends-on): Likewise.
8800         * modules/recv (Depends-on): Likewise.
8801         * modules/recvfrom (Depends-on): Likewise.
8802         * modules/send (Depends-on): Likewise.
8803         * modules/sendto (Depends-on): Likewise.
8804         * modules/setsockopt (Depends-on): Likewise.
8805         * modules/shutdown (Depends-on): Likewise.
8806         * modules/socket (Depends-on): Likewise.
8807         * modules/execute (Depends-on): Likewise.
8808         * modules/spawn-pipe (Depends-on): Likewise.
8809         * modules/flock (Depends-on): Likewise.
8810         * modules/fsync (Depends-on): Likewise.
8811         * modules/isapipe (Depends-on): Likewise.
8812         * tests/test-cloexec.c: Include msvc-nothrow.h.
8813         * tests/test-dup-safer.c: Likewise.
8814         * tests/test-dup2.c: Likewise.
8815         * tests/test-dup3.c: Likewise.
8816         * tests/test-fcntl.c: Likewise.
8817         * tests/test-pipe.c: Likewise.
8818         * tests/test-pipe2.c: Likewise.
8819         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8820         * modules/unistd-safer-tests (Depends-on): Likewise.
8821         * modules/dup2-tests (Depends-on): Likewise.
8822         * modules/dup3-tests (Depends-on): Likewise.
8823         * modules/fcntl-tests (Depends-on): Likewise.
8824         * modules/pipe-posix-tests (Depends-on): Likewise.
8825         * modules/pipe2-tests (Depends-on): Likewise.
8826
8827 2011-09-23  Bruno Haible  <bruno@clisp.org>
8828
8829         dup2: Make code more maintainable.
8830         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8831         (rpl_dup2): Use it.
8832         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8833         * modules/dup2 (configure.ac): Invoke it.
8834         Reported by Paul Eggert.
8835
8836 2011-09-23  Bruno Haible  <bruno@clisp.org>
8837
8838         msvc-inval: Fix compilation error.
8839         * lib/msvc-inval.h: Include <excpt.h>.
8840
8841 2011-09-23  Bruno Haible  <bruno@clisp.org>
8842
8843         mkdir: Tweak for MSVC 9.
8844         * lib/sys_stat.in.h: Update comments.
8845         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8846
8847         Tests for module 'chdir'.
8848         * modules/chdir-tests: New file.
8849         * tests/test-chdir.c: New file.
8850
8851         New module 'chdir'.
8852         * modules/chdir: New file.
8853         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8854         (chdir): New declaration.
8855         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8856         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8857         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8858         * tests/test-unistd-c++.cc: Check signature of chdir.
8859         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8860         * modules/chdir-long (Depends-on): Add chdir.
8861         * modules/fchdir (Depends-on): Likewise.
8862         * modules/rename (Depends-on): Likewise.
8863         * modules/savewd (Depends-on): Likewise.
8864
8865         rmdir: Support for mingw, MSVC 9.
8866         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8867         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8868
8869         getcwd: Tweak for MSVC 9.
8870         * lib/unistd.in.h: Update comments.
8871         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8872
8873 2011-09-22  Bruno Haible  <bruno@clisp.org>
8874
8875         strerror_r-posix: Avoid a link error on MSVC.
8876         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8877         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8878
8879 2011-09-22  Bruno Haible  <bruno@clisp.org>
8880
8881         select: Avoid link errors on MSVC.
8882         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8883         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8884         * modules/pselect (Link): Likewise.
8885         * NEWS: Mention the change.
8886         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8887         test-select-stdin against $(LIB_SELECT).
8888         * modules/pselect-tests (Makefile.am): Link test-pselect against
8889         $(LIB_SELECT).
8890
8891 2011-09-22  Bruno Haible  <bruno@clisp.org>
8892
8893         select: Avoid compilation error on MSVC.
8894         * lib/select.c: Don't include <stdbool.h>.
8895
8896 2011-09-21  Bruno Haible  <bruno@clisp.org>
8897
8898         Consolidate all uses of PATH_MAX in *.m4 files.
8899         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8900         macros.
8901         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8902         and gl_PATHMAX_SNIPPET.
8903         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8904         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8905         * modules/chdir-long (Files): Add m4/pathmax.m4.
8906         * modules/getcwd (Files): Likewise.
8907
8908 2011-09-21  Bruno Haible  <bruno@clisp.org>
8909
8910         ftruncate: Un-deprecate, concentrate on Win32 support.
8911         * modules/ftruncate (Status, Notice): Remove sections.
8912         (Depends-on): Add largefile.
8913         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8914         non-mingw platforms.
8915         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8916         include <io.h>.
8917         * modules/perror-tests (Depends-on): Add ftruncate.
8918         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8919         'ftruncate' module.
8920
8921 2011-09-21  Bruno Haible  <bruno@clisp.org>
8922
8923         Add dependencies to new dirent related modules.
8924         * modules/opendir (Depends-on): Add closedir.
8925         * modules/getcwd (Depends-on): Add opendir, closedir.
8926         * modules/dirent-safer-tests (Depends-on): Likewise.
8927         * modules/fdopendir-tests (Depends-on): Likewise.
8928         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8929         * modules/renameat-tests (Depends-on): Likewise.
8930
8931 2011-09-21  Bruno Haible  <bruno@clisp.org>
8932
8933         opendir: Avoid compilation error on mingw.
8934         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8935         * modules/opendir (Depends-on): Add unistd.
8936
8937 2011-09-21  Bruno Haible  <bruno@clisp.org>
8938
8939         ftruncate tests: Avoid a test failure on mingw.
8940         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8941
8942 2011-09-21  Bruno Haible  <bruno@clisp.org>
8943
8944         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8945         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8946         native Windows.
8947
8948 2011-09-21  Bruno Haible  <bruno@clisp.org>
8949
8950         New module 'fdopen'.
8951         * lib/stdio.in.h (fdopen): New declaration.
8952         * lib/fdopen.c: New file.
8953         * m4/fdopen.m4: New file.
8954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8955         REPLACE_FDOPEN.
8956         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8957         REPLACE_FDOPEN.
8958         * modules/fdopen: New file.
8959         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8960         * tests/test-stdio-c++.cc: Check signature of fdopen.
8961         * doc/posix-functions/fdopen.texi: Mention the new module.
8962
8963 2011-09-21  Bruno Haible  <bruno@clisp.org>
8964
8965         unlockpt tests: Avoid test failure on NetBSD 5.1.
8966         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8967         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8968
8969 2011-09-21  Bruno Haible  <bruno@clisp.org>
8970
8971         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8972         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8973         * tests/test-getlogin_r.c (main): Likewise.
8974
8975 2011-09-20  Bruno Haible  <bruno@clisp.org>
8976
8977         time tests: Don't require pid_t.
8978         * doc/posix-headers/time.texi: Revert last change.
8979         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8980         * tests/test-time.c: Comment out the check for pid_t.
8981
8982 2011-09-20  Bruno Haible  <bruno@clisp.org>
8983
8984         fsync tests: Avoid a test failure on mingw.
8985         * tests/test-fsync.c (main): Allow a failure with EIO.
8986
8987 2011-09-20  Bruno Haible  <bruno@clisp.org>
8988
8989         euidaccess: Update comments.
8990         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8991
8992 2011-09-20  Bruno Haible  <bruno@clisp.org>
8993
8994         Ensure EBADF returns for socket functions on mingw.
8995         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8996         descriptor is invalid.
8997         * lib/bind.c (rpl_bind): Likewise.
8998         * lib/connect.c (rpl_connect): Likewise.
8999         * lib/getpeername.c (rpl_getpeername): Likewise.
9000         * lib/getsockname.c (rpl_getsockname): Likewise.
9001         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9002         * lib/listen.c (rpl_listen): Likewise.
9003         * lib/recv.c (rpl_recv): Likewise.
9004         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9005         * lib/send.c (rpl_send): Likewise.
9006         * lib/sendto.c (rpl_sendto): Likewise.
9007         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9008         * lib/shutdown.c (rpl_shutdown): Likewise.
9009
9010 2011-09-20  Bruno Haible  <bruno@clisp.org>
9011
9012         select tests: EBADF tests.
9013         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9014         test_bad_fd): New functions.
9015         (test_function): Invoke also test_bad_fd.
9016
9017 2011-09-20  Bruno Haible  <bruno@clisp.org>
9018
9019         Tests for module 'posix_spawn_file_actions_addopen.
9020         * modules/posix_spawn_file_actions_addopen-tests: New file.
9021         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9022
9023         Tests for module 'posix_spawn_file_actions_adddup2'.
9024         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9025         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9026
9027         Tests for module 'posix_spawn_file_actions_addclose'.
9028         * modules/posix_spawn_file_actions_addclose-tests: New file.
9029         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9030
9031 2011-09-20  Bruno Haible  <bruno@clisp.org>
9032
9033         Tests for module 'unlockpt'.
9034         * modules/unlockpt-tests: New file.
9035         * tests/test-unlockpt.c: New file.
9036         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9037
9038         Tests for module 'grantpt'.
9039         * modules/grantpt-tests: New file.
9040         * tests/test-grantpt.c: New file.
9041         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9042
9043 2011-09-20  Bruno Haible  <bruno@clisp.org>
9044
9045         freopen tests: EBADF tests.
9046         * tests/test-freopen.c: Include errno.h, unistd.h.
9047         (main): Add tests for EBADF, commented out for the moment.
9048
9049         fclose tests: EBADF tests.
9050         * tests/test-fclose.c (main): Add tests for EBADF.
9051
9052         fflush tests: EBADF tests.
9053         * tests/test-fflush.c: Include errno.h, macros.h.
9054         (main): Add tests for EBADF.
9055
9056         ftello tests: EBADF tests.
9057         * tests/test-ftello4.sh: New file.
9058         * tests/test-ftello4.c: New file.
9059         * modules/ftello-tests (Files): Add them.
9060         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9061
9062         fseeko tests: EBADF tests.
9063         * tests/test-fseeko4.sh: New file.
9064         * tests/test-fseeko4.c: New file.
9065         * modules/fseeko-tests (Files): Add them.
9066         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9067
9068         Tests for function fputc().
9069         * modules/fputc-tests: New file.
9070         * tests/test-fputc.c: New file.
9071         * modules/stdio-tests (Depends-on): Add fputc-tests.
9072
9073         Tests for function fgetc().
9074         * modules/fgetc-tests: New file.
9075         * tests/test-fgetc.c: New file.
9076         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9077
9078         Tests for function fdopen().
9079         * modules/fdopen-tests: New file.
9080         * tests/test-fdopen.c: New file.
9081         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9082
9083         Tests for module 'vdprintf'.
9084         * modules/vdprintf-tests: New file.
9085         * tests/test-vdprintf.c: New file.
9086
9087         Tests for module 'dprintf'.
9088         * modules/dprintf-tests: New file.
9089         * tests/test-dprintf.c: New file.
9090
9091 2011-09-20  Bruno Haible  <bruno@clisp.org>
9092
9093         Tests for module 'ioctl'.
9094         * modules/ioctl-tests: New file.
9095         * tests/test-ioctl.c: New file.
9096
9097 2011-09-20  Bruno Haible  <bruno@clisp.org>
9098
9099         fcntl tests: EBADF tests.
9100         * tests/test-fcntl.c (main): Add more tests for EBADF.
9101
9102 2011-09-20  Bruno Haible  <bruno@clisp.org>
9103
9104         utimensat tests: EBADF tests.
9105         * tests/test-utimensat.c (main): Add tests for EBADF.
9106
9107         renameat tests: EBADF tests.
9108         * tests/test-renameat.c (main): Add tests for EBADF.
9109
9110         mkfifoat tests: EBADF tests.
9111         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9112
9113         readlinkat tests: EBADF tests.
9114         * tests/test-readlinkat.c (main): Add tests for EBADF.
9115
9116         symlinkat tests: EBADF tests.
9117         * tests/test-symlinkat.c (main): Add tests for EBADF.
9118
9119         linkat tests: EBADF tests.
9120         * tests/test-linkat.c (main): Add tests for EBADF.
9121
9122         Tests for module 'faccessat'.
9123         * modules/faccessat-tests: New file.
9124         * tests/test-faccessat.c: New file.
9125
9126         fdopendir tests: EBADF tests.
9127         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9128
9129         openat tests: EBADF tests.
9130         * tests/test-fchownat.c (main): Add tests for EBADF.
9131         * tests/test-fstatat.c (main): Likewise.
9132         * tests/test-mkdirat.c (main): Likewise.
9133         * tests/test-openat.c (main): Likewise.
9134         * tests/test-unlinkat.c (main): Likewise.
9135         * tests/test-fchmodat.c: New file.
9136         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9137         (Makefile.am): Also run 'test-fchmodat'.
9138
9139 2011-09-20  Bruno Haible  <bruno@clisp.org>
9140
9141         utimens, futimens, fdutimensat tests: EBADF tests.
9142         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9143
9144         Tests for function fstat().
9145         * modules/fstat-tests: New file.
9146         * tests/test-fstat.c: New file.
9147         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9148
9149 2011-09-20  Bruno Haible  <bruno@clisp.org>
9150
9151         test-ttyname_r tests: EBADF tests.
9152         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9153
9154         Tests for module 'isatty'.
9155         * modules/isatty-tests: New file.
9156         * tests/test-isatty.c: New file.
9157
9158         Tests for module 'write'.
9159         * modules/write-tests: New file.
9160         * tests/test-write.c: New file.
9161
9162         Tests for module 'read'.
9163         * modules/read-tests: New file.
9164         * tests/test-read.c: New file.
9165
9166         pwrite tests: EBADF tests.
9167         * tests/test-pwrite.c (main): Add tests for EBADF.
9168
9169         pread tests: EBADF tests.
9170         * tests/test-pread.c (main): Add tests for EBADF.
9171
9172         lseek tests: EBADF tests.
9173         * tests/test-lseek.c (main): Add more tests for EBADF.
9174
9175         Tests for module 'ftruncate'.
9176         * modules/ftruncate-tests: New file.
9177         * tests/test-ftruncate.sh: New file.
9178         * tests/test-ftruncate.c: New file.
9179
9180         fsync tests: EBADF tests.
9181         * tests/test-fsync.c (main): Add more tests for EBADF.
9182
9183         fdatasync tests: EBADF tests.
9184         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9185
9186         Tests for module 'fchown'.
9187         * modules/fchown-tests: New file.
9188         * tests/test-fchown.c: New file.
9189
9190         Tests for module 'fchmod'.
9191         * modules/fchmod-tests: New file.
9192         * tests/test-fchmod.c: New file.
9193
9194         fchdir tests: EBADF tests.
9195         * tests/test-fchdir.c (main): Add more tests for EBADF.
9196
9197         dup2 tests: EBADF tests.
9198         * tests/test-dup2.c (main): Add more tests for EBADF.
9199
9200         Tests for module 'dup'.
9201         * modules/dup-tests: New file.
9202         * tests/test-dup.c: New file.
9203
9204         Tests for module 'close'.
9205         * modules/close-tests: New file.
9206         * tests/test-close.c: New file.
9207
9208 2011-09-20  Bruno Haible  <bruno@clisp.org>
9209
9210         Tests for module 'shutdown'.
9211         * modules/shutdown-tests: New file.
9212         * tests/test-shutdown.c: New file.
9213
9214         Tests for module 'setsockopt'.
9215         * modules/setsockopt-tests: New file.
9216         * tests/test-setsockopt.c: New file.
9217
9218         Tests for module 'sendto'.
9219         * modules/sendto-tests: New file.
9220         * tests/test-sendto.c: New file.
9221
9222         Tests for module 'send'.
9223         * modules/send-tests: New file.
9224         * tests/test-send.c: New file.
9225
9226         Tests for module 'recvfrom'.
9227         * modules/recvfrom-tests: New file.
9228         * tests/test-recvfrom.c: New file.
9229
9230         Tests for module 'recv'.
9231         * modules/recv-tests: New file.
9232         * tests/test-recv.c: New file.
9233
9234         Tests for module 'listen'.
9235         * modules/listen-tests: New file.
9236         * tests/test-listen.c: New file.
9237
9238         Tests for module 'getsockopt'.
9239         * modules/getsockopt-tests: New file.
9240         * tests/test-getsockopt.c: New file.
9241
9242         Tests for module 'getsockname'.
9243         * modules/getsockname-tests: New file.
9244         * tests/test-getsockname.c: New file.
9245
9246         Tests for module 'getpeername'.
9247         * modules/getpeername-tests: New file.
9248         * tests/test-getpeername.c: New file.
9249
9250         Tests for module 'connect'.
9251         * modules/connect-tests: New file.
9252         * tests/test-connect.c: New file.
9253
9254         Tests for module 'bind'.
9255         * modules/bind-tests: New file.
9256         * tests/test-bind.c: New file.
9257
9258         accept4 tests: Fix for native Windows.
9259         * tests/test-accept4.c: Include sockets.h.
9260         (main): Invoke gl_sockets_startup.
9261         * modules/accept4-tests (Depends-on): Add sockets.
9262
9263         accept tests: Fix for native Windows.
9264         * tests/test-accept.c: Include sockets.h.
9265         (main): Invoke gl_sockets_startup.
9266         * modules/accept-tests (Depends-on): Add sockets.
9267
9268 2011-09-19  Bruno Haible  <bruno@clisp.org>
9269
9270         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9271         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9272         do...while(0).
9273         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9274         Suggested by Paul Eggert.
9275
9276 2011-09-19  Bruno Haible  <bruno@clisp.org>
9277
9278         sched: Ensure pid_t is defined.
9279         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9280         not define pid_t.
9281         * lib/sched.in.h: Include <sys/types.h>.
9282         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9283         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9284
9285 2011-09-19  Bruno Haible  <bruno@clisp.org>
9286
9287         msvc-inval: Ensure the entire expansion is a single statement.
9288         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9289         of braces.
9290
9291 2011-09-19  Jim Meyering  <meyering@redhat.com>
9292
9293         tests: use printf, not echo in init.sh's warn_ function
9294         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9295         misbehave when given strings containing a backslash or starting
9296         with e.g., -n.  James Youngman suggested setting IFS.
9297
9298 2011-09-19  Eric Blake  <eblake@redhat.com>
9299
9300         futimens: enhance test
9301         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9302         closed non-negative fd.
9303
9304         date: accept 'hence' as opposite of 'ago'
9305         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9306         * tests/test-parse-datetime.c (main): Enhance test.
9307         Suggested by Jesse Wilson.
9308
9309 2011-09-19  Jim Meyering  <meyering@redhat.com>
9310
9311         getcwd: don't fail in a deep directory on a system without openat
9312         Before this change, getcwd would fail when called from a directory
9313         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9314         the non-openat implementation used "..", "../..", "../../..", etc.
9315         to access ancestor directories.  With too many, that string would
9316         be longer than PATH_MAX.
9317         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9318         using gnulib's openat replacement.
9319         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9320         we're using the replacement function.
9321
9322 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9323
9324         maint.mk: avoid warnings from perl about missing files
9325         * top/maint.mk (def_sym_regex): Ignore files listed in
9326         $(gl_other_headers_) that do not exist, say because a project
9327         does not use a corresponding module.
9328
9329 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9330
9331         stat: use pathmax.h only if needed
9332         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9333         This is better for Emacs, which does not have a mingw port and
9334         therefore can avoid the pathmax module.
9335
9336         utimens: remove dependency on dup2
9337         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9338         to work around the Linux kernel bug.
9339         * modules/utimens (Depends-on): Remove dup2.
9340
9341 2011-09-18  Bruno Haible  <bruno@clisp.org>
9342
9343         inet_ntop, inet_pton: Look for it also in libresolv.
9344         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9345         libnsl, search for it in libresolv.
9346         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9347         Needed on Solaris 7.
9348
9349 2011-09-18  Bruno Haible  <bruno@clisp.org>
9350
9351         accept, accept4 tests: Avoid link error on Solaris.
9352         * modules/accept-tests (Makefile.am): Link test-accept against
9353         $(LIBSOCKET).
9354         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9355         $(LIBSOCKET).
9356
9357         accept4: Avoid link error on Solaris.
9358         * modules/accept4 (Link): New section.
9359
9360         socket functions: Avoid link errors on Solaris.
9361         * modules/accept (Depends-on): Add socketlib.
9362         (Link): New section.
9363         * modules/bind (Depends-on): Add socketlib.
9364         (Link): New section.
9365         * modules/connect (Depends-on): Add socketlib.
9366         (Link): New section.
9367         * modules/getpeername (Depends-on): Add socketlib.
9368         (Link): New section.
9369         * modules/getsockname (Depends-on): Add socketlib.
9370         (Link): New section.
9371         * modules/getsockopt (Depends-on): Add socketlib.
9372         (Link): New section.
9373         * modules/listen (Depends-on): Add socketlib.
9374         (Link): New section.
9375         * modules/recv (Depends-on): Add socketlib.
9376         (Link): New section.
9377         * modules/recvfrom (Depends-on): Add socketlib.
9378         (Link): New section.
9379         * modules/send (Depends-on): Add socketlib.
9380         (Link): New section.
9381         * modules/sendto (Depends-on): Add socketlib.
9382         (Link): New section.
9383         * modules/setsockopt (Depends-on): Add socketlib.
9384         (Link): New section.
9385         * modules/shutdown (Depends-on): Add socketlib.
9386         (Link): New section.
9387         * modules/socket (Depends-on): Add socketlib.
9388         (Link): New section.
9389
9390 2011-09-18  Bruno Haible  <bruno@clisp.org>
9391
9392         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9393         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9394         than 5 seconds.
9395         * modules/ptsname-tests (configure.ac): Test for alarm.
9396
9397 2011-09-18  Bruno Haible  <bruno@clisp.org>
9398
9399         posix_spawn_file_actions_add*: Fix module dependencies.
9400         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9401         posix_spawn_file_actions_init.
9402         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9403         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9404
9405 2011-09-18  Bruno Haible  <bruno@clisp.org>
9406
9407         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9408         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9409         * tests/test-renameat.c (main): Likewise.
9410
9411 2011-09-18  Bruno Haible  <bruno@clisp.org>
9412
9413         Tests for module 'accept4'.
9414         * modules/accept4-tests: New file.
9415         * tests/test-accept4.c: New file.
9416
9417 2011-09-18  Bruno Haible  <bruno@clisp.org>
9418
9419         Tests for module 'accept'.
9420         * modules/accept-tests: New file.
9421         * tests/test-accept.c: New file.
9422
9423 2011-09-18  Bruno Haible  <bruno@clisp.org>
9424
9425         dup2: Support for MSVC.
9426         * lib/dup2.c: Include msvc-inval.h.
9427         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9428         _get_osfhandle calls.
9429         * modules/dup2 (Depends-on): Add msvc-inval.
9430         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9431
9432         New module 'msvc-inval'.
9433         * lib/msvc-inval.h: New file.
9434         * lib/msvc-inval.c: New file.
9435         * m4/msvc-inval.m4: New file.
9436         * modules/msvc-inval: New file.
9437
9438 2011-09-17  Bruno Haible  <bruno@clisp.org>
9439
9440         Tests for module 'pclose'.
9441         * modules/pclose-tests: New file.
9442
9443         New module 'pclose'.
9444         * lib/stdio.in.h (pclose): New declaration.
9445         * lib/pclose.c: New file.
9446         * m4/pclose.m4: New file.
9447         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9448         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9449         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9450         * modules/pclose: New file.
9451         * modules/popen-tests (Depends-on): Add pclose.
9452         * modules/popen-safer-tests (Depends-on): Likewise.
9453         * doc/posix-functions/pclose.texi: Mention the new module.
9454
9455 2011-09-17  Bruno Haible  <bruno@clisp.org>
9456
9457         popen: Support for MSVC.
9458         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9459         * lib/popen.c (popen): Provide alternate definition for native Windows.
9460         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9461         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9462         * modules/popen (Depends-on, configure.ac): Update condition.
9463         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9464         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9465         fixed.
9466
9467 2011-09-17  Bruno Haible  <bruno@clisp.org>
9468
9469         isnanl, isnand, isnanf: Work around MSVC bug.
9470         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9471
9472 2011-09-17  Bruno Haible  <bruno@clisp.org>
9473
9474         sys_socket tests: Fix recent mistake.
9475         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9476
9477 2011-09-17  Bruno Haible  <bruno@clisp.org>
9478
9479         putenv: Support for MSVC.
9480         * modules/putenv (Depends-on): Add environ.
9481         * lib/putenv.c (environ): Disable declaration.
9482         * lib/unistd.in.h: Update comment.
9483
9484 2011-09-17  Bruno Haible  <bruno@clisp.org>
9485
9486         math: Avoid macro redefinition warnings on MSVC.
9487         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9488         Undefine before redefining.
9489
9490 2011-09-17  Bruno Haible  <bruno@clisp.org>
9491
9492         doc: Mention functions which are declared as macros.
9493         * doc/posix-functions/*[fl].texi: Mention that some functions are
9494         defined as macros with arguments only.
9495
9496 2011-09-17  Bruno Haible  <bruno@clisp.org>
9497
9498         Add dependencies to new dirent related modules.
9499         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9500         * modules/fts (Depends-on): Likewise.
9501         * modules/glob (Depends-on): Likewise.
9502         * modules/savedir (Depends-on): Likewise.
9503         * modules/scandir (Depends-on): Likewise.
9504         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9505         * modules/fdopendir (Depends-on): Add opendir.
9506
9507 2011-09-17  Bruno Haible  <bruno@clisp.org>
9508
9509         inet_pton: Support for MSVC on Windows Vista or newer.
9510         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9511         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9512         HAVE_DECL_INET_PTON is defined.
9513         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9514         On platforms with <winsock2.h>, test whether inet_pton is declared in
9515         <ws2tcpip.h>. If so, arrange to replace it.
9516         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9517         REPLACE_INET_PTON.
9518         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9519         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9520         (Depends-on, configure.ac): Update condition.
9521         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9522
9523 2011-09-17  Bruno Haible  <bruno@clisp.org>
9524
9525         inet_ntop: Support for MSVC on Windows Vista or newer.
9526         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9527         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9528         HAVE_DECL_INET_NTOP is defined.
9529         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9530         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9531         <ws2tcpip.h>. If so, arrange to replace it.
9532         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9533         REPLACE_INET_NTOP.
9534         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9535         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9536         (Depends-on, configure.ac): Update condition.
9537         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9538
9539 2011-09-16  Eric Blake  <eblake@redhat.com>
9540
9541         test-fsync: yet another enhancement
9542         * tests/test-fsync.c (main): Also test behavior on read-only text
9543         file.
9544
9545 2011-09-16  Bruno Haible  <bruno@clisp.org>
9546
9547         Enhance fsync, fdatasync tests.
9548         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9549         * tests/test-fdatasync.c (main): Likewise.
9550
9551 2011-09-16  Bruno Haible  <bruno@clisp.org>
9552
9553         Support for MSVC compiler: Ensure mode_t gets defined.
9554         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9555         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9556         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9557         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9558         * tests/test-fcntl-h.c: Check that mode_t is defined.
9559         * tests/test-sys_stat.c: Likewise.
9560         * tests/test-sys_types.c: Likewise.
9561         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9562         * doc/posix-headers/sys_stat.texi: Likewise.
9563         * doc/posix-headers/sys_types.texi: Likewise.
9564
9565 2011-09-16  Bruno Haible  <bruno@clisp.org>
9566
9567         sys_stat: Support for MSVC.
9568         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9569         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9570         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9571         MSVC.
9572
9573 2011-09-16  Bruno Haible  <bruno@clisp.org>
9574
9575         Support for MSVC compiler: Ensure off_t gets defined.
9576         * lib/unistd.in.h: Include <sys/types.h>.
9577         * tests/test-fcntl-h.c: Check that off_t is defined.
9578         * tests/test-sys_stat.c: Likewise.
9579         * tests/test-sys_types.c: Likewise.
9580
9581 2011-09-16  Eric Blake  <eblake@redhat.com>
9582
9583         fdatasync: port to Solaris
9584         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9585         * modules/fdatasync (Link): Document it.
9586         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9587
9588         fdatasync: port to MacOS X 10.7
9589         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9590         declared.
9591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9592         * modules/unistd (Makefile.am): Substitute it.
9593         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9594         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9595
9596         fdatasync: minor improvements
9597         * modules/fdatasync (Depends-on): Add condition for fsync.
9598         * lib/fdatasync.c (fdatasync): Add comment.
9599         * tests/test-unistd-c++.cc: Test fdatasync.
9600
9601         unistd: update refs to newer POSIX
9602         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9603         Suggested by Bruno Haible.
9604
9605         fdatasync: new module
9606         * modules/fsync (Description): Document difference to fdatasync.
9607         * modules/fdatasync: New module.
9608         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9609         * lib/fdatasync.c (fdatasync): Likewise.
9610         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9611         defaults.
9612         * modules/unistd (Makefile.am): Set witnesses.
9613         * lib/unistd.in.h (fdatasync): Declare.
9614         * MODULES.html.sh: Document it.
9615         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9616         * modules/fdatasync-tests: New test.
9617         * tests/test-fdatasync.c: Likewise.
9618
9619 2011-09-16  Eric Blake  <eblake@redhat.com>
9620
9621         test-fsync: enhance tests
9622         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9623         * tests/test-fsync.c (main): Enhance test.
9624
9625 2011-09-15  Bruno Haible  <bruno@clisp.org>
9626
9627         Support for MSVC compiler: Ensure ssize_t gets defined.
9628         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9629         * doc/posix-headers/stdio.texi: Likewise.
9630         * modules/stdio (Depends-on): Add ssize_t.
9631         * modules/sys_socket (Depends-on): Likewise.
9632         * modules/sys_types (Depends-on): Likewise.
9633         * modules/sys_uio (Depends-on): Likewise.
9634         * modules/unistd (Depends-on): Likewise.
9635         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9636         * tests/test-sys_types.c: Check that ssize_t is defined.
9637
9638 2011-09-14  Bruno Haible  <bruno@clisp.org>
9639
9640         Avoid using #, the m4 comment starter character, near brackets.
9641         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9642         delimiter character in sed expressions.
9643         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9644         Suggested by Eric Blake.
9645
9646         Properly quote AC_CHECK_DECLS' 4th argument.
9647         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9648         argument.
9649         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9650         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9651         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9652         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9653         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9654         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9655         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9656         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9657         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9658         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9659         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9660         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9661         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9662         * m4/isinf.m4 (gl_ISINF): Likewise.
9663         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9664         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9665         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9666         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9667         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9668         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9669         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9670         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9671         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9672         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9673         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9674         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9676         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9677         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9678         Reported by Eric Blake.
9679
9680         Properly quote AC_CHECK_DECL's 4th argument.
9681         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9682         argument.
9683         * m4/argp.m4 (gl_ARGP): Likewise.
9684         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9685         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9686         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9687         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9688         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9689         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9690         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9691         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9692         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9693         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9694         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9695         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9696         Reported by Eric Blake.
9697
9698 2011-09-14  Eric Blake  <eblake@redhat.com>
9699
9700         opendir: avoid compile warning
9701         * lib/opendir.c (includes): Always include errno.h.
9702         Reported by Tatsuro MATSUOKA.
9703
9704 2011-09-14  Jim Meyering  <meyering@redhat.com>
9705
9706         maint.mk: sc_tight_scope: propagate failure from sub-make
9707         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9708         Reported by Martin von Gagern.
9709
9710 2011-09-13  Bruno Haible  <bruno@clisp.org>
9711
9712         tempname: Support for MSVC.
9713         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9714         MSVC.
9715         * modules/tempname (Depends-on): Add fcntl-h.
9716
9717 2011-09-13  Bruno Haible  <bruno@clisp.org>
9718
9719         sys_time: Support for MSVC.
9720         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9721         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9722         include <winsock2.h>.
9723         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9724         function declarations that collide with POSIX.
9725         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9726         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9727
9728 2011-09-13  Bruno Haible  <bruno@clisp.org>
9729
9730         stat: Support for MSVC.
9731         * lib/stat.c: Include pathmax.h.
9732         * modules/stat (Depends-on): Add pathmax.
9733
9734         pathmax: Support for native Windows.
9735         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9736
9737 2011-09-12  Bruno Haible  <bruno@clisp.org>
9738
9739         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9740         * lib/dirent.in.h (struct dirent): New type.
9741         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9742         DT_WHT): New macros.
9743         (DIR): New type.
9744         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9745         (readdir, rewinddir): New declarations.
9746         * lib/dirent-private.h: New file.
9747         * lib/opendir.c: New file.
9748         * lib/readdir.c: New file.
9749         * lib/rewinddir.c: New file.
9750         * lib/closedir.c: New file.
9751         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9752         * m4/opendir.m4: New file.
9753         * m4/readdir.m4: New file.
9754         * m4/rewinddir.m4: New file.
9755         * m4/closedir.m4: New file.
9756         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9757         REPLACE_CLOSEDIR here.
9758         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9759         readdir, rewinddir are declared.
9760         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9761         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9762         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9763         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9764         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9765         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9766         * modules/opendir: New file.
9767         * modules/readdir: New file.
9768         * modules/rewinddir: New file.
9769         * modules/closedir: New file.
9770         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9771         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9772         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9773         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9774         * NEWS: Mention the 'fchdir' change.
9775
9776 2011-09-11  Bruno Haible  <bruno@clisp.org>
9777
9778         asm-underscore.m4: Support for MSVC.
9779         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9780         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9781
9782 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9783
9784         Doc about crypt functions.
9785         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9786         needing for _GNU_SOURCE to get crypt.
9787         * doc/posix-functions/encrypt.texi: Likewise.
9788         * doc/posix-functions/setkey.texi: Likewise.
9789
9790 2011-09-11  Bruno Haible  <bruno@clisp.org>
9791
9792         doc: Update regarding MSVC 9.
9793         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9794         tested".
9795         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9796         * doc/posix-headers/*.texi: Likewise.
9797         * doc/pastposix-functions/*.texi: Likewise.
9798         * doc/glibc-functions/*.texi: Likewise.
9799         * doc/glibc-headers/*.texi: Likewise.
9800
9801 2011-09-11  Bruno Haible  <bruno@clisp.org>
9802
9803         unistd et al.: Don't assume <unistd.h> exists.
9804         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9805         does not exist.
9806         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9807         exist. But include <stdlib.h>.
9808         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9809         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9810         symlink() does not exist.
9811         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9812         include <io.h> instead.
9813         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9814         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9815         include <direct.h> instead.
9816         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9817         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9818         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9819         <io.h> instead.
9820         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9821         correctly if the system does not have hard links.
9822         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9823         <direct.h> instead.
9824         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9825         it when looking for function declarations.
9826         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9827         <direct.h> and <io.h> instead.
9828         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9829
9830 2011-09-11  Bruno Haible  <bruno@clisp.org>
9831
9832         strcase: Support for MSVC.
9833         * modules/strcase (Status, Notice): Remove obsoletion mark.
9834         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9835         * doc/posix-functions/strncasecmp.texi: Likewise.
9836
9837         strings: Don't assume <strings.h> exists.
9838         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9839         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9840         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9841         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9842
9843 2011-09-11  Bruno Haible  <bruno@clisp.org>
9844
9845         dirent: Don't assume <dirent.h> exists.
9846         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9847         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9848         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9849         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9850
9851 2011-09-11  Bruno Haible  <bruno@clisp.org>
9852
9853         Fix wint_t on MSVC.
9854         * lib/wchar.in.h (wint_t): On MSVC, override it.
9855         * lib/wctype.in.h (wint_t): Likewise.
9856         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9857         MSVC.
9858         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9859         * doc/posix-headers/wctype.texi: Likewise.
9860
9861 2011-09-11  Bruno Haible  <bruno@clisp.org>
9862
9863         sys_types: Fix typo.
9864         * lib/sys_types.in.h: Fix typo in comment.
9865         Reported by Paul Eggert.
9866
9867         Support for MSVC compiler: Ensure size_t gets defined.
9868         * modules/strings (Depends-on): Add 'sys_types'.
9869         * modules/sys_uio (Depends-on): Likewise.
9870         * lib/sys_uio.in.h: Update comment.
9871
9872         C++ tests for module 'sys_types'.
9873         * modules/sys_types-c++-tests: New file.
9874         * tests/test-sys_types-c++.cc: New file.
9875
9876         Tests for module 'sys_types'.
9877         * modules/sys_types-tests: New file.
9878         * tests/test-sys_types.c: New file.
9879
9880         New module 'sys_types'.
9881         * lib/sys_types.in.h: New file.
9882         * m4/sys_types_h.m4: New file.
9883         * modules/sys_types: New file.
9884         * doc/posix-headers/sys_types.texi: Mention the new module and the
9885         size_t problem on MSVC 9.
9886
9887 2011-09-11  Bruno Haible  <bruno@clisp.org>
9888
9889         Support for MSVC compiler: Avoid division by a literal 0.
9890         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9891         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9892         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9893         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9894         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9895         * tests/infinity.h: New file.
9896         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9897         on MSVC.
9898         * tests/test-ceilf1.c: Include infinity.h.
9899         (main): Use Infinityf.
9900         * tests/test-ceil1.c: Include infinity.h.
9901         (main): Use Infinityd.
9902         * tests/test-ceill.c: Include infinity.h.
9903         (main): Use Infinityl.
9904         * tests/test-dprintf-posix.c: Include infinity.h.
9905         (test_function): Use Infinityd.
9906         * tests/test-floorf1.c: Include infinity.h.
9907         (main): Use Infinityf.
9908         * tests/test-floor1.c: Include infinity.h.
9909         (main): Use Infinityd.
9910         * tests/test-floorl.c: Include infinity.h.
9911         (main): Use Infinityl.
9912         * tests/test-fprintf-posix.c: Include infinity.h.
9913         (test_function): Use Infinityd.
9914         * tests/test-frexp.c: Include infinity.h.
9915         (main): Use Infinityd.
9916         * tests/test-frexpl.c: Include infinity.h.
9917         (main): Use Infinityl.
9918         * tests/test-isfinite.c: Include infinity.h.
9919         (test_isfinitef): Use Infinityf.
9920         (test_isfinited): Use Infinityd.
9921         (test_isfinitel): Use Infinityl.
9922         * tests/test-isinf.c: Include infinity.h.
9923         (test_isinff): Use Infinityf.
9924         (test_isinfd): Use Infinityd.
9925         (test_isinfl): Use Infinityl.
9926         * tests/test-isnan.c: Include infinity.h.
9927         (test_float): Use Infinityf.
9928         (test_double): Use Infinityd.
9929         (test_long_double): Use Infinityl.
9930         * tests/test-isnanf.h: Include infinity.h.
9931         (main): Use Infinityf.
9932         * tests/test-isnand.h: Include infinity.h.
9933         (main): Use Infinityd.
9934         * tests/test-isnanl.h: Include infinity.h.
9935         (main): Use Infinityl.
9936         * tests/test-ldexpl.c: Include infinity.h.
9937         (main): Use Infinityl.
9938         * tests/test-printf-posix.h: Include infinity.h.
9939         (test_function): Use Infinityd.
9940         * tests/test-roundf1.c: Include infinity.h.
9941         (main): Use Infinityf.
9942         * tests/test-round1.c: Include infinity.h.
9943         (main): Use Infinityd.
9944         * tests/test-roundl.c: Include infinity.h.
9945         (main): Use Infinityl.
9946         * tests/test-signbit.c: Include infinity.h.
9947         (test_signbitf): Use Infinityf.
9948         (test_signbitd): Use Infinityd.
9949         (test_signbitl): Use Infinityl.
9950         * tests/test-snprintf-posix.h: Include infinity.h.
9951         (test_function): Use Infinityd, Infinityl.
9952         * tests/test-sprintf-posix.h: Include infinity.h.
9953         (test_function): Use Infinityd, Infinityl.
9954         * tests/test-truncf1.c: Include infinity.h.
9955         (main): Use Infinityf.
9956         * tests/test-trunc1.c: Include infinity.h.
9957         (main): Use Infinityd.
9958         * tests/test-truncl.c: Include infinity.h.
9959         (main): Use Infinityl.
9960         * tests/test-vasnprintf-posix.c: Include infinity.h.
9961         (test_function): Use Infinityd, Infinityl.
9962         * tests/test-vasprintf-posix.c: Include infinity.h.
9963         (test_function): Use Infinityd, Infinityl.
9964         * modules/ceilf-tests (Files): Add tests/infinity.h.
9965         * modules/ceil-tests (Files): Likewise.
9966         * modules/ceill-tests (Files): Likewise.
9967         * modules/dprintf-posix-tests (Files): Likewise.
9968         * modules/floorf-tests (Files): Likewise.
9969         * modules/floor-tests (Files): Likewise.
9970         * modules/floorl-tests (Files): Likewise.
9971         * modules/fprintf-posix-tests (Files): Likewise.
9972         * modules/frexp-tests (Files): Likewise.
9973         * modules/frexp-nolibm-tests (Files): Likewise.
9974         * modules/frexpl-tests (Files): Likewise.
9975         * modules/frexpl-nolibm-tests (Files): Likewise.
9976         * modules/isfinite-tests (Files): Likewise.
9977         * modules/isinf-tests (Files): Likewise.
9978         * modules/isnan-tests (Files): Likewise.
9979         * modules/isnanf-tests (Files): Likewise.
9980         * modules/isnanf-nolibm-tests (Files): Likewise.
9981         * modules/isnand-tests (Files): Likewise.
9982         * modules/isnand-nolibm-tests (Files): Likewise.
9983         * modules/isnanl-tests (Files): Likewise.
9984         * modules/isnanl-nolibm-tests (Files): Likewise.
9985         * modules/ldexpl-tests (Files): Likewise.
9986         * modules/printf-posix-tests (Files): Likewise.
9987         * modules/roundf-tests (Files): Likewise.
9988         * modules/round-tests (Files): Likewise.
9989         * modules/roundl-tests (Files): Likewise.
9990         * modules/signbit-tests (Files): Likewise.
9991         * modules/snprintf-posix-tests (Files): Likewise.
9992         * modules/sprintf-posix-tests (Files): Likewise.
9993         * modules/truncf-tests (Files): Likewise.
9994         * modules/trunc-tests (Files): Likewise.
9995         * modules/truncl-tests (Files): Likewise.
9996         * modules/vasnprintf-posix-tests (Files): Likewise.
9997         * modules/vasprintf-posix-tests (Files): Likewise.
9998         * modules/vdprintf-posix-tests (Files): Likewise.
9999         * modules/vfprintf-posix-tests (Files): Likewise.
10000         * modules/vprintf-posix-tests (Files): Likewise.
10001         * modules/vsnprintf-posix-tests (Files): Likewise.
10002         * modules/vsprintf-posix-tests (Files): Likewise.
10003         * modules/xprintf-posix-tests (Files): Likewise.
10004
10005 2011-09-11  Bruno Haible  <bruno@clisp.org>
10006
10007         Ensure pid_t gets defined.
10008         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10009         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10010         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10011         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10012         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10013         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10014         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10015         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10016         * tests/test-fcntl-h.c: Check that pid_t is defined.
10017         * tests/test-sched.c: Likewise.
10018         * tests/test-termios.c: Likewise.
10019         * tests/test-time.c: Likewise.
10020         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10021         * doc/posix-headers/signal.texi: Likewise.
10022         * doc/posix-headers/sys_types.texi: Likewise.
10023         * doc/posix-headers/time.texi: Likewise.
10024
10025 2011-09-11  Bruno Haible  <bruno@clisp.org>
10026
10027         acl: Fix compilation on Solaris 10 (older version).
10028         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10029         of ACE_EVERYONE.
10030         * lib/set-mode-acl.c (qset_acl): Likewise.
10031         Reported by Christian Jullien <eligis@orange.fr>.
10032
10033 2011-09-10  Bruno Haible  <bruno@clisp.org>
10034
10035         iconv, unsetenv: Add support for MSVC compiler.
10036         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10037         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10038
10039 2011-09-10  Bruno Haible  <bruno@clisp.org>
10040
10041         *printf: Add support for MSVC compiler.
10042         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10043         handles the exception caused by the %n directive. When cross-compiling,
10044         guess no on native Windows.
10045         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10046         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10047         emulate it through vsnprintf.
10048         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10049         * doc/posix-functions/dprintf.texi: Update documentation regarding
10050         MSVC 9.
10051         * doc/posix-functions/fprintf.texi: Likewise.
10052         * doc/posix-functions/printf.texi: Likewise.
10053         * doc/posix-functions/snprintf.texi: Likewise.
10054         * doc/posix-functions/sprintf.texi: Likewise.
10055         * doc/posix-functions/swprintf.texi: Likewise.
10056         * doc/posix-functions/vdprintf.texi: Likewise.
10057         * doc/posix-functions/vfprintf.texi: Likewise.
10058         * doc/posix-functions/vprintf.texi: Likewise.
10059         * doc/posix-functions/vsnprintf.texi: Likewise.
10060         * doc/posix-functions/vsprintf.texi: Likewise.
10061         * doc/glibc-functions/asprintf.texi: Likewise.
10062         * doc/glibc-functions/obstack_printf.texi: Likewise.
10063         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10064         * doc/glibc-functions/vasprintf.texi: Likewise.
10065
10066 2011-09-10  Bruno Haible  <bruno@clisp.org>
10067
10068         nocrash: Add support for native Windows.
10069         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10070
10071 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10072             Bruno Haible  <bruno@clisp.org>
10073
10074         absolute-header, include-next: Add support for MSVC compiler.
10075         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10076         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10077         directory separator in #line directives.
10078         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10079         recognize also backslash as directory separator in #line directives.
10080
10081 2011-09-08  Jim Meyering  <meyering@redhat.com>
10082
10083         maint.mk: mark the post-release commit log with "maint: " prefix
10084         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10085         one-line commit-log summary.
10086
10087 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10088             Bruno Haible  <bruno@clisp.org>
10089
10090         Doc about crypt functions.
10091         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10092         systems.
10093         * doc/posix-functions/encrypt.texi: Likewise.
10094         * doc/posix-functions/setkey.texi: Likewise.
10095
10096 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10097
10098         * lib/gc.h: Fix copyright header.
10099
10100 2011-09-07  Bruno Haible  <bruno@clisp.org>
10101
10102         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10103         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10104         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10105
10106 2011-09-07  Bruno Haible  <bruno@clisp.org>
10107
10108         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10109         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10110         * lib/freopen.c: Likewise.
10111         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10112         * lib/lstat.c: Likewise.
10113         * lib/stat.c: Likewise.
10114         * lib/open.c: Use different syntax for include of <fcntl.h>.
10115         * lib/openat.c: Include fcntl.h again, explicitly.
10116
10117 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10118
10119         parse-datetime: document the newly accepted format
10120         * doc/parse-datetime.texi (Combined date and time of day items):
10121         New section.
10122
10123 2011-09-06  Bruno Haible  <bruno@clisp.org>
10124
10125         acl: Fix a test failure on newer Solaris 10 with ZFS.
10126         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10127         ENOSYS as no ACL.
10128         Reported by Jim Meyering.
10129
10130 2011-09-06  Bruno Haible  <bruno@clisp.org>
10131
10132         acl: Update for AIX >= 5.3 with NFS.
10133         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10134         ENOSYS as no ACL.
10135
10136         acl: Fix a test failure on AIX >= 5.3 with NFS.
10137         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10138         as no ACL.
10139
10140 2011-09-06  Bruno Haible  <bruno@clisp.org>
10141
10142         acl: Fix a test failure on IRIX 6.5 with NFS.
10143         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10144         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10145         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10146         * lib/copy-acl.c (qcopy_acl): Likewise.
10147
10148 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10149
10150         openat: port to AIX 7.1 with large files
10151         AIX 7.1 does a "#define openat open64at" if large files are in use,
10152         so we can't simply #undef openat.  Use the orig_openat trick (similar
10153         to orig_open in lib/open.c) to work around the problem.  Problem
10154         reported by Kevin Brott for GNU tar, in the thread containing
10155         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10156         * lib/openat.c (__need_system_fcntl_h): Define first.
10157         Include <fcntl.h> and <sys/types.h> before undefining.
10158         (orig_openat) [HAVE_OPENAT]: New inline function.
10159         (openat) [HAVE_OPENAT]: Do not undef.
10160         (rpl_openat): Use orig_openat, not openat.
10161
10162 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10163             Bruno Haible  <bruno@clisp.org>
10164
10165         acl: Avoid errors on NonStop Kernel.
10166         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10167         ENOTSUP errors.
10168
10169 2011-09-05  Bruno Haible  <bruno@clisp.org>
10170
10171         acl: Clean up Solaris code.
10172         * lib/acl-internal.h: Remove no-op #if.
10173         * lib/file-has-acl.c: Likewise.
10174         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10175         * lib/copy-acl.c (qcopy_acl): Likewise.
10176
10177 2011-09-05  Bruno Haible  <bruno@clisp.org>
10178
10179         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10180         binaries built on the original Solaris 10.
10181         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10182         trivial.
10183
10184 2011-09-05  Bruno Haible  <bruno@clisp.org>
10185
10186         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10187         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10188         10.
10189         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10190         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10191         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10192         instead of acl_get, facl_get, acl_set, facl_set.
10193
10194 2011-09-05  Bruno Haible  <bruno@clisp.org>
10195
10196         copy-file: Try unit tests on more file systems.
10197         * tests/test-copy-file-1.sh: New file.
10198         * tests/test-copy-file-2.sh: New file.
10199         * modules/copy-file-tests (Files): Add them.
10200         (Makefile.am): Add them to TESTS.
10201
10202         acl: Try unit tests on more file systems.
10203         * tests/test-file-has-acl-1.sh: New file.
10204         * tests/test-file-has-acl-2.sh: New file.
10205         * tests/test-set-mode-acl-1.sh: New file.
10206         * tests/test-set-mode-acl-2.sh: New file.
10207         * tests/test-copy-acl-1.sh: New file.
10208         * tests/test-copy-acl-2.sh: New file.
10209         * modules/acl-tests (Files): Add them.
10210         (Makefile.am): Add them to TESTS.
10211
10212 2011-09-04  Bruno Haible  <bruno@clisp.org>
10213
10214         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10215         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10216         10.
10217         (OLD_ALLOW, OLD_DENY): New macros.
10218         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10219         ACE_ACCESS_ALLOWED_ACE_TYPE.
10220         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10221         ACE_ACCESS_DENIED_ACE_TYPE.
10222         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10223         (NEW_ACE_EXECUTE): Fix value.
10224         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10225         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10226         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10227         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10228         NEW_ACE_SYNCHRONIZE): New macros.
10229         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10230         instead of acl_fromtext, acl_set, facl_set.
10231         Fixes a coreutils/tests/cp/perm failure.
10232
10233 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10234
10235         openat: test for fstatat (..., 0) bug
10236         Further testing with tar suggests that fstatat (..., 0)
10237         does not work in general, on AIX 7.1; see
10238         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10239         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10240         replacement fstatat (which is what older AIX releases were using
10241         anyway).
10242         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10243         use is now changed to orig_fstatat.  This was probably the right
10244         thing to do anyway.
10245         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10246         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10247         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10248         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10249         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10250         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10251         if the bug is found.
10252
10253         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10254         This tests for another fstatat bug on AIX 7.1:
10255         fstatat (AT_FDCWD, ..., 0) does not work.  See
10256         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10257         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10258         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10259         (rpl_fstatat): Adjust so that it works around either (or both)
10260         bugs if present.
10261         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10262
10263 2011-09-03  Karl Berry  <karl@gnu.org>
10264
10265         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10266         in index entries.
10267
10268 2011-09-02  Bruno Haible  <bruno@clisp.org>
10269
10270         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10271         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10272         values of AR, ARFLAGS, RANLIB.
10273         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10274
10275 2011-09-02  Bruno Haible  <bruno@clisp.org>
10276
10277         Find 'ar' program that fits with --host argument.
10278         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10279
10280 2011-09-02  Bruno Haible  <bruno@clisp.org>
10281
10282         tests: init.sh: Support any non-GNU diff.
10283         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10284         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10285         Solaris 8.
10286
10287 2011-09-02  Bruno Haible  <bruno@clisp.org>
10288
10289         tests: init.sh: work also with any non-GNU diff that supports -u
10290         * tests/init.sh: Relax check for diff -u support.
10291         Rather than checking for GNU diff via --version, simply check
10292         for support for -u itself.  Useful at least on OpenBSD 4.9,
10293         AIX 7.1, IRIX 6.5, and Solaris 10.
10294
10295 2011-09-01  Bruno Haible  <bruno@clisp.org>
10296
10297         strtoimax, strtoumax: Document problem on HP-UX 11.
10298         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10299         * doc/posix-functions/strtoumax.texi: Likewise.
10300
10301 2011-09-01  Bruno Haible  <bruno@clisp.org>
10302
10303         strtoumax: Avoid link error on OSF/1 with DTK cc.
10304         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10305         defined as a function.
10306         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10307         strtoumax is defined, not whether it is declared.
10308
10309 2011-09-01  Bruno Haible  <bruno@clisp.org>
10310
10311         strtoimax: Avoid link error on OSF/1 with DTK cc.
10312         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10313         defined as a function.
10314         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10315         strtoimax is defined, not whether it is declared.
10316
10317 2011-09-01  Bruno Haible  <bruno@clisp.org>
10318
10319         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10320         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10321         as a function.
10322         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10323         whether it is declared.
10324
10325 2011-09-01  Bruno Haible  <bruno@clisp.org>
10326
10327         imaxabs: Avoid link error on OSF/1 with DTK cc.
10328         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10329         as a function.
10330         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10331         whether it is declared.
10332
10333 2011-09-01  Bruno Haible  <bruno@clisp.org>
10334
10335         Tests for module 'strtoumax'.
10336         * modules/strtoumax-tests: New file.
10337         * tests/test-strtoumax.c: New file.
10338
10339         Tests for module 'strtoimax'.
10340         * modules/strtoimax-tests: New file.
10341         * tests/test-strtoimax.c: New file.
10342
10343         Tests for module 'imaxdiv'.
10344         * modules/imaxdiv-tests: New file.
10345         * tests/test-imaxdiv.c: New file.
10346
10347         Tests for module 'imaxabs'.
10348         * modules/imaxabs-tests: New file.
10349         * tests/test-imaxabs.c: New file.
10350
10351 2011-09-01  Bruno Haible  <bruno@clisp.org>
10352
10353         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10354         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10355         pthread_create.
10356
10357 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10358
10359         openat: work around AIX 7.1 fstatat issue
10360         This should fix the problem that was not properly fixed
10361         in the previous change, dated 2011-08-30.
10362         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10363         __need_system_stat_h defined.
10364         (orig_fstatat) [HAVE_FSTATAT]: New function.
10365         (rpl_fstatat): Go back to the old way of doing things,
10366         except call orig_fstatat instead of fstatat.
10367         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10368         Remove unnecessary check whether fstatat fills in st_size etc.
10369
10370 2011-09-01  Bruno Haible  <bruno@clisp.org>
10371
10372         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10373         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10374         just include the system's header.
10375
10376 2011-08-31  Jim Meyering  <meyering@redhat.com>
10377
10378         tests: avoid spurious assertion failure in test-float.c on ppc64
10379         * tests/test-float.c (test_long_double): Comment out an assertion,
10380         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10381         with gcc-4.4.4.
10382
10383         maint: indent with spaces, not TABs
10384         I need to get in the habit of running gnulib's "make check".
10385         Both of these would have been caught.
10386         * m4/largefile.m4: Indent with spaces, not TABs.
10387         * lib/parse-datetime.y (iso_8601_time): Likewise.
10388         Spotted by Pádraig Brady.
10389
10390         test-parse-datetime.c: accommodate a relatively strict gcc warning
10391         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10392         to avoid a warning from gcc's -Werror=missing-declarations.
10393         Insert a few spaces-before-funcall-parenthesis.
10394
10395 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10396
10397         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10398         The parser now accepts ISO 8601 date-time strings with "T" as the
10399         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10400         with a space between the date and time strings.  Now it also parses
10401         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10402         variants like "2004-02-29T16:21:42.333-07:00"
10403         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10404         of day representation using the 'T' separator character.
10405         * doc/parse-datetime.texi (General date syntax): replace use of
10406         deprecated --iso-8601 option with --rfc-3339 in example of date
10407         command output formats that can be parsed.
10408         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10409         lib/parse-datetime.y.
10410         (gmt_offset): New function.
10411         (main): Add additional test cases to validate ISO8601 extended
10412         date and time of day parsing.
10413
10414 2011-08-31  Bruno Haible  <bruno@clisp.org>
10415
10416         freopen: Documentation.
10417         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10418         name.
10419         Reported by Claudio Bley <claudio.bley@gmail.com>.
10420
10421 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10422
10423         freopen: Don't crash if the filename argument is NULL.
10424         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10425         NULL.
10426
10427 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10428
10429         openat: work around AIX 7.1 fstatat bug
10430         Problem reported by Kevin Brott for GNU tar, in the thread containing
10431         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10432         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10433         FSTATAT_ST_SIZE_ETC_BROKEN.
10434         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10435         rpl_fstatat.
10436         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10437         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10438         AC_CHECK_FUNCS_ONCE for fstatat.
10439         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10440         fchmodat, mkdirat, openat and unlinkat.
10441
10442 2011-08-30  Bruno Haible  <bruno@clisp.org>
10443
10444         Avoid endless recursions if config.h includes some header files.
10445         * lib/fopen.c (__need_FILE): Define already before including config.h.
10446         * lib/freopen.c (__need_FILE): Likewise.
10447         * lib/open.c (__need_system_fcntl_h): Likewise.
10448         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10449         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10450         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10451
10452 2011-08-25  Karl Berry  <karl@gnu.org>
10453
10454         * config/srclist.txt (ylwrap): new try.
10455         * build-aux/ylwrap: new file.
10456
10457 2011-08-23  Bruno Haible  <bruno@clisp.org>
10458
10459         tmpdir: Use a good default directory on native Windows.
10460         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10461         (P_tmpdir): Default to _P_tmpdir on native Windows.
10462         (path_search): On native Windows, try the value returned by GetTempPath
10463         before trying P_tmpdir.
10464         * modules/tmpdir (Depends-on): Add pathmax.
10465         Suggested by John Darrington <john@darrington.wattle.id.au>.
10466
10467 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10468
10469         doc: fix typo in README-release
10470         * top/README-release: Capitalize first word of a sentence.
10471
10472 2011-08-19  Jim Meyering  <meyering@redhat.com>
10473
10474         fts: do not exhaust memory when processing million-entry directories
10475         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10476         directory would require about 256*N bytes of memory.  Thus, it was
10477         easy to construct a directory too large to be processed by any of
10478         those tools.  With this change, fts' maximum memory utilization is
10479         now limited to around 30MB.
10480         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10481         (fts_read): When we've processed the final entry (i.e., when
10482         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10483         using the parent entry to read any remaining entries.  Dispatch
10484         depending on what fts_build returns:
10485         - NULL+stop, aka failure: stop
10486         - NULL otherwise: move up in the dir hierarchy
10487         - non-NULL: handle this new entry
10488         (fts_build): Declare and use new local, continue_readdir.
10489         Prepare to be called from fts_read, when the entries
10490         from a partially-read directory have just been exhausted.
10491         In that case, we'll skip the opendir and instead use the parent's
10492         fts_dirp and derive dir_fd from that.
10493         Finally, in the readdir loop, if we read max_entries entries,
10494         exit the loop ensuring *not* to call closedir.  This is required
10495         so that fts_dirp can be reused on a subsequent call.
10496         Prompted by Ben England's report of memory exhaustion in find
10497         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10498
10499         maint: fts: move decl of `dp' down into while loop; split a long line
10500         * lib/fts.c (fts_build): No semantic change.
10501
10502         fts: add/use new struct member, fts_dirp
10503         We are about to use this to manage any directory with
10504         too many entries to read all of them into memory at once.
10505         To do that, we'll need to save the DIR* pointer in each
10506         affected FTSENT struct.
10507         * lib/fts_.h: Include <dirent.h>.
10508         (struct FTSENT) [fts_dirp]: New member.
10509         * lib/fts.c (closedir_and_clear): Define.
10510         Use it in place of closedir so that we are sure to
10511         clear the new fts_dirp member when done with it.
10512         (fts_alloc): Initialize the new member.
10513         (fts_lfree): Free, if needed.
10514
10515         maint: fts: give __opendir2 a new parameter and rename
10516         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10517         than surreptitiously using sole caller's "dir_fd".
10518         (fts_opendir): Rename from __opendir2.
10519
10520         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10521         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10522
10523         maint: fts.c: correct off-by-one indentation
10524         * lib/fts.c (fts_build): Correct indentation, change style
10525         of a couple of block comments, and bracing style.
10526
10527         maint: fts.c: move __opendir2 #define "up" out of function body
10528         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10529
10530         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10531         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10532         out for a long time and besides was useful only on BSD systems.
10533
10534 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10535
10536         regex: port to Stratus OpenVOS
10537         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10538         define to empty, rather than attempting nonportable optimizations.
10539         Problem reported by Paul Green in:
10540         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10541         and fix suggested by Eric Blake in:
10542         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10543
10544 2011-08-17  Eric Blake  <eblake@redhat.com>
10545
10546         getcwd: fix test failures on mingw
10547         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10548         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10549         test if long directory cannot be created, and allow mingw errno.
10550
10551         getcwd-lgpl: fix m4 to match relaxed test for BSD
10552         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10553         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10554         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10555         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10556         signature problem.
10557
10558         getcwd: fix compilation on mingw64
10559         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10560         getcwd.
10561         Reported by Marc-André Lureau.
10562
10563         pipe2: silence compiler warning
10564         * lib/pipe2.c (pipe2): Hide label if it is not used.
10565
10566 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10567
10568         relocatable-prog: fix link error
10569         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10570         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10571         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10572         into modules/relocatable-lib without noticing that
10573         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10574         also needs to build relocatable.c.
10575
10576 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10577
10578         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10579         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10580         shell code: it contained a 'break' that was not in a loop.
10581         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10582         via a shell-language loop; this may have been true in old Autoconf
10583         versions, but it's not true in Autoconf 2.68.  I found this bug
10584         when testing coreutils git on Solaris 8, whose shell complains
10585         about the syntax error.
10586
10587 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10588
10589         * lib/base64.c: Fix comment to reference RFC 4648.
10590         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10591         <gvtulder@gmail.com>.
10592
10593 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10594
10595         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10596
10597         po/Makefile.in.in: fix make -q problem
10598         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10599         rule, since there's no file named 'check-macro-version' and its
10600         use as a file breaks make -q.
10601         (all): Don't depend on check-macro-version.
10602         (CHECK_MACRO_VERSION): New macro.
10603         (stamp-po): Use it.
10604
10605         configmake: fix make -q problem
10606         * modules/configmake (configmake.h): Update configmake.h's time stamp
10607         even if the file does not change.  Otherwise, 'make -q' fails.
10608         Problem reported by Simon Josefsson in
10609         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10610
10611 2011-08-11  Jim Meyering  <meyering@redhat.com>
10612
10613         git-version-gen: correct the advice in a comment
10614         * build-aux/git-version-gen: Correct comment.
10615         Don't recommend to list .tarball-version in .gitignore.
10616
10617 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10618
10619         base64: fix off-by-one buffer size bug
10620         Problem and (trivial) fix reported by Gijs van Tulder in
10621         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10622         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10623         * tests/test-base64.c (main): Catch the bug.
10624
10625 2011-08-10  Eric Blake  <eblake@redhat.com>
10626
10627         closein: correct comments
10628         * lib/closein.c (close_stdin): Improve comments.
10629
10630 2011-08-09  Bruno Haible  <bruno@clisp.org>
10631
10632         More tests for 'fseeko'.
10633         * tests/test-fseeko3.c: New file, from Eric Blake.
10634         * tests/test-fseeko3.sh: New file.
10635         * modules/fseeko-tests (Files): Add them.
10636         (TESTS): Add test-fseeko3.sh.
10637         (check_PROGRAMS): Add test-fseeko3.
10638
10639 2011-08-09  Eric Blake  <eblake@redhat.com>
10640
10641         fseeko: remove unneeded hack
10642         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10643
10644         fseeko: fix bug on glibc
10645         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10646         Reported by John W. Eaton.
10647
10648 2011-08-08  Bruno Haible  <bruno@clisp.org>
10649
10650         unictype/base: Fix interoperability with preinstalled libunistring.
10651         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10652         Reported by Simon Josefsson.
10653
10654 2011-08-08  Bruno Haible  <bruno@clisp.org>
10655
10656         iswblank: Detect declaration correctly.
10657         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10658         AC_CHECK_DECLS invocation.
10659
10660 2011-08-08  Bruno Haible  <bruno@clisp.org>
10661
10662         tcgetsid: Detect declaration correctly.
10663         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10664         AC_CHECK_DECLS invocation.
10665         Reported by Simon Josefsson.
10666
10667 2011-08-08  Eric Blake  <eblake@redhat.com>
10668
10669         largefile: fix typo that regressed large file support
10670         * modules/largefile (configure.ac-early): Fix section name.
10671
10672 2011-08-06  Karl Berry  <karl@gnu.org>
10673
10674         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10675         a separate module.
10676
10677 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10678
10679         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10680         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10681         get prototype for free.
10682
10683 2011-08-04  Bruno Haible  <bruno@clisp.org>
10684
10685         Tests for module 'pathmax'.
10686         * modules/pathmax-tests: New file.
10687         * tests/test-pathmax.c: New file.
10688
10689         canonicalize-lgpl: Support larger filenames on the Hurd.
10690         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10691         Reported by Paul Eggert.
10692
10693         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10694         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10695         * lib/chdir-long.h: Include pathmax.h.
10696         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10697         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10698         (PATH_MAX): Remove code that is done by pathmax.h.
10699         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10700         * lib/tmpfile.c: Add a comment.
10701         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10702         * modules/chdir-long (Depends-on): Add pathmax.
10703         * modules/getcwd (Depends-on): Add pathmax.
10704         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10705         is not defined.
10706         * doc/posix-headers/limits.texi: Mention the pathmax module.
10707         * NEWS: Mention the change.
10708
10709 2011-08-02  Bruno Haible  <bruno@clisp.org>
10710
10711         pthread_sigmask: Actually use results of gl_THREADLIB.
10712         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10713         gl_THREADLIB, not gl_[]THREADLIB.
10714         Reported by Eric Blake.
10715
10716 2011-08-02  Jim Meyering  <meyering@redhat.com>
10717
10718         maint.mk: relax the default _gl_TS_function_match regexp
10719         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10720         space between function name and "(" in an "extern" declaration.
10721         That would fail to match a decl with no space there: extern void foo();
10722
10723 2011-07-31  Iain Nicol  <iain@thenicols.net>
10724
10725         git-version-gen: document that EXTRA_DIST must include .version
10726         * build-aux/git-version-gen: In the how-to-use comment, document
10727         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10728         will fail when run from an unpacked distribution tarball.
10729
10730 2011-08-01  Bruno Haible  <bruno@clisp.org>
10731
10732         wctype-h: Fix last change.
10733         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10734         REPLACE_TOWLOWER to 0.
10735         Reported by Sam Steingold <sds@gnu.org>.
10736
10737 2011-07-31  Bruno Haible  <bruno@clisp.org>
10738
10739         frexpl: Update autoconf test.
10740         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10741         according to changes of 2011-06-20.
10742
10743 2011-07-31  Bruno Haible  <bruno@clisp.org>
10744
10745         sys_utsname: Add support for Minix.
10746         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10747         <sys/utsname.h>.
10748         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10749         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10750
10751 2011-07-31  Bruno Haible  <bruno@clisp.org>
10752
10753         strings: Add support for Minix.
10754         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10755         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10756         * doc/posix-headers/strings.texi: Document the Minix problem.
10757
10758 2011-07-31  Bruno Haible  <bruno@clisp.org>
10759
10760         wctype-h: Add support for Minix.
10761         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10762         REPLACE_TOWLOWER.
10763         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10764         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10765         REPLACE_ISWCNTRL.
10766
10767 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10768
10769         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10770         This is a performance improvement for 64-bit hosts: it causes the
10771         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10772
10773 2011-07-31  Bruno Haible  <bruno@clisp.org>
10774
10775         stdioext: Add support for Minix.
10776         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10777         * lib/fpurge.c (fpurge): Likewise.
10778         * lib/freadahead.c (freadahead): Likewise.
10779         * lib/freadable.c (freadable): Likewise.
10780         * lib/freading.c (freading): Likewise.
10781         * lib/freadptr.c (freadptr): Likewise.
10782         * lib/freadseek.c (freadptrinc): Likewise.
10783         * lib/fseeko.c (rpl_fseeko): Likewise.
10784         * lib/fseterr.c (fseterr): Likewise.
10785         * lib/fwritable.c (fwritable): Likewise.
10786         * lib/fwriting.c (fwriting): Likewise.
10787         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10788         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10789
10790 2011-07-31  Bruno Haible  <bruno@clisp.org>
10791
10792         errno: Port to Minix.
10793         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10794         ECONNABORTED are defined.
10795         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10796         GNULIB_defined_ECONNABORTED): New macros.
10797         * lib/strerror-override.h (strerror_override): Test also
10798         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10799         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10800         ECONNABORTED.
10801         * doc/posix-headers/errno.texi: Mention the Minix problem.
10802
10803 2011-07-31  Bruno Haible  <bruno@clisp.org>
10804
10805         Work around declaration collisions on Minix.
10806         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10807         defined, set REPLACE_MBSINIT.
10808         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10809         defined, set REPLACE_MBRTOWC.
10810         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10811         set REPLACE_MBRLEN.
10812         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10813         defined, set REPLACE_MBSRTOWCS.
10814         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10815         defined, set REPLACE_WCRTOMB.
10816         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10817         defined, set REPLACE_WCSRTOMBS.
10818
10819 2011-07-31  Bruno Haible  <bruno@clisp.org>
10820
10821         Add support for Minix with ACK compiler.
10822         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10823         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10824         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10825
10826 2011-07-31  Bruno Haible  <bruno@clisp.org>
10827
10828         Documentation about Minix.
10829         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10830         * doc/glibc-headers/*.texi: Likewise.
10831         * doc/posix-functions/*.texi: Likewise.
10832         * doc/glibc-functions/*.texi: Likewise.
10833
10834 2011-07-31  Bruno Haible  <bruno@clisp.org>
10835
10836         snippet/warn-on-use: Fix indentation.
10837         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10838
10839 2011-07-25  Jim Meyering  <meyering@redhat.com>
10840
10841         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10842         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10843         commands.
10844
10845 2011-07-27  Jim Meyering  <meyering@redhat.com>
10846
10847         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10848         * top/maint.mk (gl_extract_significant_defines_): Now that
10849         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10850         gnulib/lib/signal.in.h, and now that we recommend to
10851         define-if-undefined those two symbols in application code,
10852         we must filter them out of the "significant" list.
10853         This avoids a "make syntax-check" failure in coreutils.
10854
10855 2011-07-26  Eric Blake  <eblake@redhat.com>
10856
10857         warnings: add comments about previous patch
10858         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10859         * m4/include_next.m4: Likewise.
10860         * m4/warn-on-use.m4: Likewise.
10861         * m4/warnings.m4: Likewise, and simplify use.
10862         Suggested by Stefano Lattarini.
10863
10864         include-next, warnings: support older autoconf
10865         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10866         AS_VAR_PUSHDEF in a way that works with older autoconf.
10867         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10868         Reported by Daniel P. Berrange.
10869
10870 2011-07-25  Bruno Haible  <bruno@clisp.org>
10871
10872         fseek, ftell: Fix doc.
10873         * doc/posix-functions/fseek.texi: Reword statement about
10874         AC_SYS_LARGEFILE.
10875         * doc/posix-functions/ftell.texi: Likewise.
10876
10877 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10878             Bruno Haible  <bruno@clisp.org>
10879
10880         Add dependencies to the 'largefile' module.
10881         * modules/fopen (Depends-on): Add 'largefile'.
10882         * modules/freopen (Depends-on): Likewise.
10883         * modules/fseeko (Depends-on): Likewise.
10884         * modules/ftello (Depends-on): Likewise.
10885         * modules/glob (Depends-on): Likewise.
10886         * modules/lseek (Depends-on): Likewise.
10887         * modules/lstat (Depends-on): Likewise.
10888         * modules/mkostemp (Depends-on): Likewise.
10889         * modules/mkostemps (Depends-on): Likewise.
10890         * modules/mkstemp (Depends-on): Likewise.
10891         * modules/mkstemps (Depends-on): Likewise.
10892         * modules/open (Depends-on): Likewise.
10893         * modules/openat (Depends-on): Likewise.
10894         * modules/pread (Depends-on): Likewise.
10895         * modules/pwrite (Depends-on): Likewise.
10896         * modules/scandir (Depends-on): Likewise.
10897         * modules/stat (Depends-on): Likewise.
10898         * modules/tmpfile (Depends-on): Likewise.
10899         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10900         since the containing module now depends on the largefile module.
10901         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10902         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10903         off_t is fixed by gnulib.
10904         * doc/posix-functions/freopen.texi: Likewise.
10905         * doc/posix-functions/fseeko.texi: Likewise.
10906         * doc/posix-functions/fstatat.texi: Likewise.
10907         * doc/posix-functions/ftello.texi: Likewise.
10908         * doc/posix-functions/glob.texi: Likewise.
10909         * doc/posix-functions/lseek.texi: Likewise.
10910         * doc/posix-functions/lstat.texi: Likewise.
10911         * doc/posix-functions/mkstemp.texi: Likewise.
10912         * doc/posix-functions/open.texi: Likewise.
10913         * doc/posix-functions/openat.texi: Likewise.
10914         * doc/posix-functions/pread.texi: Likewise.
10915         * doc/posix-functions/pwrite.texi: Likewise.
10916         * doc/posix-functions/scandir.texi: Likewise.
10917         * doc/posix-functions/stat.texi: Likewise.
10918         * doc/posix-functions/tmpfile.texi: Likewise.
10919         * doc/glibc-functions/mkostemp.texi: Likewise.
10920         * doc/glibc-functions/mkostemps.texi: Likewise.
10921         * doc/glibc-functions/mkstemps.texi: Likewise.
10922
10923 2011-07-25  Bruno Haible  <bruno@clisp.org>
10924
10925         fcntl: Move AC_LIBOBJ invocation to module description.
10926         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10927         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10928
10929         fcntl: Remove call-in from fchdir.m4.
10930         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10931         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10932
10933         dup3: Remove potential call-in from fchdir.m4.
10934         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10936
10937         dup2: Move AC_LIBOBJ invocation to module description.
10938         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10939         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10940         Don't invoke AC_LIBOBJ.
10941         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10942
10943         dup2: Remove call-in from fchdir.m4.
10944         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10945         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10946
10947         fclose: Move AC_LIBOBJ invocation to module description.
10948         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10949         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10950         to 1.
10951         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10952
10953         fclose: Remove call-in from close.m4.
10954         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10955         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10956
10957         close: Move AC_LIBOBJ invocation to module description.
10958         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10959         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10960         1.
10961         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10962
10963         close: Remove call-in from fchdir.m4.
10964         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10965         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10966
10967         open: Move AC_LIBOBJ invocation to module description.
10968         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10969         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10970         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10971
10972         open: Remove call-in from fchdir.m4.
10973         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10974         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10975
10976         fchdir: Start to remove gl_REPLACE_* idiom.
10977         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10978         (gl_FUNC_FCHDIR): Invoke it.
10979
10980 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10981
10982         * lib/ftell.c (ftell): Comment out cast.
10983
10984         close: use gl_REPLACE_FCLOSE only if defined
10985         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10986         is defined.  The close module doesn't depend on the fclose module
10987         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10988         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10989         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10990
10991 2011-07-24  Jim Meyering  <meyering@redhat.com>
10992
10993         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10994         * tests/test-select.h (test_function): Declare as "static".
10995
10996 2011-07-24  Bruno Haible  <bruno@clisp.org>
10997
10998         doc: Mention the effects of AC_SYS_LARGEFILE.
10999         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11000         on this function.
11001         * doc/posix-functions/aio_error.texi: Likewise.
11002         * doc/posix-functions/aio_fsync.texi: Likewise.
11003         * doc/posix-functions/aio_read.texi: Likewise.
11004         * doc/posix-functions/aio_return.texi: Likewise.
11005         * doc/posix-functions/aio_suspend.texi: Likewise.
11006         * doc/posix-functions/aio_write.texi: Likewise.
11007         * doc/posix-functions/fgetpos.texi: Likewise.
11008         * doc/posix-functions/fopen.texi: Likewise.
11009         * doc/posix-functions/freopen.texi: Likewise.
11010         * doc/posix-functions/fsetpos.texi: Likewise.
11011         * doc/posix-functions/fstatvfs.texi: Likewise.
11012         * doc/posix-functions/ftruncate.texi: Likewise.
11013         * doc/posix-functions/ftw.texi: Likewise.
11014         * doc/posix-functions/getrlimit.texi: Likewise.
11015         * doc/posix-functions/glob.texi: Likewise.
11016         * doc/posix-functions/lio_listio.texi: Likewise.
11017         * doc/posix-functions/lockf.texi: Likewise.
11018         * doc/posix-functions/mkstemp.texi: Likewise.
11019         * doc/posix-functions/mmap.texi: Likewise.
11020         * doc/posix-functions/nftw.texi: Likewise.
11021         * doc/posix-functions/openat.texi: Likewise.
11022         * doc/posix-functions/opendir.texi: Likewise.
11023         * doc/posix-functions/posix_fadvise.texi: Likewise.
11024         * doc/posix-functions/posix_fallocate.texi: Likewise.
11025         * doc/posix-functions/pread.texi: Likewise.
11026         * doc/posix-functions/pwrite.texi: Likewise.
11027         * doc/posix-functions/readdir.texi: Likewise.
11028         * doc/posix-functions/readdir_r.texi: Likewise.
11029         * doc/posix-functions/rewinddir.texi: Likewise.
11030         * doc/posix-functions/scandir.texi: Likewise.
11031         * doc/posix-functions/seekdir.texi: Likewise.
11032         * doc/posix-functions/setrlimit.texi: Likewise.
11033         * doc/posix-functions/statvfs.texi: Likewise.
11034         * doc/posix-functions/telldir.texi: Likewise.
11035         * doc/posix-functions/tmpfile.texi: Likewise.
11036         * doc/posix-functions/truncate.texi: Likewise.
11037         * doc/glibc-functions/fallocate.texi: Likewise.
11038         * doc/glibc-functions/fstatfs.texi: Likewise.
11039         * doc/glibc-functions/fts_children.texi: Likewise.
11040         * doc/glibc-functions/fts_read.texi: Likewise.
11041         * doc/glibc-functions/getdirentries.texi: Likewise.
11042         * doc/glibc-functions/mkostemp.texi: Likewise.
11043         * doc/glibc-functions/mkostemps.texi: Likewise.
11044         * doc/glibc-functions/mkstemps.texi: Likewise.
11045         * doc/glibc-functions/preadv.texi: Likewise.
11046         * doc/glibc-functions/pwritev.texi: Likewise.
11047         * doc/glibc-functions/sendfile.texi: Likewise.
11048         * doc/glibc-functions/statfs.texi: Likewise.
11049
11050 2011-07-24  Bruno Haible  <bruno@clisp.org>
11051
11052         doc: Fix typo.
11053         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11054
11055 2011-07-24  Bruno Haible  <bruno@clisp.org>
11056
11057         doc: Mention fsusage.
11058         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11059
11060 2011-07-24  Bruno Haible  <bruno@clisp.org>
11061
11062         doc: Mention new glibc headers and functions.
11063         * doc/glibc-headers/gshadow.texi: New file.
11064         * doc/glibc-functions/endsgent.texi: New file.
11065         * doc/glibc-functions/fgetsgent.texi: New file.
11066         * doc/glibc-functions/fgetsgent_r.texi: New file.
11067         * doc/glibc-functions/getsgent.texi: New file.
11068         * doc/glibc-functions/getsgent_r.texi: New file.
11069         * doc/glibc-functions/getsgnam.texi: New file.
11070         * doc/glibc-functions/getsgnam_r.texi: New file.
11071         * doc/glibc-functions/putsgent.texi: New file.
11072         * doc/glibc-functions/setsgent.texi: New file.
11073         * doc/glibc-functions/sgetsgent.texi: New file.
11074         * doc/glibc-functions/sgetsgent_r.texi: New file.
11075         * doc/glibc-functions/malloc_info.texi: New file.
11076         * doc/glibc-functions/preadv.texi: New file.
11077         * doc/glibc-functions/pwritev.texi: New file.
11078         * doc/glibc-functions/register_printf_modifier.texi: New file.
11079         * doc/glibc-functions/register_printf_specifier.texi: New file.
11080         * doc/glibc-functions/register_printf_type.texi: New file.
11081         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11082         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11083         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11084         * doc/glibc-functions/pthread_getname_np.texi: New file.
11085         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11086         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11087         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11088         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11089         * doc/glibc-functions/pthread_setname_np.texi: New file.
11090         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11091         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11092         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11093         * doc/glibc-functions/qsort_r.texi: New file.
11094         * doc/glibc-functions/quick_exit.texi: New file.
11095         * doc/glibc-functions/syncfs.texi: New file.
11096         * doc/gnulib.texi: Include them.
11097         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11098         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11099         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11100         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11101         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11102         * doc/glibc-functions/execvpe.texi: Likewise.
11103
11104 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11105
11106         ftell: don't include <unistd.h>
11107         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11108         guaranteed to define off_t, and the ftell module depends on the
11109         stdio module.
11110
11111         ftell: do not assume wraparound signed arithmetic
11112         * lib/ftell.c: Include <limits.h>.
11113         (ftell): Don't assume wraparound signed arithmetic.
11114
11115 2011-07-24  Bruno Haible  <bruno@clisp.org>
11116
11117         close: No longer depend on module 'fclose'.
11118         * modules/close (Depends-on): Remove fclose.
11119         * NEWS: Mention the change.
11120         Suggested by Sam Steingold <sds@gnu.org>.
11121
11122 2011-07-24  Bruno Haible  <bruno@clisp.org>
11123
11124         fsusage: Enable large volume support on AIX >= 5.2.
11125         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11126         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11127         instead of STAT_STATVFS.
11128         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11129
11130         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11131         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11132         f_blocks field only on MacOS X.
11133
11134         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11135         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11136         * modules/fsusage (Depends-on): Add largefile.
11137
11138 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11139
11140         * README: Modernize discussion of signed integers.
11141         Assuming overflow wraparound is no longer safe.
11142         Mention ones' complement and signed magnitude.
11143
11144 2011-07-22  Bruno Haible  <bruno@clisp.org>
11145
11146         select tests, pselect tests: Refactor.
11147         * tests/test-select.h: New file, extracted from tests/test-select.c.
11148         (select_fn): New type.
11149         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11150         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11151         test_pipe): Add my_select argument.
11152         (test_function): Renamed from main. Add my_select argument.
11153         * tests/test-select.c: Move most code to tests/test-select.h. Include
11154         test-select.h.
11155         * modules/select-tests (Files): Add tests/test-select.h.
11156         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11157         (my_select, main): New functions.
11158         * modules/pselect-tests (Files): Add tests/test-select.h,
11159         tests/macros.h, tests/signature.h.
11160         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11161         (configure.ac): Check for <sys/wait.h>.
11162
11163 2011-07-22  Bruno Haible  <bruno@clisp.org>
11164
11165         sys_select tests: Check the signature of FD_*.
11166         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11167         signature tests from here...
11168         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11169         here.
11170         * modules/sys_select-tests (Files): Add tests/signature.h.
11171
11172 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11173
11174         largefile: new module, replacing large-inode
11175         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11176         * MODULES.html.sh: Add largefile, remove large-inode.
11177         * modules/largefile, m4/largefile.m4: New files.
11178         * modules/large-inode, m4/large-inode.m4: Remove.
11179
11180         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11181         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11182         implementations that use only 32 bits to count blocks.
11183         On typical hosts with 1024-byte blocks, this fails with file
11184         systems as small as 4 TiB.  Problem reported by Herb Wartens
11185         <http://debbugs.gnu.org/9140> and this should also fix a similar
11186         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11187
11188         large-inode: New module
11189         * MODULES.html.sh: Add it.
11190         * modules/large-inode, m4/large-inode.m4: New files.
11191
11192         extensions: Enable extensions on MacOS X 10.5 and later.
11193         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11194
11195 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11196
11197         file-has-acl: use acl_extended_file_nofollow if available
11198         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11199         (acl_extended_file): New macro.
11200         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11201         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11202
11203 2011-07-21  Bruno Haible  <bruno@clisp.org>
11204
11205         Declare system functions in a way that works with C++.
11206         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11207         declare fdopendir as extern "C".
11208         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11209         declare frexpl as extern "C".
11210         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11211         declare gai_strerror as extern "C".
11212         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11213         programs, declare gai_strerror as extern "C".
11214         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11215         declare getlogin_r as extern "C".
11216         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11217         as extern "C".
11218         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11219         declare ldexpl as extern "C".
11220         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11221         as extern "C".
11222         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11223         program, declare getmntinfo as extern "C".
11224         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11225         stpncpy as extern "C".
11226         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11227         program, declare __xpg_strerror_r as extern "C".
11228         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11229         strndup as extern "C".
11230         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11231         declare memset and bzero as extern "C".
11232         Reported by Sam Steingold <sds@gnu.org>.
11233
11234 2011-07-12  Jim Meyering  <meyering@redhat.com>
11235
11236         maint.mk: prohibit inclusion of "verify.h" without use
11237         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11238
11239 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11240
11241         timer-time: A new module to check for timer_settime()
11242         * m4/timer_time.m4: Check for the posix function.
11243         * modules/timer-time: Add the new module.
11244         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11245         Mention it.
11246
11247 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11248             Bruno Haible  <bruno@clisp.org>
11249
11250         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11251         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11252         not defined, assume POSIX threads and look for pthread_sigmask in
11253         $LIBS, without changing $CPPFLAGS.
11254
11255 2011-07-19  Bruno Haible  <bruno@clisp.org>
11256
11257         strstr: Update cross-compilation guess.
11258         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11259         CPUs, guess no, in view of glibc
11260         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11261         Suggested by Eric Blake. Reported by Reuben Thomas.
11262
11263 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11264
11265         getopt-gnu: suppress core dumps from detection code
11266         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11267         to suppress core dumps that may well occur on glibc systems.
11268         * modules/getopt-gnu: Depend on nocrash.
11269
11270 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11271
11272         pthread_sigmask: ensure usleep is declared
11273         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11274         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11275
11276 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11277
11278         doc: Document NonStop portability issues.
11279         * doc/posix-functions/sigaction.texi (sigaction):
11280         * doc/posix-headers/signal.texi (signal.h):
11281         Document NonStop.  See Joachim Schmitz in
11282         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11283
11284 2011-07-15  Bruno Haible  <bruno@clisp.org>
11285
11286         ffsl, ffsll: Avoid unportable behaviour.
11287         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11288
11289 2011-07-15  Bruno Haible  <bruno@clisp.org>
11290
11291         ffs: More tests.
11292         * tests/test-ffs.c (NBITS): New macro.
11293         (main): Add more tests.
11294         * tests/test-ffsl.c (NBITS): New macro.
11295         (main): Add more tests.
11296         * tests/test-ffsll.c (NBITS): New macro.
11297         (main): Add more tests.
11298
11299 2011-07-15  Eric Blake  <eblake@redhat.com>
11300
11301         ffsl, ffsll: new modules
11302         * modules/ffsl: New file.
11303         * modules/ffsll: Likewise.
11304         * m4/ffsl.m4: Likewise.
11305         * m4/ffsll.m4: Likewise.
11306         * lib/ffsl.c: Likewise.
11307         * lib/ffsl.h: Likewise.
11308         * lib/ffsll.c: Likewise.
11309         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11310         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11311         * modules/string (Makefile.am): Substitute witnesses.
11312         * lib/strings.in.h (ffsl, ffsll): Declare.
11313         * modules/ffsl-tests: New test file.
11314         * modules/ffsll-tests: Likewise.
11315         * tests/test-ffsl.c: Likewise.
11316         * tests/test-ffsll.c: Likewise.
11317         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11318         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11319         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11320
11321         ffs: fix m4 prerequisite
11322         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11323
11324         ffs: avoid undefined behavior
11325         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11326         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11327         Reported by Bruno Haible.
11328
11329 2011-07-12  Bruno Haible  <bruno@clisp.org>
11330
11331         pthread_sigmask: Rely on module 'threadlib'.
11332         * modules/pthread_sigmask (Depends-on): Add threadlib.
11333         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11334         is defined.
11335
11336 2011-07-12  Bruno Haible  <bruno@clisp.org>
11337
11338         regex: Depend on module 'strcase'.
11339         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11340
11341 2011-07-12  Jim Meyering  <meyering@redhat.com>
11342
11343         warn-on-use: fix typo in file name
11344         * modules/snippet/warn-on-use (Files): Correct file name:
11345         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11346
11347 2011-07-12  Bruno Haible  <bruno@clisp.org>
11348
11349         strings: Document module.
11350         * doc/posix-headers/strings.texi: Mention module 'strings'.
11351
11352 2011-07-12  Bruno Haible  <bruno@clisp.org>
11353
11354         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11355         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11356         (Files, Makefile.am): Update.
11357         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11358         * modules/stdlib (Depends-on): Update.
11359
11360 2011-07-12  Bruno Haible  <bruno@clisp.org>
11361
11362         * NEWS: Mention the changes.
11363
11364         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11365         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11366         (Files, Makefile.am): Update.
11367         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11368         * modules/arpa_inet (Depends-on): Update.
11369         * modules/ctype (Depends-on): Update.
11370         * modules/dirent (Depends-on): Update.
11371         * modules/fcntl-h (Depends-on): Update.
11372         * modules/glob (Depends-on): Update.
11373         * modules/iconv-h (Depends-on): Update.
11374         * modules/inttypes-incomplete (Depends-on): Update.
11375         * modules/langinfo (Depends-on): Update.
11376         * modules/locale (Depends-on): Update.
11377         * modules/math (Depends-on): Update.
11378         * modules/netdb (Depends-on): Update.
11379         * modules/poll-h (Depends-on): Update.
11380         * modules/pty (Depends-on): Update.
11381         * modules/search (Depends-on): Update.
11382         * modules/signal (Depends-on): Update.
11383         * modules/spawn (Depends-on): Update.
11384         * modules/stdio (Depends-on): Update.
11385         * modules/stdlib (Depends-on): Update.
11386         * modules/string (Depends-on): Update.
11387         * modules/strings (Depends-on): Update.
11388         * modules/sys_file (Depends-on): Update.
11389         * modules/sys_ioctl (Depends-on): Update.
11390         * modules/sys_select (Depends-on): Update.
11391         * modules/sys_socket (Depends-on): Update.
11392         * modules/sys_stat (Depends-on): Update.
11393         * modules/sys_time (Depends-on): Update.
11394         * modules/sys_times (Depends-on): Update.
11395         * modules/sys_utsname (Depends-on): Update.
11396         * modules/sys_wait (Depends-on): Update.
11397         * modules/termios (Depends-on): Update.
11398         * modules/time (Depends-on): Update.
11399         * modules/unistd (Depends-on): Update.
11400         * modules/wchar (Depends-on): Update.
11401         * modules/wctype-h (Depends-on): Update.
11402         * MODULES.html.sh (Support for building libraries and executables):
11403         Update.
11404
11405         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11406         * modules/snippet/unused-parameter: Renamed from
11407         modules/unused-parameter.
11408         (Files, Makefile.am): Update.
11409         * build-aux/snippet/unused-parameter.h: Renamed from
11410         build-aux/unused-parameter.h.
11411         * modules/selinux-h (Depends-on): Update.
11412         * modules/unistr/base (Depends-on): Update.
11413         * MODULES.html.sh (Core language properties): Update.
11414
11415         Rename module 'link-warning' to 'snippet/link-warning'.
11416         * modules/snippet/link-warning: Renamed from modules/link-warning.
11417         (Files, Makefile.am): Update.
11418         * build-aux/snippet/link-warning.h: Renamed from
11419         build-aux/link-warning.h.
11420         * MODULES.html.sh (Support for building libraries and executables):
11421         Update.
11422
11423         Rename module 'c++defs' to 'snippet/c++defs'.
11424         * modules/snippet/c++defs: Renamed from modules/c++defs.
11425         (Files, Makefile.am): Update.
11426         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11427         * modules/arpa_inet (Depends-on): Update.
11428         * modules/ctype (Depends-on): Update.
11429         * modules/dirent (Depends-on): Update.
11430         * modules/fcntl-h (Depends-on): Update.
11431         * modules/glob (Depends-on): Update.
11432         * modules/iconv-h (Depends-on): Update.
11433         * modules/langinfo (Depends-on): Update.
11434         * modules/locale (Depends-on): Update.
11435         * modules/math (Depends-on): Update.
11436         * modules/netdb (Depends-on): Update.
11437         * modules/poll-h (Depends-on): Update.
11438         * modules/pty (Depends-on): Update.
11439         * modules/search (Depends-on): Update.
11440         * modules/signal (Depends-on): Update.
11441         * modules/spawn (Depends-on): Update.
11442         * modules/stdio (Depends-on): Update.
11443         * modules/stdlib (Depends-on): Update.
11444         * modules/string (Depends-on): Update.
11445         * modules/strings (Depends-on): Update.
11446         * modules/sys_ioctl (Depends-on): Update.
11447         * modules/sys_select (Depends-on): Update.
11448         * modules/sys_socket (Depends-on): Update.
11449         * modules/sys_stat (Depends-on): Update.
11450         * modules/sys_time (Depends-on): Update.
11451         * modules/sys_wait (Depends-on): Update.
11452         * modules/termios (Depends-on): Update.
11453         * modules/time (Depends-on): Update.
11454         * modules/unistd (Depends-on): Update.
11455         * modules/wchar (Depends-on): Update.
11456         * modules/wctype-h (Depends-on): Update.
11457
11458         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11459         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11460         (Files, Makefile.am): Update.
11461         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11462         * modules/argv-iter (Depends-on): Update.
11463         * modules/arpa_inet (Depends-on): Update.
11464         * modules/dirent (Depends-on): Update.
11465         * modules/fcntl-h (Depends-on): Update.
11466         * modules/fnmatch (Depends-on): Update.
11467         * modules/getopt-posix (Depends-on): Update.
11468         * modules/glob (Depends-on): Update.
11469         * modules/iconv-h (Depends-on): Update.
11470         * modules/inttypes-incomplete (Depends-on): Update.
11471         * modules/locale (Depends-on): Update.
11472         * modules/math (Depends-on): Update.
11473         * modules/netdb (Depends-on): Update.
11474         * modules/search (Depends-on): Update.
11475         * modules/signal (Depends-on): Update.
11476         * modules/spawn (Depends-on): Update.
11477         * modules/stdio (Depends-on): Update.
11478         * modules/stdlib (Depends-on): Update.
11479         * modules/string (Depends-on): Update.
11480         * modules/strings (Depends-on): Update.
11481         * modules/sys_socket (Depends-on): Update.
11482         * modules/sys_stat (Depends-on): Update.
11483         * modules/sys_time (Depends-on): Update.
11484         * modules/sys_times (Depends-on): Update.
11485         * modules/sys_utsname (Depends-on): Update.
11486         * modules/time (Depends-on): Update.
11487         * modules/unistd (Depends-on): Update.
11488         * modules/wchar (Depends-on): Update.
11489         * MODULES.html.sh (Support for building libraries and executables):
11490         Update.
11491
11492 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11493
11494         Improvements on _Noreturn and related modules.
11495
11496         modules/_Exit-tests: test _Noreturn too
11497         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11498         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11499         (main): Use them.
11500
11501         stdnoreturn, stdnoreturn-tests: remove modules
11502         They're not needed here and a bit premature for use elsewhere.  See
11503         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11504         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11505         * tests/test-stdnoreturn.c: Remove files.
11506         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11507         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11508         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11509         and using noreturn.
11510         * modules/openat, modules/sigpipe-die, modules/xalloc:
11511         * modules/xmemdup0, modules/xstrtol:
11512         Remove dependency on stdnoreturn.
11513
11514         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11515         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11516         Reparenthesize to avoid GCC warning.
11517         Support Microsoft's syntax.
11518         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11519
11520         _Noreturn-tests: remove module
11521         * modules/_Noreturn-tests: Remove.
11522         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11523         * tests/test-_Noreturn.c: Remove.
11524         * tests/test-stdnoreturn.c: Merge from the old
11525         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11526
11527 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11528
11529         _Noreturn, stdnoreturn, and related modules.
11530
11531         * top/maint.mk: Adjust to new noreturn support.
11532         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11533         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11534
11535         xalloc: use stdnoreturn.h
11536         * lib/xalloc.h: Include <stdnoreturn.h>.
11537         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11538         * modules/xalloc (Depends-on): Add stdnoreturn.
11539
11540         xstrtol: use stdnoreturn.h
11541         * lib/xstrtol.h: Include <stdnoreturn.h>.
11542         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11543         * modules/xstrtol (Depends-on): Add stdnoreturn.
11544
11545         xmemdup0: use stdnoreturn.h
11546         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11547         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11548         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11549
11550         sigpipe-die: use stdnoreturn.h
11551         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11552         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11553         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11554
11555         openat: use stdnoreturn.h
11556         * lib/openat.h: Include <stdnoreturn.h>.
11557         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11558         * modules/openat (Depends-on): Add stdnoreturn.
11559
11560         * lib/openat-die.c (openat_save_fail): Modernize comment.
11561
11562         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11563
11564         * lib/glthread/thread.h: Modernize comment.
11565
11566         obstack: use _Noreturn
11567         * lib/obstack.c (__attribute__): Remove macro.
11568         (print_and_abort): Use _Noreturn.
11569
11570         c-stack: use _Noreturn
11571         * lib/c-stack.c (die, overflow_handler, segv_handler):
11572         Use _Noreturn rather than __attribute__((noreturn)).
11573
11574         argmatch-tests, exclude_tests: use _Noreturn
11575         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11576         Remove.
11577         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11578
11579         stdlib: use _Noreturn
11580         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11581         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11582         * modules/stdlib (Depends-on): Add _Noreturn.
11583         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11584
11585         stdnoreturn-tests: new module
11586         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11587
11588         stdnoreturn: new module
11589         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11590         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11591
11592         _Noreturn-tests: new module
11593         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11594
11595         _Noreturn: new module
11596         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11597         New section, mentioning it.
11598         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11599
11600         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11601
11602 2011-07-11  Eric Blake  <eblake@redhat.com>
11603
11604         ffs: new module
11605         * modules/ffs: New file.
11606         * m4/ffs.m4: Likewise.
11607         * lib/ffs.c: Likewise.
11608         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11609         * modules/strings (Makefile.am): Substitute witness.
11610         (Depends-on): Add c++defs.
11611         * lib/strings.in.h (ffs): Declare.
11612         * modules/ffs-tests: New test file.
11613         * tests/test-ffs.c: Test new module.
11614         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11615         * doc/posix-functions/ffs.texi (ffs): Likewise.
11616
11617         regex: avoid compiler warning
11618         * lib/regex.c (includes): Include <strings.h>, for use of
11619         strcasecmp in regcomp.c.
11620         Reported by Joachim Schmitz.
11621
11622 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11623
11624         stdint: respect system's intmax_t if INTMAX_MAX
11625         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11626         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11627         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11628         long but int64_t is long long, and where we will clash with the
11629         system intmax_t if we override it.  See
11630         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11631         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11632         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11633         similarly for UINTMAX_C.
11634
11635 2011-07-08  Bruno Haible  <bruno@clisp.org>
11636
11637         pthread_sigmask tests: Avoid a compiler warning.
11638         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11639         non-zero.
11640
11641         sigprocmask tests: A better way to avoid a compiler warning.
11642         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11643         (main): Complain if system() returns non-zero.
11644         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11645
11646 2011-07-08  Bruno Haible  <bruno@clisp.org>
11647
11648         pthread_sigmask: Work around IRIX bug.
11649         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11650         bug.
11651         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11652         there may be unblocked pending signals.
11653         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11654
11655 2011-07-08  Bruno Haible  <bruno@clisp.org>
11656
11657         pthread_sigmask: Work around Cygwin bug.
11658         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11659         bug.
11660         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11661         the system's pthread_sigmask function.
11662         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11663
11664 2011-07-08  Bruno Haible  <bruno@clisp.org>
11665
11666         pthread_sigmask: Work around bug in single-threaded implementation.
11667         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11668         FreeBSD, HP-UX, Solaris bug.
11669         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11670         * lib/pthread_sigmask.c: Include <stddef.h>.
11671         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11672         the system's pthread_sigmask function.
11673         * modules/pthread_sigmask (configure.ac): Invoke
11674         gl_PREREQ_PTHREAD_SIGMASK.
11675         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11676         HP-UX, Solaris.
11677
11678 2011-07-08  Eric Blake  <eblake@redhat.com>
11679
11680         test-sigprocmask: avoid compiler warning
11681         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11682         * tests/test-sigprocmask.c (main): Use it to silence warning.
11683         Reported by Jim Meyering.
11684
11685         test-snprintf: avoid compiler warning
11686         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11687         * tests/test-vsnprintf.c (main): Likewise.
11688         Reported by Jim Meyering.
11689
11690 2011-07-08  Bruno Haible  <bruno@clisp.org>
11691
11692         Tests for module 'pthread_sigmask'.
11693         * modules/pthread_sigmask-tests: New file.
11694         * tests/test-pthread_sigmask1.c: New file, based on
11695         tests/test-sigprocmask.c.
11696         * tests/test-pthread_sigmask2.c: New file.
11697
11698 2011-07-08  Jim Meyering  <meyering@redhat.com>
11699
11700         test-getopt.h: avoid warning about an unused variable
11701         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11702
11703 2011-07-07  Jim Meyering  <meyering@redhat.com>
11704
11705         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11706         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11707         now that it no longer contains leading TABs.
11708         Remove unused "url=FIXME" statement.
11709
11710 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11711
11712         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11713         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11714         When gl_THREADLIB is not in use, assume that the POSIX sematics
11715         are desired.  This is better for Emacs, which uses POSIX semantics
11716         on GNUish and/or POSIXish platforms, and does not use threads at
11717         all otherwise.
11718
11719         pthread_sigmask: fix typo when testing for libraries
11720         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11721         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11722
11723 2011-07-08  Eric Blake  <eblake@redhat.com>
11724
11725         fts: introduce FTS_NOATIME
11726         * lib/fts_.h (FTS_NOATIME): New bit flag.
11727         (FTS_OPTIONMASK): Adjust.
11728         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11729         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11730
11731 2011-07-08  Bruno Haible  <bruno@clisp.org>
11732
11733         Tests for module 'thread'.
11734         * modules/thread-tests: New file.
11735         * tests/test-thread_self.c: New file.
11736         * tests/test-thread_create.cc: New file.
11737
11738 2011-07-08  Bruno Haible  <bruno@clisp.org>
11739
11740         thread: Avoid gcc warnings when using gl_thread_self().
11741         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11742         'void *'.
11743         (gl_thread_self_pointer): Update.
11744
11745 2011-07-07  Bruno Haible  <bruno@clisp.org>
11746
11747         signal-c++-tests: Check declaration of pthread_sigmask.
11748         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11749         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11750         $(LIB_PTHREAD_SIGMASK).
11751
11752 2011-07-07  Bruno Haible  <bruno@clisp.org>
11753
11754         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11755         * lib/signal.in.h (pthread_sigmask): Override if
11756         REPLACE_PTHREAD_SIGMASK is 1.
11757         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11758         REPLACE_PTHREAD_SIGMASK.
11759         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11760         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11761         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11762         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11763         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11764
11765 2011-07-07  Bruno Haible  <bruno@clisp.org>
11766
11767         pthread_sigmask: Ensure declaration in <signal.h>.
11768         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11769         include <pthread.h>.
11770         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11771         problem.
11772
11773 2011-07-07  Bruno Haible  <bruno@clisp.org>
11774
11775         pthread_sigmask: Document the module.
11776         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11777
11778 2011-07-07  Bruno Haible  <bruno@clisp.org>
11779
11780         pthread_sigmask: Follow gnulib conventions.
11781         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11782         gl_PTHREAD_SIGMASK.
11783         * modules/pthread_sigmask (configure.ac): Update.
11784
11785 2011-07-07  Bruno Haible  <bruno@clisp.org>
11786
11787         pthread_sigmask: Make declaration C++ safe.
11788         * lib/signal.in.h: In two special conditions, just do an #include_next.
11789         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11790         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11791         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11792         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11793         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11794         not REPLACE_PTHREAD_MASK.
11795         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11796         not REPLACE_PTHREAD_MASK.
11797         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11798
11799 2011-07-07  Bruno Haible  <bruno@clisp.org>
11800
11801         pthread_sigmask: Fix return value.
11802         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11803         * lib/pthread_sigmask.c: New file.
11804         * modules/pthread_sigmask (Files): Add it.
11805         (configure.ac): Invoke AC_LIBOBJ.
11806
11807 2011-07-07  Eric Blake  <eblake@redhat.com>
11808
11809         getopt: more portable argv creation
11810         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11811         const, use char arrays rather than strings.
11812         Suggested by Paul Eggert.
11813
11814 2011-07-07  Bruno Haible  <bruno@clisp.org>
11815
11816         Tests for module 'sigprocmask'.
11817         * modules/sigprocmask-tests: New file.
11818         * tests/test-sigprocmask.c: New file.
11819
11820 2011-07-07  Bruno Haible  <bruno@clisp.org>
11821
11822         float tests: Tweak.
11823         * tests/test-float.c (main): Tweak skip message.
11824
11825 2011-07-07  Eric Blake  <eblake@redhat.com>
11826
11827         getopt: avoid compiler warning during configure
11828         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11829         assigning string literals to non-const pointer.
11830
11831         getopt-gnu: avoid crash in glibc getopt
11832         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11833         * tests/test-getopt.h (test_getopt): Enhance test.
11834         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11835         * doc/posix-functions/getopt.texi (getopt): Document it.
11836         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11837         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11838         Likewise.
11839
11840 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11841
11842         getopt: handle W; without long options in getopt [BZ #12922]
11843         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11844         but no long options are defined, just return 'W'.
11845
11846 2011-07-07  Bruno Haible  <bruno@clisp.org>
11847
11848         Avoid literal tabs.
11849         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11850         variable containing a tab instead of a literal tab.
11851         Reported by Jim Meyering.
11852
11853 2011-07-07  Bruno Haible  <bruno@clisp.org>
11854
11855         Comments.
11856         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11857
11858 2011-07-06  Bruno Haible  <bruno@clisp.org>
11859
11860         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11861         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11862         <winsock2.h>.
11863         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11864         lib/sys_socket.in.h.
11865         (close, gethostname): Hide declarations from <winsock2.h>.
11866         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11867         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11868         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11869         (select): Don't override if gnulib's <sys/select.h> was already
11870         included.
11871         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11872         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11873         setsockopt, shutdown, select): Tweak indentation.
11874
11875 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11876
11877         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11878         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11879         in an application that does not use the sys_select module.
11880
11881 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11882
11883         poll: do not return 0 on timeout=-1
11884         * lib/poll.c: Loop with yield if no events occured
11885
11886 2011-07-06  Eric Blake  <eblake@redhat.com>
11887
11888         pthread_sigmask: always replace when not using pthread
11889         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11890         replacement when using some threading other than pthread.  Fix
11891         logic bug.
11892
11893 2011-07-06  Bruno Haible  <bruno@clisp.org>
11894
11895         Comments.
11896         * m4/printf.m4: Update comments about mingw.
11897
11898 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11899
11900         sys_select: define sigset_t more portably
11901         * lib/sys_select.in.h: Always include <sys/types.h>, since
11902         we now need sigset_t and mingw defines it there.
11903         Include <signal.h> before split inclusion guard, to avoid
11904         mishaps on Solaris, whose <signal.h> eventually includes us.
11905         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11906         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11907         which come from ...
11908         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11909         gl_CHECK_TYPE_SIGSET_T.
11910         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11911         does the real work.
11912         * modules/sys_select (Depends-on): Add 'signal'.
11913
11914         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11915         Suggested by Bruno Haible.
11916
11917         pselect: Use pthread_sigmask, not sigprocmask.
11918         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11919         multithreaded apps better than sigprocmask does.
11920         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11921         sigprocmask directly.
11922
11923 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11924
11925         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11926         Don't #undef,  since we don't need any underlying pselect.
11927         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11928         (Depends-on): Add select.
11929         (Link): Add $(LIBSOCKET).
11930         These changes suggested by Bruno Haible.
11931
11932         pselect: document better
11933         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11934         * doc/posix-functions/pselect.texi (pselect): Document new module.
11935
11936         pthread_sigmask: new module
11937         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11938         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11939         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11940         This is done only as a macro; I don't know how well that'll
11941         work for C++.  Move <sys/types.h> include before the include_next,
11942         to avoid mishap on Solaris.
11943         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11944         * modules/signal (Makefile.am): Substitute the check's results.
11945         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11946
11947         test-pselect: new module
11948         * modules/pselect-tests, tests/test-pselect.c: New files.
11949         * tests/test-select.c, tests/test-sys_select-c++.cc:
11950         If TEST_PSELECT is defined, test pselect instead of testing select.
11951
11952         * tests/test-sys_select.c (sigset_t): Test for it, too.
11953         Suggested by Bruno Haible.
11954
11955 2011-07-05  Eric Blake  <eblake@redhat.com>
11956
11957         snprintf: guarantee %1$d, for libintl
11958         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11959         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11960         * doc/posix-functions/snprintf.texi (snprintf): Update.
11961         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11962         * tests/test-snprintf.c (main): Enhance test.
11963         * tests/test-vsnprintf.c (main): Likewise.
11964
11965 2011-07-05  Jim Meyering  <meyering@redhat.com>
11966
11967         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11968         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11969         per Bruno's request, to accommodate this idiom (no space after "#")
11970         even when the function is inside an #if block:
11971         char *
11972         gets (char *s)
11973         #undef gets
11974         {
11975           ...
11976         }
11977
11978 2011-07-04  Jim Meyering  <meyering@redhat.com>
11979
11980         maint: indent with spaces, not TABs, and add a rule to check this
11981         * tests/test-userspec.c: Indent with spaces, not TABs.
11982         * tests/test-argp.c: Likewise.
11983         * tests/test-c-stack2.sh: Likewise.
11984         * tests/test-parse-duration.sh: Likewise
11985         * m4/strtod.m4: Likewise.
11986         * m4/alloca.m4: Likewise.
11987         * m4/pselect.m4: Likewise.
11988         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11989
11990 2011-07-03  Jim Meyering  <meyering@redhat.com>
11991
11992         maint.mk: correct omissions in prohibit_argmatch_without_use check
11993         This rule would mistakenly report that argmatch.h is included without
11994         use even when both the argmatch and invalid_arg macro were used.
11995         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11996         of argmatch and invalid_arg.
11997
11998 2011-07-03  Bruno Haible  <bruno@clisp.org>
11999
12000         Comments about EINTR.
12001         * lib/safe-read.h: Explain the purpose of this module.
12002         * lib/safe-write.h: Likewise.
12003         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12004         module.
12005         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12006         module.
12007         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12008
12009 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12010
12011         xnanosleep: Rewrite to use new dtotimespec module.
12012         It has the conversion code that used to be in xnanosleep.
12013         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12014         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12015         (TIME_T_MAX): Remove.
12016         (xnanosleep): Rewrite in terms of dtotimespec.
12017         * modules/xnanosleep (Depends-on): Add dtotimespec.
12018         Remove intprops, stdbool.
12019
12020         timespec-add, timespec-sub: new modules
12021         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12022         * lib/timespec-add.c, lib/timespec-sub.c:
12023         * modules/timespec-add, modules/timespec-sub: New files.
12024
12025         dtotimespec: new module
12026         * lib/timespec.h (dtotimespec): New decl.
12027         * lib/dtotimespec.c, modules/dtotimespec: New files.
12028
12029         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12030
12031         pselect: new module
12032         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12033         (pselect): New decls.
12034         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12035         since the standard pselect decl uses 'restrict'.
12036         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12037         HAVE_PSELECT, REPLACE_PSELECT.
12038         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12039         HAVE_PSELECT, REPLACE_PSELECT.
12040         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12041
12042         sys_select: don't depend on sys_socket
12043         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12044         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12045         This fix works on GNU and GNU-like platforms, but has not been tested
12046         on native Windows.
12047         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12048         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12049         gl_HEADER_SYS_SOCKET.
12050         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12051         gl_PREREQ_SYS_H_WINSOCK2.
12052
12053 2011-06-29  Eric Blake  <eblake@redhat.com>
12054
12055         pipe2: fix C89 compile problem
12056         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12057         Reported by Bruno Haible.
12058
12059         pipe, pipe2: don't corrupt fd on error
12060         * lib/pipe.c (pipe): Leave fd unchanged on error.
12061         * lib/pipe2.c (pipe2): Likewise.
12062         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12063         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12064
12065 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12066
12067         mmap-anon: do not use regular expressions inadvertently
12068         * m4/mmap-anon.m4: Remove trailing period from strings sought
12069         in the output.
12070
12071 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12072
12073         nanosleep: fix integer overflow problem
12074         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12075         arithmetic wraps around on overflow.
12076
12077         nanosleep: simplify carrying
12078         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12079         first call to the underyling nanosleep, not for the last one.
12080         This doesn't fix any bugs, but it simplifies the computation of
12081         the remaining delay.  Found while auditing integer overflow issues.
12082
12083         dup2: remove test for existence of fcntl
12084         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12085         "#if HAVE_FCNTL", in the configure-time test program.
12086         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12087         and therefore speeds up "configure" a bit.  Found while
12088         adding the dup2 module to Emacs.
12089
12090 2011-06-24  Eric Blake  <eblake@redhat.com>
12091
12092         maint.mk: enhance useless header checks
12093         * top/maint.mk (_sc_header_without_use): Check both include
12094         styles.
12095         (sc_prohibit_assert_without_use)
12096         (sc_prohibit_close_stream_without_use)
12097         (sc_prohibit_getopt_without_use)
12098         (sc_prohibit_quotearg_without_use)
12099         (sc_prohibit_quote_without_use)
12100         (sc_prohibit_long_options_without_use)
12101         (sc_prohibit_inttostr_without_use)
12102         (sc_prohibit_ignore_value_without_use)
12103         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12104         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12105         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12106         (sc_prohibit_hash_pjw_without_use)
12107         (sc_prohibit_safe_read_without_use)
12108         (sc_prohibit_argmatch_without_use)
12109         (sc_prohibit_canonicalize_without_use)
12110         (sc_prohibit_root_dev_ino_without_use)
12111         (sc_prohibit_openat_without_use)
12112         (sc_prohibit_c_ctype_without_use)
12113         (sc_prohibit_signal_without_use)
12114         (sc_prohibit_stdio--_without_use)
12115         (sc_prohibit_stdio-safer_without_use)
12116         (sc_prohibit_strings_without_use)
12117         (sc_prohibit_intprops_without_use)
12118         (sc_prohibit_stddef_without_use)
12119         (sc_prohibit_xfreopen_without_use): Update clients.
12120
12121 2011-06-24  Jim Meyering  <meyering@redhat.com>
12122
12123         syntax-check: keep one maint.mk rule in sync with its header
12124         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12125         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12126         I prefer to avoid temporary files here, so use <(...), but that
12127         is not supported by /bin/sh, so...
12128         (SHELL): Define to /bin/bash.
12129
12130 2011-06-24  Eric Blake  <eblake@redhat.com>
12131
12132         maint.mk: update sc_prohibit_intprops_without_use
12133         * top/maint.mk (_intprops_names): Match recent changes.
12134
12135 2011-06-24  Bruno Haible  <bruno@clisp.org>
12136
12137         strerror-override: No-op tweak.
12138         * lib/strerror-override.h (strerror_override): Reorder conditions,
12139         for consistency with lib/strerror-override.c.
12140
12141 2011-06-23  Eric Blake  <eblake@redhat.com>
12142
12143         maint.mk: test further PATH_MAX issues
12144         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12145         (sc_prohibit_path_max_allocation): ...and also test alloca.
12146         Suggested by Jim Meyering.
12147
12148 2011-06-22  Eric Blake  <eblake@redhat.com>
12149
12150         maint.mk: add syntax-check to avoid char[PATH_MAX]
12151         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12152
12153         stat: be robust to PATH_MAX definition
12154         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12155         * modules/stat (Depends-on): Add verify.
12156
12157         link: work around IRIX bug
12158         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12159         * lib/link.c (rpl_link): Work around it.
12160         * tests/test-link.h (test_link): Enhance test.
12161         * doc/posix-functions/link.texi (link): Document the bug.
12162
12163         getopt: silence clang warning
12164         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12165         dereference.
12166         Reported by Gustavo Martin Domato.
12167
12168 2011-06-22  Jim Meyering  <meyering@redhat.com>
12169
12170         bootstrap: do not insert a blank line into each .gitignore file
12171         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12172
12173 2011-06-21  Eric Blake  <eblake@redhat.com>
12174
12175         perror: test for output mismatch
12176         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12177         perror on IRIX.
12178
12179         strerror_r: fix OpenBSD behavior on out-of-range
12180         * lib/strerror_r.c (strerror_r): Always use maximal string.
12181         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12182
12183         strerror_r: fix OpenBSD behavior on 0
12184         * lib/strerror-override.c (strerror_override): Also override 0
12185         when needed.
12186         * lib/strerror-override.h (strerror_override): Likewise.
12187         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12188         earlier.
12189         * lib/strerror_r.c (strerror_r): Likewise.
12190         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12191         behavior...
12192         (gl_FUNC_STRERROR_0): ...into new macro.
12193         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12194         is overridden.
12195         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12196         * modules/strerror-override (Files): Add strerror.m4.
12197         (configure.ac): Also provide override for 0 when needed.
12198         * doc/posix-functions/strerror.texi (strerror): Document this.
12199         * doc/posix-functions/perror.texi (perror): Likewise.
12200
12201         perror: adjust array size
12202         * modules/perror (Depends-on): Add strerror-override.
12203         * lib/perror.c (perror): Use it to avoid magic number.
12204
12205         strerror-override: reduce size
12206         * lib/strerror-override.c (strerror_override): Use fewer lines.
12207
12208 2011-06-20  Bruno Haible  <bruno@clisp.org>
12209
12210         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12211         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12212
12213 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12214
12215         alloca: port to compilers that can optimize like GCC 4.6.0
12216         * lib/alloca.c (find_stack_direction): New signature, taken from
12217         Autoconf git.  This works with GCC 4.6.0.  This code should never
12218         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12219         be used with other compilers that optimize as well as GCC 4.6.0 does.
12220         (alloca): Adjust to new signature.
12221         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12222         New macro, which patches Autoconf in a similar way.
12223
12224         c-stack: stop worrying about stack direction
12225         * lib/c-stack.c (find_stack_direction): Remove.
12226         (segv_handler): Don't worry about stack direction growth, as it's
12227         too much of a pain to configure this correctly, given how compilers
12228         are optimizing-away our stack-growth detection code.  Instead, assume
12229         that any access to just before or just after the stack is OK.
12230         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12231         Don't require AC_FUNC_ALLOCA; no longer needed.
12232
12233 2011-06-20  Eric Blake  <eblake@redhat.com>
12234
12235         test-stat: don't allocate PATH_MAX bytes
12236         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12237         PATH_MAX-sized buffer.
12238         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12239         * modules/stat-tests (Depends-on): Likewise.
12240         * tests/test-fstatat.c (includes): Drop pathmax.h.
12241         * tests/test-stat.c (includes): Likewise.
12242         Reported by Bruno Haible.
12243
12244 2011-06-20  Bruno Haible  <bruno@clisp.org>
12245
12246         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12247         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12248         * lib/float.c: New file.
12249         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12250         REPLACE_FLOAT_LDBL.
12251         * modules/float (Files): Add lib/float.c.
12252         (configure.ac): Invoke AC_LIBOBJ.
12253         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12254
12255 2011-06-20  Bruno Haible  <bruno@clisp.org>
12256
12257         Tests for module 'float'.
12258         * modules/float-tests: New file.
12259         * tests/test-float.c: New file.
12260
12261 2011-06-19  Bruno Haible  <bruno@clisp.org>
12262
12263         isinf: Coding style.
12264         * lib/isinf.c: Use GNU coding style.
12265
12266 2011-06-19  Bruno Haible  <bruno@clisp.org>
12267
12268         linkat test: Avoid test failure on AIX 7.1.
12269         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12270         * tests/test-link.h (test_link): Likewise.
12271
12272 2011-06-19  Bruno Haible  <bruno@clisp.org>
12273
12274         pread test: Avoid test failure on OpenBSD 4.9.
12275         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12276
12277 2011-06-19  Bruno Haible  <bruno@clisp.org>
12278
12279         sprintf-posix: Fix test failure on AIX 7.1.
12280         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12281         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12282         on AIX.
12283         * doc/posix-functions/fprintf.texi: Likewise.
12284         * doc/posix-functions/printf.texi: Likewise.
12285         * doc/posix-functions/snprintf.texi: Likewise.
12286         * doc/posix-functions/sprintf.texi: Likewise.
12287         * doc/posix-functions/vdprintf.texi: Likewise.
12288         * doc/posix-functions/vfprintf.texi: Likewise.
12289         * doc/posix-functions/vprintf.texi: Likewise.
12290         * doc/posix-functions/vsnprintf.texi: Likewise.
12291         * doc/posix-functions/vsprintf.texi: Likewise.
12292
12293 2011-06-19  Bruno Haible  <bruno@clisp.org>
12294
12295         roundl-ieee: Fix test failure on AIX 7.1.
12296         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12297         * doc/posix-functions/roundl.texi: Mention problem with negative
12298         arguments.
12299
12300 2011-06-19  Bruno Haible  <bruno@clisp.org>
12301
12302         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12303         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12304         * doc/posix-functions/round.texi: Mention problem with negative
12305         arguments.
12306         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12307
12308 2011-06-19  Bruno Haible  <bruno@clisp.org>
12309
12310         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12311         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12312         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12313         * doc/posix-functions/roundf.texi: Mention problem with negative
12314         arguments.
12315         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12316
12317 2011-06-19  Bruno Haible  <bruno@clisp.org>
12318
12319         ceilf-ieee: Work around bug on MacOS X 10.5.
12320         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12321
12322         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12323         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12324         IEEE compliant, avoid compiler optimizations.
12325         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12326         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12327         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12328         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12329         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12330         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12331         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12332         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12333         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12334         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12335
12336 2011-06-19  Bruno Haible  <bruno@clisp.org>
12337
12338         ceilf-ieee: Work around bug on AIX 7.1.
12339         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12340         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12341
12342 2011-06-19  Bruno Haible  <bruno@clisp.org>
12343
12344         ceil-ieee: Work around bug on AIX 7.1.
12345         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12346         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12347
12348 2011-06-18  Bruno Haible  <bruno@clisp.org>
12349
12350         fsync test: Avoid test failure on MacOS X and AIX.
12351         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12352         EINVAL.
12353
12354 2011-06-18  Bruno Haible  <bruno@clisp.org>
12355
12356         openat, fdopendir tests: Fix link errors.
12357         * modules/openat-tests (Depends-on): Add progname.
12358         * modules/fdopendir-tests (Depends-on): Likewise.
12359         * tests/test-fchownat.c: Include progname.h.
12360         (main): Call set_program_name.
12361         * tests/test-fstatat.c: Include progname.h.
12362         (main): Call set_program_name.
12363         * tests/test-mkdirat.c: Include progname.h.
12364         (main): Call set_program_name.
12365         * tests/test-openat.c: Include progname.h.
12366         (main): Call set_program_name.
12367         * tests/test-unlinkat.c: Include progname.h.
12368         (main): Call set_program_name.
12369         * tests/test-fdopendir.c: Include progname.h.
12370         (main): Call set_program_name.
12371
12372 2011-06-18  Bruno Haible  <bruno@clisp.org>
12373
12374         Doc update.
12375         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12376         HP-UX.
12377         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12378
12379 2011-06-18  Bruno Haible  <bruno@clisp.org>
12380
12381         getcwd tests: Avoid compilation error on HP-UX 11.31.
12382         * modules/getcwd-tests (Depends-on): Add pathmax.
12383         * tests/test-getcwd.c: Include pathmax.h.
12384
12385 2011-06-18  Bruno Haible  <bruno@clisp.org>
12386
12387         isfinite, isinf: Fix link error on AIX 6 and 7.
12388         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12389         needed, also test the macro with a 'float' argument.
12390         * m4/isinf.m4 (gl_ISINF): Likewise.
12391
12392 2011-06-18  Bruno Haible  <bruno@clisp.org>
12393
12394         getloadavg: Don't clobber LIBS. Regression from previous commit.
12395         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12396         AC_CHECK_LIB from here...
12397         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12398         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12399         gl_func_getloadavg_done.
12400         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12401
12402 2011-06-18  Bruno Haible  <bruno@clisp.org>
12403
12404         clean-temp: Improve documentation.
12405         * lib/clean-temp.h: Explain better how to use this module.
12406         Reported by John Darrington <john@darrington.wattle.id.au>.
12407
12408 2011-06-17  Bruno Haible  <bruno@clisp.org>
12409
12410         pread, pwrite: Avoid cc warning on AIX.
12411         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12412         (pwrite): Likewise.
12413
12414 2011-06-17  Bruno Haible  <bruno@clisp.org>
12415
12416         spawn-pipe tests: Fix link error.
12417         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12418         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12419
12420 2011-06-17  Bruno Haible  <bruno@clisp.org>
12421
12422         Tests: Remove unnecessary dependency.
12423         * modules/canonicalize-tests (Depends-on): Remove progname.
12424         * modules/chown-tests (Depends-on): Likewise.
12425         * modules/dirname-tests (Depends-on): Likewise.
12426         * modules/fdopendir-tests (Depends-on): Likewise.
12427         * modules/fdutimensat-tests (Depends-on): Likewise.
12428         * modules/hash-tests (Depends-on): Likewise.
12429         * modules/lchown-tests (Depends-on): Likewise.
12430         * modules/linkat-tests (Depends-on): Likewise.
12431         * modules/renameat-tests (Depends-on): Likewise.
12432         * modules/spawn-pipe-tests (Depends-on): Likewise.
12433         * modules/utimensat-tests (Depends-on): Likewise.
12434
12435 2011-06-17  Bruno Haible  <bruno@clisp.org>
12436
12437         spawn-pipe tests: Fix link error.
12438         * tests/test-spawn-pipe-child.c: Undefine fflush.
12439
12440 2011-06-17  Bruno Haible  <bruno@clisp.org>
12441
12442         Fix tests link errors.
12443         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12444         * modules/chown-tests (Makefile.am): Don't link test-chown with
12445         LIBINTL.
12446         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12447         LIBINTL.
12448         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12449         LIBINTL.
12450         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12451         LIBINTL.
12452
12453 2011-06-16  Bruno Haible  <bruno@clisp.org>
12454
12455         crypto/gc-sha1: Fix recent regression.
12456         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12457         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12458
12459         crypto/gc-md5: Fix recent regression.
12460         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12461
12462         crypto/gc-md4: Fix recent regression.
12463         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12464         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12465
12466         crypto/gc-arctwo: Fix recent regression.
12467         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12468         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12469
12470         crypto/gc-rijndael: Fix recent regression.
12471         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12472         (configure.ac): Invoke AC_LIBOBJ here.
12473         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12474         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12475
12476         crypto/gc-hmac-sha1: Fix recent regression.
12477         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12478         (configure.ac): Invoke AC_LIBOBJ here.
12479         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12480         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12481
12482         crypto/gc-hmac-md5: Fix recent regression.
12483         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12484         (configure.ac): Invoke AC_LIBOBJ here.
12485         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12486         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12487
12488         crypto/gc-des: Fix recent regression.
12489         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12490         (configure.ac): Invoke AC_LIBOBJ here.
12491         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12492         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12493
12494         crypto/gc-arcfour: Fix recent regression.
12495         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12496         (configure.ac): Invoke AC_LIBOBJ here.
12497         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12498         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12499
12500 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12501
12502         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12503         After the 2011-05-21 change, this macro requires
12504         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12505         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12506
12507 2011-06-16  Bruno Haible  <bruno@clisp.org>
12508
12509         fprintftime: Move AC_LIBOBJ invocations to module description.
12510         * m4/fprintftime.m4: Remove file.
12511         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12512         (configure.ac): Remove gl_FPRINTFTIME call.
12513         (Makefile.am): Augment lib_SOURCES.
12514         Reported by Jim Meyering.
12515
12516 2011-06-16  Bruno Haible  <bruno@clisp.org>
12517
12518         tmpfile-safer: Finish 2011-05-23 commit.
12519         * m4/stdio-safer.m4: Really remove file.
12520         Reported by Jim Meyering.
12521
12522 2011-06-16  Bruno Haible  <bruno@clisp.org>
12523
12524         syntax-check: Fix typo.
12525         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12526         printf-posix.m4.
12527         Reported by Jim Meyering.
12528
12529 2011-06-13  Jim Meyering  <meyering@redhat.com>
12530
12531         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12532         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12533
12534 2011-05-23  Bruno Haible  <bruno@clisp.org>
12535
12536         yesno: Move AC_LIBOBJ invocations to module description.
12537         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12538         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12539
12540 2011-05-23  Bruno Haible  <bruno@clisp.org>
12541
12542         xstrtol: Move AC_LIBOBJ invocations to module description.
12543         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12544         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12545
12546 2011-05-23  Bruno Haible  <bruno@clisp.org>
12547
12548         xstrtold: Move AC_LIBOBJ invocations to module description.
12549         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12550         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12551
12552 2011-05-23  Bruno Haible  <bruno@clisp.org>
12553
12554         xstrtod: Move AC_LIBOBJ invocations to module description.
12555         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12556         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12557
12558 2011-05-23  Bruno Haible  <bruno@clisp.org>
12559
12560         xnanosleep: Move AC_LIBOBJ invocations to module description.
12561         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12562         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12563
12564 2011-05-23  Bruno Haible  <bruno@clisp.org>
12565
12566         xgetcwd: Move AC_LIBOBJ invocations to module description.
12567         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12568         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12569
12570 2011-05-23  Bruno Haible  <bruno@clisp.org>
12571
12572         xalloc: Move AC_LIBOBJ invocations to module description.
12573         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12574         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12575
12576 2011-05-23  Bruno Haible  <bruno@clisp.org>
12577
12578         write-any-file: Move AC_LIBOBJ invocations to module description.
12579         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12580         invocation.
12581         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12582
12583 2011-05-23  Bruno Haible  <bruno@clisp.org>
12584
12585         utimens: Move AC_LIBOBJ invocations to module description.
12586         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12587         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12588
12589 2011-05-23  Bruno Haible  <bruno@clisp.org>
12590
12591         utimecmp: Move AC_LIBOBJ invocations to module description.
12592         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12593         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12594
12595 2011-05-23  Bruno Haible  <bruno@clisp.org>
12596
12597         userspec: Move AC_LIBOBJ invocations to module description.
12598         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12599         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12600
12601 2011-05-23  Bruno Haible  <bruno@clisp.org>
12602
12603         unlinkdir: Move AC_LIBOBJ invocations to module description.
12604         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12605         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12606
12607 2011-05-23  Bruno Haible  <bruno@clisp.org>
12608
12609         unistd-safer: Move AC_LIBOBJ invocations to module description.
12610         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12611         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12612
12613 2011-05-23  Bruno Haible  <bruno@clisp.org>
12614
12615         tempname: Move AC_LIBOBJ invocations to module description.
12616         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12617         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12618
12619 2011-05-23  Bruno Haible  <bruno@clisp.org>
12620
12621         strftime: Move AC_LIBOBJ invocations to module description.
12622         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12623         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12624
12625 2011-05-23  Bruno Haible  <bruno@clisp.org>
12626
12627         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12628         * m4/stdlib-safer.m4: Remove file.
12629         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12630         (configure.ac): Remove gl_STDLIB_SAFER call.
12631         (Makefile.am): Augment lib_SOURCES.
12632
12633 2011-05-23  Bruno Haible  <bruno@clisp.org>
12634
12635         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12636         * m4/stdio-safer.m4: Remove file.
12637         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12638         (configure.ac): Remove gl_TMPFILE_SAFER call.
12639         (Makefile.am): Augment lib_SOURCES.
12640
12641 2011-05-23  Bruno Haible  <bruno@clisp.org>
12642
12643         popen-safer: Move AC_LIBOBJ invocations to module description.
12644         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12645         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12646         (configure.ac): Remove gl_POPEN_SAFER call.
12647         (Makefile.am): Augment lib_SOURCES.
12648
12649 2011-05-23  Bruno Haible  <bruno@clisp.org>
12650
12651         freopen-safer: Move AC_LIBOBJ invocations to module description.
12652         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12653         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12654         (configure.ac): Remove gl_FREOPEN_SAFER call.
12655         (Makefile.am): Augment lib_SOURCES.
12656
12657 2011-05-23  Bruno Haible  <bruno@clisp.org>
12658
12659         fopen-safer: Move AC_LIBOBJ invocations to module description.
12660         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12661         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12662         (configure.ac): Remove gl_FOPEN_SAFER call.
12663         (Makefile.am): Augment lib_SOURCES.
12664
12665 2011-05-23  Bruno Haible  <bruno@clisp.org>
12666
12667         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12668         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12669         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12670
12671 2011-05-23  Bruno Haible  <bruno@clisp.org>
12672
12673         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12674         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12675         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12676
12677 2011-05-23  Bruno Haible  <bruno@clisp.org>
12678
12679         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12680         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12681         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12682
12683 2011-05-23  Bruno Haible  <bruno@clisp.org>
12684
12685         settime: Move AC_LIBOBJ invocations to module description.
12686         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12687         * modules/settime (Makefile.am): Augment lib_SOURCES.
12688
12689 2011-05-23  Bruno Haible  <bruno@clisp.org>
12690
12691         savedir: Move AC_LIBOBJ invocations to module description.
12692         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12693         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12694
12695 2011-05-23  Bruno Haible  <bruno@clisp.org>
12696
12697         save-cwd: Move AC_LIBOBJ invocations to module description.
12698         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12699         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12700
12701 2011-05-23  Bruno Haible  <bruno@clisp.org>
12702
12703         same: Move AC_LIBOBJ invocations to module description.
12704         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12705         * modules/same (Makefile.am): Augment lib_SOURCES.
12706
12707 2011-05-23  Bruno Haible  <bruno@clisp.org>
12708
12709         safe-write: Move AC_LIBOBJ invocations to module description.
12710         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12711         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12712         instead of gl_SAFE_WRITE.
12713         (Makefile.am): Augment lib_SOURCES.
12714
12715 2011-05-23  Bruno Haible  <bruno@clisp.org>
12716
12717         safe-read: Move AC_LIBOBJ invocations to module description.
12718         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12719         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12720         of gl_SAFE_READ.
12721         (Makefile.am): Augment lib_SOURCES.
12722
12723 2011-05-23  Bruno Haible  <bruno@clisp.org>
12724
12725         safe-alloc: Move AC_LIBOBJ invocations to module description.
12726         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12727         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12728
12729 2011-05-23  Bruno Haible  <bruno@clisp.org>
12730
12731         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12732         * m4/rijndael.m4: Remove file.
12733         * modules/crypto/rijndael (Files): Remove it.
12734         (configure.ac): Remove gl_RIJNDAEL call.
12735         (Makefile.am): Augment lib_SOURCES.
12736
12737 2011-05-23  Bruno Haible  <bruno@clisp.org>
12738
12739         readtokens: Move AC_LIBOBJ invocations to module description.
12740         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12741         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12742
12743 2011-05-23  Bruno Haible  <bruno@clisp.org>
12744
12745         read-file: Move AC_LIBOBJ invocations to module description.
12746         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12747         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12748         of gl_FUNC_READ_FILE.
12749         (Makefile.am): Augment lib_SOURCES.
12750
12751 2011-05-23  Bruno Haible  <bruno@clisp.org>
12752
12753         quotearg: Move AC_LIBOBJ invocations to module description.
12754         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12755         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12756
12757 2011-05-23  Bruno Haible  <bruno@clisp.org>
12758
12759         quote: Move AC_LIBOBJ invocations to module description.
12760         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12761         * modules/quote (Makefile.am): Augment lib_SOURCES.
12762
12763 2011-05-23  Bruno Haible  <bruno@clisp.org>
12764
12765         posixver: Move AC_LIBOBJ invocations to module description.
12766         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12767         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12768
12769 2011-05-23  Bruno Haible  <bruno@clisp.org>
12770
12771         posixtm: Move AC_LIBOBJ invocations to module description.
12772         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12773         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12774
12775 2011-05-23  Bruno Haible  <bruno@clisp.org>
12776
12777         physmem: Move AC_LIBOBJ invocations to module description.
12778         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12779         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12780
12781 2011-05-23  Bruno Haible  <bruno@clisp.org>
12782
12783         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12784         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12785         invocation.
12786         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12787
12788 2011-05-23  Bruno Haible  <bruno@clisp.org>
12789
12790         mpsort: Move AC_LIBOBJ invocations to module description.
12791         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12792         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12793
12794 2011-05-23  Bruno Haible  <bruno@clisp.org>
12795
12796         modechange: Move AC_LIBOBJ invocations to module description.
12797         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12798         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12799
12800 2011-05-23  Bruno Haible  <bruno@clisp.org>
12801
12802         mkdir-p: Move AC_LIBOBJ invocations to module description.
12803         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12804         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12805
12806 2011-05-23  Bruno Haible  <bruno@clisp.org>
12807
12808         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12809         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12810         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12811
12812 2011-05-23  Bruno Haible  <bruno@clisp.org>
12813
12814         mgetgroups: Move AC_LIBOBJ invocations to module description.
12815         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12816         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12817
12818 2011-05-23  Bruno Haible  <bruno@clisp.org>
12819
12820         memxor: Move AC_LIBOBJ invocations to module description.
12821         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12822         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12823
12824 2011-05-23  Bruno Haible  <bruno@clisp.org>
12825
12826         memcoll: Move AC_LIBOBJ invocations to module description.
12827         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12828         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12829
12830 2011-05-23  Bruno Haible  <bruno@clisp.org>
12831
12832         memcasecmp: Move AC_LIBOBJ invocations to module description.
12833         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12834         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12835
12836 2011-05-23  Bruno Haible  <bruno@clisp.org>
12837
12838         crypto/md5: Move AC_LIBOBJ invocations to module description.
12839         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12840         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12841
12842 2011-05-23  Bruno Haible  <bruno@clisp.org>
12843
12844         crypto/md4: Move AC_LIBOBJ invocations to module description.
12845         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12846         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12847
12848 2011-05-23  Bruno Haible  <bruno@clisp.org>
12849
12850         crypto/md2: Move AC_LIBOBJ invocations to module description.
12851         * m4/md2.m4: Remove file.
12852         * modules/crypto/md2 (Files): Remove it.
12853         (configure.ac): Remove gl_MD2 call.
12854         (Makefile.am): Augment lib_SOURCES.
12855
12856 2011-05-23  Bruno Haible  <bruno@clisp.org>
12857
12858         long-options: Move AC_LIBOBJ invocations to module description.
12859         * m4/long-options.m4: Remove file.
12860         * modules/long-options (Files): Remove it.
12861         (configure.ac): Remove gl_LONG_OPTIONS call.
12862         (Makefile.am): Augment lib_SOURCES.
12863
12864 2011-05-23  Bruno Haible  <bruno@clisp.org>
12865
12866         i-ring: Move AC_LIBOBJ invocations to module description.
12867         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12868         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12869
12870 2011-05-23  Bruno Haible  <bruno@clisp.org>
12871
12872         idcache: Move AC_LIBOBJ invocations to module description.
12873         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12874         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12875
12876 2011-05-23  Bruno Haible  <bruno@clisp.org>
12877
12878         human: Move AC_LIBOBJ invocations to module description.
12879         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12880         * modules/human (Makefile.am): Augment lib_SOURCES.
12881
12882 2011-05-23  Bruno Haible  <bruno@clisp.org>
12883
12884         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12885         * m4/hmac-sha1.m4: Remove file.
12886         * modules/crypto/hmac-sha1 (Files): Remove it.
12887         (configure.ac): Remove gl_HMAC_SHA1 call.
12888         (Makefile.am): Augment lib_SOURCES.
12889
12890 2011-05-23  Bruno Haible  <bruno@clisp.org>
12891
12892         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12893         * m4/hmac-md5.m4: Remove file.
12894         * modules/crypto/hmac-md5 (Files): Remove it.
12895         (configure.ac): Remove gl_HMAC_MD5 call.
12896         (Makefile.am): Augment lib_SOURCES.
12897
12898 2011-05-23  Bruno Haible  <bruno@clisp.org>
12899
12900         hash: Move AC_LIBOBJ invocations to module description.
12901         * m4/hash.m4: Remove file.
12902         * modules/hash (Files): Remove it.
12903         (configure.ac): Remove gl_HASH call.
12904         (Makefile.am): Augment lib_SOURCES.
12905
12906 2011-05-23  Bruno Haible  <bruno@clisp.org>
12907
12908         hard-locale: Move AC_LIBOBJ invocations to module description.
12909         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12910         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12911
12912 2011-05-23  Bruno Haible  <bruno@clisp.org>
12913
12914         getugroups: Move AC_LIBOBJ invocations to module description.
12915         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12916         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12917
12918 2011-05-23  Bruno Haible  <bruno@clisp.org>
12919
12920         gettime: Move AC_LIBOBJ invocations to module description.
12921         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12922         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12923
12924 2011-05-23  Bruno Haible  <bruno@clisp.org>
12925
12926         getndelim2: Move AC_LIBOBJ invocations to module description.
12927         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12928         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12929
12930 2011-05-23  Bruno Haible  <bruno@clisp.org>
12931
12932         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12933         * m4/gc-pbkdf2-sha1.m4: Remove file.
12934         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12935         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12936         (Makefile.am): Augment lib_SOURCES.
12937
12938 2011-05-23  Bruno Haible  <bruno@clisp.org>
12939
12940         fts: Move AC_LIBOBJ invocations to module description.
12941         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12942         * modules/fts (configure.ac): ... to here.
12943
12944 2011-05-23  Bruno Haible  <bruno@clisp.org>
12945
12946         file-type: Move AC_LIBOBJ invocations to module description.
12947         * m4/file-type.m4: Remove file.
12948         * modules/file-type (Files): Remove it.
12949         (configure.ac): Remove gl_FILE_TYPE call.
12950         (Makefile.am): Augment lib_SOURCES.
12951
12952 2011-05-23  Bruno Haible  <bruno@clisp.org>
12953
12954         filenamecat*: Respect rules for use of AC_LIBOBJ.
12955         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12956         Remove AC_LIBOBJ invocation.
12957         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12958         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12959
12960 2011-05-23  Bruno Haible  <bruno@clisp.org>
12961
12962         filemode: Move AC_LIBOBJ invocations to module description.
12963         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12964         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12965
12966 2011-05-23  Bruno Haible  <bruno@clisp.org>
12967
12968         openat-safer: Move AC_LIBOBJ invocations to module description.
12969         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12970         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12971
12972 2011-05-23  Bruno Haible  <bruno@clisp.org>
12973
12974         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12975         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12976         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12977
12978 2011-05-23  Bruno Haible  <bruno@clisp.org>
12979
12980         exclude: Move AC_LIBOBJ invocations to module description.
12981         * m4/exclude.m4: Remove file.
12982         * modules/exclude (Files): Remove it.
12983         (configure.ac): Remove gl_EXCLUDE call.
12984         (Makefile.am): Augment lib_SOURCES.
12985
12986 2011-05-23  Bruno Haible  <bruno@clisp.org>
12987
12988         dirname*: Respect rules for use of AC_LIBOBJ.
12989         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12990         invocations.
12991         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12992         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12993
12994 2011-05-23  Bruno Haible  <bruno@clisp.org>
12995
12996         dirent-safer: Move AC_LIBOBJ invocations to module description.
12997         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12998         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12999
13000 2011-05-23  Bruno Haible  <bruno@clisp.org>
13001
13002         crypto/des: Move AC_LIBOBJ invocations to module description.
13003         * m4/des.m4: Remove file.
13004         * modules/crypto/des (Files): Remove it.
13005         (configure.ac): Remove gl_DES call.
13006         (Makefile.am): Augment lib_SOURCES.
13007
13008 2011-05-23  Bruno Haible  <bruno@clisp.org>
13009
13010         cycle-check: Move AC_LIBOBJ invocations to module description.
13011         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13012         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13013
13014 2011-05-23  Bruno Haible  <bruno@clisp.org>
13015
13016         c-strtold: Move AC_LIBOBJ invocations to module description.
13017         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13018         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13019
13020 2011-05-23  Bruno Haible  <bruno@clisp.org>
13021
13022         c-strtod: Move AC_LIBOBJ invocations to module description.
13023         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13024         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13025
13026 2011-05-23  Bruno Haible  <bruno@clisp.org>
13027
13028         crc: Move AC_LIBOBJ invocations to module description.
13029         * m4/crc.m4: Remove file.
13030         * modules/crc (Files): Remove it.
13031         (configure.ac): Remove gl_CRC call.
13032         (Makefile.am): Augment lib_SOURCES.
13033
13034 2011-05-23  Bruno Haible  <bruno@clisp.org>
13035
13036         close-stream: Move AC_LIBOBJ invocations to module description.
13037         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13038         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13039
13040 2011-05-23  Bruno Haible  <bruno@clisp.org>
13041
13042         closeout: Move AC_LIBOBJ invocations to module description.
13043         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13044         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13045
13046 2011-05-23  Bruno Haible  <bruno@clisp.org>
13047
13048         closein: Move AC_LIBOBJ invocations to module description.
13049         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13050         * modules/closein (Makefile.am): Augment lib_SOURCES.
13051
13052 2011-05-23  Bruno Haible  <bruno@clisp.org>
13053
13054         cloexec: Move AC_LIBOBJ invocations to module description.
13055         * m4/cloexec.m4: Remove file.
13056         * modules/cloexec (Files): Remove it.
13057         (configure.ac): Remove gl_CLOEXEC call.
13058         (Makefile.am): Augment lib_SOURCES.
13059
13060 2011-05-23  Bruno Haible  <bruno@clisp.org>
13061
13062         check-version: Move AC_LIBOBJ invocations to module description.
13063         * m4/check-version.m4: Remove file.
13064         * modules/check-version (Files): Remove it.
13065         (configure.ac): Remove gl_CHECK_VERSION call.
13066         (Makefile.am): Augment lib_SOURCES.
13067
13068 2011-05-23  Bruno Haible  <bruno@clisp.org>
13069
13070         chdir-safer: Move AC_LIBOBJ invocations to module description.
13071         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13072         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13073
13074 2011-05-23  Bruno Haible  <bruno@clisp.org>
13075
13076         canonicalize: Move AC_LIBOBJ invocations to module description.
13077         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13078         AC_LIBOBJ invocation.
13079         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13080
13081 2011-05-23  Bruno Haible  <bruno@clisp.org>
13082
13083         canon-host: Move AC_LIBOBJ invocations to module description.
13084         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13085         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13086         instead of gl_CANON_HOST.
13087         (Makefile.am): Augment lib_SOURCES.
13088
13089 2011-05-23  Bruno Haible  <bruno@clisp.org>
13090
13091         backupfile: Move AC_LIBOBJ invocations to module description.
13092         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13093         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13094
13095 2011-05-23  Bruno Haible  <bruno@clisp.org>
13096
13097         argmatch: Move AC_LIBOBJ invocations to module description.
13098         * m4/argmatch.m4: Remove file.
13099         * modules/argmatch (Files): Remove it.
13100         (configure.ac): Remove gl_ARGMATCH call.
13101         (Makefile.am): Augment lib_SOURCES.
13102
13103 2011-05-23  Bruno Haible  <bruno@clisp.org>
13104
13105         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13106         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13107         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13108
13109 2011-05-23  Bruno Haible  <bruno@clisp.org>
13110
13111         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13112         * m4/arcfour.m4: Remove file.
13113         * modules/crypto/arcfour (Files): Remove it.
13114         (configure.ac): Remove gl_ARCFOUR call.
13115         (Makefile.am): Augment lib_SOURCES.
13116
13117 2011-05-22  Bruno Haible  <bruno@clisp.org>
13118
13119         write: Move AC_LIBOBJ invocations to module description.
13120         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13121         * modules/write (configure.ac): ... to here.
13122
13123 2011-05-22  Bruno Haible  <bruno@clisp.org>
13124
13125         wmemset: Move AC_LIBOBJ invocations to module description.
13126         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13127         here...
13128         * modules/wmemset (configure.ac): ... to here.
13129
13130 2011-05-22  Bruno Haible  <bruno@clisp.org>
13131
13132         wmemmove: Move AC_LIBOBJ invocations to module description.
13133         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13134         here...
13135         * modules/wmemmove (configure.ac): ... to here.
13136
13137 2011-05-22  Bruno Haible  <bruno@clisp.org>
13138
13139         wmemcpy: Move AC_LIBOBJ invocations to module description.
13140         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13141         here...
13142         * modules/wmemcpy (configure.ac): ... to here.
13143
13144 2011-05-22  Bruno Haible  <bruno@clisp.org>
13145
13146         wmemcmp: Move AC_LIBOBJ invocations to module description.
13147         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13148         here...
13149         * modules/wmemcmp (configure.ac): ... to here.
13150
13151 2011-05-22  Bruno Haible  <bruno@clisp.org>
13152
13153         wmemchr: Move AC_LIBOBJ invocations to module description.
13154         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13155         here...
13156         * modules/wmemchr (configure.ac): ... to here.
13157
13158 2011-05-22  Bruno Haible  <bruno@clisp.org>
13159
13160         wcswidth: Move AC_LIBOBJ invocations to module description.
13161         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13162         here...
13163         * modules/wcswidth (configure.ac): ... to here.
13164
13165 2011-05-22  Bruno Haible  <bruno@clisp.org>
13166
13167         wcwidth: Respect rules for use of AC_LIBOBJ.
13168         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13169         invocation from here...
13170         * modules/wcwidth (configure.ac): ... to here.
13171         (Depends-on): Update conditions.
13172
13173 2011-05-22  Bruno Haible  <bruno@clisp.org>
13174
13175         wctype: Move AC_LIBOBJ invocations to module description.
13176         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13177         invocation from here...
13178         * modules/wctype (configure.ac): ... to here.
13179         (Depends-on): Update conditions.
13180
13181 2011-05-22  Bruno Haible  <bruno@clisp.org>
13182
13183         wctrans: Move AC_LIBOBJ invocations to module description.
13184         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13185         invocation from here...
13186         * modules/wctrans (configure.ac): ... to here.
13187
13188 2011-05-22  Bruno Haible  <bruno@clisp.org>
13189
13190         wctomb: Move AC_LIBOBJ invocations to module description.
13191         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13192         invocations from here...
13193         * modules/wctomb (configure.ac): ... to here.
13194
13195 2011-05-22  Bruno Haible  <bruno@clisp.org>
13196
13197         wctob: Move AC_LIBOBJ invocations to module description.
13198         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13199         gl_PREREQ_WCTOB invocations from here...
13200         * modules/wctob (configure.ac): ... to here.
13201         (Depends-on): Update conditions.
13202
13203 2011-05-22  Bruno Haible  <bruno@clisp.org>
13204
13205         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13206         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13207         here...
13208         * modules/wcsxfrm (configure.ac): ... to here.
13209
13210 2011-05-22  Bruno Haible  <bruno@clisp.org>
13211
13212         wcstok: Move AC_LIBOBJ invocations to module description.
13213         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13214         * modules/wcstok (configure.ac): ... to here.
13215
13216 2011-05-22  Bruno Haible  <bruno@clisp.org>
13217
13218         wcsstr: Move AC_LIBOBJ invocations to module description.
13219         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13220         * modules/wcsstr (configure.ac): ... to here.
13221
13222 2011-05-22  Bruno Haible  <bruno@clisp.org>
13223
13224         wcsspn: Move AC_LIBOBJ invocations to module description.
13225         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13226         * modules/wcsspn (configure.ac): ... to here.
13227
13228 2011-05-22  Bruno Haible  <bruno@clisp.org>
13229
13230         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13231         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13232         gl_PREREQ_WCSRTOMBS invocations from here...
13233         * modules/wcsrtombs (configure.ac): ... to here.
13234
13235 2011-05-22  Bruno Haible  <bruno@clisp.org>
13236
13237         wcsrchr: Move AC_LIBOBJ invocations to module description.
13238         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13239         here...
13240         * modules/wcsrchr (configure.ac): ... to here.
13241
13242 2011-05-22  Bruno Haible  <bruno@clisp.org>
13243
13244         wcspbrk: Move AC_LIBOBJ invocations to module description.
13245         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13246         here...
13247         * modules/wcspbrk (configure.ac): ... to here.
13248
13249 2011-05-22  Bruno Haible  <bruno@clisp.org>
13250
13251         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13252         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13253         gl_PREREQ_WCSNRTOMBS invocations from here...
13254         * modules/wcsnrtombs (configure.ac): ... to here.
13255
13256 2011-05-22  Bruno Haible  <bruno@clisp.org>
13257
13258         wcsnlen: Move AC_LIBOBJ invocations to module description.
13259         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13260         here...
13261         * modules/wcsnlen (configure.ac): ... to here.
13262
13263 2011-05-22  Bruno Haible  <bruno@clisp.org>
13264
13265         wcsncpy: Move AC_LIBOBJ invocations to module description.
13266         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13267         here...
13268         * modules/wcsncpy (configure.ac): ... to here.
13269
13270 2011-05-22  Bruno Haible  <bruno@clisp.org>
13271
13272         wcsncmp: Move AC_LIBOBJ invocations to module description.
13273         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13274         here...
13275         * modules/wcsncmp (configure.ac): ... to here.
13276
13277 2011-05-22  Bruno Haible  <bruno@clisp.org>
13278
13279         wcsncat: Move AC_LIBOBJ invocations to module description.
13280         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13281         here...
13282         * modules/wcsncat (configure.ac): ... to here.
13283
13284 2011-05-22  Bruno Haible  <bruno@clisp.org>
13285
13286         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13287         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13288         from here...
13289         * modules/wcsncasecmp (configure.ac): ... to here.
13290
13291 2011-05-22  Bruno Haible  <bruno@clisp.org>
13292
13293         wcslen: Move AC_LIBOBJ invocations to module description.
13294         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13295         * modules/wcslen (configure.ac): ... to here.
13296
13297 2011-05-22  Bruno Haible  <bruno@clisp.org>
13298
13299         wcsdup: Move AC_LIBOBJ invocations to module description.
13300         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13301         * modules/wcsdup (configure.ac): ... to here.
13302
13303 2011-05-22  Bruno Haible  <bruno@clisp.org>
13304
13305         wcscspn: Move AC_LIBOBJ invocations to module description.
13306         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13307         here...
13308         * modules/wcscspn (configure.ac): ... to here.
13309
13310 2011-05-22  Bruno Haible  <bruno@clisp.org>
13311
13312         wcscpy: Move AC_LIBOBJ invocations to module description.
13313         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13314         * modules/wcscpy (configure.ac): ... to here.
13315
13316 2011-05-22  Bruno Haible  <bruno@clisp.org>
13317
13318         wcscoll: Move AC_LIBOBJ invocations to module description.
13319         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13320         here...
13321         * modules/wcscoll (configure.ac): ... to here.
13322
13323 2011-05-22  Bruno Haible  <bruno@clisp.org>
13324
13325         wcscmp: Move AC_LIBOBJ invocations to module description.
13326         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13327         * modules/wcscmp (configure.ac): ... to here.
13328
13329 2011-05-22  Bruno Haible  <bruno@clisp.org>
13330
13331         wcschr: Move AC_LIBOBJ invocations to module description.
13332         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13333         * modules/wcschr (configure.ac): ... to here.
13334
13335 2011-05-22  Bruno Haible  <bruno@clisp.org>
13336
13337         wcscat: Move AC_LIBOBJ invocations to module description.
13338         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13339         * modules/wcscat (configure.ac): ... to here.
13340
13341 2011-05-22  Bruno Haible  <bruno@clisp.org>
13342
13343         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13344         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13345         here...
13346         * modules/wcscasecmp (configure.ac): ... to here.
13347
13348 2011-05-22  Bruno Haible  <bruno@clisp.org>
13349
13350         wcrtomb: Move AC_LIBOBJ invocations to module description.
13351         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13352         invocations from here...
13353         * modules/wcrtomb (configure.ac): ... to here.
13354
13355 2011-05-22  Bruno Haible  <bruno@clisp.org>
13356
13357         wcpncpy: Move AC_LIBOBJ invocations to module description.
13358         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13359         here...
13360         * modules/wcpncpy (configure.ac): ... to here.
13361
13362 2011-05-22  Bruno Haible  <bruno@clisp.org>
13363
13364         wcpcpy: Move AC_LIBOBJ invocations to module description.
13365         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13366         * modules/wcpcpy (configure.ac): ... to here.
13367
13368 2011-05-22  Bruno Haible  <bruno@clisp.org>
13369
13370         waitpid: Move AC_LIBOBJ invocations to module description.
13371         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13372         invocation from here...
13373         * modules/waitpid (configure.ac): ... to here.
13374
13375 2011-05-22  Bruno Haible  <bruno@clisp.org>
13376
13377         utimensat: Move AC_LIBOBJ invocations to module description.
13378         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13379         here...
13380         * modules/utimensat (configure.ac): ... to here.
13381
13382 2011-05-22  Bruno Haible  <bruno@clisp.org>
13383
13384         usleep: Move AC_LIBOBJ invocations to module description.
13385         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13386         here...
13387         * modules/usleep (configure.ac): ... to here.
13388
13389 2011-05-22  Bruno Haible  <bruno@clisp.org>
13390
13391         unlockpt: Move AC_LIBOBJ invocations to module description.
13392         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13393         gl_PREREQ_UNLOCKPT invocations from here...
13394         * modules/unlockpt (configure.ac): ... to here.
13395
13396 2011-05-22  Bruno Haible  <bruno@clisp.org>
13397
13398         unlink: Respect rules for use of AC_LIBOBJ.
13399         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13400         * modules/unlink (configure.ac): ... to here.
13401
13402 2011-05-22  Bruno Haible  <bruno@clisp.org>
13403
13404         uname: Move AC_LIBOBJ invocations to module description.
13405         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13406         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13407         here...
13408         * modules/uname (configure.ac): ... to here.
13409
13410 2011-05-22  Bruno Haible  <bruno@clisp.org>
13411
13412         ttyname_r: Move AC_LIBOBJ invocations to module description.
13413         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13414         gl_PREREQ_TTYNAME_R invocations from here...
13415         * modules/ttyname_r (configure.ac): ... to here.
13416
13417 2011-05-22  Bruno Haible  <bruno@clisp.org>
13418
13419         tsearch: Move AC_LIBOBJ invocations to module description.
13420         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13421         invocations from here...
13422         * modules/tsearch (configure.ac): ... to here.
13423
13424 2011-05-22  Bruno Haible  <bruno@clisp.org>
13425
13426         towctrans: Move AC_LIBOBJ invocations to module description.
13427         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13428         AC_LIBOBJ invocation from here...
13429         * modules/towctrans (configure.ac): ... to here.
13430
13431 2011-05-22  Bruno Haible  <bruno@clisp.org>
13432
13433         tmpfile: Move AC_LIBOBJ invocations to module description.
13434         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13435         invocations from here...
13436         * modules/tmpfile (configure.ac): ... to here.
13437
13438 2011-05-22  Bruno Haible  <bruno@clisp.org>
13439
13440         times: Move AC_LIBOBJ invocations to module description.
13441         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13442         * modules/times (configure.ac): ... to here.
13443
13444 2011-05-22  Bruno Haible  <bruno@clisp.org>
13445
13446         time_r: Move AC_LIBOBJ invocations to module description.
13447         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13448         invocations from here...
13449         * modules/time_r (configure.ac): ... to here.
13450
13451 2011-05-22  Bruno Haible  <bruno@clisp.org>
13452
13453         timegm: Move AC_LIBOBJ invocations to module description.
13454         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13455         invocations from here...
13456         * modules/timegm (configure.ac): ... to here.
13457
13458 2011-05-22  Bruno Haible  <bruno@clisp.org>
13459
13460         tcgetsid: Move AC_LIBOBJ invocations to module description.
13461         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13462         and gl_PREREQ_TCGETSID invocations from here...
13463         * modules/tcgetsid (configure.ac): ... to here.
13464         (Depends-on): Update conditions.
13465
13466 2011-05-22  Bruno Haible  <bruno@clisp.org>
13467
13468         symlinkat: Move AC_LIBOBJ invocations to module description.
13469         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13470         here...
13471         * modules/symlinkat (configure.ac): ... to here.
13472
13473 2011-05-22  Bruno Haible  <bruno@clisp.org>
13474
13475         symlink: Move AC_LIBOBJ invocations to module description.
13476         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13477         here...
13478         * modules/symlink (configure.ac): ... to here.
13479
13480 2011-05-22  Bruno Haible  <bruno@clisp.org>
13481
13482         strverscmp: Move AC_LIBOBJ invocations to module description.
13483         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13484         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13485         from here...
13486         * modules/strverscmp (configure.ac): ... to here.
13487
13488 2011-05-22  Bruno Haible  <bruno@clisp.org>
13489
13490         strtok_r: Move AC_LIBOBJ invocations to module description.
13491         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13492         and gl_PREREQ_STRTOK_R invocations from here...
13493         * modules/strtok_r (configure.ac): ... to here.
13494         (Depends-on): Update conditions.
13495
13496 2011-05-22  Bruno Haible  <bruno@clisp.org>
13497
13498         strtoumax: Move AC_LIBOBJ invocations to module description.
13499         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13500         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13501         from here...
13502         * modules/strtoumax (configure.ac): ... to here.
13503
13504 2011-05-22  Bruno Haible  <bruno@clisp.org>
13505
13506         strtoimax: Move AC_LIBOBJ invocations to module description.
13507         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13508         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13509         from here...
13510         * modules/strtoimax (configure.ac): ... to here.
13511
13512 2011-05-22  Bruno Haible  <bruno@clisp.org>
13513
13514         strtoull: Move AC_LIBOBJ invocations to module description.
13515         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13516         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13517         from here...
13518         * modules/strtoull (configure.ac): ... to here.
13519
13520 2011-05-22  Bruno Haible  <bruno@clisp.org>
13521
13522         strtoll: Move AC_LIBOBJ invocations to module description.
13523         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13524         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13525         here...
13526         * modules/strtoll (configure.ac): ... to here.
13527
13528 2011-05-22  Bruno Haible  <bruno@clisp.org>
13529
13530         strtoul: Move AC_LIBOBJ invocations to module description.
13531         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13532         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13533         * modules/strtoul (configure.ac): ... to here.
13534
13535 2011-05-22  Bruno Haible  <bruno@clisp.org>
13536
13537         strtol: Move AC_LIBOBJ invocations to module description.
13538         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13539         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13540         * modules/strtol (configure.ac): ... to here.
13541
13542 2011-05-22  Bruno Haible  <bruno@clisp.org>
13543
13544         strtod: Move AC_LIBOBJ invocations to module description.
13545         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13546         invocations from here...
13547         * modules/strtod (configure.ac): ... to here.
13548
13549 2011-05-22  Bruno Haible  <bruno@clisp.org>
13550
13551         strstr*: Move AC_LIBOBJ invocations to module description.
13552         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13553         invocations from here...
13554         * modules/strstr-simple (configure.ac): ... to here.
13555         * modules/strstr (configure.ac): ... and here.
13556
13557 2011-05-22  Bruno Haible  <bruno@clisp.org>
13558
13559         strsignal: Move AC_LIBOBJ invocations to module description.
13560         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13561         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13562         * modules/strsignal (configure.ac): ... to here.
13563         (Depends-on): Update conditions.
13564
13565 2011-05-22  Bruno Haible  <bruno@clisp.org>
13566
13567         strsep: Move AC_LIBOBJ invocations to module description.
13568         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13569         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13570         here...
13571         * modules/strsep (configure.ac): ... to here.
13572
13573 2011-05-22  Bruno Haible  <bruno@clisp.org>
13574
13575         strptime: Move AC_LIBOBJ invocations to module description.
13576         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13577         gl_PREREQ_STRPTIME invocations from here...
13578         * modules/strptime (configure.ac): ... to here.
13579
13580 2011-05-22  Bruno Haible  <bruno@clisp.org>
13581
13582         strpbrk: Move AC_LIBOBJ invocations to module description.
13583         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13584         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13585         here...
13586         * modules/strpbrk (configure.ac): ... to here.
13587
13588 2011-05-22  Bruno Haible  <bruno@clisp.org>
13589
13590         strnlen: Move AC_LIBOBJ invocations to module description.
13591         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13592         invocations from here...
13593         * modules/strnlen (configure.ac): ... to here.
13594
13595 2011-05-22  Bruno Haible  <bruno@clisp.org>
13596
13597         strndup: Move AC_LIBOBJ invocations to module description.
13598         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13599         invocations from here...
13600         * modules/strndup (configure.ac): ... to here.
13601         (Depends-on): Update conditions.
13602
13603 2011-05-22  Bruno Haible  <bruno@clisp.org>
13604
13605         strncat: Move AC_LIBOBJ invocations to module description.
13606         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13607         invocations from here...
13608         * modules/strncat (configure.ac): ... to here.
13609
13610 2011-05-22  Bruno Haible  <bruno@clisp.org>
13611
13612         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13613         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13614         invocations from here...
13615         * modules/strdup (configure.ac): ... to here.
13616         * modules/strdup-posix (configure.ac): ... and here.
13617
13618 2011-05-22  Bruno Haible  <bruno@clisp.org>
13619
13620         strcspn: Move AC_LIBOBJ invocations to module description.
13621         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13622         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13623         here...
13624         * modules/strcspn (configure.ac): ... to here.
13625
13626 2011-05-22  Bruno Haible  <bruno@clisp.org>
13627
13628         strchrnul: Move AC_LIBOBJ invocations to module description.
13629         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13630         gl_PREREQ_STRCHRNUL invocations from here...
13631         * modules/strchrnul (configure.ac): ... to here.
13632
13633 2011-05-22  Bruno Haible  <bruno@clisp.org>
13634
13635         strcasestr*: Move AC_LIBOBJ invocations to module description.
13636         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13637         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13638         * modules/strcasestr-simple (configure.ac): ... to here.
13639         * modules/strcasestr (configure.ac): ... and here.
13640
13641 2011-05-22  Bruno Haible  <bruno@clisp.org>
13642
13643         strcase: Move AC_LIBOBJ invocations to module description.
13644         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13645         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13646         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13647         gl_PREREQ_STRNCASECMP invocations from here...
13648         * modules/strcase (configure.ac): ... to here.
13649
13650 2011-05-22  Bruno Haible  <bruno@clisp.org>
13651
13652         stpncpy: Move AC_LIBOBJ invocations to module description.
13653         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13654         here...
13655         * modules/stpncpy (configure.ac): ... to here.
13656
13657 2011-05-22  Bruno Haible  <bruno@clisp.org>
13658
13659         stpcpy: Move AC_LIBOBJ invocations to module description.
13660         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13661         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13662         here...
13663         * modules/stpcpy (configure.ac): ... to here.
13664
13665 2011-05-21  Bruno Haible  <bruno@clisp.org>
13666
13667         stat: Move AC_LIBOBJ invocations to module description.
13668         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13669         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13670         here...
13671         * modules/stat (configure.ac): ... to here.
13672
13673 2011-05-21  Bruno Haible  <bruno@clisp.org>
13674
13675         sleep: Move AC_LIBOBJ invocations to module description.
13676         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13677         * modules/sleep (configure.ac): ... to here.
13678
13679 2011-05-21  Bruno Haible  <bruno@clisp.org>
13680
13681         signbit: Move AC_LIBOBJ invocations to module description.
13682         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13683         * modules/signbit (configure.ac): ... to here.
13684
13685 2011-05-21  Bruno Haible  <bruno@clisp.org>
13686
13687         sigprocmask: Move AC_LIBOBJ invocations to module description.
13688         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13689         gl_PREREQ_SIGPROMASK invocations from here...
13690         * modules/sigprocmask (configure.ac): ... to here.
13691
13692 2011-05-21  Bruno Haible  <bruno@clisp.org>
13693
13694         sigaction: Move AC_LIBOBJ invocations to module description.
13695         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13696         gl_PREREQ_SIGACTION invocations from here...
13697         * modules/sigaction (configure.ac): ... to here.
13698
13699 2011-05-21  Bruno Haible  <bruno@clisp.org>
13700
13701         sig2str: Move AC_LIBOBJ invocations to module description.
13702         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13703         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13704         here...
13705         * modules/sig2str (configure.ac): ... to here.
13706
13707 2011-05-21  Bruno Haible  <bruno@clisp.org>
13708
13709         setlocale: Move AC_LIBOBJ invocations to module description.
13710         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13711         gl_PREREQ_SETLOCALE invocations from here...
13712         * modules/setlocale (configure.ac): ... to here.
13713
13714 2011-05-21  Bruno Haible  <bruno@clisp.org>
13715
13716         unsetenv: Move AC_LIBOBJ invocations to module description.
13717         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13718         and gl_PREREQ_UNSETENV invocations from here...
13719         * modules/unsetenv (configure.ac): ... to here.
13720         (Depends-on): Update.
13721
13722 2011-05-21  Bruno Haible  <bruno@clisp.org>
13723
13724         setenv: Move AC_LIBOBJ invocations to module description.
13725         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13726         here...
13727         * modules/setenv (configure.ac): ... to here.
13728
13729 2011-05-21  Bruno Haible  <bruno@clisp.org>
13730
13731         selinux-h: Move AC_LIBOBJ invocations to module description.
13732         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13733         AC_LIBOBJ invocation from here...
13734         * modules/selinux-h (configure.ac): ... to here.
13735
13736 2011-05-21  Bruno Haible  <bruno@clisp.org>
13737
13738         select: Respect rules for use of AC_LIBOBJ.
13739         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13740         here...
13741         * modules/select (configure.ac): ... to here.
13742
13743 2011-05-21  Bruno Haible  <bruno@clisp.org>
13744
13745         scandir: Move AC_LIBOBJ invocations to module description.
13746         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13747         invocations from here...
13748         * modules/scandir (configure.ac): ... to here.
13749
13750 2011-05-21  Bruno Haible  <bruno@clisp.org>
13751
13752         rpmatch: Move AC_LIBOBJ invocations to module description.
13753         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13754         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13755         here...
13756         * modules/rpmatch (configure.ac): ... to here.
13757
13758 2011-05-21  Bruno Haible  <bruno@clisp.org>
13759
13760         rmdir: Respect rules for use of AC_LIBOBJ.
13761         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13762         * modules/rmdir (configure.ac): ... to here.
13763
13764 2011-05-21  Bruno Haible  <bruno@clisp.org>
13765
13766         renameat: Move AC_LIBOBJ invocations to module description.
13767         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13768         here...
13769         * modules/renameat (configure.ac): ... to here.
13770
13771 2011-05-21  Bruno Haible  <bruno@clisp.org>
13772
13773         rename: Respect rules for use of AC_LIBOBJ.
13774         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13775         here...
13776         * modules/rename (configure.ac): ... to here.
13777
13778 2011-05-21  Bruno Haible  <bruno@clisp.org>
13779
13780         remove: Move AC_LIBOBJ invocations to module description.
13781         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13782         here...
13783         * modules/remove (configure.ac): ... to here.
13784
13785 2011-05-21  Bruno Haible  <bruno@clisp.org>
13786
13787         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13788         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13789         macro.
13790         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13791         * modules/relocatable-lib (configure.ac): ... to here.
13792         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13793         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13794
13795 2011-05-21  Bruno Haible  <bruno@clisp.org>
13796
13797         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13798         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13799         here...
13800         * modules/relocatable-prog (configure.ac): ... to here.
13801
13802 2011-05-21  Bruno Haible  <bruno@clisp.org>
13803
13804         regex: Move AC_LIBOBJ invocations to module description.
13805         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13806         invocations from here...
13807         * modules/regex (configure.ac): ... to here.
13808
13809 2011-05-21  Bruno Haible  <bruno@clisp.org>
13810
13811         realloc-*: Move AC_LIBOBJ invocations to module description.
13812         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13813         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13814         AC_LIBOBJ invocations from here...
13815         * modules/realloc-gnu (configure.ac): ... to here.
13816         * modules/realloc-posix (configure.ac): ... and here.
13817
13818 2011-05-21  Bruno Haible  <bruno@clisp.org>
13819
13820         readutmp: Move AC_LIBOBJ invocations to module description.
13821         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13822         * modules/readutmp (configure.ac): ... to here.
13823
13824 2011-05-21  Bruno Haible  <bruno@clisp.org>
13825
13826         readlinkat: Move AC_LIBOBJ invocations to module description.
13827         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13828         here...
13829         * modules/readlinkat (configure.ac): ... to here.
13830
13831 2011-05-21  Bruno Haible  <bruno@clisp.org>
13832
13833         readlink: Move AC_LIBOBJ invocations to module description.
13834         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13835         gl_PREREQ_READLINK invocations from here...
13836         * modules/readlink (configure.ac): ... to here.
13837
13838 2011-05-21  Bruno Haible  <bruno@clisp.org>
13839
13840         readline: Move AC_LIBOBJ invocations to module description.
13841         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13842         gl_PREREQ_READLINE invocations from here...
13843         * modules/readline (configure.ac): ... to here.
13844
13845 2011-05-21  Bruno Haible  <bruno@clisp.org>
13846
13847         read: Move AC_LIBOBJ invocations to module description.
13848         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13849         * modules/read (configure.ac): ... to here.
13850
13851 2011-05-21  Bruno Haible  <bruno@clisp.org>
13852
13853         rawmemchr: Move AC_LIBOBJ invocations to module description.
13854         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13855         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13856         from here...
13857         * modules/rawmemchr (configure.ac): ... to here.
13858
13859 2011-05-21  Bruno Haible  <bruno@clisp.org>
13860
13861         random_r: Move AC_LIBOBJ invocations to module description.
13862         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13863         gl_PREREQ_RANDOM_R invocations from here...
13864         * modules/random_r (configure.ac): ... to here.
13865
13866 2011-05-21  Bruno Haible  <bruno@clisp.org>
13867
13868         pwrite: Move AC_LIBOBJ invocations to module description.
13869         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13870         * modules/pwrite (configure.ac): ... to here.
13871
13872 2011-05-21  Bruno Haible  <bruno@clisp.org>
13873
13874         putenv: Move AC_LIBOBJ invocations to module description.
13875         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13876         * modules/putenv (configure.ac): ... to here.
13877
13878 2011-05-21  Bruno Haible  <bruno@clisp.org>
13879
13880         login_tty: Move AC_LIBOBJ invocations to module description.
13881         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13882         * modules/login_tty (configure.ac): ... to here.
13883
13884 2011-05-21  Bruno Haible  <bruno@clisp.org>
13885
13886         openpty: Move AC_LIBOBJ invocations to module description.
13887         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13888         * modules/openpty (configure.ac): ... to here.
13889
13890 2011-05-21  Bruno Haible  <bruno@clisp.org>
13891
13892         forkpty: Move AC_LIBOBJ invocations to module description.
13893         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13894         * modules/forkpty (configure.ac): ... to here.
13895
13896 2011-05-21  Bruno Haible  <bruno@clisp.org>
13897
13898         ptsname: Move AC_LIBOBJ invocations to module description.
13899         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13900         invocations from here...
13901         * modules/ptsname (configure.ac): ... to here.
13902
13903 2011-05-21  Bruno Haible  <bruno@clisp.org>
13904
13905         pread: Move AC_LIBOBJ invocations to module description.
13906         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13907         * modules/pread (configure.ac): ... to here.
13908
13909 2011-05-21  Bruno Haible  <bruno@clisp.org>
13910
13911         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13912         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13913         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13914         * modules/posix_spawn (configure.ac): ... to here.
13915         * modules/posix_spawnp (configure.ac): ... and here.
13916
13917 2011-05-21  Bruno Haible  <bruno@clisp.org>
13918
13919         popen: Move AC_LIBOBJ invocations to module description.
13920         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13921         invocations from here...
13922         * modules/popen (configure.ac): ... to here.
13923
13924 2011-05-21  Bruno Haible  <bruno@clisp.org>
13925
13926         poll: Move AC_LIBOBJ invocations to module description.
13927         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13928         invocations from here...
13929         * modules/poll (configure.ac): ... to here.
13930
13931 2011-05-21  Bruno Haible  <bruno@clisp.org>
13932
13933         pipe-posix: Move AC_LIBOBJ invocations to module description.
13934         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13935         * modules/pipe-posix (configure.ac): ... to here.
13936
13937 2011-05-21  Bruno Haible  <bruno@clisp.org>
13938
13939         openat: Respect rules for use of AC_LIBOBJ.
13940         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13941         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13942         * modules/openat (configure.ac): ... to here.
13943
13944 2011-05-21  Bruno Haible  <bruno@clisp.org>
13945
13946         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13947         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13948         invocation from here...
13949         * modules/obstack-printf (configure.ac): ... to here.
13950         * modules/obstack-printf-posix (configure.ac): ... and here.
13951
13952 2011-05-21  Bruno Haible  <bruno@clisp.org>
13953
13954         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13955         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13956         from here...
13957         * modules/nl_langinfo (configure.ac): ... to here.
13958
13959 2011-05-21  Bruno Haible  <bruno@clisp.org>
13960
13961         nanosleep: Move AC_LIBOBJ invocations to module description.
13962         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13963         gl_PREREQ_NANOSLEEP invocations from here...
13964         * modules/nanosleep (configure.ac): ... to here.
13965
13966 2011-05-21  Bruno Haible  <bruno@clisp.org>
13967
13968         mountlist: Move AC_LIBOBJ invocations to module description.
13969         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13970         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13971         * modules/mountlist (configure.ac): ... to here.
13972
13973 2011-05-21  Bruno Haible  <bruno@clisp.org>
13974
13975         mktime: Respect rules for use of AC_LIBOBJ.
13976         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13977         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13978         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13979         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13980         * modules/mktime (configure.ac): ... to here.
13981         * modules/mktime-internal (configure.ac): ... and here.
13982         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13983
13984 2011-05-21  Bruno Haible  <bruno@clisp.org>
13985
13986         mkstemps: Move AC_LIBOBJ invocations to module description.
13987         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13988         here...
13989         * modules/mkstemps (configure.ac): ... to here.
13990
13991 2011-05-21  Bruno Haible  <bruno@clisp.org>
13992
13993         mkstemp: Move AC_LIBOBJ invocations to module description.
13994         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13995         gl_PREREQ_MKSTEMP invocations from here...
13996         * modules/mkstemp (configure.ac): ... to here.
13997
13998 2011-05-21  Bruno Haible  <bruno@clisp.org>
13999
14000         mkostemps: Move AC_LIBOBJ invocations to module description.
14001         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14002         here...
14003         * modules/mkostemps (configure.ac): ... to here.
14004
14005 2011-05-21  Bruno Haible  <bruno@clisp.org>
14006
14007         mkostemp: Move AC_LIBOBJ invocations to module description.
14008         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14009         gl_PREREQ_MKOSTEMP invocations from here...
14010         * modules/mkostemp (configure.ac): ... to here.
14011
14012 2011-05-21  Bruno Haible  <bruno@clisp.org>
14013
14014         mknod: Move AC_LIBOBJ invocations to module description.
14015         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14016         * modules/mknod (configure.ac): ... to here.
14017
14018 2011-05-21  Bruno Haible  <bruno@clisp.org>
14019
14020         mkfifoat: Move AC_LIBOBJ invocations to module description.
14021         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14022         here...
14023         * modules/mkfifoat (configure.ac): ... to here.
14024
14025 2011-05-21  Bruno Haible  <bruno@clisp.org>
14026
14027         mkfifo: Respect rules for use of AC_LIBOBJ.
14028         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14029         here...
14030         * modules/mkfifo (configure.ac): ... to here.
14031
14032 2011-05-21  Bruno Haible  <bruno@clisp.org>
14033
14034         mkdtemp: Move AC_LIBOBJ invocations to module description.
14035         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14036         invocations from here...
14037         * modules/mkdtemp (configure.ac): ... to here.
14038
14039 2011-05-21  Bruno Haible  <bruno@clisp.org>
14040
14041         mkdir: Move AC_LIBOBJ invocations to module description.
14042         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14043         * modules/mkdir (configure.ac): ... to here.
14044
14045 2011-05-21  Bruno Haible  <bruno@clisp.org>
14046
14047         memset: Move AC_LIBOBJ invocations to module description.
14048         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14049         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14050         here...
14051         * modules/memset (configure.ac): ... to here.
14052
14053 2011-05-21  Bruno Haible  <bruno@clisp.org>
14054
14055         memrchr: Move AC_LIBOBJ invocations to module description.
14056         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14057         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14058         here...
14059         * modules/memrchr (configure.ac): ... to here.
14060
14061 2011-05-21  Bruno Haible  <bruno@clisp.org>
14062
14063         mempcpy: Move AC_LIBOBJ invocations to module description.
14064         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14065         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14066         here...
14067         * modules/mempcpy (configure.ac): ... to here.
14068
14069 2011-05-21  Bruno Haible  <bruno@clisp.org>
14070
14071         memmove: Move AC_LIBOBJ invocations to module description.
14072         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14073         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14074         here...
14075         * modules/memmove (configure.ac): ... to here.
14076
14077 2011-05-21  Bruno Haible  <bruno@clisp.org>
14078
14079         memmem*: Move AC_LIBOBJ invocations to module description.
14080         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14081         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14082         here...
14083         (gl_FUNC_MEMMEM): ... and here...
14084         * modules/memmem-simple (configure.ac): ... to here.
14085         * modules/memmem (configure.ac): ... and here.
14086
14087 2011-05-21  Bruno Haible  <bruno@clisp.org>
14088
14089         memcpy: Move AC_LIBOBJ invocations to module description.
14090         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14091         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14092         here...
14093         * modules/memcpy (configure.ac): ... to here.
14094
14095 2011-05-21  Bruno Haible  <bruno@clisp.org>
14096
14097         memcmp: Simplify autoconf macro.
14098         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14099         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14100         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14101
14102 2011-05-21  Bruno Haible  <bruno@clisp.org>
14103
14104         memcmp: Move AC_LIBOBJ invocations to module description.
14105         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14106         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14107         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14108         * modules/memcmp (configure.ac): ... to here.
14109         (Depends-on): Update conditions.
14110
14111 2011-05-21  Bruno Haible  <bruno@clisp.org>
14112
14113         memchr: Respect rules for use of AC_LIBOBJ.
14114         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14115         invocations from here...
14116         * modules/memchr (configure.ac): ... to here.
14117
14118 2011-05-21  Bruno Haible  <bruno@clisp.org>
14119
14120         mbtowc: Move AC_LIBOBJ invocations to module description.
14121         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14122         invocations from here...
14123         * modules/mbtowc (configure.ac): ... to here.
14124
14125 2011-05-21  Bruno Haible  <bruno@clisp.org>
14126
14127         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14128         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14129         gl_PREREQ_MBSRTOWCS invocations from here...
14130         * modules/mbsrtowcs (configure.ac): ... to here.
14131
14132 2011-05-21  Bruno Haible  <bruno@clisp.org>
14133
14134         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14135         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14136         gl_PREREQ_MBSNRTOWCS invocations from here...
14137         * modules/mbsnrtowcs (configure.ac): ... to here.
14138
14139 2011-05-21  Bruno Haible  <bruno@clisp.org>
14140
14141         mbsinit: Move AC_LIBOBJ invocations to module description.
14142         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14143         invocations from here...
14144         * modules/mbsinit (configure.ac): ... to here.
14145
14146 2011-05-21  Bruno Haible  <bruno@clisp.org>
14147
14148         mbrlen: Move AC_LIBOBJ invocations to module description.
14149         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14150         invocations from here...
14151         * modules/mbrlen (configure.ac): ... to here.
14152
14153 2011-05-21  Bruno Haible  <bruno@clisp.org>
14154
14155         mbrtowc: Respect rules for use of AC_LIBOBJ.
14156         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14157         invocations from here...
14158         * modules/mbrtowc (configure.ac): ... to here.
14159
14160 2011-05-21  Bruno Haible  <bruno@clisp.org>
14161
14162         malloc-*: Move AC_LIBOBJ invocations to module description.
14163         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14164         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14165         AC_LIBOBJ invocations from here...
14166         * modules/malloc-gnu (configure.ac): ... to here.
14167         * modules/malloc-posix (configure.ac): ... and here.
14168
14169 2011-05-21  Bruno Haible  <bruno@clisp.org>
14170
14171         lstat, openat: Respect rules for use of AC_LIBOBJ.
14172         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14173         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14174         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14175         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14176         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14177         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14178         here.
14179         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14180
14181 2011-05-21  Bruno Haible  <bruno@clisp.org>
14182
14183         lseek: Move AC_LIBOBJ invocations to module description.
14184         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14185         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14186         * modules/lseek (configure.ac): ... to here.
14187
14188 2011-05-21  Bruno Haible  <bruno@clisp.org>
14189
14190         linkat: Move AC_LIBOBJ invocations to module description.
14191         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14192         here...
14193         * modules/linkat (configure.ac): ... to here.
14194
14195 2011-05-21  Bruno Haible  <bruno@clisp.org>
14196
14197         link: Respect rules for use of AC_LIBOBJ.
14198         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14199         * modules/link (configure.ac): ... to here.
14200
14201 2011-05-21  Bruno Haible  <bruno@clisp.org>
14202
14203         lchown: Move AC_LIBOBJ invocations to module description.
14204         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14205         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14206         * modules/lchown (configure.ac): ... to here.
14207
14208 2011-05-21  Bruno Haible  <bruno@clisp.org>
14209
14210         iswctype: Move AC_LIBOBJ invocations to module description.
14211         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14212         here...
14213         * modules/iswctype (configure.ac): ... to here.
14214
14215 2011-05-21  Bruno Haible  <bruno@clisp.org>
14216
14217         iswblank: Move AC_LIBOBJ invocations to module description.
14218         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14219         here...
14220         * modules/iswblank (configure.ac): ... to here.
14221
14222 2011-05-21  Bruno Haible  <bruno@clisp.org>
14223
14224         atanl: Move AC_LIBOBJ invocations to module description.
14225         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14226         * modules/atanl (configure.ac): ... to here.
14227
14228 2011-05-21  Bruno Haible  <bruno@clisp.org>
14229
14230         acosl: Move AC_LIBOBJ invocations to module description.
14231         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14232         * modules/acosl (configure.ac): ... to here.
14233
14234 2011-05-21  Bruno Haible  <bruno@clisp.org>
14235
14236         asinl: Respect rules for use of AC_LIBOBJ.
14237         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14238         * modules/asinl (configure.ac): ... to here.
14239
14240 2011-05-21  Bruno Haible  <bruno@clisp.org>
14241
14242         tanl: Move AC_LIBOBJ invocations to module description.
14243         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14244         * modules/tanl (configure.ac): ... to here.
14245
14246 2011-05-21  Bruno Haible  <bruno@clisp.org>
14247
14248         cosl: Move AC_LIBOBJ invocations to module description.
14249         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14250         * modules/cosl (configure.ac): ... to here.
14251
14252 2011-05-21  Bruno Haible  <bruno@clisp.org>
14253
14254         sinl: Move AC_LIBOBJ invocations to module description.
14255         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14256         * modules/sinl (configure.ac): ... to here.
14257
14258 2011-05-21  Bruno Haible  <bruno@clisp.org>
14259
14260         logl: Move AC_LIBOBJ invocations to module description.
14261         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14262         * modules/logl (configure.ac): ... to here.
14263
14264 2011-05-21  Bruno Haible  <bruno@clisp.org>
14265
14266         expl: Move AC_LIBOBJ invocations to module description.
14267         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14268         * modules/expl (configure.ac): ... to here.
14269
14270 2011-05-21  Bruno Haible  <bruno@clisp.org>
14271
14272         roundl: Move AC_LIBOBJ invocations to module description.
14273         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14274         * modules/roundl (configure.ac): ... to here.
14275
14276 2011-05-21  Bruno Haible  <bruno@clisp.org>
14277
14278         round: Move AC_LIBOBJ invocations to module description.
14279         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14280         * modules/round (configure.ac): ... to here.
14281
14282 2011-05-21  Bruno Haible  <bruno@clisp.org>
14283
14284         roundf: Move AC_LIBOBJ invocations to module description.
14285         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14286         * modules/roundf (configure.ac): ... to here.
14287
14288 2011-05-21  Bruno Haible  <bruno@clisp.org>
14289
14290         truncl: Move AC_LIBOBJ invocations to module description.
14291         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14292         * modules/truncl (configure.ac): ... to here.
14293
14294 2011-05-21  Bruno Haible  <bruno@clisp.org>
14295
14296         trunc: Move AC_LIBOBJ invocations to module description.
14297         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14298         * modules/trunc (configure.ac): ... to here.
14299
14300 2011-05-21  Bruno Haible  <bruno@clisp.org>
14301
14302         truncf: Move AC_LIBOBJ invocations to module description.
14303         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14304         * modules/truncf (configure.ac): ... to here.
14305
14306 2011-05-21  Bruno Haible  <bruno@clisp.org>
14307
14308         ceill: Move AC_LIBOBJ invocations to module description.
14309         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14310         * modules/ceill (configure.ac): ... to here.
14311
14312 2011-05-21  Bruno Haible  <bruno@clisp.org>
14313
14314         ceil: Move AC_LIBOBJ invocations to module description.
14315         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14316         * modules/ceil (configure.ac): ... to here.
14317
14318 2011-05-21  Bruno Haible  <bruno@clisp.org>
14319
14320         ceilf: Move AC_LIBOBJ invocations to module description.
14321         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14322         * modules/ceilf (configure.ac): ... to here.
14323
14324 2011-05-21  Bruno Haible  <bruno@clisp.org>
14325
14326         floorl: Respect rules for use of AC_LIBOBJ.
14327         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14328         * modules/floorl (configure.ac): ... to here.
14329
14330 2011-05-21  Bruno Haible  <bruno@clisp.org>
14331
14332         floor: Respect rules for use of AC_LIBOBJ.
14333         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14334         * modules/floor (configure.ac): ... to here.
14335
14336 2011-05-21  Bruno Haible  <bruno@clisp.org>
14337
14338         floorf: Move AC_LIBOBJ invocations to module description.
14339         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14340         * modules/floorf (configure.ac): ... to here.
14341
14342 2011-05-20  Bruno Haible  <bruno@clisp.org>
14343
14344         sqrtl: Respect rules for use of AC_LIBOBJ.
14345         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14346         * modules/sqrtl (configure.ac): ... to here.
14347
14348 2011-05-20  Bruno Haible  <bruno@clisp.org>
14349
14350         ldexpl: Respect rules for use of AC_LIBOBJ.
14351         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14352         * modules/ldexpl (configure.ac): ... to here.
14353
14354 2011-05-20  Bruno Haible  <bruno@clisp.org>
14355
14356         frexpl*: Respect rules for use of AC_LIBOBJ.
14357         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14358         invocation from here...
14359         * modules/frexpl (configure.ac): ... to here.
14360         * modules/frexpl-nolibm (configure.ac): ... and here.
14361
14362 2011-05-20  Bruno Haible  <bruno@clisp.org>
14363
14364         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14365         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14366         invocation from here...
14367         * modules/frexp (configure.ac): ... to here.
14368         * modules/frexp-nolibm (configure.ac): ... and here.
14369
14370 2011-05-20  Bruno Haible  <bruno@clisp.org>
14371
14372         isnan: Respect rules for use of AC_LIBOBJ.
14373         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14374         invocations here.
14375         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14376         REPLACE_ISNAN.
14377         * modules/isnand (configure.ac): Likewise.
14378         * modules/isnanl (configure.ac): Likewise.
14379
14380 2011-05-20  Bruno Haible  <bruno@clisp.org>
14381
14382         isnanl*: Respect rules for use of AC_LIBOBJ.
14383         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14384         invocation from here...
14385         * modules/isnanl (configure.ac): ... to here.
14386         * modules/isnanl-nolibm (configure.ac): ... and here.
14387
14388 2011-05-20  Bruno Haible  <bruno@clisp.org>
14389
14390         isnand*: Move AC_LIBOBJ invocations to module description.
14391         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14392         invocation from here...
14393         * modules/isnand (configure.ac): ... to here.
14394         * modules/isnand-nolibm (configure.ac): ... and here.
14395
14396 2011-05-20  Bruno Haible  <bruno@clisp.org>
14397
14398         isnanf*: Move AC_LIBOBJ invocations to module description.
14399         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14400         invocation from here...
14401         * modules/isnanf (configure.ac): ... to here.
14402         * modules/isnanf-nolibm (configure.ac): ... and here.
14403
14404 2011-05-20  Bruno Haible  <bruno@clisp.org>
14405
14406         isnan*: Separate the AC_LIBOBJ invocations.
14407         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14408         AC_LIBOBJ invocation.
14409         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14410         here.
14411         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14412         AC_LIBOBJ invocation.
14413         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14414         here.
14415         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14416         AC_LIBOBJ invocation.
14417         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14418         here.
14419         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14420
14421 2011-05-08  Bruno Haible  <bruno@clisp.org>
14422
14423         isinf: Move AC_LIBOBJ invocations to module description.
14424         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14425         * modules/isinf (configure.ac): ... to here.
14426
14427 2011-05-08  Bruno Haible  <bruno@clisp.org>
14428
14429         isfinite: Move AC_LIBOBJ invocations to module description.
14430         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14431         * modules/isfinite (configure.ac): ... to here.
14432
14433 2011-05-08  Bruno Haible  <bruno@clisp.org>
14434
14435         isblank: Move AC_LIBOBJ invocations to module description.
14436         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14437         here...
14438         * modules/isblank (configure.ac): ... to here.
14439
14440 2011-05-08  Bruno Haible  <bruno@clisp.org>
14441
14442         isapipe: Move AC_LIBOBJ invocations to module description.
14443         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14444         gl_PREREQ_ISAPIPE invocations from here...
14445         * modules/isapipe (configure.ac): ... to here.
14446         (Depends-on): Update condition.
14447
14448 2011-05-08  Bruno Haible  <bruno@clisp.org>
14449
14450         ioctl: Move AC_LIBOBJ invocations to module description.
14451         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14452         invocations from here...
14453         * modules/ioctl (configure.ac): ... to here.
14454         (Depends-on): Update condition.
14455
14456 2011-05-08  Bruno Haible  <bruno@clisp.org>
14457
14458         imaxdiv: Move AC_LIBOBJ invocations to module description.
14459         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14460         invocations from here...
14461         * modules/imaxdiv (configure.ac): ... to here.
14462
14463 2011-05-08  Bruno Haible  <bruno@clisp.org>
14464
14465         imaxabs: Move AC_LIBOBJ invocations to module description.
14466         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14467         invocations from here...
14468         * modules/imaxabs (configure.ac): ... to here.
14469
14470 2011-05-08  Bruno Haible  <bruno@clisp.org>
14471
14472         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14473         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14474         AC_LIBOBJ invocations from here...
14475         * modules/getaddrinfo (configure.ac): ... to here.
14476         (Depends-on): Add conditions.
14477
14478 2011-05-08  Bruno Haible  <bruno@clisp.org>
14479
14480         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14481         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14482         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14483         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14484         (gl_PREREQ_INET_PTON): ... from here.
14485         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14486         gl_PREREQ_INET_PTON here.
14487         (Depends-on): Update condition.
14488
14489 2011-05-08  Bruno Haible  <bruno@clisp.org>
14490
14491         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14492         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14493         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14494         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14495         (gl_PREREQ_INET_NTOP): ... from here.
14496         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14497         gl_PREREQ_INET_NTOP here.
14498         (Depends-on): Update condition.
14499
14500 2011-05-08  Bruno Haible  <bruno@clisp.org>
14501
14502         iconv_open: Move AC_LIBOBJ invocations to module description.
14503         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14504         AC_LIBOBJ invocations from here...
14505         * modules/iconv_open (configure.ac): ... to here.
14506
14507 2011-05-08  Bruno Haible  <bruno@clisp.org>
14508
14509         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14510         If module 'iconv_open' is among the main modules and module
14511         'iconv_open-utf' is among the tests dependencies, then
14512         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14513         return the special iconv_t values. Therefore iconv() and iconv_close()
14514         must support these special iconv_t values, already in lib, not only in
14515         tests.
14516         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14517         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14518         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14519         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14520         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14521         (Depends-on): Add the dependencies of iconv_open-utf.
14522         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14523         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14524         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14525
14526 2011-05-08  Bruno Haible  <bruno@clisp.org>
14527
14528         group-member: Move AC_LIBOBJ invocations to module description.
14529         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14530         gl_PREREQ_GROUP_MEMBER invocations from here...
14531         * modules/group-member (configure.ac): ... to here.
14532
14533 2011-05-08  Bruno Haible  <bruno@clisp.org>
14534
14535         grantpt: Move AC_LIBOBJ invocations to module description.
14536         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14537         invocations from here...
14538         * modules/grantpt (configure.ac): ... to here.
14539
14540 2011-05-08  Bruno Haible  <bruno@clisp.org>
14541
14542         glob: Move AC_LIBOBJ invocations to module description.
14543         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14544         from here...
14545         * modules/glob (configure.ac): ... to here.
14546
14547 2011-05-08  Bruno Haible  <bruno@clisp.org>
14548
14549         getusershell: Move AC_LIBOBJ invocations to module description.
14550         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14551         Move AC_LIBOBJ invocation from here...
14552         * modules/getusershell (configure.ac): ... to here.
14553         (Depends-on): Update condition.
14554
14555 2011-05-08  Bruno Haible  <bruno@clisp.org>
14556
14557         gettimeofday: Move AC_LIBOBJ invocations to module description.
14558         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14559         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14560         gl_PREREQ_GETTIMEOFDAY invocations from here...
14561         * modules/gettimeofday (configure.ac): ... to here.
14562
14563 2011-05-08  Bruno Haible  <bruno@clisp.org>
14564
14565         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14566         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14567         just gl_FUNC_TZSET.
14568         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14569         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14570         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14571         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14572
14573 2011-05-08  Bruno Haible  <bruno@clisp.org>
14574
14575         getsubopt: Move AC_LIBOBJ invocations to module description.
14576         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14577         gl_PREREQ_GETSUBOPT invocations from here...
14578         * modules/getsubopt (configure.ac): ... to here.
14579
14580 2011-05-08  Bruno Haible  <bruno@clisp.org>
14581
14582         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14583         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14584         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14585         * modules/getpass-gnu (configure.ac): ... to here.
14586
14587 2011-05-08  Bruno Haible  <bruno@clisp.org>
14588
14589         getpass: Move AC_LIBOBJ invocations to module description.
14590         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14591         gl_PREREQ_GETPASS invocations from here...
14592         * modules/getpass (configure.ac): ... to here.
14593
14594 2011-05-08  Bruno Haible  <bruno@clisp.org>
14595
14596         getpagesize: Move AC_LIBOBJ invocations to module description.
14597         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14598         from here...
14599         * modules/getpagesize (configure.ac): ... to here.
14600
14601 2011-05-08  Bruno Haible  <bruno@clisp.org>
14602
14603         getopt: Move AC_LIBOBJ invocations to module description.
14604         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14605         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14606         invocations from here...
14607         * modules/getopt-gnu (configure.ac): ... to here.
14608         * modules/getopt-posix (configure.ac): ... and here.
14609         (Depends-on): Update condition.
14610
14611 2011-05-08  Bruno Haible  <bruno@clisp.org>
14612
14613         getopt, argp: Respect rules for use of AC_LIBOBJ.
14614         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14615         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14616         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14617         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14618
14619 2011-05-08  Bruno Haible  <bruno@clisp.org>
14620
14621         getlogin_r: Move AC_LIBOBJ invocations to module description.
14622         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14623         gl_PREREQ_GETLOGIN_R invocations from here...
14624         * modules/getlogin_r (configure.ac): ... to here.
14625
14626 2011-05-08  Bruno Haible  <bruno@clisp.org>
14627
14628         getlogin: Move AC_LIBOBJ invocations to module description.
14629         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14630         here...
14631         * modules/getlogin (configure.ac): ... to here.
14632
14633 2011-05-08  Bruno Haible  <bruno@clisp.org>
14634
14635         getloadavg: Move AC_LIBOBJ invocations to module description.
14636         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14637         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14638         * modules/getloadavg (configure.ac): ... to here.
14639
14640 2011-05-08  Bruno Haible  <bruno@clisp.org>
14641
14642         gethrxtime: Move AC_LIBOBJ invocations to module description.
14643         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14644         LIB_GETHRXTIME from here...
14645         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14646         invocations from here...
14647         * modules/gethrxtime (configure.ac): ... to here.
14648
14649 2011-05-08  Bruno Haible  <bruno@clisp.org>
14650
14651         gethostname: Move AC_LIBOBJ invocations to module description.
14652         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14653         gl_PREREQ_GETHOSTNAME invocations from here...
14654         * modules/gethostname (configure.ac): ... to here.
14655
14656 2011-05-08  Bruno Haible  <bruno@clisp.org>
14657
14658         getgroups: Move AC_LIBOBJ invocations to module description.
14659         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14660         here...
14661         * modules/getgroups (configure.ac): ... to here.
14662
14663 2011-05-08  Bruno Haible  <bruno@clisp.org>
14664
14665         getdtablesize: Move AC_LIBOBJ invocations to module description.
14666         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14667         invocation from here...
14668         * modules/getdtablesize (configure.ac): ... to here.
14669
14670 2011-05-08  Bruno Haible  <bruno@clisp.org>
14671
14672         getdomainname: Move AC_LIBOBJ invocations to module description.
14673         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14674         gl_PREREQ_GETDOMAINNAME invocations from here...
14675         * modules/getdomainname (configure.ac): ... to here.
14676
14677 2011-05-08  Bruno Haible  <bruno@clisp.org>
14678
14679         getline: Move AC_LIBOBJ invocations to module description.
14680         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14681         invocations from here...
14682         * modules/getline (configure.ac): ... to here.
14683
14684 2011-05-08  Bruno Haible  <bruno@clisp.org>
14685
14686         getline: Simplify.
14687         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14688         It's already handled through the module dependency.
14689
14690 2011-05-08  Bruno Haible  <bruno@clisp.org>
14691
14692         getdelim: Move AC_LIBOBJ invocations to module description.
14693         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14694         and gl_PREREQ_GETDELIM invocations from here...
14695         * modules/getdelim (configure.ac): ... to here.
14696         (Depends-on): Fix condition.
14697
14698 2011-05-08  Bruno Haible  <bruno@clisp.org>
14699
14700         getcwd: Move AC_LIBOBJ invocations to module description.
14701         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14702         invocations from here...
14703         * modules/getcwd (configure.ac): ... to here.
14704
14705 2011-05-08  Bruno Haible  <bruno@clisp.org>
14706
14707         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14708         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14709         here...
14710         * modules/getcwd-lgpl (configure.ac): ... to here.
14711
14712 2011-05-07  Bruno Haible  <bruno@clisp.org>
14713
14714         crypto/gc: Move AC_LIBOBJ invocations to module description.
14715         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14716         * modules/crypto/gc (configure.ac): ... to here.
14717
14718 2011-05-07  Bruno Haible  <bruno@clisp.org>
14719
14720         fwriting: Move AC_LIBOBJ invocations to module description.
14721         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14722         here...
14723         * modules/fwriting (configure.ac): ... to here.
14724
14725 2011-05-07  Bruno Haible  <bruno@clisp.org>
14726
14727         fwritable: Move AC_LIBOBJ invocations to module description.
14728         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14729         here...
14730         * modules/fwritable (configure.ac): ... to here.
14731
14732 2011-05-07  Bruno Haible  <bruno@clisp.org>
14733
14734         futimens: Move AC_LIBOBJ invocations to module description.
14735         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14736         here...
14737         * modules/futimens (configure.ac): ... to here.
14738
14739 2011-05-07  Bruno Haible  <bruno@clisp.org>
14740
14741         ftruncate: Move AC_LIBOBJ invocations to module description.
14742         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14743         gl_PREREQ_FTRUNCATE invocations from here...
14744         * modules/ftruncate (configure.ac): ... to here.
14745
14746 2011-05-07  Bruno Haible  <bruno@clisp.org>
14747
14748         fsync: Move AC_LIBOBJ invocations to module description.
14749         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14750         invocations from here...
14751         * modules/fsync (configure.ac): ... to here.
14752
14753 2011-05-07  Bruno Haible  <bruno@clisp.org>
14754
14755         fsusage: Move AC_LIBOBJ invocations to module description.
14756         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14757         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14758         * modules/fsusage (configure.ac): ... to here.
14759
14760 2011-05-07  Bruno Haible  <bruno@clisp.org>
14761
14762         freopen: Move AC_LIBOBJ invocations to module description.
14763         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14764         invocations from here...
14765         * modules/freopen (configure.ac): ... to here.
14766
14767 2011-05-07  Bruno Haible  <bruno@clisp.org>
14768
14769         free: Move AC_LIBOBJ invocations to module description.
14770         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14771         invocations from here...
14772         * modules/free (configure.ac): ... to here.
14773
14774 2011-05-07  Bruno Haible  <bruno@clisp.org>
14775
14776         freadable: Move AC_LIBOBJ invocations to module description.
14777         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14778         here...
14779         * modules/freadable (configure.ac): ... to here.
14780
14781 2011-05-07  Bruno Haible  <bruno@clisp.org>
14782
14783         fpurge: Move AC_LIBOBJ invocations to module description.
14784         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14785         invocations from here...
14786         * modules/fpurge (configure.ac): ... to here.
14787
14788 2011-05-07  Bruno Haible  <bruno@clisp.org>
14789
14790         fpending: Move AC_LIBOBJ invocations to module description.
14791         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14792         gl_FUNC_FPENDING.
14793         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14794         invocations from here...
14795         * modules/fpending (configure.ac): ... to here.
14796
14797 2011-05-07  Bruno Haible  <bruno@clisp.org>
14798
14799         fopen: Move AC_LIBOBJ invocations to module description.
14800         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14801         invocations from here...
14802         * modules/fopen (configure.ac): ... to here.
14803
14804 2011-05-07  Bruno Haible  <bruno@clisp.org>
14805
14806         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14807         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14808         gl_FUNC_FNMATCH_POSIX.
14809         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14810         invocations from here...
14811         * modules/fnmatch (configure.ac): ... to here.
14812         * modules/fnmatch-gnu (configure.ac): ... and here.
14813
14814 2011-05-07  Bruno Haible  <bruno@clisp.org>
14815
14816         flock: Move AC_LIBOBJ invocations to module description.
14817         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14818         invocations from here...
14819         * modules/flock (configure.ac): ... to here.
14820
14821 2011-05-07  Bruno Haible  <bruno@clisp.org>
14822
14823         fileblocks: Move AC_LIBOBJ invocations to module description.
14824         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14825         gl_PREREQ_FILEBLOCKS invocations from here...
14826         * modules/fileblocks (configure.ac): ... to here.
14827
14828 2011-05-06  Bruno Haible  <bruno@clisp.org>
14829
14830         fflush: Move AC_LIBOBJ invocations to module description.
14831         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14832         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14833         invocations from here...
14834         * modules/fflush (configure.ac): ... to here.
14835
14836 2011-05-06  Bruno Haible  <bruno@clisp.org>
14837
14838         fdopendir: Move AC_LIBOBJ invocations to module description.
14839         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14840         here...
14841         * modules/fdopendir (configure.ac): ... to here.
14842         (Depends-on): Improve conditions.
14843
14844 2011-05-06  Bruno Haible  <bruno@clisp.org>
14845
14846         _Exit: Move AC_LIBOBJ invocations to module description.
14847         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14848         invocations from here...
14849         * modules/_Exit (configure.ac): ... to here.
14850
14851 2011-05-21  Bruno Haible  <bruno@clisp.org>
14852
14853         euidaccess: Respect rules for use of AC_LIBOBJ.
14854         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14855         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14856         from here...
14857         * modules/euidaccess (configure.ac): ... to here.
14858
14859 2011-05-06  Bruno Haible  <bruno@clisp.org>
14860
14861         error: Move AC_LIBOBJ invocations to module description.
14862         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14863         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14864         invocations from here...
14865         * modules/error (configure.ac): ... to here.
14866
14867 2011-05-06  Bruno Haible  <bruno@clisp.org>
14868
14869         duplocale: Move AC_LIBOBJ invocations to module description.
14870         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14871         gl_PREREQ_DUPLOCALE invocations from here...
14872         * modules/duplocale (configure.ac): ... to here.
14873
14874 2011-05-05  Bruno Haible  <bruno@clisp.org>
14875
14876         dirfd: Move AC_LIBOBJ invocations to module description.
14877         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14878         gl_FUNC_DIRFD.
14879         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14880         here...
14881         * modules/dirfd (configure.ac): ... to here.
14882         (Depends-on): Fix condition.
14883
14884 2011-05-05  Bruno Haible  <bruno@clisp.org>
14885
14886         chown: Respect rules for use of AC_LIBOBJ.
14887         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14888         * modules/chown (configure.ac): ... to here.
14889
14890 2011-05-05  Bruno Haible  <bruno@clisp.org>
14891
14892         chdir-long: Move AC_LIBOBJ invocations to module description.
14893         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14894         gl_PREREQ_CHDIR_LONG invocations from here...
14895         * modules/chdir-long (configure.ac): ... to here.
14896
14897 2011-05-05  Bruno Haible  <bruno@clisp.org>
14898
14899         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14900         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14901         from here...
14902         * modules/canonicalize-lgpl (configure.ac): ... to here.
14903
14904 2011-05-05  Bruno Haible  <bruno@clisp.org>
14905
14906         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14907         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14908         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14909         REPLACE_CALLOC.
14910         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14911         * modules/calloc-gnu (configure.ac): Likewise.
14912
14913 2011-05-05  Bruno Haible  <bruno@clisp.org>
14914
14915         btowc: Move AC_LIBOBJ invocations to module description.
14916         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14917         invocations from here...
14918         * modules/btowc (configure.ac): ... to here.
14919
14920 2011-05-21  Bruno Haible  <bruno@clisp.org>
14921
14922         atexit: Move AC_LIBOBJ invocations to module description.
14923         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14924         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14925         here...
14926         * modules/atexit (configure.ac): ... to here.
14927
14928 2011-05-05  Bruno Haible  <bruno@clisp.org>
14929
14930         atoll: Move AC_LIBOBJ invocations to module description.
14931         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14932         invocations from here...
14933         * modules/atoll (configure.ac): ... to here.
14934
14935 2011-05-05  Bruno Haible  <bruno@clisp.org>
14936
14937         argz: Move AC_LIBOBJ invocations to module description.
14938         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14939         * modules/argz (configure.ac): ... to here.
14940
14941 2011-05-05  Bruno Haible  <bruno@clisp.org>
14942
14943         alphasort: Move AC_LIBOBJ invocations to module description.
14944         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14945         gl_PREREQ_ALPHASORT invocations from here...
14946         * modules/alphasort (configure.ac): ... to here.
14947
14948 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14949
14950         verify: new macro verify_expr; verify_true deprecated
14951         * NEWS: Mention this.
14952         * doc/verify.texi (Compile-time Assertions): Document this.
14953         * lib/verify.h (verify_true): Deprecate.
14954         (verify_expr): New macro.
14955         * tests/test-verify.c (function): Test verify_expr.
14956
14957 2011-06-14  Jim Meyering  <meyering@redhat.com>
14958
14959         init.sh: give more portable redirection-related advice in a comment
14960         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14961         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14962         for lots of discussion.  Stefano Lattarini suggested the solution
14963         of putting "9>&2" after the command.  Reported by Bruno Haible.
14964
14965 2011-06-13  Bruno Haible  <bruno@clisp.org>
14966
14967         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14968         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14969         'none'.
14970
14971 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14972
14973         ftoastr: use strtof only if HAVE_STRTOF
14974         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14975         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14976         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14977         * modules/ftoastr (configure.ac): Check for strtof.
14978
14979 2011-06-13  Bruno Haible  <bruno@clisp.org>
14980
14981         gnulib-tool: Addendum to 2011-06-08 commit.
14982         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14983         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14984
14985 2011-06-13  Bruno Haible  <bruno@clisp.org>
14986
14987         fseeko: Provide a non-inline replacement of fseek().
14988         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14989         * modules/fseeko (Depends-on): Add fseek.
14990         * modules/fseek (License): Change to LGPLv2+.
14991
14992 2011-06-13  Bruno Haible  <bruno@clisp.org>
14993
14994         ftello: Provide a non-inline replacement of ftell().
14995         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14996         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14997         not have ftello() (such as on mingw).
14998         * modules/ftello (Depends-on): Add ftell.
14999         * modules/ftell (License): Change to LGPLv2+.
15000
15001 2011-05-07  Bruno Haible  <bruno@clisp.org>
15002
15003         ftell: Move AC_LIBOBJ invocations to module description.
15004         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15005         * modules/ftell (configure.ac): ... to here.
15006
15007 2011-05-07  Bruno Haible  <bruno@clisp.org>
15008
15009         ftello: Respect rules for use of AC_LIBOBJ.
15010         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15011         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15012         here...
15013         * modules/ftello (configure.ac): ... to here.
15014
15015 2011-05-07  Bruno Haible  <bruno@clisp.org>
15016
15017         fseeko: Simplify.
15018         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15019         (gl_FUNC_FSEEKO): Inline it here.
15020
15021 2011-05-07  Bruno Haible  <bruno@clisp.org>
15022
15023         fseek: Move AC_LIBOBJ invocations to module description.
15024         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15025         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15026         * modules/fseek (configure.ac): ... to here.
15027
15028 2011-05-07  Bruno Haible  <bruno@clisp.org>
15029
15030         fseek: Respect rules for use of AC_LIBOBJ.
15031         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15032         here...
15033         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15034
15035 2011-05-07  Bruno Haible  <bruno@clisp.org>
15036
15037         fseeko: Respect rules for use of AC_LIBOBJ.
15038         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15039         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15040         here...
15041         * modules/fseeko (configure.ac): ... to here.
15042
15043 2011-06-13  Bruno Haible  <bruno@clisp.org>
15044
15045         gnulib-tool: Allow comments in the 'Depends-on' section.
15046         * doc/gnulib.texi (Module description): Mention comment syntax in the
15047         Depends-on section.
15048         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15049
15050 2011-06-13  Bruno Haible  <bruno@clisp.org>
15051
15052         file-set.h: guard __attibute__ use, now that it's not always defined
15053         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15054         versions that support it.  This fixes a coreutils build failure with
15055         the vendor cc on HP-UX 11.31.
15056
15057 2011-06-12  Bruno Haible  <bruno@clisp.org>
15058
15059         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15060         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15061         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15062         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15063         (acl, aclsort): New declarations.
15064         (aclv_nontrivial): New declaration.
15065         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15066         (file_has_acl): Read also the second kind of HP-UX ACLs.
15067         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15068         kind of HP-UX ACLs if the first kind fails.
15069         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15070         second kind of HP-UX ACLs.
15071         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15072         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15073         agree.
15074         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15075         hpuxjfs.
15076         Handle hpuxjfs.
15077         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15078         hpuxjfs.
15079         Handle hpuxjfs.
15080         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15081         (func_test_same_acls): Use both lsacl and getacl.
15082         Handle hpuxjfs.
15083         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15084         (func_test_same_acls): Use both lsacl and getacl.
15085         Handle hpuxjfs.
15086
15087 2011-06-12  Bruno Haible  <bruno@clisp.org>
15088
15089         acl: Complete the 2010-08-10 fix.
15090         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15091         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15092         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15093         explicitly.
15094         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15095         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15096
15097 2011-06-12  Bruno Haible  <bruno@clisp.org>
15098
15099         spawn-pipe tests: Comments.
15100         * tests/test-spawn-pipe-child.c (main): Update comment.
15101         Reported by James Youngman <jay@gnu.org>.
15102
15103 2011-06-11  James Youngman  <jay@gnu.org>
15104
15105         New module 'stat-size'.
15106         * modules/stat-size: New module.  Provides macros for accessing
15107         file size information in instances of struct stat.  Depends on the
15108         fileblocks module because it calls st_blocks.
15109         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15110         * doc/gnulib.texi: Include stat-size.texi.
15111         * doc/stat-size.texi: Documentation for this module.
15112         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15113         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15114         AC_STRUCT_ST_BLOCKS.
15115
15116 2011-06-09  Bruno Haible  <bruno@clisp.org>
15117
15118         thread: Support pthreads-win32.
15119         * lib/glthread/thread.h (gl_thread_self): Define differently on
15120         pthreads-win32.
15121         (gl_null_thread): New declaration.
15122         (gl_thread_self_pointer): New macro.
15123         * lib/glthread/thread.c (gl_null_thread): New constant.
15124         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15125         gl_thread_self.
15126         * tests/test-tls.c: Likewise.
15127         Suggested by Paul Eggert. Reported by Eric Blake.
15128
15129 2011-06-09  Bruno Haible  <bruno@clisp.org>
15130
15131         thread: Fix confusion between NULL and 0.
15132         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15133         Reported by Paul Eggert.
15134
15135 2011-06-09  Bruno Haible  <bruno@clisp.org>
15136
15137         spawn-pipe tests: Avoid test failure on HP-UX 11.
15138         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15139         is closed.
15140
15141 2011-06-09  Bruno Haible  <bruno@clisp.org>
15142
15143         acl tests: Fix compilation error on HP-UX 11.
15144         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15145
15146 2011-06-09  Bruno Haible  <bruno@clisp.org>
15147
15148         rmdir: Avoid test failure on HP-UX 10.20.
15149         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15150         EEXIST.
15151
15152 2011-06-08  Eric Blake  <eblake@redhat.com>
15153
15154         perror: fix test on mingw
15155         * modules/perror-tests (Depends-on): Add dup2.
15156
15157         strerror_r-posix: fix on MacOS
15158         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15159         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15160         logic bug.
15161         * lib/strerror_r.c (strerror_r): Fix the bug.
15162         * lib/strerror.c (strerror): Likewise.
15163         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15164         problem.
15165         * doc/posix-functions/strerror.texi (strerror): Likewise.
15166         * doc/posix-functions/perror.texi (perror): Likewise.
15167         * tests/test-strerror.c (main): Enhance test.
15168         * tests/test-strerror_r.c (main): Likewise.
15169
15170 2011-06-08  Bruno Haible  <bruno@clisp.org>
15171
15172         gnulib-tool: Better isolation between different gnulib-tool invocations.
15173         * gnulib-tool: New option --witness-c-macro.
15174         (witness_c_macro): New variable.
15175         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15176         AM_CPPFLAGS define it as a C macro.
15177         (func_emit_tests_Makefile_am): Likewise.
15178         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15179         read it from there.
15180         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15181         m4_define, not AC_DEFUN.
15182         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15183         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15184         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15185         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15186         s|...|...|, to substitute the values of the GNULIB_* module indicator
15187         variables.
15188         * modules/dirent (Makefile.am): Likewise.
15189         * modules/fcntl-h (Makefile.am): Likewise.
15190         * modules/iconv-h (Makefile.am): Likewise.
15191         * modules/langinfo (Makefile.am): Likewise.
15192         * modules/locale (Makefile.am): Likewise.
15193         * modules/math (Makefile.am): Likewise.
15194         * modules/netdb (Makefile.am): Likewise.
15195         * modules/poll-h (Makefile.am): Likewise.
15196         * modules/pty (Makefile.am): Likewise.
15197         * modules/search (Makefile.am): Likewise.
15198         * modules/signal (Makefile.am): Likewise.
15199         * modules/spawn (Makefile.am): Likewise.
15200         * modules/stdio (Makefile.am): Likewise.
15201         * modules/stdlib (Makefile.am): Likewise.
15202         * modules/string (Makefile.am): Likewise.
15203         * modules/sys_ioctl (Makefile.am): Likewise.
15204         * modules/sys_select (Makefile.am): Likewise.
15205         * modules/sys_socket (Makefile.am): Likewise.
15206         * modules/sys_stat (Makefile.am): Likewise.
15207         * modules/sys_times (Makefile.am): Likewise.
15208         * modules/sys_utsname (Makefile.am): Likewise.
15209         * modules/sys_wait (Makefile.am): Likewise.
15210         * modules/termios (Makefile.am): Likewise.
15211         * modules/time (Makefile.am): Likewise.
15212         * modules/unistd (Makefile.am): Likewise.
15213         * modules/wchar (Makefile.am): Likewise.
15214
15215 2011-06-08  Eric Blake  <eblake@redhat.com>
15216
15217         strerror: simplify replacement
15218         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15219         * modules/strerror (configure.ac): No prereqs needed here...
15220         * modules/strerror-override (configure.ac): ...but this needs it.
15221         (Files): Add file for needed prereq macro.
15222
15223 2011-06-08  Bruno Haible  <bruno@clisp.org>
15224
15225         strerror_r-posix: Tweaks.
15226         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15227         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15228         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15229         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15230         (gl_FUNC_STRERROR_R): ... to here.
15231         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15232
15233 2011-06-07  Eric Blake  <eblake@redhat.com>
15234
15235         perror: document fixed bugs
15236         * doc/posix-functions/perror.texi (perror): Document recent
15237         patches.
15238
15239 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15240
15241         stat-time: get_stat_birthtime failure is better-defined
15242         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15243         return a timestamp whose tv_sec and tv_nsec values are both -1.
15244         Previously, the spec said only that the tv_nsec value was negative.
15245         This upward-compatible change simplifies GNU tar a bit.
15246
15247 2011-06-07  Eric Blake  <eblake@redhat.com>
15248
15249         strerror_r-posix: work around cygwin 1.7.9
15250         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15251         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15252         bug without replacing strerror_r.
15253         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15254         strerror_r is buggy, but without requiring strerror_r compilation.
15255         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15256
15257         test-perror: relax test to ignore cygwin bug
15258         * tests/test-perror2.c (main): Relax test on requiring detection
15259         of stream errors, and use unbuffered stream.
15260         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15261         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15262         * doc/posix-functions/fputc.texi (fputc): Likewise.
15263         * doc/posix-functions/fputs.texi (fputs): Likewise.
15264         * doc/posix-functions/fputws.texi (fputws): Likewise.
15265         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15266         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15267         * doc/posix-functions/getopt.texi (getopt): Likewise.
15268         * doc/posix-functions/perror.texi (perror): Likewise.
15269         * doc/posix-functions/printf.texi (printf): Likewise.
15270         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15271         * doc/posix-functions/psignal.texi (psignal): Likewise.
15272         * doc/posix-functions/putc.texi (putc): Likewise.
15273         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15274         Likewise.
15275         * doc/posix-functions/putchar.texi (putchar): Likewise.
15276         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15277         Likewise.
15278         * doc/posix-functions/puts.texi (puts): Likewise.
15279         * doc/posix-functions/putwc.texi (putwc): Likewise.
15280         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15281         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15282         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15283         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15284         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15285         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15286         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15287         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15288
15289 2011-05-22  Bruno Haible  <bruno@clisp.org>
15290
15291         strerror: Move AC_LIBOBJ invocations to module description.
15292         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15293         gl_PREREQ_STRERROR invocations from here...
15294         * modules/strerror (configure.ac): ... to here.
15295
15296 2011-05-21  Bruno Haible  <bruno@clisp.org>
15297
15298         perror: Use common idiom.
15299         * modules/perror (configure.ac): Reorder statements.
15300
15301 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15302
15303         tests: fix usage message in 'mktempd_'
15304         * tests/init.sh (mktempd_): In the usage message, use literal
15305         'mktempd_', not '$ME' (which is even undefined), as the name of
15306         the subroutine.
15307
15308 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15309
15310         tests init: new function 'fatal_', for hard errors
15311         Before this patch, the only way offered by tests/init.sh to
15312         properly signal a hard error was the `framework_failure_'
15313         function.  But the error message issued by that function,
15314         as its name would suggest, refers to a set-up failure in the
15315         testsuite, while hard errors can obviously also be due to
15316         other reasons.  The best way to fix this inconsistency is to
15317         introduce a new function with a more general error message.
15318         * tests/init.sh (fatal_): New function.
15319
15320 2011-06-06  Eric Blake  <eblake@redhat.com>
15321
15322         canonicalize-lgpl: use common idiom
15323         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15324         over newer POSIX -Rf.
15325         Reported by Bruno Haible.
15326
15327         canonicalize-lgpl: work around AIX realpath bug
15328         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15329         * doc/posix-functions/realpath.texi (realpath): Document it.
15330         Reported by Bruno Haible.
15331
15332         strerror: work around FreeBSD bug
15333         * lib/strerror.c (strerror): Special case 0.
15334         Reported by Bruno Haible.
15335
15336         strerror-override: avoid bloating errno module
15337         * modules/errno (Files, configure.ac): Move replacement strings...
15338         * modules/strerror-override: ...to new module.
15339         * modules/strerror (Depends-on): Add strerror-override.
15340         * modules/strerror_r-posix (Depends-on): Likewise.
15341         * MODULES.html.sh: Document new module.
15342         Reported by Bruno Haible.
15343
15344 2011-06-06  Bruno Haible  <bruno@clisp.org>
15345
15346         spawn-pipe tests: Rename program.
15347         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15348         * tests/test-spawn-pipe-child.c: Update comment.
15349         * tests/test-spawn-pipe.sh: Update.
15350         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15351
15352         spawn-pipe tests: Link the child program only against libc.
15353         * tests/test-spawn-pipe-child.c: New file, extracted from
15354         tests/test-spawn-pipe.c.
15355         (main): Expect only one argument.
15356         (is_open): New function, copied from tests/test-pipe.c.
15357         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15358         (child_main): Remove function.
15359         (test_pipe): Pass only one argument to the child program.
15360         (main): Remove child process code. Expect the child program's name as
15361         first argument.
15362         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15363         argument.
15364         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15365         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15366         test-spawn-pipe-child against no libraries.
15367
15368 2011-06-06  Bruno Haible  <bruno@clisp.org>
15369
15370         careadlinkat: Avoid mismatch between ssize_t and int.
15371         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15372         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15373
15374 2011-06-06  Jim Meyering  <meyering@redhat.com>
15375
15376         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15377         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15378         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15379
15380 2011-06-05  Bruno Haible  <bruno@clisp.org>
15381
15382         ansi-c++-opt: Interoperability with libtool.
15383         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15384         set the variable to "no", not to ":".
15385         * NEWS: Mention the change.
15386
15387 2011-06-05  Bruno Haible  <bruno@clisp.org>
15388
15389         acl: Fix test failure on AIX 7.
15390         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15391         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15392
15393 2011-06-05  Bruno Haible  <bruno@clisp.org>
15394
15395         pipe-filter-ii: Fix test failure on AIX and IRIX.
15396         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15397         with EAGAIN, retry with a smaller buffer size.
15398
15399 2011-06-05  Bruno Haible  <bruno@clisp.org>
15400
15401         localename: Fix link dependencies.
15402         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15403         * modules/localename-tests (Makefile.am): Link test-localename with
15404         $(LIBTHREAD).
15405
15406 2011-06-05  Bruno Haible  <bruno@clisp.org>
15407
15408         error: Avoid gcc warning.
15409         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15410
15411 2011-06-05  Bruno Haible  <bruno@clisp.org>
15412
15413         unsetenv: Avoid gcc warning.
15414         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15415
15416 2011-06-05  Bruno Haible  <bruno@clisp.org>
15417
15418         setenv: Avoid gcc warning.
15419         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15420
15421 2011-06-05  Bruno Haible  <bruno@clisp.org>
15422
15423         sys_select: Ensure memset is declared also on AIX 7.
15424         * lib/sys_select.in.h: Include <string.h> also on AIX.
15425         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15426         self-contained also on AIX 7.1.
15427
15428 2011-06-04  Jim Meyering  <meyering@redhat.com>
15429
15430         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15431         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15432         function name, "error".
15433         (_gl_translatable_diag_func_re): New configurable variable.
15434
15435 2011-06-04  Bruno Haible  <bruno@clisp.org>
15436
15437         getopt: Avoid gcc warning.
15438         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15439
15440 2011-06-04  Bruno Haible  <bruno@clisp.org>
15441
15442         strerror_r: Fix comments.
15443         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15444         commit.
15445
15446 2011-06-04  Bruno Haible  <bruno@clisp.org>
15447
15448         perror: Fix compilation error.
15449         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15450         Undefine fprintf, not sprintf.
15451         * modules/perror (Depends-on): Remove intprops, verify.
15452
15453 2011-06-04  Bruno Haible  <bruno@clisp.org>
15454
15455         setlocale: Enable replacement on Cygwin 1.5.
15456         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15457         Cygwin 1.5.x.
15458         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15459         LC_CTYPE category also exists on Cygwin 1.5.x.
15460
15461 2011-06-04  Bruno Haible  <bruno@clisp.org>
15462
15463         strerror-override: Don't disable symbol renamings.
15464         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15465         * lib/strerror-override.c: Include config.h.
15466         (strerror_override): Don't undefine.
15467
15468 2011-06-03  Bruno Haible  <bruno@clisp.org>
15469
15470         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15471         * lib/localename.h: Update copyright header.
15472         * lib/localename.c: Likewise.
15473         * lib/relocatable.h: Likewise.
15474         * lib/relocatable.c: Likewise.
15475
15476 2011-06-02  Bruno Haible  <bruno@clisp.org>
15477
15478         doc: Fix a module name.
15479         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15480
15481 2011-06-02  Bruno Haible  <bruno@clisp.org>
15482
15483         pipe2: Remove dependency on 'nonblocking' module.
15484         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15485         O_NONBLOCK is defined by gnulib.
15486         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15487         is zero.
15488         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15489         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15490         defined by gnulib.
15491         (get_nonblocking_flag): New function.
15492         (main): Test O_NONBLOCK flag only if it is nonzero.
15493         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15494
15495 2011-06-03  Jim Meyering  <meyering@redhat.com>
15496
15497         maint: three new prohibit-header-without-use rules
15498         Prohibit use of cloexec.h, posixver.h, same.h without use.
15499         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15500         (sc_prohibit_posixver_without_use): Likewise.
15501         (sc_prohibit_same_without_use): Likewise.
15502
15503 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15504
15505         allocator: 'die' routine is now given requested size
15506         * lib/allocator.h (struct allocator.die): New size arg.
15507         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15508         If the actual problem is an ssize_t limitation, not a size_t or
15509         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15510
15511 2011-06-01  Eric Blake  <eblake@redhat.com>
15512
15513         strerror: drop strerror_r dependency
15514         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15515         * lib/strerror-override.c (strerror_override): ...to new file.
15516         * lib/strerror-override.h: Add prototype.
15517         * lib/strerror-impl.h: Delete.
15518         * lib/strerror.c (strerror): New implementation.
15519         * modules/errno (Files): Add new files.
15520         (configure.ac): Compile new file as appropriate.
15521         * modules/strerror (Files): Drop unused file.
15522         (Depends-on): Drop strerror_r-posix.
15523         * MODULES.html.sh: Document strerror_r-posix.
15524         Requested by Sam Steingold.
15525
15526         perror: call strerror_r directly
15527         * modules/perror (Files): Drop strerror-impl.h.
15528         * lib/perror.c (perror): Use our own stack buffer, rather than
15529         calling a wrapper that uses static storage.
15530         * doc/posix-functions/perror.texi (perror): Document a limitation
15531         of our replacement.
15532
15533         strerror_r: fix includes for FreeBSD
15534         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15535         since we use abort on some platforms.
15536         Reported by Matthias Bolte.
15537
15538 2011-05-31  Bruno Haible  <bruno@clisp.org>
15539
15540         Fix link errors in tests: openat-die uses gettext-h.
15541         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15542         against $(LIBINTL).
15543         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15544         against $(LIBINTL).
15545         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15546         $(LIBINTL).
15547         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15548         against $(LIBINTL).
15549         * modules/linkat-tests (Makefile.am): Link test-linkat against
15550         $(LIBINTL).
15551         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15552         $(LIBINTL).
15553         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15554         against $(LIBINTL).
15555         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15556         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15557         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15558         $(LIBINTL).
15559         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15560         $(LIBINTL).
15561         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15562         $(LIBINTL).
15563         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15564
15565 2011-05-31  Bruno Haible  <bruno@clisp.org>
15566
15567         Fix link errors in tests: wait-process uses gettext-h.
15568         * modules/nonblocking-pipe-tests (Makefile.am): Set
15569         test_nonblocking_pipe_main_LDADD.
15570         * modules/nonblocking-socket-tests (Makefile.am): Link
15571         test-nonblocking-socket-main against $(LIBINTL).
15572         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15573
15574 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15575
15576         assert-h: work around 'verify' incompatibility
15577         * lib/verify.h: Use @...@ directives, not ifdef.
15578         * modules/assert-h (assert.h): Implement the directives.
15579         (assert.h): Substitute the symbol-prefix more consistently.
15580
15581 2011-05-29  Jim Meyering  <meyering@redhat.com>
15582
15583         trim: remove three superfluous assignments
15584         * lib/trim.c (trim2): Remove three superfluous assignments
15585         and correct brace positioning.
15586
15587 2011-05-29  Bruno Haible  <bruno@clisp.org>
15588
15589         wctype-h: Avoid namespace pollution on Solaris 2.6.
15590         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15591         identifiers.
15592         * doc/posix-headers/wctype.texi: Mention the problem.
15593         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15594
15595 2011-05-28  Jim Meyering  <meyering@redhat.com>
15596
15597         parse-datetime.y: accommodate -Wstrict-overflow
15598         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15599         placate -Wstrict-overflow.
15600
15601         trim: avoid a warning from -O2 -Wstrict-overflow
15602         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15603
15604 2011-05-29  Bruno Haible  <bruno@clisp.org>
15605
15606         gnulib-tool: Fix bug in yesterday's commit.
15607         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15608         twice.
15609
15610 2011-05-29  Bruno Haible  <bruno@clisp.org>
15611
15612         Allow multiple gnulib generated include files to be combined.
15613         * gnulib-tool (func_compute_include_guard_prefix): New function.
15614         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15615         ${gl_include_guard_prefix} references.
15616         (func_import, func_create_testdir): Invoke
15617         func_compute_include_guard_prefix.
15618         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15619         * lib/ctype.in.h: Likewise.
15620         * lib/dirent.in.h: Likewise.
15621         * lib/errno.in.h: Likewise.
15622         * lib/fcntl.in.h: Likewise.
15623         * lib/float.in.h: Likewise.
15624         * lib/getopt.in.h: Likewise.
15625         * lib/iconv.in.h: Likewise.
15626         * lib/langinfo.in.h: Likewise.
15627         * lib/locale.in.h: Likewise.
15628         * lib/math.in.h: Likewise.
15629         * lib/netdb.in.h: Likewise.
15630         * lib/netinet_in.in.h: Likewise.
15631         * lib/poll.in.h: Likewise.
15632         * lib/pthread.in.h: Likewise.
15633         * lib/pty.in.h: Likewise.
15634         * lib/sched.in.h: Likewise.
15635         * lib/se-selinux.in.h: Likewise.
15636         * lib/search.in.h: Likewise.
15637         * lib/signal.in.h: Likewise.
15638         * lib/spawn.in.h: Likewise.
15639         * lib/stdarg.in.h: Likewise.
15640         * lib/stddef.in.h: Likewise.
15641         * lib/stdint.in.h: Likewise.
15642         * lib/stdio.in.h: Likewise.
15643         * lib/stdlib.in.h: Likewise.
15644         * lib/string.in.h: Likewise.
15645         * lib/strings.in.h: Likewise.
15646         * lib/sys_file.in.h: Likewise.
15647         * lib/sys_ioctl.in.h: Likewise.
15648         * lib/sys_select.in.h: Likewise.
15649         * lib/sys_socket.in.h: Likewise.
15650         * lib/sys_stat.in.h: Likewise.
15651         * lib/sys_time.in.h: Likewise.
15652         * lib/sys_times.in.h: Likewise.
15653         * lib/sys_uio.in.h: Likewise.
15654         * lib/sys_utsname.in.h: Likewise.
15655         * lib/sys_wait.in.h: Likewise.
15656         * lib/sysexits.in.h: Likewise.
15657         * lib/termios.in.h: Likewise.
15658         * lib/time.in.h: Likewise.
15659         * lib/unistd.in.h: Likewise.
15660         * lib/wchar.in.h: Likewise.
15661         * lib/wctype.in.h: Likewise.
15662         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15663         * modules/ctype (Makefile.am): Likewise.
15664         * modules/dirent (Makefile.am): Likewise.
15665         * modules/errno (Makefile.am): Likewise.
15666         * modules/fcntl-h (Makefile.am): Likewise.
15667         * modules/float (Makefile.am): Likewise.
15668         * modules/getopt-posix (Makefile.am): Likewise.
15669         * modules/iconv-h (Makefile.am): Likewise.
15670         * modules/langinfo (Makefile.am): Likewise.
15671         * modules/locale (Makefile.am): Likewise.
15672         * modules/math (Makefile.am): Likewise.
15673         * modules/netdb (Makefile.am): Likewise.
15674         * modules/netinet_in (Makefile.am): Likewise.
15675         * modules/poll-h (Makefile.am): Likewise.
15676         * modules/pthread (Makefile.am): Likewise.
15677         * modules/pty (Makefile.am): Likewise.
15678         * modules/sched (Makefile.am): Likewise.
15679         * modules/search (Makefile.am): Likewise.
15680         * modules/selinux-h (Makefile.am): Likewise.
15681         * modules/signal (Makefile.am): Likewise.
15682         * modules/spawn (Makefile.am): Likewise.
15683         * modules/stdarg (Makefile.am): Likewise.
15684         * modules/stddef (Makefile.am): Likewise.
15685         * modules/stdint (Makefile.am): Likewise.
15686         * modules/stdio (Makefile.am): Likewise.
15687         * modules/stdlib (Makefile.am): Likewise.
15688         * modules/string (Makefile.am): Likewise.
15689         * modules/strings (Makefile.am): Likewise.
15690         * modules/sys_file (Makefile.am): Likewise.
15691         * modules/sys_ioctl (Makefile.am): Likewise.
15692         * modules/sys_select (Makefile.am): Likewise.
15693         * modules/sys_socket (Makefile.am): Likewise.
15694         * modules/sys_stat (Makefile.am): Likewise.
15695         * modules/sys_time (Makefile.am): Likewise.
15696         * modules/sys_times (Makefile.am): Likewise.
15697         * modules/sys_uio (Makefile.am): Likewise.
15698         * modules/sys_utsname (Makefile.am): Likewise.
15699         * modules/sys_wait (Makefile.am): Likewise.
15700         * modules/sysexits (Makefile.am): Likewise.
15701         * modules/termios (Makefile.am): Likewise.
15702         * modules/time (Makefile.am): Likewise.
15703         * modules/unistd (Makefile.am): Likewise.
15704         * modules/wchar (Makefile.am): Likewise.
15705         * modules/wctype-h (Makefile.am): Likewise.
15706         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15707
15708 2011-05-29  Bruno Haible  <bruno@clisp.org>
15709
15710         assert-h: Allow multiple gnulib generated replacements to coexist.
15711         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15712
15713 2011-05-29  Bruno Haible  <bruno@clisp.org>
15714
15715         argp: Allow coexistence with strerror_r-posix module.
15716         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15717         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15718         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15719         not the glibc signature.
15720
15721 2011-05-28  Bruno Haible  <bruno@clisp.org>
15722
15723         gnulib-tool: Alternative structure of testdirs, similar to --import.
15724         * gnulib-tool: New option --single-configure.
15725         (func_usage): Document it.
15726         (single_configure): New variable.
15727         (func_modules_transitive_closure_separately,
15728         func_modules_transitive_closure_separately,
15729         func_determine_use_libtests, func_modules_add_dummy_separately,
15730         func_modules_to_filelist_separately): New functions, extracted from
15731         func_import.
15732         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15733         (func_import): Use the new functions.
15734         (func_create_testdir): Set final_modules. Handle $single_configure =
15735         true case.
15736
15737 2011-05-28  Bruno Haible  <bruno@clisp.org>
15738
15739         getloadavg: Remove an unreliable safety check.
15740         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15741         getloadavg.c is in place.
15742         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15743         Reported by Sam Steingold <sds@gnu.org>.
15744
15745 2011-05-28  Bruno Haible  <bruno@clisp.org>
15746
15747         doc: Cleanup yet another file produced by texinfo.tex.
15748         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15749
15750 2011-05-28  Bruno Haible  <bruno@clisp.org>
15751
15752         Finish the conditional dependencies mechanism.
15753         * gnulib-tool: New option --no-conditional-dependencies.
15754         (func_usage): Document it. Don't mark --conditional-dependencies as
15755         experimental.
15756         (cond_dependencies): The possible values can now be true, false, empty.
15757         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15758         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15759         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15760
15761 2011-05-28  Bruno Haible  <bruno@clisp.org>
15762
15763         doc: Use a recent texinfo.tex.
15764         * doc/Makefile (tex_opts): New variable.
15765         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15766
15767 2011-05-28  Jim Meyering  <meyering@redhat.com>
15768
15769         intprops.h: adjust comment to match code change
15770         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15771         only once, it *may* have side effects.  Also fix an unrelated typo.
15772         (_GL_INT_SIGNED): Likewise.
15773
15774 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15775
15776         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15777
15778 2011-05-26  Bruno Haible  <bruno@clisp.org>
15779
15780         mbsrchr: Avoid collision with system function on Interix.
15781         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15782         Reported by Markus Duft <mduft@gentoo.org>.
15783
15784 2011-05-15  James Youngman  <jay@gnu.org>
15785
15786         getopt: for ambiguous options, enumerate the possibilities.
15787         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15788         the ambiguous options when an ambiguous prefix is given. This was
15789         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15790         glibc change was
15791         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15792
15793 2011-05-25  Eric Blake  <eblake@redhat.com>
15794
15795         getcwd: work around mingw bug
15796         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15797         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15798         Reported by Matthias Bolte.
15799
15800 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15801
15802         test-intprops: disable -Wtype-limits diagnostics
15803         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15804         diagnostics.  Otherwise, the integer overflow macros generate many
15805         diagnostics.  Reported by Jim Meyering in
15806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15807
15808         intprops: shorten, to pacify gcc -Woverlength-strings
15809         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15810         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15811         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15812         likely to run afoul of C compiler limits for string constant lengths.
15813         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15814
15815 2011-05-24  Eric Blake  <eblake@redhat.com>
15816
15817         docs: document recently fixed glibc printf bug
15818         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15819         * doc/posix-functions/printf.texi (printf): Likewise.
15820         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15821         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15822
15823         closein-tests: convert to init.sh
15824         * modules/closein-tests (Files): Add init.sh
15825         * tests/test-closein.sh Use it.
15826
15827         yesno-tests: convert to init.sh
15828         * modules/yesno-tests (Files): Add init.sh.
15829         * tests/test-yesno.sh: Use it.
15830
15831         atexit-tests: ensure reliable exit status
15832         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15833         Reported by Bruno Haible.
15834
15835 2011-05-24  Bruno Haible  <bruno@clisp.org>
15836
15837         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15838         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15839         gl_PREREQ_STRERROR_R invocations from here...
15840         * modules/strerror_r-posix (configure.ac): ... to here.
15841
15842 2011-05-24  Eric Blake  <eblake@redhat.com>
15843
15844         strerror_r: fix missing header
15845         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15846
15847         strerror_r: fix AIX test failures
15848         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15849         ERANGE failure.
15850
15851         strerror_r: fix Solaris test failures
15852         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15853         failures.
15854         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15855
15856         strerror_r: enforce POSIX recommendations
15857         * lib/strerror_r.c (safe_copy): New helper method.
15858         (strerror_r): Guarantee a non-empty string.
15859         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15860         recent POSIX rulings and to match our strerror guarantees.
15861         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15862
15863 2011-05-24  Jim Meyering  <meyering@redhat.com>
15864
15865         test-perror2.c: avoid warning about unused variable
15866         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15867
15868 2011-05-24  Eric Blake  <eblake@redhat.com>
15869
15870         perror: avoid spurious test failure on HP-UX
15871         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15872
15873         tests: fix logic bug in init.sh
15874         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15875         shell.
15876
15877 2011-05-24  Jim Meyering  <meyering@redhat.com>
15878
15879         utimensat: do not reference an out-of-scope buffer
15880         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15881         declared in an inner scope, yet "times" would be dereferenced outside
15882         the scope in which "ts" was valid.
15883         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15884         of ts[2] "out/up", so that the use of aliased "times" (via
15885         "times = ts;") does not end up referencing an out-of-scope "ts"
15886
15887         opendir-safer.c: don't clobber errno; don't close negative FD
15888         * lib/opendir-safer.c (opendir_safer):
15889         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15890         file descriptor, and more importantly, don't clobber the
15891         offending errno value with EINVAL.  Before, upon failure
15892         of dup_safer, we would pass the negative file descriptor to
15893         fdopendir, which would clobber errno.
15894
15895 2011-05-23  Bruno Haible  <bruno@clisp.org>
15896
15897         idcache: Fix module description.
15898         * modules/idcache (Include): Set to "idcache.h".
15899
15900 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15901
15902         gnulib-tool: fix portability problem with MacOS sed
15903         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15904         before the "}".  Problem reported by Leo in
15905         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15906         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15907         sed_extract_condition1, sed_extract_condition2.
15908
15909 2011-05-23  Bruno Haible  <bruno@clisp.org>
15910
15911         hash: Simplify autoconf macro.
15912         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15913
15914 2011-05-23  Bruno Haible  <bruno@clisp.org>
15915
15916         getugroups: Fix module description.
15917         * modules/getugroups (Include): Set to "getugroups.h".
15918
15919 2011-05-23  Bruno Haible  <bruno@clisp.org>
15920
15921         linkat: Simplify autoconf macro.
15922         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15923
15924 2011-05-23  Bruno Haible  <bruno@clisp.org>
15925             Eric Blake  <eblake@redhat.com>
15926
15927         linkat, renameat: Update dependencies.
15928         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15929         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15930         symlinkat.
15931
15932 2011-05-23  Jim Meyering  <meyering@redhat.com>
15933
15934         maint.mk: more tight_scope improvements
15935         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15936         (_gl_TS_headers): Define only in if-0'd block.
15937         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15938         sometimes we must *not* use it.  Adjust uses accordingly.
15939         (sc_tight_scope): Use much simpler grep-based test to determine
15940         whether we skip this rule.
15941
15942         maint.mk: generalize/improve the tight-scope rule
15943         * top/maint.mk: Emit a warning when the test is skipped.
15944         (_gl_TS_dir): Add $(srcdir)/ prefix.
15945         (_gl_TS_function_match): Simplify, rather than trying
15946         to enumerate common types.  Otherwise, it would fail to match an
15947         "extern unsigned char const *" declaration in idutils.
15948         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15949         a way to support use of that type of macro.
15950         (_gl_TS_var_match): Simplify regexp.
15951         (_gl_TS_obj_files): New configurable variable.
15952         (_gl_TS_headers): Likewise.
15953
15954 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15955
15956         verify: fix bug when gnulib <assert.h> is also included
15957         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15958         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15959         Perhaps there's a better way, but this fixes the immediate problem.
15960         Problem reported by Bruno Haible in
15961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15962
15963 2011-05-22  Bruno Haible  <bruno@clisp.org>
15964
15965         xgetcwd: Simplify autoconf macro.
15966         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15967
15968 2011-05-22  Bruno Haible  <bruno@clisp.org>
15969
15970         New module 'mktime-internal'.
15971         * modules/mktime-internal: New file.
15972         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15973         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15974         mktime_internal as a C macro if libc has __mktime_internal.
15975         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15976         conditions.
15977         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15978
15979 2011-05-22  Bruno Haible  <bruno@clisp.org>
15980
15981         timegm: Correct mktime replacement statements.
15982         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15983         defining mktime as a C macro. This completes a 2009-07-28 commit.
15984
15985 2011-05-22  Bruno Haible  <bruno@clisp.org>
15986
15987         timegm: Simplify autoconf macro.
15988         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15989
15990 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15991
15992         clock-time: change to LGPLv2+.
15993         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15994         BSD-like but we have no mark for that; this is good enough for now.
15995
15996 2011-05-21  Bruno Haible  <bruno@clisp.org>
15997
15998         strerror_r: Fix comments.
15999         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16000
16001 2011-05-21  Bruno Haible  <bruno@clisp.org>
16002
16003         relocatable-prog-wrapper: Fix possible link error.
16004         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16005         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16006         (gl_FUNC_SETENV): ... to here.
16007         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16008         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16009
16010 2011-05-21  Bruno Haible  <bruno@clisp.org>
16011
16012         relocatable-prog-wrapper: Assume strerror() exists.
16013         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16014         m4/strerror.m4.
16015         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16016         * lib/relocwrapper.c: Remove mention of strerror module.
16017         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16018         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16019         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16020         C macro.
16021
16022 2011-05-21  Bruno Haible  <bruno@clisp.org>
16023
16024         select: Simplify replacement idiom.
16025         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16026         Win32 platforms.
16027         * lib/sys_select.in.h (select): Simplify accordingly.
16028         * modules/select (Depends-on): Likewise.
16029
16030 2011-05-21  Bruno Haible  <bruno@clisp.org>
16031
16032         mkdir-p: Simplify autoconf macro.
16033         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16034         gl_FUNC_LCHOWN.
16035
16036 2011-05-21  Eric Blake  <eblake@redhat.com>
16037
16038         strerror_r: avoid clobbering strerror on cygwin
16039         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16040         fall back instead to sys_errlist.
16041         * modules/strerror (configure.ac): Add witness.
16042         * tests/test-strerror_r.c (main): Enhance test.
16043         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16044         * tests/test-perror2.c (main): Free memory before exit.
16045
16046 2011-05-21  Bruno Haible  <bruno@clisp.org>
16047
16048         mkdtemp: Use gnulib naming conventions.
16049         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16050         * modules/mkdtemp (configure.ac): Update.
16051
16052 2011-05-20  Eric Blake  <eblake@redhat.com>
16053
16054         strerror_r: avoid corrupting errno on Solaris
16055         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16056         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16057
16058         strerror_r: avoid compiler warning
16059         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16060
16061         strerror_r: simplify AIX code
16062         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16063
16064         test-perror: avoid spurious failure on FreeBSD
16065         * modules/perror-tests (Depends-on): Add strerror, now that
16066         strerror_r no longer pulls it in.
16067
16068 2011-05-20  Bruno Haible  <bruno@clisp.org>
16069
16070         strerror_r-posix: Remove unused dependencies.
16071         * modules/strerror_r-posix (Depends-on): Remove strerror.
16072         Reported by Eric Blake.
16073
16074 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16075
16076         intprops: remove assumption about A|B representation
16077         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16078         is a valid integer if both A and B are.  Although this is true for
16079         all known practical hosts, the C standard doesn't guarantee it,
16080         and the code need not assume it.  Also, this change may work around
16081         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16083
16084 2011-05-20  Eric Blake  <eblake@redhat.com>
16085
16086         perror: work around FreeBSD bug
16087         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16088         is broken.  Move AC_LIBOBJ...
16089         * modules/perror (configure.ac): Here.
16090         * doc/posix-functions/perror.texi (perror): Document this.
16091         * tests/test-perror2.c (main): Enhance test.
16092
16093         test-perror: check for strerror interactions
16094         * tests/macros.h (STREQ): Add macro.
16095         * modules/perror-tests (Files): Add second test.
16096         * tests/test-perror2.c (main): New file.
16097         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16098
16099         test-perror: rewrite to use init script
16100         * modules/perror-tests (Files): Add init.sh.
16101         * tests/test-perror.sh: Use temporary directory.
16102
16103 2011-05-20  Jim Meyering  <meyering@redhat.com>
16104
16105         maint: replace misused "a" with "an"
16106         * doc/intprops.texi: "a integer"
16107         * doc/regex.texi: "a explanation"
16108         * lib/alignof.h: "a object"
16109         * lib/argmatch.h: "a explanation"
16110         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16111         * lib/stdint.in.h: "a integer"
16112         * lib/userspec.c: "a owner"
16113         * doc/gnulib.texi: Fix "a idea", and reword.
16114
16115 2011-05-19  Jim Meyering  <meyering@redhat.com>
16116
16117         maint: correct misuse of "a" and "an"
16118         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16119         * lib/argp-help.c: "an docum...": s/an/a/
16120         * lib/argp-parse.c: "An vector": s/An/A/
16121         * lib/execute.c: "an native": s/an/a/
16122         * lib/spawn-pipe.c: Likewise.
16123         * lib/gc.h: "an Gc_rc": s/an/a/
16124         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16125         * lib/fts.c: "an stat.st_dev": s/an/a/
16126
16127 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16128
16129         intprops-tests: work around HP-UX 11.23 cc bug with constants
16130         * tests/test-intprops.c (VERIFY): New macro.
16131         (main): Use it, instead of verify, to work around the compiler bug; see
16132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16133
16134         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16135         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16136         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16137         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16138         (_GL_REMAINDER_OVERFLOW): Use it.
16139
16140         intprops-tests: revert unsigned part of previous change
16141         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16142         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16143         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16145
16146 2011-05-19  Bruno Haible  <bruno@clisp.org>
16147
16148         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16149         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16150         strerror_r() returned without filling the buffer.
16151         Reported by Eric Blake.
16152
16153 2011-05-19  Eric Blake  <eblake@redhat.com>
16154
16155         strerror_r: guarantee unchanged errno
16156         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16157         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16158         failure.
16159         * tests/test-strerror_r.c (main): Enhance test.
16160
16161 2011-05-19  Bruno Haible  <bruno@clisp.org>
16162
16163         strerror_r: Reorder #if blocks.
16164         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16165         for consistency with the previous commit.
16166
16167 2011-05-19  Bruno Haible  <bruno@clisp.org>
16168
16169         perror: Avoid clobbering the strerror buffer when possible.
16170         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16171         * lib/strerror.c: Include it.
16172         * modules/strerror (Files): Add lib/strerror-impl.h.
16173         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16174         (my_strerror): New function, defined through lib/strerror-impl.h.
16175         (perror): Use it instead of strerror.
16176         * modules/perror (Files): Add lib/strerror-impl.h.
16177         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16178
16179 2011-05-19  Eric Blake  <eblake@redhat.com>
16180
16181         strerror_r: fix on newer cygwin
16182         * lib/strerror_r.c (strerror_r): Cygwin now has
16183         __xpg_strerror_r, use it.
16184
16185 2011-05-19  Bruno Haible  <bruno@clisp.org>
16186
16187         strerror_r: Avoid clobbering the strerror buffer when possible.
16188         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16189         (sys_nerr, sys_errlist): New declarations.
16190         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16191         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16192         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16193
16194 2011-05-19  Bruno Haible  <bruno@clisp.org>
16195
16196         strerror_r: Fix test failure on mingw.
16197         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16198         EXTEND_STRERROR_R.
16199         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16200         macros from errno.in.h instead.
16201
16202 2011-05-19  Eric Blake  <eblake@redhat.com>
16203
16204         strerror: relax test for Solaris
16205         * tests/test-strerror.c (main): Permit Solaris behavior.
16206         * tests/test-strerror_r.c (main): Likewise.
16207
16208         strerror: enforce POSIX ruling on strerror(0)
16209         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16210         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16211         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16212         * doc/posix-functions/strerror.texi (strerror): Document it.
16213         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16214         * tests/test-strerror.c (main): Strengthen test.
16215         * tests/test-strerror_r.c (main): Likewise.
16216
16217 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16218
16219         intprop-tests: port to older and more-pedantic compilers
16220         * modules/intprops-tests (Files): Add tests/macros.h.
16221         * tests/test-intprops.c: Include macros.h.
16222         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16223         it's no longer documented to expand to an integer constant expression.
16224         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16225         argument is floating point, as it's no longer documented to expand
16226         to an integer constant expression in that case.
16227         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16228         compiler bugs reported by Bruno Haible.  See
16229         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16230         (U0, U1): New constants, to work around the same bugs.  Also,
16231         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16232
16233         intprops: work around C compiler bugs
16234         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16235         bug in Sun C 5.11 2010/08/13 and other compilers; see
16236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16237
16238         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16239         * doc/intprops.texi (Integer Type Determination): Fix
16240         documentation for TYPE_IS_INTEGER: it returns an constant
16241         expression, not an integer constant expression.  Fix doc for
16242         TYPE_SIGNED: it returns an integer constant expression only if its
16243         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16244         hardly worth documented that way....)
16245
16246 2011-05-18  Bruno Haible  <bruno@clisp.org>
16247
16248         strerror_r: Avoid clobbering the strerror buffer when possible.
16249         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16250         Handle gnulib defined errno values here. When strerror() returns NULL
16251         or an empty string, return EINVAL.
16252         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16253         gnulib defined errno values here.
16254         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16255
16256 2011-05-18  Eric Blake  <eblake@redhat.com>
16257
16258         fnmatch: avoid compiler warning
16259         * lib/fnmatch_loop.c (FCT): Use correct type.
16260         Reported by Matthias Bolte.
16261
16262 2011-05-13  Jim Meyering  <meyering@redhat.com>
16263
16264         maint.mk: three new prohibit_<HDR>_without_use rules
16265         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16266         (sc_prohibit_stdio-safer_without_use): Likewise.
16267         (sc_prohibit_xfreopen_without_use): Likewise.
16268
16269 2011-05-17  Jim Meyering  <meyering@redhat.com>
16270
16271         announce-gen: fail if the NEWS delta is empty
16272         If there's nothing noteworthy in NEWS, then either you forgot
16273         or you shouldn't be releasing.
16274         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16275
16276 2011-05-17  Pádraig Brady <P@draigBrady.com>
16277
16278         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16279         reserved symbols starting with double underscore from the check.
16280
16281 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16282
16283         intprops: add doc
16284         * doc/intprops.texi: New file, documenting intprops.
16285         * doc/gnulib.texi (Particular Modules): Include it.
16286
16287         verify: add doc to gnulib manual and fix example
16288         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16289         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16290         (Compile-time Assertions): Fix example so it can't overflow.
16291
16292 2011-05-17  Jim Meyering  <meyering@redhat.com>
16293
16294         warnings.m4: don't usurp save_CPPFLAGS variable name
16295         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16296
16297         doc: fix typo
16298         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16299
16300 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16301             Bruno Haible  <bruno@clisp.org>
16302
16303         doc: Tweak recent change.
16304         * README (Portability guidelines): Tweak new text.
16305         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16306         Interix 6.1.
16307
16308 2011-05-16  Eric Blake  <eblake@redhat.com>
16309
16310         inttypes: avoid autoconf warning
16311         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16312         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16313
16314 2011-05-16  Sam Steingold <sds@gnu.org>
16315         and Eric Blake  <eblake@redhat.com>
16316
16317         vc-list-files: accept multiple directory operands
16318         * build-aux/vc-list-files: Iterate over all remaining operands.
16319
16320 2011-05-16  Bruno Haible  <bruno@clisp.org>
16321
16322         Fix confusion regarding deprecated modules.
16323         * modules/calloc (Status, Notice): Mark module as deprecated, not
16324         obsolete.
16325         * modules/fnmatch-posix (Status, Notice): Likewise.
16326         * modules/getdate (Status, Notice): Likewise.
16327         * modules/getopt (Status, Notice): Likewise.
16328         * modules/malloc (Status, Notice): Likewise.
16329         * modules/pipe (Status, Notice): Likewise.
16330         * modules/realloc (Status, Notice): Likewise.
16331         * modules/rename-dest-slash (Status, Notice): Likewise.
16332         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16333         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16334         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16335         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16336         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16337
16338 2011-05-16  Bruno Haible  <bruno@clisp.org>
16339
16340         doc: List the target platforms.
16341         * doc/gnulib-intro.texi (Target Platforms): New section.
16342         * doc/gnulib.texi (Introduction): Update menu.
16343         * README (Portability guidelines): Refer to the new section. Update
16344         statement about oldest supported environment. Remove rationale why
16345         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16346         unportable C89 function.
16347         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16348         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16349
16350 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16351
16352         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16353
16354 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16355
16356         intprops-tests: new module
16357         * modules/intprops-tests, tests/test-intprops.c: New files.
16358
16359         intprops: add safe, portable integer overflow checking
16360         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16361         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16362         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16363         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16364         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16365         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16366         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16367         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16368         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16369         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16370         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16371
16372 2011-05-12  James Youngman  <jay@gnu.org>
16373
16374         Add a test for glibc's Bugzilla bug #12378.
16375         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16376         doesn't allow the literal matching of a lone "[" (which is
16377         required by POSIX).
16378         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16379
16380 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16381
16382         Sync glibc change fixing Bugzilla bug #12378.
16383         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16384         beginning and fall back to matching as normal character if the
16385         string ends before the matching ']' is found.  This is what POSIX
16386         requires.
16387
16388 2011-05-13  Eric Blake  <eblake@redhat.com>
16389
16390         getcwd-lgpl: relax test for FreeBSD
16391         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16392         issue.
16393         * tests/test-getcwd-lgpl.c (main): Relax test.
16394         Reported by Matthias Bolte.
16395
16396 2011-05-11  Eric Blake  <eblake@redhat.com>
16397
16398         test-fflush: silence compiler warning
16399         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16400
16401 2011-05-11  Bruno Haible  <bruno@clisp.org>
16402
16403         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16404         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16405         * modules/canonicalize (Depends-on): Add 'nocrash'.
16406         * modules/canonicalize-lgpl (Depends-on): Likewise.
16407         * doc/posix-functions/realpath.texi: Update platforms list.
16408         Reported by Ryan Schmidt <ryandesign@macports.org>.
16409
16410 2011-05-11  Bruno Haible  <bruno@clisp.org>
16411
16412         group-member: Declare function in <unistd.h>.
16413         * lib/unistd.in.h (group_member): New declaration.
16414         * lib/group-member.h: Remove file.
16415         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16416         * tests/test-unistd-c++.cc: Check signature of group_member.
16417         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16418         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16419         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16420         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16421         HAVE_GROUP_MEMBER.
16422         * modules/group-member (Files): Remove lib/group-member.h.
16423         (Depends-on): Add unistd. Specify conditions.
16424         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16425         (Include): Change to <unistd.h>.
16426         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16427         HAVE_GROUP_MEMBER.
16428         * NEWS: Mention the change.
16429         * lib/euidaccess.c: Don't include group-member.h.
16430
16431 2011-05-11  Bruno Haible  <bruno@clisp.org>
16432
16433         group-member: Document module.
16434         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16435         module.
16436
16437 2011-05-11  Bruno Haible  <bruno@clisp.org>
16438
16439         fclose: Fix mistake earlier today.
16440         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16441
16442 2011-05-11  Eric Blake  <eblake@redhat.com>
16443
16444         fclose: preserve fflush errors
16445         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16446         Reported by Jim Meyering.
16447
16448         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16449         * build-aux/bootstrap (check_versions): When no specific version
16450         is required, merely check that the app produces an exit status
16451         that indicates its existence.
16452
16453         maint.mk: drop redundant check
16454         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16455         the same but better.
16456
16457 2011-05-11  Bruno Haible  <bruno@clisp.org>
16458
16459         fclose: Fix possible link error.
16460         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16461         unregister_shadow_fd. Improve comments.
16462         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16463         Eric Blake.
16464
16465 2011-05-11  Jim Meyering  <meyering@redhat.com>
16466
16467         maint.mk: improve "can not" detection and generalize rule name
16468         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16469         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16470         Use the same technique as in sc_prohibit_doubled_word, so that
16471         we recognize "can not" also when the words are separated by a newline.
16472         Suggested by Eric Blake.
16473         (perl_filename_lineno_text_): Define.  Factored out of...
16474         (prohibit_doubled_word_): ...here.  Use the new definition.
16475         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16476         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16477         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16478
16479 2011-05-10  Eric Blake  <eblake@redhat.com>
16480
16481         fclose: avoid double close race when possible
16482         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16483         all but WINDOWS_SOCKETS.
16484
16485 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16486
16487         openat: correct new comment
16488         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16489
16490 2011-05-10  Jim Meyering  <meyering@redhat.com>
16491
16492         openat: add comments
16493         * lib/openat-proc.c (openat_proc_name): Add comments,
16494         mostly from Eric Blake.
16495
16496 2011-05-09  Eric Blake  <eblake@redhat.com>
16497
16498         openat: reduce syscalls in first probe of /proc
16499         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16500         be a directory.  Simplify the probe for .. bugs.
16501         * modules/openat (Depends-on): Drop same-inode.
16502         Reported by Bastien ROUCARIES.
16503
16504 2011-05-09  Jim Meyering  <meyering@redhat.com>
16505
16506         maint.mk: change semantics/name of tight_scope variables
16507         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16508         Rename variables to align with semantics that make them more useful.
16509
16510         maint.mk: tweak new rule's name not to impinge
16511         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16512         (sc_tight_scope): Use new rule name rather than $@-0.
16513
16514         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16515         * top/maint.mk (sc_tight_scope): New rule.
16516         (sc_tight_scope-0): New rule, ifdef'd out.
16517         (_gl_TS_dir): Default.
16518         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16519         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16520
16521 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16522
16523         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16524         Haible <bruno@clisp.org>.
16525
16526 2011-05-08  Bruno Haible  <bruno@clisp.org>
16527
16528         Comments.
16529         * m4/isnanf.m4: Add comment.
16530         * m4/isnanl.m4: Likewise.
16531
16532 2011-05-08  Bruno Haible  <bruno@clisp.org>
16533
16534         glob: Remove obsolete macro.
16535         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16536
16537 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16538
16539         intprops: Sun C 5.11 supports __typeof__
16540         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16541         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16542         which is new.
16543         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16544
16545         intprops: switch to usual gnulib indenting and naming
16546         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16547         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16548
16549         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16550
16551 2011-05-08  Jim Meyering  <meyering@redhat.com>
16552
16553         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16554         * top/maint.mk (release-prep): Use make's --no-print-directory
16555         option when generating the announcement.  This eliminates the
16556         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16557         generated announcement template.
16558
16559 2011-05-08  Bruno Haible  <bruno@clisp.org>
16560
16561         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16562         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16563         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16564
16565 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16566
16567         ignore-value, verify: Omit include files from lib_SOURCES.
16568         * modules/ignore-value, modules/verify (Makefile.am):
16569         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16570         that leads Automake to duplicate use of am__objects_... variables
16571         in Makefile.in.  See
16572         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16573
16574 2011-05-07  Bruno Haible  <bruno@clisp.org>
16575
16576         fclose: Simplify autoconf macro.
16577         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16578         defined.
16579
16580 2011-05-07  Bruno Haible  <bruno@clisp.org>
16581
16582         canonicalize-lgpl: Fix autoconf macro ordering bug.
16583         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16584         gl_STDLIB_H_DEFAULTS.
16585
16586 2011-05-06  Eric Blake  <eblake@redhat.com>
16587
16588         maintainer-makefile: make sc_po_check easier to tune
16589         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16590         to probe for strings, such as an alternate location for gnulib.
16591
16592         fclose: guarantee behavior on seekable stdin
16593         * modules/fclose (Depends-on): Add fflush.
16594         * doc/posix-functions/fclose.texi (fclose): Document this.
16595         * tests/test-fclose.c (main): Make test for this unconditional.
16596
16597 2011-05-06  Bruno Haible  <bruno@clisp.org>
16598
16599         fflush, fpurge: Relicense under LGPLv2+.
16600         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16601         * modules/fpurge (License): Likewise.
16602         With permission from Eric Blake and Jim Meyering.
16603         Suggested by Eric Blake.
16604
16605 2011-05-06  Karl Berry  <karl@gnu.org>
16606
16607         * MODULES.html.sh (func_all_modules): remove exit.
16608
16609 2011-05-06  Jim Meyering  <meyering@redhat.com>
16610
16611         maint.mk: use info-gnu@ as the default only for a stable release
16612         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16613         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16614         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16615         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16616
16617 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16618
16619         assert-h: new module, which supports C1X-style static_assert
16620         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16621         * lib/verify.h: Revamp so that this can be copied into assert.h,
16622         while retaining the ability to use it standalone as before.
16623         Rename private identifiers so as not to encroach on the
16624         standard C namespace, since this is now used by assert.h.
16625         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16626         the old verify_true.
16627         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16628         the old verify_true.  Use _GL_VERIFY_TYPE.
16629         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16630         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16631         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16632         defined when this file is copied into the replacement assert.h.
16633         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16634         and _Static_assert is not built in.
16635         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16636         defined, and use the new macros mentioned above.
16637         * doc/posix-headers/assert.texi: Document this.
16638
16639 2011-05-05  Bruno Haible  <bruno@clisp.org>
16640
16641         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16642         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16643         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16644         gl_REPLACE_FCLOSE here.
16645         * modules/fflush (Depends-on): Remove fclose.
16646         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16647         combination with module 'fclose'.
16648
16649 2011-05-05  Bruno Haible  <bruno@clisp.org>
16650
16651         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16652         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16653         gl_FUNC_FFLUSH.
16654         (gl_FUNC_FFLUSH): Use it.
16655         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16656         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16657         gl_REPLACE_FSEEKO here.
16658
16659 2011-05-05  Bruno Haible  <bruno@clisp.org>
16660
16661         tzset: Relicense under LGPL.
16662         * modules/tzset (License): Change to LGPL.
16663         No agreement needed; it's a no-op.
16664
16665         strtoimax, strtoumax: Relicense under LGPL.
16666         * modules/strtoimax (License): Change to LGPL.
16667         * modules/strtoumax (License): Likewise.
16668         With permission from Jim Meyering, Paul Eggert:
16669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16670         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16671
16672         getgroups: Relicense under LGPL.
16673         * modules/getgroups (License): Change to LGPL.
16674         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16677         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16678
16679         nanosleep: Relicense under LGPL.
16680         * modules/nanosleep (License): Change to LGPL.
16681         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16682         Haible:
16683         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16687
16688         futimens: Relicense under LGPL.
16689         * modules/futimens (License): Change to LGPL.
16690         With permission from Eric Blake:
16691         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16692
16693         fflush: Relicense under LGPL.
16694         * modules/fflush (License): Change to LGPL.
16695         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16697         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16698         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16699
16700         tmpfile: Relicense under LGPL.
16701         * modules/tmpfile (License): Change to LGPL.
16702         With permission from Ben Pfaff:
16703         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16704
16705         isfinite: Relicense under LGPL.
16706         * modules/isfinite (License): Change to LGPL.
16707         With permission from Ben Pfaff, Bruno Haible:
16708         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16710
16711         acosl..tanl: Relicense under LGPL.
16712         * modules/acosl (License): Change to LGPL.
16713         * modules/asinl (License): Likewise.
16714         * modules/atanl (License): Likewise.
16715         * modules/cosl (License): Likewise.
16716         * modules/expl (License): Likewise.
16717         * modules/logl (License): Likewise.
16718         * modules/sinl (License): Likewise.
16719         * modules/sqrtl (License): Likewise.
16720         * modules/tanl (License): Likewise.
16721         Source code originally from glibc and Paolo Bonzini. Agreements:
16722         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16724
16725 2011-05-05  Bruno Haible  <bruno@clisp.org>
16726
16727         signal: Define sighandler_t.
16728         * lib/signal.in.h (sighandler_t): New type.
16729         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16730         whether sighandler_t is defined.
16731         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16732         * modules/signal (Depends-on): Add extensions.
16733         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16734         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16735         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16736
16737 2011-05-05  Eric Blake  <eblake@redhat.com>
16738
16739         maint: remove useless REPLACE_*_H macros
16740         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16741         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16742         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16743         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16744         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16745         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16746         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16747         * m4/btowc.m4: Update callers.
16748         * m4/dirfd.m4: Likewise.
16749         * m4/duplocale.m4: Likewise.
16750         * m4/fchdir.m4: Likewise.
16751         * m4/fdopendir.m4: Likewise.
16752         * m4/inet_ntop.m4: Likewise.
16753         * m4/inet_pton.m4: Likewise.
16754         * m4/ioctl.m4: Likewise.
16755         * m4/mbrlen.m4: Likewise.
16756         * m4/mbrtowc.m4: Likewise.
16757         * m4/mbsinit.m4: Likewise.
16758         * m4/mbsnrtowcs.m4: Likewise.
16759         * m4/mbsrtowcs.m4: Likewise.
16760         * m4/poll.m4: Likewise.
16761         * m4/setlocale.m4: Likewise.
16762         * m4/wcrtomb.m4: Likewise.
16763         * m4/wcsnrtombs.m4: Likewise.
16764         * m4/wcsrtombs.m4: Likewise.
16765         * m4/wctob.m4: Likewise.
16766         * m4/wcwidth.m4: Likewise.
16767         * modules/posix_spawn: Likewise.
16768         * modules/posix_spawn_file_actions_addclose: Likewise.
16769         * modules/posix_spawn_file_actions_adddup2: Likewise.
16770         * modules/posix_spawn_file_actions_addopen: Likewise.
16771         * modules/posix_spawn_file_actions_destroy: Likewise.
16772         * modules/posix_spawn_file_actions_init: Likewise.
16773         * modules/posix_spawnattr_destroy: Likewise.
16774         * modules/posix_spawnattr_getflags: Likewise.
16775         * modules/posix_spawnattr_getpgroup: Likewise.
16776         * modules/posix_spawnattr_getschedparam: Likewise.
16777         * modules/posix_spawnattr_getschedpolicy: Likewise.
16778         * modules/posix_spawnattr_getsigdefault: Likewise.
16779         * modules/posix_spawnattr_getsigmask: Likewise.
16780         * modules/posix_spawnattr_init: Likewise.
16781         * modules/posix_spawnattr_setflags: Likewise.
16782         * modules/posix_spawnattr_setpgroup: Likewise.
16783         * modules/posix_spawnattr_setschedparam: Likewise.
16784         * modules/posix_spawnattr_setschedpolicy: Likewise.
16785         * modules/posix_spawnattr_setsigdefault: Likewise.
16786         * modules/posix_spawnattr_setsigmask: Likewise.
16787         * modules/posix_spawnp: Likewise.
16788
16789 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16790
16791         Add option to do-release-commit-and-tag to specify branch.
16792         * build-aux/do-release-commit-and-tag: Add --branch.
16793
16794 2011-05-03  Bruno Haible  <bruno@clisp.org>
16795
16796         Avoid unnecessary compilation units, through conditional dependencies.
16797         * modules/accept (Depends-on): Add conditions to the dependencies.
16798         * modules/acosl (Depends-on): Likewise.
16799         * modules/argz (Depends-on): Likewise.
16800         * modules/asinl (Depends-on): Likewise.
16801         * modules/atanl (Depends-on): Likewise.
16802         * modules/atoll (Depends-on): Likewise.
16803         * modules/bind (Depends-on): Likewise.
16804         * modules/btowc (Depends-on): Likewise.
16805         * modules/canonicalize-lgpl (Depends-on): Likewise.
16806         * modules/ceil (Depends-on): Likewise.
16807         * modules/ceilf (Depends-on): Likewise.
16808         * modules/ceill (Depends-on): Likewise.
16809         * modules/chdir-long (Depends-on): Likewise.
16810         * modules/chown (Depends-on): Likewise.
16811         * modules/close (Depends-on): Likewise.
16812         * modules/connect (Depends-on): Likewise.
16813         * modules/cosl (Depends-on): Likewise.
16814         * modules/dirfd (Depends-on): Likewise.
16815         * modules/dprintf (Depends-on): Likewise.
16816         * modules/dprintf-posix (Depends-on): Likewise.
16817         * modules/error (Depends-on): Likewise.
16818         * modules/euidaccess (Depends-on): Likewise.
16819         * modules/expl (Depends-on): Likewise.
16820         * modules/faccessat (Depends-on): Likewise.
16821         * modules/fchdir (Depends-on): Likewise.
16822         * modules/fclose (Depends-on): Likewise.
16823         * modules/fcntl (Depends-on): Likewise.
16824         * modules/fdopendir (Depends-on): Likewise.
16825         * modules/fflush (Depends-on): Likewise.
16826         * modules/floor (Depends-on): Likewise.
16827         * modules/floorf (Depends-on): Likewise.
16828         * modules/floorl (Depends-on): Likewise.
16829         * modules/fnmatch (Depends-on): Likewise.
16830         * modules/fopen (Depends-on): Likewise.
16831         * modules/fprintf-posix (Depends-on): Likewise.
16832         * modules/frexp (Depends-on): Likewise.
16833         * modules/frexp-nolibm (Depends-on): Likewise.
16834         * modules/frexpl (Depends-on): Likewise.
16835         * modules/frexpl-nolibm (Depends-on): Likewise.
16836         * modules/fseek (Depends-on): Likewise.
16837         * modules/fsusage (Depends-on): Likewise.
16838         * modules/ftell (Depends-on): Likewise.
16839         * modules/ftello (Depends-on): Likewise.
16840         * modules/futimens (Depends-on): Likewise.
16841         * modules/getcwd (Depends-on): Likewise.
16842         * modules/getcwd-lgpl (Depends-on): Likewise.
16843         * modules/getdelim (Depends-on): Likewise.
16844         * modules/getdomainname (Depends-on): Likewise.
16845         * modules/getgroups (Depends-on): Likewise.
16846         * modules/gethostname (Depends-on): Likewise.
16847         * modules/getline (Depends-on): Likewise.
16848         * modules/getlogin_r (Depends-on): Likewise.
16849         * modules/getopt-posix (Depends-on): Likewise.
16850         * modules/getpeername (Depends-on): Likewise.
16851         * modules/getsockname (Depends-on): Likewise.
16852         * modules/getsockopt (Depends-on): Likewise.
16853         * modules/getsubopt (Depends-on): Likewise.
16854         * modules/getusershell (Depends-on): Likewise.
16855         * modules/glob (Depends-on): Likewise.
16856         * modules/grantpt (Depends-on): Likewise.
16857         * modules/iconv_open (Depends-on): Likewise.
16858         * modules/iconv_open-utf (Depends-on): Likewise.
16859         * modules/inet_ntop (Depends-on): Likewise.
16860         * modules/inet_pton (Depends-on): Likewise.
16861         * modules/ioctl (Depends-on): Likewise.
16862         * modules/isapipe (Depends-on): Likewise.
16863         * modules/isfinite (Depends-on): Likewise.
16864         * modules/isinf (Depends-on): Likewise.
16865         * modules/lchown (Depends-on): Likewise.
16866         * modules/ldexpl (Depends-on): Likewise.
16867         * modules/link (Depends-on): Likewise.
16868         * modules/linkat (Depends-on): Likewise.
16869         * modules/listen (Depends-on): Likewise.
16870         * modules/logl (Depends-on): Likewise.
16871         * modules/lstat (Depends-on): Likewise.
16872         * modules/mbrlen (Depends-on): Likewise.
16873         * modules/mbrtowc (Depends-on): Likewise.
16874         * modules/mbsinit (Depends-on): Likewise.
16875         * modules/mbsnrtowcs (Depends-on): Likewise.
16876         * modules/mbsrtowcs (Depends-on): Likewise.
16877         * modules/mbtowc (Depends-on): Likewise.
16878         * modules/memcmp (Depends-on): Likewise.
16879         * modules/mkdir (Depends-on): Likewise.
16880         * modules/mkdtemp (Depends-on): Likewise.
16881         * modules/mkfifo (Depends-on): Likewise.
16882         * modules/mkfifoat (Depends-on): Likewise.
16883         * modules/mknod (Depends-on): Likewise.
16884         * modules/mkostemp (Depends-on): Likewise.
16885         * modules/mkostemps (Depends-on): Likewise.
16886         * modules/mkstemp (Depends-on): Likewise.
16887         * modules/mkstemps (Depends-on): Likewise.
16888         * modules/mktime (Depends-on): Likewise.
16889         * modules/nanosleep (Depends-on): Likewise.
16890         * modules/open (Depends-on): Likewise.
16891         * modules/openat (Depends-on): Likewise.
16892         * modules/perror (Depends-on): Likewise.
16893         * modules/poll (Depends-on): Likewise.
16894         * modules/popen (Depends-on): Likewise.
16895         * modules/posix_spawn (Depends-on): Likewise.
16896         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16897         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16898         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16899         * modules/posix_spawnp (Depends-on): Likewise.
16900         * modules/pread (Depends-on): Likewise.
16901         * modules/printf-posix (Depends-on): Likewise.
16902         * modules/ptsname (Depends-on): Likewise.
16903         * modules/putenv (Depends-on): Likewise.
16904         * modules/pwrite (Depends-on): Likewise.
16905         * modules/readline (Depends-on): Likewise.
16906         * modules/readlink (Depends-on): Likewise.
16907         * modules/readlinkat (Depends-on): Likewise.
16908         * modules/recv (Depends-on): Likewise.
16909         * modules/recvfrom (Depends-on): Likewise.
16910         * modules/regex (Depends-on): Likewise.
16911         * modules/remove (Depends-on): Likewise.
16912         * modules/rename (Depends-on): Likewise.
16913         * modules/renameat (Depends-on): Likewise.
16914         * modules/rmdir (Depends-on): Likewise.
16915         * modules/round (Depends-on): Likewise.
16916         * modules/roundf (Depends-on): Likewise.
16917         * modules/roundl (Depends-on): Likewise.
16918         * modules/rpmatch (Depends-on): Likewise.
16919         * modules/select (Depends-on): Likewise.
16920         * modules/send (Depends-on): Likewise.
16921         * modules/sendto (Depends-on): Likewise.
16922         * modules/setenv (Depends-on): Likewise.
16923         * modules/setlocale (Depends-on): Likewise.
16924         * modules/setsockopt (Depends-on): Likewise.
16925         * modules/shutdown (Depends-on): Likewise.
16926         * modules/sigaction (Depends-on): Likewise.
16927         * modules/signbit (Depends-on): Likewise.
16928         * modules/sigprocmask (Depends-on): Likewise.
16929         * modules/sinl (Depends-on): Likewise.
16930         * modules/sleep (Depends-on): Likewise.
16931         * modules/snprintf (Depends-on): Likewise.
16932         * modules/snprintf-posix (Depends-on): Likewise.
16933         * modules/socket (Depends-on): Likewise.
16934         * modules/sprintf-posix (Depends-on): Likewise.
16935         * modules/sqrtl (Depends-on): Likewise.
16936         * modules/stat (Depends-on): Likewise.
16937         * modules/strchrnul (Depends-on): Likewise.
16938         * modules/strdup-posix (Depends-on): Likewise.
16939         * modules/strerror (Depends-on): Likewise.
16940         * modules/strerror_r-posix (Depends-on): Likewise.
16941         * modules/strndup (Depends-on): Likewise.
16942         * modules/strnlen (Depends-on): Likewise.
16943         * modules/strptime (Depends-on): Likewise.
16944         * modules/strsep (Depends-on): Likewise.
16945         * modules/strsignal (Depends-on): Likewise.
16946         * modules/strstr-simple (Depends-on): Likewise.
16947         * modules/strtod (Depends-on): Likewise.
16948         * modules/strtoimax (Depends-on): Likewise.
16949         * modules/strtok_r (Depends-on): Likewise.
16950         * modules/strtoumax (Depends-on): Likewise.
16951         * modules/symlink (Depends-on): Likewise.
16952         * modules/symlinkat (Depends-on): Likewise.
16953         * modules/tanl (Depends-on): Likewise.
16954         * modules/tcgetsid (Depends-on): Likewise.
16955         * modules/tmpfile (Depends-on): Likewise.
16956         * modules/trunc (Depends-on): Likewise.
16957         * modules/truncf (Depends-on): Likewise.
16958         * modules/truncl (Depends-on): Likewise.
16959         * modules/uname (Depends-on): Likewise.
16960         * modules/unlink (Depends-on): Likewise.
16961         * modules/unlockpt (Depends-on): Likewise.
16962         * modules/unsetenv (Depends-on): Likewise.
16963         * modules/usleep (Depends-on): Likewise.
16964         * modules/utimensat (Depends-on): Likewise.
16965         * modules/vasprintf (Depends-on): Likewise.
16966         * modules/vdprintf (Depends-on): Likewise.
16967         * modules/vdprintf-posix (Depends-on): Likewise.
16968         * modules/vfprintf-posix (Depends-on): Likewise.
16969         * modules/vprintf-posix (Depends-on): Likewise.
16970         * modules/vsnprintf (Depends-on): Likewise.
16971         * modules/vsnprintf-posix (Depends-on): Likewise.
16972         * modules/vsprintf-posix (Depends-on): Likewise.
16973         * modules/wcrtomb (Depends-on): Likewise.
16974         * modules/wcscasecmp (Depends-on): Likewise.
16975         * modules/wcscspn (Depends-on): Likewise.
16976         * modules/wcsdup (Depends-on): Likewise.
16977         * modules/wcsncasecmp (Depends-on): Likewise.
16978         * modules/wcsnrtombs (Depends-on): Likewise.
16979         * modules/wcspbrk (Depends-on): Likewise.
16980         * modules/wcsrtombs (Depends-on): Likewise.
16981         * modules/wcsspn (Depends-on): Likewise.
16982         * modules/wcsstr (Depends-on): Likewise.
16983         * modules/wcstok (Depends-on): Likewise.
16984         * modules/wcswidth (Depends-on): Likewise.
16985         * modules/wctob (Depends-on): Likewise.
16986         * modules/wctomb (Depends-on): Likewise.
16987         * modules/wctype (Depends-on): Likewise.
16988         * modules/wcwidth (Depends-on): Likewise.
16989         * modules/write (Depends-on): Likewise.
16990
16991 2011-05-03  Bruno Haible  <bruno@clisp.org>
16992
16993         Support for conditional dependencies.
16994         * doc/gnulib.texi (Module description): Document the syntax of
16995         conditional dependencies.
16996         * gnulib-tool: New option --conditional-dependencies.
16997         (func_usage): Document it.
16998         (cond_dependencies): New variable.
16999         (func_get_automake_snippet_conditional,
17000         func_get_automake_snippet_unconditional): New functions, extracted from
17001         func_get_automake_snippet.
17002         (func_get_automake_snippet): Use them.
17003         (sed_first_32_chars): New variable.
17004         (func_module_shellfunc_name): New function.
17005         (func_module_shellvar_name): New function.
17006         (func_module_conditional_name): New function.
17007         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17008         func_cond_module_condition): New functions.
17009         (func_modules_transitive_closure): Add support for conditional
17010         dependencies.
17011         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17012         conditional automake snippet in an automake conditional.
17013         (func_emit_autoconf_snippets): Emit shell functions that contain the
17014         code for conditional modules.
17015         (func_import, func_create_testdir): Update specification.
17016
17017 2011-05-03  Eric Blake  <eblake@redhat.com>
17018
17019         test-getaddrinfo: report error information
17020         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17021
17022 2011-05-03  Jim Meyering  <meyering@redhat.com>
17023
17024         bootstrap: avoid build failure when $GZIP is set
17025         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17026         program name.  If defined at all, it is supposed to list gzip options.
17027         Reported by Alan Curry in http://debbugs.gnu.org/8609
17028
17029 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17030
17031         readme-release: new module with release instructions
17032         * modules/readme-release: New module.
17033         * top/README-release: New file, from coreutils, grep, diffutils.
17034         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17035
17036 2011-05-02  Eric Blake  <eblake@redhat.com>
17037
17038         fflush: also replace fclose when fixing fflush
17039         * modules/fflush (Depends-on): Add fclose.
17040         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17041         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17042         memstreams with no backing fd.
17043         * doc/posix-functions/fclose.texi (fclose): Document the use of
17044         fflush module to fix the bug.
17045         * tests/test-fclose.c (main): Relax test when fclose is used in
17046         isolation.
17047
17048         fclose: add some tests
17049         * modules/fclose-tests: New test module.
17050         * tests/test-fclose.c: New file.
17051         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17052
17053         fclose: reduced dependencies
17054         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17055         simpler lseek.
17056         * lib/fclose.c (rpl_fclose): Likewise.
17057         Reported by Simon Josefsson.
17058
17059         exit: drop remaining clients
17060         * modules/argmatch (Depends-on): Replace exit with stdlib.
17061         * modules/copy-file (Depends-on): Likewise.
17062         * modules/execute (Depends-on): Likewise.
17063         * modules/exitfail (Depends-on): Likewise.
17064         * modules/obstack (Depends-on): Likewise.
17065         * modules/pagealign_alloc (Depends-on): Likewise.
17066         * modules/pipe-filter-gi (Depends-on): Likewise.
17067         * modules/pipe-filter-ii (Depends-on): Likewise.
17068         * modules/savewd (Depends-on): Likewise.
17069         * modules/spawn-pipe (Depends-on): Likewise.
17070         * modules/wait-process (Depends-on): Likewise.
17071         * modules/xsetenv (Depends-on): Likewise.
17072         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17073         * modules/git-merge-changelog (Depends-on): Likewise.
17074         * modules/long-options (Depends-on): Likewise.
17075         * modules/pt_chown (Depends-on): Likewise.
17076         * modules/sysexits (Depends-on): Likewise.
17077
17078         freading: relax license from LGPLv3+ to LGPLv2+
17079         * modules/freading (License): Relax LGPL version.
17080
17081 2011-05-02  Bruno Haible  <bruno@clisp.org>
17082
17083         fchdir: Remove unused dependencies.
17084         * modules/fchdir (Depends-on): Remove include_next.
17085
17086 2011-05-02  Bruno Haible  <bruno@clisp.org>
17087
17088         gnulib-tool: Refactor.
17089         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17090         from func_emit_autoconf_snippets.
17091         (func_emit_autoconf_snippets): Use it.
17092
17093 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17094
17095         * NEWS: Document removal of 'exit'.
17096         * modules/exit: Remove file.
17097
17098 2011-05-01  Bruno Haible  <bruno@clisp.org>
17099
17100         Update DEPENDENCIES.
17101         * DEPENDENCIES (gettext): Recommend the newest release.
17102         Reported by Simon Josefsson.
17103
17104 2011-05-01  Bruno Haible  <bruno@clisp.org>
17105
17106         gnulib-tool: Reduce code duplication.
17107         * gnulib-tool (func_emit_autoconf_snippets): New function.
17108         (func_import, func_create_testdir): Use it.
17109
17110 2011-04-30  Eric Blake  <eblake@redhat.com>
17111
17112         fclose: don't fail on non-seekable input stream
17113         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17114         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17115         since fflush is allowed to fail in that case.
17116
17117 2011-04-30  Bruno Haible  <bruno@clisp.org>
17118
17119         dup3: cleanup
17120         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17121
17122 2011-04-30  Bruno Haible  <bruno@clisp.org>
17123
17124         netdb: Make it work in C++ mode.
17125         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17126         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17127         module.
17128         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17129         gl_MODULE_INDICATOR_FOR_TESTS.
17130         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17131         * modules/netdb-c++-tests: New file.
17132         * tests/test-netdb-c++.cc: New file.
17133
17134 2011-04-30  Bruno Haible  <bruno@clisp.org>
17135
17136         New modules 'vfscanf', 'vscanf'.
17137         * modules/vfscanf: New file.
17138         * modules/vscanf: New file.
17139         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17140         here.
17141         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17142         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17143
17144 2011-04-30  Bruno Haible  <bruno@clisp.org>
17145
17146         passfd: Add comments.
17147         * lib/passfd.c: Add comments about platforms.
17148
17149 2011-04-30  Bruno Haible  <bruno@clisp.org>
17150
17151         sys_uio: Make <sys/uio.h> self-contained.
17152         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17153         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17154
17155 2011-04-30  Bruno Haible  <bruno@clisp.org>
17156
17157         sys_socket: Ensure 'struct iovec' definition.
17158         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17159         <sys/socket.h>.
17160         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17161
17162 2011-04-30  Bruno Haible  <bruno@clisp.org>
17163
17164         sys_uio: Protect definition of 'struct iovec'.
17165         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17166         it as a C struct.
17167
17168 2011-04-30  Bruno Haible  <bruno@clisp.org>
17169
17170         manywarnings: fix indentation
17171         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17172
17173 2011-04-30  Pádraig Brady <P@draigBrady.com>
17174
17175         manywarnings: add -Wno-missing-field-initializers if needed.
17176         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17177         option if it's needed to allow initialization with { 0, }
17178
17179 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17180
17181         announce-gen: cosmetic improvement
17182         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17183
17184 2011-04-29  Jim Meyering  <meyering@redhat.com>
17185
17186         vc-list-files: indent with spaces, not TABs
17187         * build-aux/vc-list-files: Convert leading TABs to spaces,
17188         to match the style of most other files in gnulib.
17189
17190         announce-gen: indent with spaces, not TABs
17191         * build-aux/announce-gen: Convert all TABs to spaces, to match
17192         the style of most other files in gnulib.
17193
17194 2011-04-29  Eric Blake  <eblake@redhat.com>
17195
17196         quotearg: avoid uninitialized variable use
17197         * lib/quotearg.c (quoting_options_from_style): Initialize
17198         remaining fields, and ensure that custom styles are only used via
17199         quoting_options rather than quoting_style.
17200
17201 2011-04-29  Jim Meyering  <meyering@redhat.com>
17202
17203         maint.mk: remove unused VC-tag variable
17204         * top/maint.mk (VC-tag): Remove unused variable.
17205
17206 2011-04-29  Bruno Haible  <bruno@clisp.org>
17207
17208         netdb: fix gai_strerror replacements
17209         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17210         * modules/netdb: Substitute it.
17211
17212 2011-04-29  Jim Meyering  <meyering@redhat.com>
17213
17214         test-getcwd.c: avoid new set-but-not-used warning
17215         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17216         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17217         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17218         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17219
17220         test-hash.c: avoid a new shadowing warning
17221         * tests/test-hash.c (main): Don't shadow "dup".
17222
17223 2011-04-28  Eric Blake  <eblake@redhat.com>
17224
17225         getaddrinfo: fix gai_strerror signature
17226         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17227         and work around mingw with UNICODE defined.
17228         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17229         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17230         * modules/netdb (Makefile.am): Substitute it.
17231         * lib/netdb.in.h (gai_strerror): Declare replacement.
17232         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17233         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17234         the fix.
17235
17236         getsockopt: avoid compiler warning
17237         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17238         Reported by Matthias Bolte.
17239
17240         tests: drop unused link dependency
17241         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17242         * modules/dirent-safer-tests (Makefile.am): Likewise.
17243         * modules/fdopendir-tests (Makefile.am): Likewise.
17244         * modules/mkfifoat-tests (Makefile.am): Likewise.
17245         * modules/openat-safer-tests (Makefile.am): Likewise.
17246         * modules/openat-tests (Makefile.am): Likewise.
17247         * modules/readlinkat-tests (Makefile.am): Likewise.
17248         * modules/symlinkat-tests (Makefile.am): Likewise.
17249         * modules/linkat-tests (Makefile.am): Likewise.
17250         (Depends-on): Switch to filenamecat-lgpl.
17251         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17252         LIBINTL.
17253         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17254         * tests/test-linkat.c (main): Don't require xalloc.
17255
17256         hash, mgetgroups: drop xalloc dependency
17257         * lib/hash.c (includes): Adjust includes.
17258         * lib/mgetgroups.c (includes): Likewise.
17259         (xgetgroups): Move...
17260         * lib/xgetgroups.c: ...to new file.
17261         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17262         * modules/xgetgroups: New file, split from...
17263         * modules/mgetgroups: ...here.
17264         (Depends-on): Add xalloc-oversized.
17265         * modules/hash (Depends-on): Likewise.
17266         * modules/hash-tests (Depends-on): Drop xalloc.
17267         (test_hash_LDADD): Drop unused library.
17268         * tests/test-hash.c (main): Break xalloc dependency.
17269         (includes): Drop unused include.
17270
17271         xalloc-oversized: new module
17272         * modules/xalloc-oversized: New module.
17273         * modules/xalloc (Depends-on): Add it.
17274         * lib/xalloc.h (xalloc_oversized): Move...
17275         * lib/xalloc-oversized.h: ...into new file.
17276
17277         utimecmp: drop dependency on xmalloc
17278         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17279         due to memory pressure.
17280         * modules/utimecmp (Depends-on): Drop xalloc.
17281
17282 2011-04-27  Eric Blake  <eblake@redhat.com>
17283
17284         getcwd: fix mingw bugs
17285         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17286         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17287         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17288
17289 2011-04-27  Bruno Haible  <bruno@clisp.org>
17290
17291         mkstemps: Ensure declaration on MacOS X 10.5.
17292         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17293         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17294         MacOS X.
17295
17296 2011-04-27  Bruno Haible  <bruno@clisp.org>
17297
17298         mkstemp: More documentation.
17299         * doc/posix-functions/mkstemp.texi: Document header file problem on
17300         MacOS X.
17301
17302 2011-04-27  Bruno Haible  <bruno@clisp.org>
17303
17304         mkstemp: Tweak configure message when cross-compiling.
17305         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17306         result as a guess.
17307
17308 2011-04-27  Bruno Haible  <bruno@clisp.org>
17309
17310         clean-temp: Clarify what it does.
17311         * lib/clean-temp.h: Add more comments.
17312         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17313         module.
17314         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17315         * doc/glibc-functions/mkstemps.texi: Likewise.
17316         * doc/glibc-functions/mkostemps.texi: Likewise.
17317
17318 2011-04-27  Eric Blake  <eblake@redhat.com>
17319
17320         fchdir: avoid extra chdir and fix test
17321         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17322         getcwd-lgpl.
17323         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17324         have to be canonical.
17325         (canonicalize_file_name): Drop unused macro.
17326         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17327
17328         filenamecat-lgpl: fix licence
17329         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17330         when it was first created.
17331
17332         linkat, renameat: add missing dependency
17333         * modules/linkat (Depends-on): Require getcwd-lgpl.
17334         * modules/renameat (Depends-on): Likewise.
17335
17336         tests: reduce dependencies
17337         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17338         * tests/test-renameat.c (main): Likewise.
17339         * modules/linkat-tests (Depends-on): Relax dependency.
17340         * modules/renameat-tests (Depends-on): Likewise.
17341         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17342         dependency explicit.
17343
17344         save-cwd: reduce default dependency
17345         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17346         * lib/save-cwd.c: Update comments.
17347         * NEWS: Document the semantic change.
17348
17349         getcwd: enhance tests
17350         * tests/test-getcwd-lgpl.c: New file, taken from...
17351         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17352         repeat long path stress tests from m4 probe.
17353         * modules/getcwd-lgpl-tests: New module.
17354         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17355         * m4/getcwd-abort-bug.m4: Update comment.
17356         * m4/getcwd-path-max.m4: Likewise.
17357
17358         getcwd-lgpl: new module
17359         * modules/getcwd-lgpl: New module.
17360         * lib/getcwd-lgpl.c: New file.
17361         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17362         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17363         * modules/getcwd (configure.ac): Set C witness.
17364         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17365
17366         getcwd: tweak comments
17367         * m4/getcwd-abort-bug.m4: Fix comments.
17368         * m4/getcwd-path-max.m4: Likewise.
17369         * m4/getcwd.m4: Likewise.
17370
17371 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17372         and Eric Blake  <eblake@redhat.com>
17373
17374         mkstemp: replace if system version uses wrong permissions
17375         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17376         read/write mode bits set in file created by mkstemp.
17377         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17378
17379 2011-04-27  Eric Blake  <eblake@redhat.com>
17380
17381         passfd: avoid compiler warning
17382         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17383         Reported by Laine Stump.
17384
17385 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17386
17387         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17388         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17389
17390 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17391         and Eric Blake  <eblake@redhat.com>
17392
17393         mkstemp: mention clean-temp module
17394         * lib/mkstemp.c: Add comment.
17395         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17396
17397 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17398
17399         inttypes: also provide default values for 32-bit tests
17400         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17401         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17402
17403 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17404
17405         strtoumax: remove dependency on strtoimax
17406         This is like the strtoull change of yesterday.
17407         * modules/strtoumax (Files): Add lib/strtoimax.c.
17408         (Depends-on): Remove strtoimax and add verify.
17409
17410         inttypes-incomplete: new module
17411         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17412         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17413         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17414         of gl_INTTYPES_H.
17415         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17416         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17417         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17418         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17419         * modules/strtoumax, modules/xstrtol (Depends-on):
17420         Depend on inttypes-incomplete, not inttypes.
17421         * modules/inttypes-incomplete: New module, containing the contents
17422         of the old modules/inttypes module, except that the Files: section
17423         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17424         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17425         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17426         (Depends-on): Depend only on inttypes-incomplete.
17427         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17428
17429         inttypes: omit now-redundant strtoimax and strtoumax work
17430         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17431         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17432
17433         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17434         This supports apps that need pointers to strtoimax and strtoumax,
17435         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17436         nonexistent functions.  See
17437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17438         et seq.
17439         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17440         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17441         a macro.
17442         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17443
17444 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17445
17446         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17447
17448 2011-04-25  Bruno Haible  <bruno@clisp.org>
17449
17450         strtol, strtoul: Mark modules as obsolete.
17451         * modules/strtol (Status, Notice): New sections.
17452         * modules/strtoul (Status, Notice): New sections.
17453
17454 2011-04-25  Bruno Haible  <bruno@clisp.org>
17455
17456         strtod: Remove check for strtod, unless supporting old platforms.
17457         * modules/strtod-obsolete: New file.
17458         * m4/strtod-obsolete.m4: New file.
17459         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17460         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17461         * modules/strtod (Depends-on): Add strtod-obsolete.
17462         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17463
17464 2011-04-25  Bruno Haible  <bruno@clisp.org>
17465
17466         strcase: Make module obsolete.
17467         * modules/strcase (Status, Notice): New sections.
17468
17469 2011-04-25  Bruno Haible  <bruno@clisp.org>
17470
17471         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17472         * modules/dup2-obsolete: New file.
17473         * m4/dup2-obsolete.m4: New file.
17474         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17475         gl_FUNC_DUP2_OBSOLETE is not also defined.
17476         * modules/dup2 (Depends-on): Add dup2-obsolete.
17477         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17478
17479 2011-04-25  Bruno Haible  <bruno@clisp.org>
17480
17481         strnlen: Avoid memchr related link error on old obsolete platforms.
17482         * modules/memchr-obsolete: New file.
17483         * m4/memchr-obsolete.m4: New file.
17484         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17485         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17486         * modules/memchr (Depends-on): Add memchr-obsolete.
17487         * modules/strnlen (Depends-on): Likewise.
17488         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17489
17490 2011-04-25  Jim Meyering  <meyering@redhat.com>
17491
17492         maint.mk: makefile_at_at_check extend and clean up
17493         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17494         in addition to */Makefile.am.
17495         Exempt legitimate uses of @VAR@ notation, e.g.,
17496         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17497         Remove obsolete coreutils-specific comment.
17498         Prompted by discussion here:
17499         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17500
17501 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17502
17503         strtoul: remove dependency on strtol
17504         This is so that 'configure' need not check for strtol merely because
17505         the application needs strtoul.
17506         * modules/strtoul (Files): Add lib/strtol.c.
17507         (Depends-on): Remove strtol.
17508
17509         strtoull: remove dependency on strtoul
17510         This is like the strtoll change.
17511         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17512         (Depends-on): Remove strtoul.
17513
17514         strtoll: remove dependency on strtol
17515         This is so that 'configure' need not check for strtol merely because
17516         the application needs strtoll.
17517         * modules/strtoll (Files): Add lib/strtol.c.
17518         (Depends-on): Remove strtol.
17519
17520 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17521
17522         inttypes: Move some configure check to module 'imaxdiv'.
17523         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17524         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17525         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17526
17527 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17528
17529         inttypes: Move some configure check to module 'imaxabs'.
17530         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17531         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17532         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17533
17534 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17535
17536         inttypes: Remove configure tests that are not needed since 2009-12-31.
17537         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17538         gl_cv_header_working_inttypes_h.
17539
17540 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17541
17542         * modules/strnlen (Depends-on): Remove memchr.
17543         The strnlen implementation doesn't need the memchr module's fixes; see
17544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17545
17546         strtol: remove dependency on wchar
17547         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17548         * modules/strtol (Depends-on): Remove wchar.
17549
17550 2011-04-21  Eric Blake  <eblake@redhat.com>
17551
17552         passfd: fix test regression on Linux
17553         * modules/passfd-tests (configure.ac): Correct socketpair check.
17554
17555         passfd: speed up configure and drop unused code
17556         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17557         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17558         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17559         Instead of probing at configure for unix_scm_rights_bsd44_way,
17560         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17561         check to a struct member probe.
17562         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17563         (sendfd, recvfd): Update preprocessor checks.
17564         * modules/passfd (Files): Reflect rename, and drop unused file.
17565         (Depends-on): Drop unused dependency.
17566
17567         passfd: allow compilation on mingw
17568         * modules/sys_socket (Depends-on): Add sys_uio.
17569         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17570         iovec and a minimal struct msghdr.
17571         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17572         * tests/test-sys_socket.c (main): Enhance test.
17573         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17574         guaranteed to provide what we need.
17575         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17576         * modules/passfd-tests (Depends-on): Add sys_wait.
17577         * tests/test-passfd.c (main): Skip test on mingw, for now.
17578         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17579         partial 'struct msghdr' implementation.
17580
17581         sys_uio: new module
17582         * modules/sys_uio: New module.
17583         * modules/sys_uio-tests: Likewise.
17584         * lib/sys_uio.in.h: New file.
17585         * m4/sys_uio_h.m4: Likewise.
17586         * tests/test-sys_uio.c: Likewise.
17587         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17588         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17589
17590 2011-04-20  Jim Meyering  <meyering@redhat.com>
17591
17592         useless-if-before-free: avoid false-positive
17593         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17594         disjunct so that it too requires a terminating ";".  Without that,
17595         this script would identify as useless one statement from gcc that
17596         was not:
17597           if (aligned_ptr)
17598             free (((void **) aligned_ptr) [-1]);
17599
17600 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17601
17602         doc: update users.txt.
17603         * users.txt: Add barcode.
17604
17605 2011-04-19  Bruno Haible  <bruno@clisp.org>
17606
17607         ioctl: Remove link dependency on native Windows.
17608         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17609         (gl_close_fn, gl_ioctl_fn): New types.
17610         (struct fd_hook): Renamed from struct close_hook. Change type of
17611         private_close_fn field. Add private_ioctl_fn field.
17612         (close_hook_fn): Add parameter for primary close method.
17613         (execute_close_hooks, execute_all_close_hooks): Likewise.
17614         (ioctl_hook_fn): New type.
17615         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17616         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17617         argument.
17618         (unregister_fd_hook): Renamed from unregister_close_hook.
17619         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17620         Don't include <unistd.h>.
17621         (close): Remove undef.
17622         (anchor): Update.
17623         (execute_close_hooks): Add argument for primary close method.
17624         (execute_all_close_hooks): Likewise.
17625         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17626         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17627         argument. Allow each argument to be NULL.
17628         (unregister_fd_hook): Renamed from unregister_close_hook.
17629         * lib/close.c (rpl_close): Pass 'close' function pointer to
17630         execute_all_close_hooks.
17631         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17632         (primary_ioctl): New function.
17633         (ioctl): Don't call ioctlsocket here. Instead, call
17634         execute_all_ioctl_hooks.
17635         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17636         close method.
17637         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17638         (fd_sockets_hook): Renamed from close_sockets_hook.
17639         (gl_sockets_startup, gl_sockets_cleanup): Update.
17640         * modules/fd-hook: Renamed from modules/close-hook. Update.
17641         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17642         * modules/sockets (Depends-on): Likewise.
17643         * modules/ioctl (Depends-on): Add fd-hook.
17644         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17645         GNULIB_SOCKET.
17646
17647 2011-04-19  Bruno Haible  <bruno@clisp.org>
17648
17649         Move the support of O_NONBLOCK in open() to the 'open' module.
17650         * modules/nonblocking (Depends-on): Remove 'open'.
17651         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17652         gl_cv_have_open_O_NONBLOCK.
17653         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17654         O_NONBLOCK support.
17655         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17656
17657 2011-04-17  Bruno Haible  <bruno@clisp.org>
17658
17659         pipe2: Simplify code.
17660         * lib/pipe2.c (pipe2): Reduce code duplication.
17661
17662 2011-04-17  Bruno Haible  <bruno@clisp.org>
17663
17664         nonblocking: Add comment.
17665         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17666
17667 2011-04-17  Bruno Haible  <bruno@clisp.org>
17668
17669         nonblocking: Add tests for sockets.
17670         * tests/test-nonblocking-socket.sh: New file.
17671         * tests/test-nonblocking-socket-main.c: New file.
17672         * tests/test-nonblocking-socket-child.c: New file.
17673         * tests/test-nonblocking-socket.h: New file.
17674         * tests/socket-server.h: New file.
17675         * tests/socket-client.h: New file.
17676         * modules/nonblocking-socket-tests: New file.
17677         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17678
17679 2011-04-17  Bruno Haible  <bruno@clisp.org>
17680
17681         nonblocking: Add tests for pipes.
17682         * tests/test-nonblocking-pipe.sh: New file.
17683         * tests/test-nonblocking-pipe-main.c: New file.
17684         * tests/test-nonblocking-pipe-child.c: New file.
17685         * tests/test-nonblocking-pipe.h: New file.
17686         * tests/test-nonblocking-writer.h: New file.
17687         * tests/test-nonblocking-reader.h: New file.
17688         * tests/test-nonblocking-misc.h: New file.
17689         * modules/nonblocking-pipe-tests: New file.
17690         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17691
17692 2011-04-16  Bruno Haible  <bruno@clisp.org>
17693
17694         gettext: Clarify the needed programmer actions.
17695         * modules/gettext (Notice): New field.
17696         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17697
17698 2011-04-16  Bruno Haible  <bruno@clisp.org>
17699
17700         strchrnul: Tweak last commit.
17701         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17702         bug.
17703         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17704         as in _GL_FUNCDECL_SYS.
17705         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17706         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17707
17708 2011-04-15  Eric Blake  <eblake@redhat.com>
17709
17710         strchrnul: work around cygwin bug
17711         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17712         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17713         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17714         * modules/string (Makefile.am): Substitute it.
17715         * lib/string.in.h (strchrnul): Use it.
17716
17717 2011-04-15  Bruno Haible  <bruno@clisp.org>
17718
17719         Don't require lib/stdio-write.c when only module 'stdio' is used.
17720         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17721         invocation.
17722         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17723
17724 2011-04-14  Bruno Haible  <bruno@clisp.org>
17725
17726         Support non-blocking pipe I/O in read() on native Windows.
17727         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17728         (read): New declaration.
17729         * lib/read.c: New file.
17730         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17731         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17732         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17733         vscanf): New declarations.
17734         * lib/stdio-read.c: New file.
17735         * m4/read.m4: New file.
17736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17737         REPLACE_READ.
17738         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17739         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17740         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17741         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17742         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17743         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17744         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17745         * modules/read: New file.
17746         * modules/nonblocking (Files): Add lib/stdio-read.c.
17747         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17748         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17749         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17750         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17751         * modules/pread (Depends-on): Add read.
17752         * modules/safe-read (Depends-on): Likewise.
17753         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17754         gets, scanf, vfscanf, vscanf): Verify signatures.
17755         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17756         problem with non-blocking pipes.
17757         * doc/posix-functions/fgetc.texi: Likewise.
17758         * doc/posix-functions/fgets.texi: Likewise.
17759         * doc/posix-functions/fread.texi: Likewise.
17760         * doc/posix-functions/fscanf.texi: Likewise.
17761         * doc/posix-functions/getc.texi: Likewise.
17762         * doc/posix-functions/getchar.texi: Likewise.
17763         * doc/posix-functions/gets.texi: Likewise.
17764         * doc/posix-functions/scanf.texi: Likewise.
17765         * doc/posix-functions/vfscanf.texi: Likewise.
17766         * doc/posix-functions/vscanf.texi: Likewise.
17767
17768 2011-04-14  Bruno Haible  <bruno@clisp.org>
17769
17770         Support non-blocking pipe I/O in write() on native Windows.
17771         * lib/write.c (rpl_write): Split a write request that failed merely
17772         because the byte count was larger than the pipe buffer's size.
17773         * doc/posix-functions/write.texi: Mention the problem with large byte
17774         counts.
17775
17776 2011-04-14  Bruno Haible  <bruno@clisp.org>
17777
17778         wchar: Ensure that wchar_t gets defined on uClibc.
17779         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17780         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17781
17782 2011-04-13  Bruno Haible  <bruno@clisp.org>
17783
17784         safe-write, full-read: Avoid unnecessary compilation units.
17785         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17786         (Depends-on): Remove safe-read. Add ssize_t.
17787         * modules/full-read (Files): Add lib/full-write.c.
17788         (Depends-on): Add full-write.
17789
17790 2011-04-13  Bruno Haible  <bruno@clisp.org>
17791
17792         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17793         * modules/pwrite (Depends-on): Add 'write'.
17794
17795 2011-04-13  Bruno Haible  <bruno@clisp.org>
17796
17797         Support non-blocking pipe I/O in write() on native Windows.
17798         * lib/unistd.in.h (write): Enable replacement also if
17799         GNULIB_UNISTD_H_NONBLOCKING is 1.
17800         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17801         (rpl_write): When failing to write on a non-blocking pipe, change
17802         errno from ENOSPC to EAGAIN.
17803         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17804         putchar, puts, vfprintf, vprintf): Enable replacement also if
17805         GNULIB_STDIO_H_NONBLOCKING is 1.
17806         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17807         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17808         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17809         CALL_WITH_SIGPIPE_EMULATION.
17810         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17811         * m4/nonblocking.m4: New file.
17812         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17813         for non-blocking I/O support.
17814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17815         GNULIB_UNISTD_H_NONBLOCKING.
17816         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17817         required for non-blocking I/O support.
17818         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17819         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17820         lib/stdio-write.c, m4/asm-underscore.m4.
17821         (Depends-on): Add stdio, unistd.
17822         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17823         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17824         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17825         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17826         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17827         problem with non-blocking pipes.
17828         * doc/posix-functions/fputc.texi: Likewise.
17829         * doc/posix-functions/fputs.texi: Likewise.
17830         * doc/posix-functions/fwrite.texi: Likewise.
17831         * doc/posix-functions/printf.texi: Likewise.
17832         * doc/posix-functions/putc.texi: Likewise.
17833         * doc/posix-functions/putchar.texi: Likewise.
17834         * doc/posix-functions/puts.texi: Likewise.
17835         * doc/posix-functions/vfprintf.texi: Likewise.
17836         * doc/posix-functions/vprintf.texi: Likewise.
17837         * doc/posix-functions/write.texi: Likewise.
17838
17839 2011-04-10  Jim Meyering  <meyering@redhat.com>
17840
17841         maint.mk: prohibit doubled words
17842         Detect them also when they're separated by a newline.
17843         There are 3 ways to customize it:
17844           - disable the test on a per file basis, as usual with rules using
17845             $(VC_LIST_EXCEPT)
17846           - replace the default doubled-word-selecting regexp (affects all files)
17847           - ignore a particular file-vs-doubled-word match
17848         I nearly used that last one to ignore the "is is" match in
17849         coreutils' NEWS file, since the text was "ls -is is ..."
17850         To do that, I would have added this line to cfg.mk:
17851           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17852         but it would have ignored any "is is" match in NEWS.
17853         Low probability, but still...
17854         Instead, I changed the text, slightly:
17855           -  ls -is is now consistent with ls -lis in ignoring values returned
17856           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17857         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17858         (prohibit_doubled_word_): Define.
17859         (sc_prohibit_doubled_word): New rule.
17860         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17861
17862 2011-04-10  Jim Meyering  <meyering@redhat.com>
17863
17864         maint: fix doubled-word typo in comment
17865         * m4/gethostname.m4: s/is is/it is/
17866         * m4/getdomainname.m4: Likewise.
17867
17868 2011-04-10  Jim Meyering  <meyering@redhat.com>
17869
17870         maint: remove doubled word: s/it it/it/
17871         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17872
17873 2011-04-10  Jim Meyering  <meyering@redhat.com>
17874
17875         maint.mk: remove useless semicolon and backslash
17876         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17877         semicolon and backslash.
17878
17879 2011-04-10  Bruno Haible  <bruno@clisp.org>
17880
17881         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17882         * modules/stdint-tests (Depends-on): Add wchar.
17883
17884 2011-04-10  Jim Meyering  <meyering@redhat.com>
17885
17886         maint: remove doubled words in comments, e.g., s/a a/a/
17887         * lib/strptime.c (day_of_the_week): s/the the/the/
17888         * tests/test-chown.h (test_chown): s/a a/a/
17889
17890         test-chown.h: correct a cast
17891         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17892         when the destination is a stat.st_gid.
17893
17894 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17895
17896         getaddrinfo: Fix test for sa_len member.
17897         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17898         include <sys/types.h> before <sys/socket.h>.
17899
17900 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17901
17902         maint: change "can not" to "cannot"
17903         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17904         boundaries.
17905
17906 2011-04-09  Jim Meyering  <meyering@redhat.com>
17907
17908         maint: change "a a" to "a"
17909         * tests/test-lchown.h (test_lchown): s/a a/a/
17910
17911         maint.mk: prohibit \<the the\>
17912         * top/maint.mk (sc_prohibit_the_the): New rule.
17913
17914         maint: fix "the the" in comment
17915         * lib/count-one-bits.h: s/the the/the/
17916
17917         maint: change "can not" to "cannot"
17918         But do not change the occurrences in maintain.texi or in
17919         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17920         * doc/gnulib-tool.texi: s/can not/cannot/
17921         * doc/posix-functions/accept.texi (accept): Likewise.
17922         * doc/posix-functions/socket.texi (socket): Likewise.
17923         * lib/mbrtowc.c: Likewise.
17924
17925         maint.mk: prohibit use of "can not"
17926         * top/maint.mk (sc_prohibit_can_not): New rule.
17927         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17928
17929 2011-04-09  Bruno Haible  <bruno@clisp.org>
17930
17931         careadlinkat: Guard against misuse of careadlinkatcwd.
17932         * lib/careadlinkat.c: Include <stdlib.h>.
17933         (careadlinkatcwd): Check that the fd argument is as expected.
17934
17935 2011-04-09  Bruno Haible  <bruno@clisp.org>
17936
17937         careadlinkat: Use common coding style.
17938         * lib/careadlinkat.c: Move gnulib includes after system includes.
17939
17940 2011-04-09  Bruno Haible  <bruno@clisp.org>
17941
17942         careadlinkat: Clarify specification.
17943         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17944         (careadlinkatcwd): Add comment.
17945         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17946
17947 2011-04-09  Bruno Haible  <bruno@clisp.org>
17948
17949         areadlinkat: Avoid link error on many platforms.
17950         * modules/areadlinkat (Depends-on): Add areadlink.
17951
17952 2011-04-09  Bruno Haible  <bruno@clisp.org>
17953
17954         allocator, careadlinkat: Fix double-inclusion guard.
17955         * lib/allocator.h: Fix double-inclusion guard.
17956         * lib/careadlinkat.h: Likewise.
17957
17958 2011-04-09  Bruno Haible  <bruno@clisp.org>
17959
17960         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17961         * lib/relocwrapper.c: Update dependencies hierarchy.
17962         * build-aux/install-reloc: Update list of files to be compiled.
17963         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17964         lib/allocator.[hc].
17965
17966 2011-04-08  Eric Blake  <eblake@redhat.com>
17967
17968         strftime: silence gnulib-tool warning
17969         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17970
17971 2011-04-08  Bruno Haible  <bruno@clisp.org>
17972
17973         verify: Fix syntax error with GCC 4.6 in C++ mode.
17974         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17975         (HAVE_STATIC_ASSERT): New macro.
17976         (verify_true, verify): Use 'static_assert' if it is supported and
17977         '_Static_assert' is not supported.
17978
17979 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17980
17981         allocator: New module.
17982         * modules/allocator, lib/allocator.c: New files.
17983         * lib/allocator.h (stdlib_allocator): New decl.
17984         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17985         Remove.  Do not include <stdlib.h>.
17986         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17987         * modules/careadlinkat (Files): Remove lib/allocator.h.
17988         (Depends-on): Add allocator.
17989
17990         stdlib: let modules use system malloc, realloc
17991         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17992         if !_GL_USE_STDLIB_ALLOC.
17993         (malloc, realloc): Limit this change to a smaller scope.
17994
17995         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17996         (malloc, realloc): Don't #undef; no longer needed.
17997         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17998         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17999         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18000         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18001         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18002         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18003         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18004         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18005
18006         careadlinkat: rename members to avoid problem
18007         * lib/allocator.h (struct allocator): Rename members from
18008         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18009         and realloc are #define'd.  Reported by Eric Blake in
18010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18011         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18012
18013 2011-04-08  Eric Blake  <eblake@redhat.com>
18014
18015         nonblocking: reduce dependency
18016         * tests/test-nonblocking.c: Only test sockets when in use.
18017         * modules/nonblocking-tests (Depends-on): Drop socket.
18018         (Makefile.am): Link even if sockets are not present.
18019         * modules/pipe2-tests (Makefile.am): Likewise.
18020         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18021
18022         pipe2: fix O_NONBLOCK support on mingw
18023         * modules/pipe2 (Depends-on): Add nonblocking.
18024         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18025         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18026         * tests/test-nonblocking.c (main): Likewise.
18027         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18028
18029         fcntl-h: fix O_ACCMODE on cygwin
18030         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18031         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18032
18033         pipe-filter: drop O_NONBLOCK workarounds
18034         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18035         * modules/pipe-filter-ii (Depends-on): Likewise.
18036         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18037
18038         nonblocking: provide O_NONBLOCK for mingw
18039         * modules/nonblocking (Depends-on): Add open.
18040         (configure.ac): Set new witness macro.
18041         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18042         * modules/fcntl-h (Makefile.am): Substitute it.
18043         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18044         nonblocking module is in use.
18045         * lib/nonblocking.c: Adjust portability test.
18046         * lib/open.c (open): Don't let native open see gnulib flag.
18047         * tests/test-fcntl-h.c (main): Enhance test.
18048         * tests/test-open.h (test_open): Likewise.
18049         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18050
18051         careadlinkat: fix compilation error on mingw
18052         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18053         within struct allocator.
18054
18055 2011-04-06  Eric Blake  <eblake@redhat.com>
18056
18057         binary-io: relicense under LGPLv2+
18058         * modules/binary-io (License): Relax to LGPLv2+.
18059         Requested for libvirt, and required by pipe2.
18060
18061 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18062
18063         verify: use _Static_assert if available
18064         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18065         (verify_true, verify): Use it if available.  This generates better
18066         diagnostics with GCC 4.6.0 and later.
18067
18068 2011-04-05  Bruno Haible  <bruno@clisp.org>
18069
18070         Remove leftover generated .h files after config.status changed.
18071
18072         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18073         GL_GENERATE_ALLOCA_H.
18074         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18075         GL_GENERATE_ALLOCA_H evaluates to false.
18076
18077         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18078         GL_GENERATE_ARGZ_H.
18079         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18080         evaluates to false.
18081
18082         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18083         GL_GENERATE_BYTESWAP_H.
18084         * modules/byteswap (Makefile.am): Remove byteswap.h if
18085         GL_GENERATE_BYTESWAP_H evaluates to false.
18086
18087         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18088         GL_GENERATE_ERRNO_H.
18089         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18090         evaluates to false.
18091
18092         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18093         GL_GENERATE_FLOAT_H.
18094         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18095         evaluates to false.
18096
18097         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18098         GL_GENERATE_FNMATCH_H.
18099         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18100         GL_GENERATE_FNMATCH_H evaluates to false.
18101
18102         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18103         GL_GENERATE_GLOB_H.
18104         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18105         evaluates to false.
18106
18107         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18108         automake conditional GL_GENERATE_ICONV_H.
18109         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18110         evaluates to false.
18111
18112         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18113         GL_GENERATE_NETINET_IN_H.
18114         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18115         GL_GENERATE_NETINET_IN_H evaluates to false.
18116
18117         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18118         conditional GL_GENERATE_PTHREAD_H.
18119         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18120         * modules/pthread (Makefile.am): Remove pthread.h if
18121         GL_GENERATE_PTHREAD_H evaluates to false.
18122
18123         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18124         GL_GENERATE_SCHED_H.
18125         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18126         evaluates to false.
18127
18128         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18129         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18130         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18131         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18132
18133         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18134         GL_GENERATE_STDARG_H.
18135         * modules/stdarg (Makefile.am): Remove stdarg.h if
18136         GL_GENERATE_STDARG_H evaluates to false.
18137
18138         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18139         GL_GENERATE_STDBOOL_H.
18140         * modules/stdbool (Makefile.am): Remove stdbool.h if
18141         GL_GENERATE_STDBOOL_H evaluates to false.
18142
18143         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18144         conditional GL_GENERATE_STDDEF_H.
18145         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18146         * modules/stddef (Makefile.am): Remove stddef.h if
18147         GL_GENERATE_STDDEF_H evaluates to false.
18148
18149         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18150         GL_GENERATE_STDINT_H.
18151         * modules/stdint (Makefile.am): Remove stdint.h if
18152         GL_GENERATE_STDINT_H evaluates to false.
18153
18154         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18155         GL_GENERATE_SYSEXITS_H.
18156         * modules/sysexits (Makefile.am): Remove sysexits.h if
18157         GL_GENERATE_SYSEXITS_H evaluates to false.
18158
18159         Reported by Karl Berry and Ralf Wildenhues.
18160
18161 2011-04-05  Bruno Haible  <bruno@clisp.org>
18162
18163         Ensure to rebuild generated .h files when config.status has changed.
18164         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18165         config.status.
18166         * modules/ctype (Makefile.am): Likewise.
18167         * modules/dirent (Makefile.am): Likewise.
18168         * modules/errno (Makefile.am): Likewise.
18169         * modules/fcntl-h (Makefile.am): Likewise.
18170         * modules/float (Makefile.am): Likewise.
18171         * modules/getopt-posix (Makefile.am): Likewise.
18172         * modules/glob (Makefile.am): Likewise.
18173         * modules/iconv-h (Makefile.am): Likewise.
18174         * modules/inttypes (Makefile.am): Likewise.
18175         * modules/langinfo (Makefile.am): Likewise.
18176         * modules/locale (Makefile.am): Likewise.
18177         * modules/math (Makefile.am): Likewise.
18178         * modules/netdb (Makefile.am): Likewise.
18179         * modules/netinet_in (Makefile.am): Likewise.
18180         * modules/poll-h (Makefile.am): Likewise.
18181         * modules/pthread (Makefile.am): Likewise.
18182         * modules/pty (Makefile.am): Likewise.
18183         * modules/sched (Makefile.am): Likewise.
18184         * modules/search (Makefile.am): Likewise.
18185         * modules/selinux-h (Makefile.am): Likewise.
18186         * modules/signal (Makefile.am): Likewise.
18187         * modules/spawn (Makefile.am): Likewise.
18188         * modules/stdarg (Makefile.am): Likewise.
18189         * modules/stdbool (Makefile.am): Likewise.
18190         * modules/stddef (Makefile.am): Likewise.
18191         * modules/stdint (Makefile.am): Likewise.
18192         * modules/stdio (Makefile.am): Likewise.
18193         * modules/stdlib (Makefile.am): Likewise.
18194         * modules/string (Makefile.am): Likewise.
18195         * modules/strings (Makefile.am): Likewise.
18196         * modules/sys_file (Makefile.am): Likewise.
18197         * modules/sys_ioctl (Makefile.am): Likewise.
18198         * modules/sys_select (Makefile.am): Likewise.
18199         * modules/sys_socket (Makefile.am): Likewise.
18200         * modules/sys_stat (Makefile.am): Likewise.
18201         * modules/sys_time (Makefile.am): Likewise.
18202         * modules/sys_times (Makefile.am): Likewise.
18203         * modules/sys_utsname (Makefile.am): Likewise.
18204         * modules/sys_wait (Makefile.am): Likewise.
18205         * modules/sysexits (Makefile.am): Likewise.
18206         * modules/termios (Makefile.am): Likewise.
18207         * modules/time (Makefile.am): Likewise.
18208         * modules/unistd (Makefile.am): Likewise.
18209         * modules/wchar (Makefile.am): Likewise.
18210         * modules/wctype-h (Makefile.am): Likewise.
18211         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18212
18213 2011-04-05  Bruno Haible  <bruno@clisp.org>
18214
18215         pipe2: Relicense under LGPLv2+.
18216         * modules/pipe2 (License): Change to LGPLv2+.
18217         Requested by Eric Blake, for libvirt.
18218
18219 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18220
18221         bootstrap: compute gnulib_extra_files after updating build_aux
18222         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18223         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18224
18225 2011-04-05  Eric Blake  <eblake@redhat.com>
18226
18227         bootstrap: preserve git whitelist item sorting
18228         * build-aux/bootstrap (sort_patterns): New function.
18229         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18230
18231 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18232
18233         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18234         sc_space_tab check.
18235
18236 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18237
18238         areadlink, areadlinkat: rewrite in terms of careadlinkat
18239         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18240         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18241         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18242         (malloc, realloc): Remove #undefs.
18243         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18244         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18245         readlink, ssize_t, stdint, unistd.
18246         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18247         areadlink, stdint.
18248
18249         careadlinkat: new module
18250         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18251         * modules/careadlinkat: New files, written by me with
18252         a review and feedback from Ben Pfaff in
18253         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18254
18255 2011-04-01  Bruno Haible  <bruno@clisp.org>
18256
18257         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18258         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18259         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18260         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18261         Reported by Bruce Korb <bruce.korb@gmail.com>.
18262
18263 2011-04-01  Bruno Haible  <bruno@clisp.org>
18264
18265         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18266         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18267         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18268         * modules/wcpcpy (Depends-on): Add extensions.
18269         * modules/wcpncpy (Depends-on): Likewise.
18270         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18271         systems.
18272         * doc/posix-functions/wcpncpy.texi: Likewise.
18273         * doc/posix-functions/wcwidth.texi: Likewise.
18274
18275 2011-03-31  Eric Blake  <eblake@redhat.com>
18276
18277         nonblocking: fix mingw test failures
18278         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18279         non-blocking flag on regular file.
18280         (get_nonblocking_flag): Set errno on invalid fd.
18281         * tests/test-nonblocking.c (main): Avoid test failure on
18282         directories if fchdir is not active.
18283         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18284
18285 2011-03-31  Bruno Haible  <bruno@clisp.org>
18286
18287         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18288         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18289         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18290         Reported by Simon Josefsson <simon@josefsson.org>.
18291
18292 2011-03-31  Bruno Haible  <bruno@clisp.org>
18293         and Eric Blake  <eblake@redhat.com>
18294
18295         nonblocking: new module
18296         * modules/nonblocking: New module.
18297         * modules/nonblocking-tests: Likewise.
18298         * lib/nonblocking.h: New file.
18299         * lib/nonblocking.c: Likewise.
18300         * tests/test-nonblocking.c: New test.
18301         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18302
18303 2011-03-30  Bruno Haible  <bruno@clisp.org>
18304
18305         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18306         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18307         instead of 'printf' format for GCC >= 4.4.
18308         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18309         (fprintf, printf, vfprintf, vprintf): Declare with
18310         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18311         the system's vfprintf() function.
18312         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18313
18314 2011-03-30  Eric Blake  <eblake@redhat.com>
18315
18316         passfd: fix scoping bug
18317         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18318         before sendmsg/recvmsg.
18319
18320         passfd: standardize coding conventions
18321         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18322         can be learned at compile time.
18323         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18324         ifdefs.
18325         (sendfd, recvfd): Follow gnulib code conventions.
18326
18327         passfd: fix incorrect sendmsg arguments
18328         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18329         incorrect msg_controllen value.
18330         * modules/passfd-tests (Depends-on): Check for alarm.
18331         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18332         Reported by Bastien ROUCARIES.
18333
18334 2011-03-30  Bruno Haible  <bruno@clisp.org>
18335
18336         c-strcasestr: Relicense under LGPLv2+.
18337         * modules/c-strcasestr (License): Change to LGPLv2+.
18338         Requested by Eric Blake, for libvirt.
18339
18340 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18341
18342         * users.txt: Add libidn2.  Fix libtasn1 link.
18343
18344 2011-03-30  Jim Meyering  <meyering@redhat.com>
18345
18346         tests: readlink* ("",... fails with EINVAL on newer kernels
18347         readlink and readlinkat have typically failed with ENOENT for
18348         the invalid, empty file name,  "".  However, with the advent
18349         of linux-2.6.39, they fail with EINVAL.
18350         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18351         when operating on the empty file name.
18352         * tests/test-readlink.h (test_readlink): Likewise.
18353
18354 2011-03-29  Bruno Haible  <bruno@clisp.org>
18355
18356         Relicense some modules under LGPLv2+, for libidn2.
18357         * modules/array-mergesort (License): Change to LGPLv2+.
18358         * modules/c-strcaseeq (License): Likewise.
18359         * modules/striconveh (License): Likewise.
18360         * modules/striconveha (License): Likewise.
18361         * modules/uniconv/base (License): Likewise.
18362         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18363         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18364         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18365         * modules/unictype/base (License): Likewise.
18366         * modules/unictype/bidiclass-of (License): Likewise.
18367         * modules/unictype/category-M (License): Likewise.
18368         * modules/unictype/category-none (License): Likewise.
18369         * modules/unictype/category-of (License): Likewise.
18370         * modules/unictype/category-test (License): Likewise.
18371         * modules/unictype/category-test-withtable (License): Likewise.
18372         * modules/unictype/combining-class (License): Likewise.
18373         * modules/unictype/joiningtype-of (License): Likewise.
18374         * modules/unictype/scripts (License): Likewise.
18375         * modules/uninorm/base (License): Likewise.
18376         * modules/uninorm/canonical-decomposition (License): Likewise.
18377         * modules/uninorm/composition (License): Likewise.
18378         * modules/uninorm/decompose-internal (License): Likewise.
18379         * modules/uninorm/decomposition-table (License): Likewise.
18380         * modules/uninorm/nfc (License): Likewise.
18381         * modules/uninorm/nfd (License): Likewise.
18382         * modules/uninorm/u32-normalize (License): Likewise.
18383         * modules/unistr/base (License): Likewise.
18384         * modules/unistr/u32-cpy (License): Likewise.
18385         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18386         * modules/unistr/u32-to-u8 (License): Likewise.
18387         * modules/unistr/u32-uctomb (License): Likewise.
18388         * modules/unistr/u8-check (License): Likewise.
18389         * modules/unistr/u8-mblen (License): Likewise.
18390         * modules/unistr/u8-mbtouc (License): Likewise.
18391         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18392         * modules/unistr/u8-mbtoucr (License): Likewise.
18393         * modules/unistr/u8-prev (License): Likewise.
18394         * modules/unistr/u8-strlen (License): Likewise.
18395         * modules/unistr/u8-to-u32 (License): Likewise.
18396         * modules/unistr/u8-uctomb (License): Likewise.
18397         * modules/unitypes (License): Likewise.
18398         Requested by Simon Josefsson.
18399
18400 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18401
18402         lib-symbol-visibility: Add a notice.
18403         * modules/lib-symbol-visibility (Notice): New field.
18404
18405 2011-03-29  Bruno Haible  <bruno@clisp.org>
18406
18407         getaddrinfo: Doc fix.
18408         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18409         section "fixed in Gnulib".
18410
18411 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18412
18413         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18414         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18415
18416 2011-03-26  Bruno Haible  <bruno@clisp.org>
18417
18418         unictype/property-byname: Reduce the number of load-time relocations.
18419         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18420         (UC_PROPERTY_INDEX_*): New enumeration values.
18421         (uc_property_byname): Convert an index from the lookup table to an
18422         uc_property_t.
18423         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18424         values.
18425
18426 2011-03-26  Bruno Haible  <bruno@clisp.org>
18427
18428         unictype/property-byname: Allow omitted word separators and aliases.
18429         * lib/unictype/pr_byname.gperf: Add property names without word
18430         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18431         for 'space'.
18432
18433 2011-03-26  Bruno Haible  <bruno@clisp.org>
18434
18435         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18436         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18437         also hyphens to space.
18438         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18439         without spaces.
18440         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18441
18442 2011-03-26  Bruno Haible  <bruno@clisp.org>
18443
18444         unictype/joiningtype-byname: Recognize long names as well.
18445         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18446         a long name.
18447         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18448         unictype/joiningtype_byname.h.
18449         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18450         * lib/unictype/joiningtype_byname.gperf: New file.
18451         * modules/unictype/joiningtype-byname (Files): Add
18452         lib/unictype/joiningtype_byname.gperf.
18453         (Depends-on): Add gperf.
18454         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18455         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18456         long names.
18457
18458         Tests for module 'unictype/joiningtype-longname'.
18459         * modules/unictype/joiningtype-longname-tests: New file.
18460         * tests/unictype/test-joiningtype_longname.c: New file.
18461
18462         New module 'unictype/joiningtype-longname'.
18463         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18464         * lib/unictype/joiningtype_longname.c: New file.
18465         * modules/unictype/joiningtype-longname: New file.
18466         * modules/unictype/joiningtype-all (Depends-on): Add
18467         unictype/joiningtype-longname.
18468
18469 2011-03-26  Bruno Haible  <bruno@clisp.org>
18470
18471         unictype/bidiclass-byname: Recognize long names as well.
18472         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18473         name.
18474         * lib/unictype/bidi_byname.c: Include <string.h>,
18475         unictype/bidi_byname.h.
18476         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18477         * lib/unictype/bidi_byname.gperf: New file.
18478         * modules/unictype/bidiclass-byname (Files): Add
18479         lib/unictype/bidi_byname.gperf.
18480         (Depends-on): Add gperf.
18481         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18482         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18483         long names.
18484
18485         Tests for module 'unictype/bidiclass-longname'.
18486         * modules/unictype/bidiclass-longname-tests: New file.
18487         * tests/unictype/test-bidi_longname.c: New file.
18488
18489         New module 'unictype/bidiclass-longname'.
18490         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18491         * lib/unictype/bidi_longname.c: New file.
18492         * modules/unictype/bidiclass-longname: New file.
18493         * modules/unictype/bidiclass-all (Depends-on): Add
18494         unictype/bidiclass-longname.
18495
18496 2011-03-26  Bruno Haible  <bruno@clisp.org>
18497
18498         unictype/bidi*: Rename modules.
18499         * modules/unictype/bidiclass-all: Renamed from
18500         modules/unictype/bidicategory-all.
18501         * modules/unictype/bidiclass-name: Renamed from
18502         modules/unictype/bidiclass-name.
18503         (Description): Update.
18504         * modules/unictype/bidiclass-name-tests: Renamed from
18505         modules/unictype/bidicategory-name-tests.
18506         * modules/unictype/bidiclass-byname: Renamed from
18507         modules/unictype/bidicategory-byname.
18508         (Description): Update.
18509         * modules/unictype/bidiclass-byname-tests: Renamed from
18510         modules/unictype/bidicategory-byname-tests.
18511         * modules/unictype/bidiclass-of: Renamed from
18512         modules/unictype/bidicategory-of.
18513         (Description): Update.
18514         * modules/unictype/bidiclass-of-tests: Renamed from
18515         modules/unictype/bidicategory-of-tests.
18516         * modules/unictype/bidiclass-test: Renamed from
18517         modules/unictype/bidicategory-test.
18518         (Description): Update.
18519         * modules/unictype/bidiclass-test-tests: Renamed from
18520         modules/unictype/bidicategory-test-tests.
18521         * modules/unictype/bidicategory-all: New file, a simple redirection.
18522         * modules/unictype/bidicategory-name: Likewise.
18523         * modules/unictype/bidicategory-byname: Likewise.
18524         * modules/unictype/bidicategory-of: Likewise.
18525         * modules/unictype/bidicategory-test: Likewise.
18526         * modules/unictype/property-bidi-* (Dependencies): Update.
18527         * lib/unictype/bidi_*.c: Update comment.
18528
18529 2011-03-26  Bruno Haible  <bruno@clisp.org>
18530
18531         unictype/bidi*: Rename functions, part 2.
18532         * modules/unictype/bidicategory-name (configure.ac): Update required
18533         libunistring version.
18534         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18535
18536 2011-03-25  Bruno Haible  <bruno@clisp.org>
18537
18538         New module 'unictype/combining-class-all'.
18539         * modules/unictype/combining-class-all: New file.
18540
18541         Tests for module 'unictype/combining-class-byname'.
18542         * modules/unictype/combining-class-byname-tests: New file.
18543         * tests/unictype/test-combiningclass_byname.c: New file.
18544
18545         New module 'unictype/combining-class-byname'.
18546         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18547         * lib/unictype/combiningclass_byname.c: New file.
18548         * lib/unictype/combiningclass_byname.gperf: New file.
18549         * modules/unictype/combining-class-byname: New file.
18550
18551         Tests for module 'unictype/combining-class-longname'.
18552         * modules/unictype/combining-class-longname-tests: New file.
18553         * tests/unictype/test-combiningclass_longname.c: New file.
18554
18555         New module 'unictype/combining-class-longname'.
18556         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18557         * lib/unictype/combiningclass_longname.c: New file.
18558         * modules/unictype/combining-class-longname: New file.
18559
18560         Tests for module 'unictype/combining-class-name'.
18561         * modules/unictype/combining-class-name-tests: New file.
18562         * tests/unictype/test-combiningclass_name.c: New file.
18563
18564         New module 'unictype/combining-class-name'.
18565         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18566         * lib/unictype/combiningclass_name.c: New file.
18567         * modules/unictype/combining-class-name: New file.
18568
18569 2011-03-25  Bruno Haible  <bruno@clisp.org>
18570
18571         unictype/combining-class: Rename source files.
18572         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18573         of unictype/combining.h.
18574         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18575         Update.
18576         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18577         * modules/unictype/combining-class (Description): Fix.
18578         (Files, Makefile.am): Update.
18579         * tests/unictype/test-combiningclass.c: Renamed from
18580         tests/unictype/test-combining.c.
18581         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18582
18583 2011-03-25  Bruno Haible  <bruno@clisp.org>
18584
18585         unictype: Update list of canonical combining classes.
18586         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18587
18588 2011-03-25  Bruno Haible  <bruno@clisp.org>
18589
18590         unictype/category-byname: Recognize long names as well.
18591         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18592         a long name.
18593         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18594         unictype/categ_byname.h.
18595         (UC_CATEGORY_INDEX_*): New enumeration values.
18596         (uc_general_category_byname): Use uc_general_category_lookup and
18597         convert from index to value.
18598         * lib/unictype/categ_byname.gperf: New file.
18599         * modules/unictype/category-byname (Files): Add
18600         lib/unictype/categ_byname.gperf.
18601         (Depends-on): Add gperf.
18602         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18603         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18604         long names.
18605
18606         Tests for module 'unictype/category-longname'.
18607         * modules/unictype/category-longname-tests: New file.
18608         * tests/unictype/test-categ_longname.c: New file.
18609
18610         New module 'unictype/category-longname'.
18611         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18612         * lib/unictype/categ_longname.c: New file.
18613         * modules/unictype/category-longname: New file.
18614         * modules/unictype/category-all (Depends-on): Add it.
18615
18616 2011-03-25  Bruno Haible  <bruno@clisp.org>
18617
18618         Tests for module 'unictype/category-LC'.
18619         * modules/unictype/category-LC-tests: New file.
18620         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18621
18622         New module 'unictype/category-LC'.
18623         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18624         (UC_CATEGORY_LC): New declaration.
18625         (UC_CASED_LETTER): New macro.
18626         * lib/gen-uni-tables.c (is_category_LC): New function.
18627         (output_categories): Also handle category LC.
18628         (UC_CATEGORY_MASK_LC): New enumeration value.
18629         (general_category_byname): Also handle category LC.
18630         * lib/unictype/categ_LC.c: New file.
18631         * lib/unictype/categ_LC.h: New file, automatically generated.
18632         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18633         category LC.
18634         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18635         * modules/unictype/category-LC: New file.
18636         * modules/unictype/category-byname (Depends-on): Add
18637         unictype/category-LC.
18638         * modules/unictype/category-all (Depends-on): Likewise.
18639
18640 2011-03-25  Eric Blake  <eblake@redhat.com>
18641
18642         xmalloc: revert yesterday's regression
18643         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18644         realloc's underlying behavior (allowing allocation of zero-size
18645         objects, especially if malloc-gnu is also in use).
18646
18647 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18648
18649         maint.mk: add missing version to VC-tag
18650         * top/maint.mk: git tag was missing actual tag name; add it.
18651
18652         valgrind: do leak checking, and exit with code 1 on error (not 0)
18653         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18654         to VALGRIND.
18655
18656 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18657
18658         posix-modules: say what it does.
18659         * posix-modules: Add a line to the --help output saying what it does.
18660
18661 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18662
18663         xmalloc: Do not leak if underlying realloc is C99 compatible.
18664         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18665         This avoids a leak on C99-based systems.  See
18666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18667
18668 2011-03-24  Eric Blake  <eblake@redhat.com>
18669
18670         realloc: document portability problem
18671         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18672         passing 0 size to realloc.
18673
18674 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18675
18676         doc: update users.txt
18677         * users.txt: Add cvsps, tmpwatch
18678
18679 2011-03-23  Matt Rice  <ratmice@gmail.com>
18680
18681         doc: update users.txt
18682         * users.txt: Add gdb.
18683
18684 2011-03-23  Jim Meyering  <meyering@redhat.com>
18685
18686         doc: update users.txt
18687         Looking through matches up to the following URL (there are still
18688         several more pages), I found several projects that use gnulib:
18689         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18690         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18691         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18692
18693 2011-03-22  Bruno Haible  <bruno@clisp.org>
18694
18695         unictype/bidi*: Rename functions.
18696         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18697         uc_bidi_class, uc_is_bidi_class): New declarations.
18698         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18699         uc_bidi_category_byname.
18700         (uc_bidi_category_byname): New function.
18701         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18702         u_bidi_category_name.
18703         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18704         (uc_bidi_category_name): New function.
18705         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18706         uc_bidi_category.
18707         (uc_bidi_category): New function.
18708         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18709         uc_is_bidi_category. Invoke uc_bidi_class.
18710         (uc_is_bidi_category): New function.
18711         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18712         instead of uc_bidi_category_byname.
18713         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18714         instead of uc_bidi_category_name.
18715         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18716         uc_bidi_category.
18717         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18718         instead of uc_is_bidi_category.
18719
18720 2011-03-21  Bruno Haible  <bruno@clisp.org>
18721
18722         New module 'unictype/joininggroup-all'.
18723         * modules/unictype/joininggroup-all: New file.
18724
18725         Tests for module 'unictype/joininggroup-of'.
18726         * modules/unictype/joininggroup-of-tests: New file.
18727         * tests/unictype/test-joininggroup_of.c: New file.
18728         * tests/unictype/test-joininggroup_of.h: New file, automatically
18729         generated by gen-uni-tables.
18730
18731         New module 'unictype/joininggroup-of'.
18732         * modules/unictype/joininggroup-of: New file.
18733         * lib/unictype/joininggroup_of.c: New file.
18734         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18735         gen-uni-tables.
18736
18737         Tests for module 'unictype/joininggroup-byname'.
18738         * modules/unictype/joininggroup-byname-tests: New file.
18739         * tests/unictype/test-joininggroup_byname.c: New file.
18740
18741         New module 'unictype/joininggroup-byname'.
18742         * modules/unictype/joininggroup-byname: New file.
18743         * lib/unictype/joininggroup_byname.c: New file.
18744         * lib/unictype/joininggroup_byname.gperf: New file.
18745
18746         Tests for module 'unictype/joininggroup-name'.
18747         * modules/unictype/joininggroup-name-tests: New file.
18748         * tests/unictype/test-joininggroup_name.c: New file.
18749
18750         New module 'unictype/joininggroup-name'.
18751         * modules/unictype/joininggroup-name: New file.
18752         * lib/unictype/joininggroup_name.c: New file.
18753         * lib/unictype/joininggroup_name.h: New file.
18754
18755         New module 'unictype/joiningtype-all'.
18756         * modules/unictype/joiningtype-all: New file.
18757
18758         Tests for module 'unictype/joiningtype-of'.
18759         * modules/unictype/joiningtype-of-tests: New file.
18760         * tests/unictype/test-joiningtype_of.c: New file.
18761         * tests/unictype/test-joiningtype_of.h: New file, automatically
18762         generated by gen-uni-tables.
18763
18764         New module 'unictype/joiningtype-of'.
18765         * modules/unictype/joiningtype-of: New file.
18766         * lib/unictype/joiningtype_of.c: New file.
18767         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18768         gen-uni-tables.
18769
18770         Tests for module 'unictype/joiningtype-byname'.
18771         * modules/unictype/joiningtype-byname-tests: New file.
18772         * tests/unictype/test-joiningtype_byname.c: New file.
18773
18774         New module 'unictype/joiningtype-byname'.
18775         * modules/unictype/joiningtype-byname: New file.
18776         * lib/unictype/joiningtype_byname.c: New file.
18777
18778         Tests for module 'unictype/joiningtype-name'.
18779         * modules/unictype/joiningtype-name-tests: New file.
18780         * tests/unictype/test-joiningtype_name.c: New file.
18781
18782         New module 'unictype/joiningtype-name'.
18783         * modules/unictype/joiningtype-name: New file.
18784         * lib/unictype/joiningtype_name.c: New file.
18785
18786         unictype: Add support for Arabic shaping properties.
18787         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18788         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18789         declarations.
18790         (UC_JOINING_GROUP_*): New enumeration values.
18791         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18792         declarations.
18793         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18794         (unicode_joining_type): New variable.
18795         (UC_JOINING_GROUP_*): New enumeration values.
18796         (unicode_joining_group): New variable.
18797         (fill_arabicshaping, joining_type_as_c_identifier,
18798         output_joining_type_test, output_joining_type,
18799         joining_group_as_c_identifier, output_joining_group_test,
18800         output_joining_group): New functions.
18801         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18802         fill_arabicshaping and output_joining_type_test, output_joining_type,
18803         output_joining_group_test, output_joining_group.
18804         Reported by Simon Josefsson.
18805
18806 2011-03-21  Jim Meyering  <meyering@redhat.com>
18807
18808         strftime: fix a bug in yesterday's change
18809         * lib/strftime.c (add): Accommodate width's initial value of -1.
18810         Otherwise, nstrftime would copy uninitialized data into
18811         the result buffer.
18812
18813 2011-03-21  Jim Meyering  <meyering@redhat.com>
18814
18815         tests: add strftime-tests module
18816         * tests/test-strftime.c: New file.
18817         * modules/strftime-tests: New module.
18818
18819 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18820
18821         strftime: don't assume a byte count fits in 'int'
18822         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18823         found this problem by static analysis, using gcc -Wstrict-overflow
18824         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18825         on an integer overflow having undefined behavior, but it turns out
18826         that the argument is a size, which might not fit in 'int' anyway,
18827
18828 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18829
18830         stdio: don't require ignore_value around fwrite
18831
18832         This patch works around libc bug 11959
18833         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18834         Without this patch, applications must often write
18835         ignore_value (fwrite (...)) even though the ignore_value is
18836         not helpful here.  It's common to write many objects, using
18837         fwrite/printf/etc., and then use ferror to detect output error.
18838
18839         I considered making this patch optional, but decided against it,
18840         because libc is obviously being inconsistent here: there is no
18841         reason libc should insist that user code must inspect fwrite
18842         return's value without also insisting that it inspect printf's,
18843         putchar's, etc.  If user code wants to have a strict style where
18844         all these functions' values are checked (so that ferror need not
18845         be checked), we could add support for that style in a new gnulib
18846         module, but in the meantime it's better to be consistent and to
18847         support common usage.
18848
18849         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18850         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18851         that we are compiling in checking mode, and if not C++, and
18852         if not already wrapping fwrite for some other reason.
18853         (fwrite): #define to rpl_fwrite if the latter is defined.
18854
18855 2011-03-20  Bruno Haible  <bruno@clisp.org>
18856
18857         verror: Fix compilation error introduced on 2011-02-13.
18858         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18859         instead of __attribute__.
18860         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18861
18862 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18863             Bruno Haible  <bruno@clisp.org>
18864
18865         socklen: do not depend on sys_socket
18866         While trying to modify Emacs to use gnulib's socklen module,
18867         I discovered a circular dependency: socklen depends on sys_socket
18868         and vice versa.  Emacs can use socklen, but it does not need
18869         sys_socket because it has its own substitute for sys/socket.h.
18870         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18871         gl_TYPE_SOCKLEN_T.
18872         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18873         gl_PREREQ_SYS_H_SOCKET.
18874         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18875         gl_PREREQ_SYS_H_SOCKET.
18876         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18877         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18878         * modules/socklen (Depends-on): Do not depend on sys_socket.
18879         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18880
18881 2011-03-20  Jim Meyering  <meyering@redhat.com>
18882
18883         maint.mk: sort file names *after* new transformation
18884         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18885         prefix would have led to an unwarranted failure in GNU parted.
18886         Sort after that transformation.
18887
18888 2011-03-19  Jim Meyering  <meyering@redhat.com>
18889
18890         maint.mk: fix po-file syntax-check rule
18891         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18892         Patch by Bruno Haible.
18893
18894 2011-03-19  Bruno Haible  <bruno@clisp.org>
18895
18896         socklen: Update comment.
18897         * m4/socklen.m4: Update comment about platforms.
18898
18899 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18900             Bruno Haible  <bruno@clisp.org>
18901
18902         inet_ntop, inet_pton: Simplify.
18903         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18904         documented to provide socklen_t and we already depend on sys_socket.
18905         * modules/inet_pton (Depends-on): Likewise.
18906         * lib/arpa_inet.in.h: Adjust comment.
18907
18908 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18909             Bruno Haible  <bruno@clisp.org>
18910
18911         netdb: Simplify.
18912         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18913         documented to provide socklen_t and we already depend on sys_socket.
18914         * lib/netdb.in.h: Adjust comment.
18915
18916 2011-03-19  Bruno Haible  <bruno@clisp.org>
18917
18918         sys_socket, netdb: Document problem with socklen_t.
18919         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18920         platforms.
18921         * doc/posix-headers/netdb.texi: Likewise.
18922
18923 2011-03-18  Eric Blake  <eblake@redhat.com>
18924
18925         maint.mk: let po check work in VPATH build
18926         * top/maint.mk (po_file): Allow cfg.mk override.
18927         (sc_po_check): Allow VPATH use.
18928         Reported by Jiri Denemark.
18929
18930 2011-03-16  Jim Meyering  <meyering@redhat.com>
18931
18932         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18933         Before, you would have had to create one .x-sc_ file per rule in order
18934         to exempt offending files.  Now, you may instead use a Make variable --
18935         usually defined in cfg.mk -- whose name identifies the affected rule.
18936         * top/maint.mk (_sc_excl): Define.
18937         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18938         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18939
18940 2011-03-13  Bruno Haible  <bruno@clisp.org>
18941
18942         ignore-value tests: Avoid warnings.
18943         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18944         empty for gcc < 3.4.
18945
18946 2011-03-13  Bruno Haible  <bruno@clisp.org>
18947
18948         passfd: Fix link error on Solaris.
18949         * modules/passfd (Description): Correct.
18950         (Depends-on): Add socketlib.
18951         (Link): New section.
18952         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18953
18954 2011-03-13  Bruno Haible  <bruno@clisp.org>
18955
18956         passfd: Fix link error on AIX 5.2.
18957         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18958
18959 2011-03-13  Bruno Haible  <bruno@clisp.org>
18960
18961         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18962         * lib/sys_socket.in.h: Include <stddef.h>.
18963         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18964         CMSG_FIRSTHDR. Remove unused variable.
18965
18966 2011-03-13  Bruno Haible  <bruno@clisp.org>
18967
18968         passfd: Fix compilation error on OpenBSD.
18969         * lib/passfd.c: Include <sys/uio.h>.
18970
18971 2011-03-13  Bruno Haible  <bruno@clisp.org>
18972
18973         passfd test: Fix warnings.
18974         * tests/test-passfd.c: Include <sys/wait.h>.
18975         (main): Fix typo.
18976
18977 2011-03-13  Bruno Haible  <bruno@clisp.org>
18978
18979         passfd module, part 4, tweaks.
18980         * tests/test-passfd.c: Reorder includes.
18981         (main): Fix perror and printf calls.
18982
18983 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18984
18985         passfd module, part 4.
18986         * modules/passfd-tests: New file.
18987         * tests/test-passfd.c: New file.
18988
18989 2011-03-13  Jim Meyering  <meyering@redhat.com>
18990
18991         Makefile: rely on GNU make; derive syntax-check rule names
18992         Rather than requiring that each sc_ rule be listed as a dependent
18993         of "check", use features of GNU make to derive the list.
18994         * Makefile (syntax-check-rules): Define.
18995         (check): Depend on the new variable, not the hard-coded list.
18996
18997 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18998             Bruno Haible  <bruno@clisp.org>
18999
19000         passfd module, part 3.
19001         * lib/passfd.h (recvfd): Add a flags argument.
19002         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19003         (recvfd): Add a flags argument.
19004         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19005         exists.
19006         * modules/passfd (Depends-on): Add cloexec.
19007         Suggested by Eric Blake.
19008
19009 2011-03-13  Bruno Haible  <bruno@clisp.org>
19010
19011         passfd module, part 2, tweaks.
19012         * modules/passfd (Files): Reorder.
19013         (Depends-on): Remove errno.
19014         (Include): Remove <sys/socket.h>, <sys/un.h>.
19015         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19016         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19017         specification header. Include <sys/socket.h> always. Don't include
19018         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19019         (sendfd): Clarify that it sets errno when it fails.
19020         (recvfd): Fix specification.
19021
19022 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19023
19024         passfd module, part 2.
19025         * modules/passfd: New file.
19026         * lib/passfd.h: New file.
19027         * lib/passfd.c: New file.
19028
19029 2011-03-12  Bruno Haible  <bruno@clisp.org>
19030
19031         wcswidth, mbswidth: Avoid integer overflow.
19032         * lib/wcswidth.c: Include <limits.h>.
19033         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19034         * lib/mbswidth.c: Include <limits.h>.
19035         (mbsnwidth): Avoid 'int' overflow.
19036         Reported by Jim Meyering.
19037
19038 2011-03-12  Bruno Haible  <bruno@clisp.org>
19039
19040         futimens, utimensat: Avoid endless recursion on Solaris 10.
19041         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19042         Solaris.
19043         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19044         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19045
19046 2011-03-11  Jim Meyering  <meyering@redhat.com>
19047
19048         maint.mk: relax a regexp to accommodate other formatting styles
19049         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19050         between "ngettext" and the following "(".
19051
19052 2011-03-11  Pádraig Brady <P@draigBrady.com>
19053
19054         maint.mk: suppress a false positive warning
19055         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19056         diagnostics are marked with ngettext.
19057
19058 2011-03-10  Eric Blake  <eblake@redhat.com>
19059
19060         wchar: add explicit dependencies, for Tru64
19061         * modules/mbmemcasecoll (Depends-on): Add wchar.
19062         * modules/mbtowc (Depends-on): Likewise.
19063         * modules/vasnprintf (Depends-on): Likewise.
19064         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19065         * modules/wctomb (Depends-on): Likewise.
19066         Reported by Peter O'Gorman.
19067
19068 2011-03-08  Bruno Haible  <bruno@clisp.org>
19069
19070         passfd module, part 1, tweaks.
19071         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19072         Improve indentation. Improve AC_MSG_CHECKING messages.
19073         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19074         gl_SOCKET_FAMILIES.
19075
19076 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19077
19078         passfd module, part 1.
19079         * m4/afunix.m4: New file.
19080         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19081         sockets.
19082
19083 2011-03-08  Bruno Haible  <bruno@clisp.org>
19084
19085         regex-quote: New API.
19086         * lib/regex-quote.h: Include <stdbool.h>.
19087         (struct regex_quote_spec): New type.
19088         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19089         New declarations.
19090         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19091         'const struct regex_quote_spec *' argument.
19092         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19093         (pcre_special): New constant.
19094         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19095         New functions.
19096         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19097         'const struct regex_quote_spec *' argument.
19098         * modules/regex-quote (Depends-on): Add stdbool.
19099         * tests/test-regex-quote.c (check): Update for new API. Add test for
19100         anchored results.
19101         * NEWS: Mention the API change.
19102         Reported by Reuben Thomas and Eric Blake.
19103
19104 2011-03-06  Bruno Haible  <bruno@clisp.org>
19105
19106         regex-quote: Fix creation of POSIX extended regular expressions.
19107         * lib/regex-quote.c (ere_special): Add grouping and alternation
19108         operators.
19109
19110 2011-03-05  Bruno Haible  <bruno@clisp.org>
19111
19112         doc: Improve doc regarding autopoint vs. gnulib.
19113         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19114         disable autopoint while running autoreconf.
19115         Suggested by Ralf Wildenhues.
19116
19117 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19118
19119         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19120         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19121
19122 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19123
19124         parse-duration: remove xalloc.h dependency
19125         * lib/parse-duration.c (parse_period): handle NULL return from
19126         strdup instead of calling xstrdup().
19127         * modules/parse-duration: remove "xalloc" dependency
19128
19129 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19130
19131         bootstrap: honor m4_base when running aclocal
19132         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19133
19134 2011-03-02  Jim Meyering  <meyering@redhat.com>
19135
19136         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19137         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19138         on request from Matt Booth.
19139
19140 2011-03-01  Eric Blake  <eblake@redhat.com>
19141
19142         test-link: work on Hurd
19143         * tests/test-link.h (test_link): Hurd rejects linking directories
19144         with EISDIR instead of the POSIX-mandated EPERM.
19145
19146 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19147
19148         stdio: simplify by moving files to printf-posix, sigpipe
19149         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19150         since this symbol is needed only if printf is replaced.
19151         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19152         Require gl_ASM_SYMBOL_PREFIX.
19153         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19154         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19155         (Depends-on): Add 'raise'.
19156         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19157         * modules/stdio (Files): Remove lib/stdio-write.c,
19158         m4/asm-underscore.m4.
19159         (Depends-on): Remove 'raise'.
19160
19161         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19162         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19163         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19164         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19165
19166 2011-02-28  Bruno Haible  <bruno@clisp.org>
19167
19168         localcharset: Assume ANSI C behaviour of free().
19169         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19170         calling free().
19171         Suggested by Simon Josefsson <simon@josefsson.org>.
19172
19173 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19174             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19175             Bruno Haible  <bruno@clisp.org>  (tiny change)
19176
19177         On Cygwin, use /proc file system instead of win32 API.
19178         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19179         Win32 file names.
19180         (DllMain): Simplify by removing Cygwin specific code.
19181         (find_shared_library_fullname): Use Linux specific implementation also
19182         for Cygwin.
19183         (get_shared_library_fullname): Update accordingly.
19184         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19185         Win32 file names.
19186         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19187         Cygwin specific code.
19188
19189 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19190             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19191
19192         Fix OpenMP flag detection for various Fortran compilers.
19193         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19194         OpenMP-conditional compilation construct, to force compile
19195         failure with missing OpenMP flag.
19196         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19197
19198 2011-02-25  Eric Blake  <eblake@redhat.com>
19199
19200         strstr: expand test coverage
19201         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19202         compilation.
19203         * tests/test-memmem.c (main): Duplicate tests.
19204         * tests/test-strcasestr.c (main): Likewise.
19205         * tests/test-c-strcasestr.c (main): Likewise.
19206
19207 2011-02-25  Jim Meyering  <meyering@redhat.com>
19208
19209         maint.mk: detect missing-NL-at-EOF, too
19210         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19211         it also detects when a file lacks a newline at EOF.
19212         (require_exactly_one_NL_at_EOF_): Renamed from
19213         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19214         since people may well have .x-sc_... file names tied to the
19215         existing name.  Suggested by Eric Blake.
19216
19217 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19218
19219         dirname: move m4/dos.m4 functionality into lib/dosname.h
19220
19221         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19222         extracts symbols from it, puts them into config.h; but it's much
19223         easier to use the symbols directly.  filename.h already does this,
19224         but it disagrees with dos.m4 in some respects.  This patch
19225         introduces a different include file dosname.h that packages up
19226         dos.m4, and then later we can work on merging filename.h and
19227         dosname.h.  Applications that need only the easy-to-configure
19228         symbols should consider including dosname.h rather than dirname.h.
19229         * NEWS: Mention incompatible changes.
19230         * m4/dos.m4: Remove.
19231         * lib/dosname.h, modules/dosname: New files.
19232         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19233         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19234         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19235         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19236         Include dosname.h, not dirname.h.
19237         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19238         Include dosname.h, for definitions of symbols like ISSLASH
19239         that used to be in config.h.
19240         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19241         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19242         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19243         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19244         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19245         * modules/rmdir (Files): Likewise.
19246         * modules/stat (Files): Likewise.
19247         * modules/unlink (Files): Likewise.
19248         * modules/dirname-lgpl (Depends-on): Add dosname.
19249         * modules/lstat (Depends-on): Likewise.
19250         * modules/openat (Depends-on): Likewise.
19251         * modules/rmdir (Depends-on): Likewise.
19252         * modules/savewd (Depends-on): Likewise.
19253         * modules/stat (Depends-on): Likewise.
19254         * modules/unlink (Depends-on): Likewise.
19255         * modules/openat (Depends-on): Remove dirname-lgpl.
19256         * modules/savewd (Depends-on): Likewise.
19257         * tests/test-dirname.c: Do not use removed symbols like
19258         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19259         the remaining symbols, e.g., ISSLASH ('\\').
19260
19261 2011-02-25  Eric Blake  <eblake@redhat.com>
19262
19263         strstr: revert patches that introduced bug and pessimization
19264         * lib/str-two-way.h: Add another reference.
19265         (two_way_short_needle, two_way_long_needle): Revert changes from
19266         2011-02-24; they pessimize search speed.
19267         (critical_factorization): Partially revert changes from
19268         2010-06-22; they violate the requirement that the left half of the
19269         needle be smaller than the period of the needle.
19270
19271 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19272
19273         filenamecat: remove unnecessary dependency on dirname-lgpl
19274         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19275         is no direct dependency, just an indirect one via filenamecat-lgpl.
19276
19277         remove: remove unnecessary use of m4/dos.m4
19278         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19279         * modules/remove (FILES): Remove m4/dos.m4.
19280
19281         * lib/openat-proc.c: Don't include dirname.h; not needed.
19282
19283         backupfile: remove unnecessary use of m4/dos.m4
19284         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19285         of its symbols are used by the backupfile code.  backupfile.c does
19286         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19287         for the rare case of programs that want all their backup file
19288         names to live within 8+3 limits, and dos.m4 doesn't address that.
19289         * modules/backupfile (Files): Remove m4/dos.m4.
19290
19291 2011-02-24  Jim Meyering  <meyering@redhat.com>
19292
19293         strstr: fix a bug whereby strstr would mistakenly return NULL
19294         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19295         in period calculation.
19296         (two_way_long_needle): Likewise.
19297         The original problem was reported by Mike Stump in
19298         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19299         Ralf Wildenhues provided the short needle and haystack.
19300         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19301         Add a more involved test to trigger the bug in two_way_long_needle.
19302
19303 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19304
19305         gnulib-tool: remove use of bold display in help screen
19306         * gnulib-tool (func_usage): Do not use bold display anymore in the
19307         help screen.  That was just meant to be a temporary emphasis for a
19308         backward-incompatible change.
19309
19310 2011-02-23  Bruno Haible  <bruno@clisp.org>
19311
19312         Fix misindentation of preprocessor directives.
19313         * lib/argp-namefrob.h: Reindent preprocessor directives.
19314         * lib/getopt_int.h (struct _getopt_data): Likewise.
19315         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19316         * lib/vasnprintf.c (decode_long_double): Likewise.
19317         * tests/test-argmatch.c: Insert blank lines, for clarity.
19318         * tests/test-exclude.c: Likewise.
19319
19320 2011-02-22  Bruno Haible  <bruno@clisp.org>
19321
19322         ioctl: Fix for MacOS X in 64-bit mode.
19323         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19324         value.
19325         Suggested by Eric Blake.
19326         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19327
19328 2011-02-22  Jim Meyering  <meyering@redhat.com>
19329
19330         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19331         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19332         in lib/.
19333
19334 2011-02-22  Eric Blake  <eblake@redhat.com>
19335
19336         maint: avoid any CDPATH issue
19337         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19338
19339         maint: adjust cpp indentation for my modules, as well
19340         * Makefile (sc_cpp_indent_check): Add my name.
19341         * lib/fbufmode.c: Filter through cppi.
19342         * lib/fpurge.c: Likewise.
19343         * lib/freadable.c: Likewise.
19344         * lib/freading.c: Likewise.
19345         * lib/fwritable.c: Likewise.
19346         * lib/fwriting.c: Likewise.
19347         * lib/sigaction.c: Likewise.
19348
19349 2011-02-22  Jim Meyering  <meyering@redhat.com>
19350
19351         maint: adjust cpp indentation to reflect nesting depth
19352         I.e., in a block of code that begins with an unnested "#if",
19353         put one space between the "#" in column 1 and following token.
19354         For example,
19355         -#include <sys/vfs.h>
19356         +# include <sys/vfs.h>
19357         Do this only in .c files that are part of a module I maintain.
19358         * lib/linkat.c: Filter through cppi.
19359         * lib/nanosleep.c: Likewise.
19360         * lib/openat.c: Likewise.
19361         * lib/openat-die.c: Likewise.
19362         * lib/dup3.c: Likewise.
19363         * lib/fchownat.c: Likewise.
19364         * lib/flock.c: Likewise.
19365         * lib/fsync.c: Likewise.
19366         * lib/fts.c: Likewise.
19367         * lib/getpass.c: Likewise.
19368         * lib/gettimeofday.c: Likewise.
19369         * lib/userspec.c: Likewise.
19370         * Makefile (sc_cpp_indent_check): New rule, to check this.
19371
19372 2011-02-22  Bruno Haible  <bruno@clisp.org>
19373
19374         New module 'wctomb'.
19375         * lib/stdlib.in.h (wctomb): New declaration.
19376         * lib/wctomb.c: New file.
19377         * lib/wctomb-impl.h: New file.
19378         * m4/wctomb.m4: New file.
19379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19380         REPLACE_WCTOMB.
19381         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19382         REPLACE_WCTOMB.
19383         * modules/wctomb: New file.
19384         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19385         * doc/posix-functions/wctomb.texi: Mention the new module.
19386         * modules/wctob (Depends-on): Add wctomb.
19387
19388 2011-02-22  Bruno Haible  <bruno@clisp.org>
19389
19390         New module 'mbtowc'.
19391         * lib/stdlib.in.h (mbtowc): New declaration.
19392         * lib/mbtowc.c: New file.
19393         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19394         * m4/mbtowc.m4: New file.
19395         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19396         REPLACE_MBTOWC.
19397         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19398         REPLACE_MBTOWC.
19399         * modules/mbtowc: New file.
19400         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19401         * doc/posix-functions/mbtowc.texi: Mention the new module.
19402         * modules/btowc (Depends-on): Add mbtowc.
19403
19404 2011-02-22  Bruno Haible  <bruno@clisp.org>
19405
19406         wcrtomb: Add more tests for native Windows platforms.
19407         * tests/test-wcrtomb-w32-1.sh: New file.
19408         * tests/test-wcrtomb-w32-2.sh: New file.
19409         * tests/test-wcrtomb-w32-3.sh: New file.
19410         * tests/test-wcrtomb-w32-4.sh: New file.
19411         * tests/test-wcrtomb-w32-5.sh: New file.
19412         * tests/test-wcrtomb-w32.c: New file.
19413         * modules/wcrtomb-tests (Files): Add them.
19414         (Makefile.am): Arrange to run these tests.
19415         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19416         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19417
19418 2011-02-20  Bruno Haible  <bruno@clisp.org>
19419
19420         wcrtomb: Enhance test.
19421         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19422
19423 2011-02-20  Bruno Haible  <bruno@clisp.org>
19424
19425         mbrtowc: Tiny optimization.
19426         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19427
19428 2011-02-20  Jim Meyering  <meyering@redhat.com>
19429
19430         test-exclude.c: remove unmatched #endif
19431         * tests/test-exclude.c: Remove stray #endif, left over from
19432         the change of a week ago.
19433
19434 2011-02-19  Jim Meyering  <meyering@redhat.com>
19435
19436         git-version-gen: skip "-dirty" check when appropriate
19437         * build-aux/git-version-gen: Don't run any git commands when the
19438         version string comes from .tarball-version.  Prior to this, we
19439         would run git update-index --refresh even from a just-unpacked
19440         tarball directory, and that could affect a .git/ directory in a
19441         parent of the build directory.  Reported by Mike Frysinger.
19442
19443 2011-02-19  Bruno Haible  <bruno@clisp.org>
19444
19445         unictype/property-byname: Reduce the size of the 'data' segment.
19446         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19447
19448 2011-02-19  Bruno Haible  <bruno@clisp.org>
19449
19450         unictype/scripts: Reduce the size of the 'data' segment.
19451         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19452         '%pic'.
19453         * lib/unictype/scripts_byname.gperf: Regenerated.
19454
19455 2011-02-19  Bruno Haible  <bruno@clisp.org>
19456
19457         stdint: Update documentation.
19458         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19459
19460 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19461
19462         stdint: omit redundant check for wchar.h
19463         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19464         always tests whether wchar.h exists, so remove the now-redundant test.
19465
19466 2011-02-18  Bruno Haible  <bruno@clisp.org>
19467
19468         stdint: Cut dependency to module 'wchar'.
19469         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19470         include the necessary prerequisites.
19471         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19472         * modules/stdint (Depends-on): Remove wchar.
19473         (Makefile.am): Substitute HAVE_WCHAR_H.
19474         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19475
19476 2011-02-18  Eric Blake  <eblake@redhat.com>
19477
19478         longlong: skip, rather than fail, on cross-compilation
19479         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19480         when cross-compiling; regression from 2011-02-16.
19481
19482 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19483
19484         * NEWS: Mention 2011-02-08 change to stdlib.
19485
19486 2011-02-17  Bruno Haible  <bruno@clisp.org>
19487
19488         getloadavg: Add comments about platforms.
19489         * m4/getloadavg.m4: Add comment.
19490         * lib/getloadavg.c: Likewise.
19491
19492 2011-02-17  Bruno Haible  <bruno@clisp.org>
19493
19494         getloadavg: Fix link error on Solaris 2.6.
19495         * modules/getloadavg (Link): New section.
19496         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19497         linking test-getloadavg.
19498         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19499         getloadavg.
19500
19501 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19502
19503         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19504         It was 'int', but this doesn't match the IRIX 6.5 manual.
19505         Suggested by Bruno Haible in
19506         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19507
19508 2011-02-17  Bruno Haible  <bruno@clisp.org>
19509
19510         havelib: Fix comments.
19511         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19512         change.
19513
19514 2011-02-17  Bruno Haible  <bruno@clisp.org>
19515
19516         havelib: Update config.rpath.
19517         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19518
19519 2011-02-17  Bruno Haible  <bruno@clisp.org>
19520
19521         getloadavg test: Add some plausibility checks.
19522         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19523         is improbable.
19524
19525 2011-02-16  Eric Blake  <eblake@redhat.com>
19526
19527         maintainer-makefile: make syntax-check a no-op from tarballs
19528         * top/maint.mk (no-vc-detected): New rule.
19529         (local-checks-available): Use it to avoid hanging if someone tries
19530         'make syntax-check' from a tarball.  Also append to any non-syntax
19531         checks already defined in cfg.mk.
19532
19533 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19534
19535         longlong: tune, particularly for common case of c99
19536
19537         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19538         or running anything if c99, or if unsigned long long int does not
19539         work.  In either case, we know the answer without further tests.
19540         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19541         it at most once, and use its results for both long long int and
19542         unsigned long long int.  This is more likely to be efficient in
19543         the common case where the program wants to check for both long
19544         long int and unsigned long long int.
19545         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19546         since the answer is already known.
19547
19548 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19549
19550         getloadavg: set errno
19551         * lib/getloadavg.c: Set errno when returning -1.  If no other
19552         error number looks appropriate, set it to ENOSYS if the getloadavg
19553         looks like it can't possibly ever work, ENOTSUP otherwise.
19554         Suggested by Bruno Haible in
19555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19556
19557         getloadavg: trim unused parts and speed up 'configure'
19558         * NEWS: Document this.
19559         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19560         always compiled if getloadavg is absent.
19561         Move test code to ...
19562         * tests/test-getloadavg.c: New file, containing previous
19563         contents of test from lib/getloadavg.c.  It also contains
19564         suggestions by Bruno Haible in
19565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19566         * modules/getloadavg-tests: New file.
19567         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19568         Do tests in the same order as they're needed for getloadavg.c.
19569         Omit setgid-related tests that generate symbols KMEM_GROUP,
19570         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19571         Do only the tests that are needed to see whether the system has
19572         getloadavg, moving the other tests into ...
19573         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19574         NLIST_NAME_UNION; nobody should be using it.  Do not define
19575         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19576         relevant, as the user of this module shouldn't care how getloadavg
19577         is implemented.
19578
19579         getloadavg: omit unused var
19580         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19581
19582 2011-02-15  Jim Meyering  <meyering@redhat.com>
19583
19584         doc: update users.txt
19585         * users.txt: Update iwhd's URL.
19586
19587 2011-02-13  Bruno Haible  <bruno@clisp.org>
19588
19589         Consistent macro naming for macros that use GCC __attribute__.
19590         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19591         _ATTRIBUTE_NONNULL_.
19592         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19593         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19594         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19595         ATTRIBUTE_DEPRECATED.
19596         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19597         ATTRIBUTE_NORETURN.
19598         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19599         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19600         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19601         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19602         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19603         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19604         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19605         ATTRIBUTE_SENTINEL.
19606         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19607         ATTRIBUTE_RETURN_CHECK.
19608         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19609         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19610         ATTRIBUTE_NORETURN.
19611         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19612         Reported by Paul Eggert.
19613
19614 2011-02-13  Bruno Haible  <bruno@clisp.org>
19615
19616         Don't interfere with a program's definition of __attribute__.
19617         * lib/argp.h (__attribute__): Remove definition.
19618         (_GL_ATTRIBUTE_FORMAT): New macro.
19619         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19620         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19621         (_GL_ATTRIBUTE_FORMAT): New macro.
19622         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19623         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19624         GCC 3 or newer.
19625         * lib/error.h (__attribute__): Remove definition.
19626         (_GL_ATTRIBUTE_FORMAT): New macro.
19627         (error, error_at_line): Use it.
19628         * lib/hash.h (__attribute__): Remove definition.
19629         (ATTRIBUTE_WUR): Update definition. Define always.
19630         * lib/openat.h (__attribute__): Remove definition.
19631         (ATTRIBUTE_NORETURN): Update definition. Define always.
19632         * lib/sigpipe-die.h (__attribute__): Remove definition.
19633         (ATTRIBUTE_NORETURN): Update definition. Define always.
19634         * lib/vasnprintf.h (__attribute__): Remove definition.
19635         (_GL_ATTRIBUTE_FORMAT): New macro.
19636         (asnprintf, vasnprintf): Use it.
19637         * lib/xalloc.h (__attribute__): Remove definition.
19638         (ATTRIBUTE_NORETURN): Update definition. Define always.
19639         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19640         * lib/xmemdup0.h (__attribute__): Remove definition.
19641         (ATTRIBUTE_NORETURN): Update definition. Define always.
19642         * lib/xprintf.h (__attribute__): Remove definition.
19643         (_GL_ATTRIBUTE_FORMAT): New macro.
19644         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19645         * lib/xstrtol.h (__attribute__): Remove definition.
19646         (ATTRIBUTE_NORETURN): Update definition. Define always.
19647         * lib/xvasprintf.h (__attribute__): Remove definition.
19648         (_GL_ATTRIBUTE_FORMAT): New macro.
19649         (xasprintf, xvasprintf): Use it.
19650         * tests/test-argmatch.c (__attribute__): Remove definition.
19651         (ATTRIBUTE_NORETURN): Update definition. Define always.
19652         * tests/test-exclude.c (__attribute__): Remove definition.
19653         (ATTRIBUTE_NORETURN): Update definition. Define always.
19654         Reported by Paul Eggert.
19655
19656 2011-02-13  Bruno Haible  <bruno@clisp.org>
19657
19658         mbrtowc: Add more tests for native Windows platforms.
19659         * tests/test-mbrtowc-w32-1.sh: New file.
19660         * tests/test-mbrtowc-w32-2.sh: New file.
19661         * tests/test-mbrtowc-w32-3.sh: New file.
19662         * tests/test-mbrtowc-w32-4.sh: New file.
19663         * tests/test-mbrtowc-w32-5.sh: New file.
19664         * tests/test-mbrtowc-w32.c: New file.
19665         * modules/mbrtowc-tests (Files): Add them.
19666         (Makefile.am): Arrange to run these tests.
19667         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19668         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19669
19670 2011-02-13  Bruno Haible  <bruno@clisp.org>
19671
19672         mbrtowc: Work around native Windows bug.
19673         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19674         guess when no suitable locale for testing was found.
19675         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19676
19677 2011-02-13  Bruno Haible  <bruno@clisp.org>
19678
19679         mbsinit: Work around mingw bug.
19680         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19681         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19682         Windows.
19683         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19684
19685 2011-02-13  Bruno Haible  <bruno@clisp.org>
19686
19687         mbsinit: Don't crash for a NULL argument.
19688         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19689         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19690
19691 2011-02-13  Bruno Haible  <bruno@clisp.org>
19692
19693         Don't interfere with a program's definition of __attribute__.
19694         * lib/stdio.in.h (__attribute__): Remove definition.
19695         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19696         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19697         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19698         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19699         * lib/string.in.h (__attribute__): Remove definition.
19700         Reported by Paul Eggert.
19701
19702 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19703
19704         stdlib: don't get in the way of non-GCC __attribute__
19705         See thread starting at
19706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19707         Revert previous stdlib change, installing the following instead:
19708         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19709         to get in the way of a non-GCC compiler that supports __attribute__.
19710         (_GL_ATTRIBUTE_RETURN): New macro.
19711         (_Exit): Use it instead of __attribute__.
19712
19713 2011-02-12  Bruno Haible  <bruno@clisp.org>
19714
19715         quotearg test: Avoid test failure on mingw.
19716         * tests/test-quotearg.sh: Convert the locale identifier from native
19717         Windows syntax to Unix syntax.
19718
19719 2011-02-12  Bruno Haible  <bruno@clisp.org>
19720
19721         setlocale: Prefer gnulib's override over libintl's override.
19722         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19723         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19724         GNULIB_defined_setlocale is set.
19725
19726 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19727
19728         stdlib: support non-GCC __attribute__
19729
19730         Fix a serious and tricky problem encountered when attempting to
19731         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19732         5.5, but it crashed due to memory corruption on Solaris 10 with
19733         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19734         bits that are otherwise zero.  This tagging is optional inside
19735         Emacs but is preferred and is used when __attribute__ ((__aligned
19736         (8))) works, as it does with both recent-enough GCC and with Sun C
19737         5.11.  However, Sun C 5.11 is not GCC and does not #define
19738         __GNUC__ and __GNUC_MINOR__.
19739
19740         When I added the getloadavg module to Emacs, it brought in
19741         stdlib.in.h, which contained this fragment:
19742
19743            #ifndef __attribute__
19744            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19745            #  define __attribute__(Spec)   /* empty */
19746            # endif
19747            #endif
19748
19749         When files that include <stdlib.h> were compiled with Sun C 5.11,
19750         the above code disabled __attribute__ ((__aligned (8))), which
19751         caused variables to not be properly aligned, which eventually led
19752         to the pointer corruption mentioned above.  (This was a bit hard
19753         to diagnose, unfortunately.)
19754
19755         Several "#define __attribute__(X) /* empty */" code snippets need
19756         to be eradicated from Gnulib to work with non-GCC compilers that
19757         support __attribute__.  The Autoconf way to do this is to test for
19758         each kind of attribute that we want support for, and selectively
19759         enable that in source code.
19760
19761         Fix this problem just for stdlib.h, by adding a test for the
19762         __noreturn__ attribute, and change stdlib.in.h to use that test
19763         when needed.  This technique can be easily generalized to the
19764         other *.in.h files and attributes, and a similar technique can be
19765         used for *.h and *.c files.  This patch is enough to solve the
19766         problem for Emacs + getloadavg, and I thought I'd publish it for
19767         feedback before undertaking further, similar fixes in other
19768         modules.
19769
19770         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19771         because it's not needed for stdlib.h.  It merely substitutes the
19772         value directly into stdlib.h.  We may well need to #define it, or
19773         similar symbols, for other modules, but it's nice to also have an
19774         option to not #define it for applications like Emacs that do not
19775         need it.
19776
19777         * lib/stdlib.in.h (__attribute__): Do not #define.
19778         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19779         be defined only if the _Exit module is also used.
19780         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19782         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19783         platforms.
19784         * modules/_Exit (Files): Add m4/attribute.m4.
19785         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19786         * m4/attribute.m4: New file.
19787
19788 2011-02-12  Bruno Haible  <bruno@clisp.org>
19789
19790         wcsrtombs: Work around bug on native Windows.
19791         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19792         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19793         instead of len.
19794         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19795
19796 2011-02-12  Bruno Haible  <bruno@clisp.org>
19797
19798         mbsrtowcs: Work around bug on native Windows.
19799         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19800         against mingw bug.
19801         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19802
19803 2011-02-12  Bruno Haible  <bruno@clisp.org>
19804
19805         Avoid setlocale bugs in tests.
19806         * modules/btowc (Dependencies): Add setlocale.
19807         * modules/c-strcase (Dependencies): Likewise.
19808         * modules/mbmemcasecmp (Dependencies): Likewise.
19809         * modules/mbmemcasecoll (Dependencies): Likewise.
19810         * modules/mbrtowc (Dependencies): Likewise.
19811         * modules/mbscasecmp (Dependencies): Likewise.
19812         * modules/mbscasestr (Dependencies): Likewise.
19813         * modules/mbschr (Dependencies): Likewise.
19814         * modules/mbscspn (Dependencies): Likewise.
19815         * modules/mbsinit (Dependencies): Likewise.
19816         * modules/mbsncasecmp (Dependencies): Likewise.
19817         * modules/mbsnrtowcs (Dependencies): Likewise.
19818         * modules/mbspbrk (Dependencies): Likewise.
19819         * modules/mbspcasecmp (Dependencies): Likewise.
19820         * modules/mbsrchr (Dependencies): Likewise.
19821         * modules/mbsrtowcs (Dependencies): Likewise.
19822         * modules/mbsspn (Dependencies): Likewise.
19823         * modules/mbsstr (Dependencies): Likewise.
19824         * modules/nl_langinfo (Dependencies): Likewise.
19825         * modules/quotearg (Dependencies): Likewise.
19826         * modules/unicase/locale-language (Dependencies): Likewise.
19827         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19828         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19829         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19830         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19831         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19832         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19833         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19834         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19835         * modules/vasnprintf-posix (Dependencies): Likewise.
19836         * modules/wcrtomb (Dependencies): Likewise.
19837         * modules/wcsnrtombs (Dependencies): Likewise.
19838         * modules/wcsrtombs (Dependencies): Likewise.
19839
19840 2011-02-12  Bruno Haible  <bruno@clisp.org>
19841
19842         setlocale: Workaround native Windows bug.
19843         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19844         succeeds but sets LC_CTYPE to "C", report a failure.
19845         * tests/test-setlocale2.sh: New file.
19846         * tests/test-setlocale2.c: New file.
19847         * modules/setlocale-tests (Files): Add the new files.
19848         (Makefile.am): Enable test-setlocale2.sh test.
19849         * doc/posix-functions/setlocale.texi: Mention workaround.
19850
19851 2011-02-11  Bruno Haible  <bruno@clisp.org>
19852
19853         Tests for module 'setlocale'.
19854         * modules/setlocale-tests: New file.
19855         * tests/test-setlocale1.sh: New file.
19856         * tests/test-setlocale1.c: New file.
19857
19858         New module 'setlocale'.
19859         * lib/locale.in.h (setlocale): New declaration.
19860         * lib/setlocale.c: New file, based on
19861         gettext/gettext-runtime/intl/setlocale.c.
19862         * m4/setlocale.m4: New file.
19863         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19864         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19865         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19866         REPLACE_SETLOCALE.
19867         * modules/setlocale: New file.
19868         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19869         * doc/posix-functions/setlocale.texi: Mention the new module.
19870
19871 2011-02-11  Bruno Haible  <bruno@clisp.org>
19872
19873         Prepare for locale dependent tests on mingw.
19874         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19875         because it has the wrong locale encoding.
19876         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19877         French_France.1252 instead of "fr".
19878         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19879         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19880         because it has the wrong locale encoding.
19881         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19882         native Windows, try Turkish_Turkey.65001.
19883         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19884         Chinese_China.54936.
19885
19886         Prepare for locale dependent tests on mingw.
19887         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19888         differently.
19889         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19890         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19891         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19892         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19893
19894 2011-02-11  Eric Blake  <eblake@redhat.com>
19895
19896         strptime: avoid compiler warnings
19897         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19898         compiler warnings about dead code.
19899         Reported by Daniel P. Berrange.
19900
19901 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19902
19903         doc: update users.txt
19904         * users.txt: Add rcs.
19905
19906 2011-02-10  John W. Eaton  <jwe@gnu.org>
19907
19908         doc: update users.txt
19909         * users.txt: Add octave.
19910
19911 2011-02-10  Jim Meyering  <meyering@redhat.com>
19912
19913         doc: update users.txt
19914         * users.txt: Add iwhd.
19915
19916 2011-02-09  Bruno Haible  <bruno@clisp.org>
19917
19918         gnulib-tool: Make copyright notice adjustment more robust.
19919         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19920         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19921         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19922         License".
19923         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19924
19925 2011-02-06  Bruno Haible  <bruno@clisp.org>
19926
19927         New module 'towctrans'.
19928         * modules/towctrans: New file.
19929         * lib/wctype.in.h (towctrans): New declaration.
19930         * lib/towctrans.c: New file.
19931         * lib/towctrans-impl.h: New file.
19932         * m4/towctrans.m4: New file.
19933         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19934         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19935         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19936         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19937         * doc/posix-functions/towctrans.texi: Mention the new module.
19938
19939 2011-02-06  Bruno Haible  <bruno@clisp.org>
19940
19941         New module 'wctrans'.
19942         * modules/wctrans: New file.
19943         * lib/wctype.in.h (wctrans): New declaration.
19944         * lib/wctrans.c: New file.
19945         * lib/wctrans-impl.h: New file.
19946         * m4/wctrans.m4: New file.
19947         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19948         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19949         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19950         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19951         * doc/posix-functions/wctrans.texi: Mention the new module.
19952
19953 2011-02-06  Bruno Haible  <bruno@clisp.org>
19954
19955         New module 'iswctype'.
19956         * modules/iswctype: New file.
19957         * lib/wctype.in.h (iswctype): New declaration.
19958         * lib/iswctype.c: New file.
19959         * lib/iswctype-impl.h: New file.
19960         * m4/iswctype.m4: New file.
19961         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19962         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19963         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19964         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19965         * doc/posix-functions/iswctype.texi: Mention the new module and the
19966         HP-UX 11.00 problem.
19967
19968 2011-02-06  Bruno Haible  <bruno@clisp.org>
19969
19970         New module 'wctype'.
19971         * modules/wctype: Change to represent the wctype() substitute.
19972         * lib/wctype.in.h (wctype): New declaration.
19973         * lib/wctype.c: New file.
19974         * lib/wctype-impl.h: New file.
19975         * m4/wctype.m4: New file.
19976         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19977         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19978         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19979         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19980         * doc/posix-functions/wctype.texi: Mention the new module and the
19981         HP-UX 11.00 problem.
19982
19983 2011-02-06  Bruno Haible  <bruno@clisp.org>
19984
19985         wctype-h: Ensure wctype_t and wctrans_t are defined.
19986         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19987         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19988         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19989         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19990         HAVE_WCTRANS_T.
19991         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19992
19993 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19994
19995         flock: fix license typo
19996
19997         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19998         omitted.
19999
20000 2011-02-08  Bruno Haible  <bruno@clisp.org>
20001
20002         Split large sed scripts, for HP-UX sed.
20003         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20004         to avoid HP-UX limit of 99 commands, in the near future.
20005         * modules/stdlib (Makefile.am): Likewise.
20006         * modules/unistd (Makefile.am): Likewise.
20007         * modules/wchar (Makefile.am): Likewise.
20008         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20009         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20010         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20011
20012 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20013             Bruno Haible  <bruno@clisp.org>
20014
20015         stdlib: improve random_r modularization
20016         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20017         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20018         you also need the random_r module to get this material right.
20019         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20020         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20021         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20022
20023 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20024
20025         stdlib: don't depend on stdint
20026         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20027         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20028         be independent of whether stdint.h is needed.
20029         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20030         here, instead of ...
20031         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20032         struct random_data should be using the random_r module, not just
20033         the stdlib module (which wouldn't make sense: what package needs
20034         just struct random_data without also needing random_r?).
20035         * modules/stdlib (Depends-on): Remove stdint.
20036
20037         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20038         See the thread rooted at
20039         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20040         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20041         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20042         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20043         __VMS)); previously it was always included (via fcntl--.h).
20044         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20045         hand; this is good enough for load averages.  Also, do not use
20046         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20047         flags directly if available and don't bother otherwise.  (Packages
20048         that need the extra reliability should use the modules that define
20049         these flags on older platforms that lack them.)
20050         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20051         fcntl-safer.
20052
20053 2011-02-08  Jim Meyering  <meyering@redhat.com>
20054
20055         di-set.h, ino-map.h: add multiple-inclusion guard
20056         Technically, the guard is required only for ino-map.h, due to its
20057         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20058         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20059         * lib/ino-map.h: Likewise.
20060
20061 2011-02-06  Bruno Haible  <bruno@clisp.org>
20062
20063         iswblank: Ensure declaration on glibc systems.
20064         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20065         * modules/iswblank (Dependencies): Add 'extensions'.
20066         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20067
20068 2011-02-06  Bruno Haible  <bruno@clisp.org>
20069
20070         New module 'iswblank'.
20071         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20072         * modules/iswblank: New file.
20073         * modules/wctype-h (Files): Remove lib/iswblank.c.
20074         (Makefile.am): Substitute GNULIB_ISWBLANK.
20075         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20076         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20077         (gl_WCTYPE_H_DEFAULTS): New macro.
20078         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20079         * modules/iswblank-tests: New file.
20080         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20081         * tests/test-wctype-h.c (main): Remove iswblank tests.
20082         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20083         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20084         of 'wctype-h'.
20085         * NEWS: Mention the change.
20086         * modules/mbchar (Depends-on): Add iswblank.
20087
20088 2011-02-08  Bruno Haible  <bruno@clisp.org>
20089
20090         di-set tests: Refactor.
20091         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20092         unnecessary includes.
20093         (ASSERT): Remove macro.
20094         (main): Make C90 compliant by avoiding variable declaration after
20095         statement.
20096         * modules/di-set-tests (Files): Add tests/macros.h.
20097
20098 2011-02-08  Bruno Haible  <bruno@clisp.org>
20099
20100         ino-map tests: Refactor.
20101         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20102         unnecessary includes.
20103         (ASSERT): Remove macro.
20104         (main): Make C90 compliant by avoiding variable declaration after
20105         statement.
20106         * modules/ino-map-tests (Files): Add tests/macros.h.
20107
20108 2011-02-08  Jim Meyering  <meyering@redhat.com>
20109
20110         di-set: add "const" to a cast
20111         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20112         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20113
20114 2011-02-06  Bruno Haible  <bruno@clisp.org>
20115
20116         Rename module 'wctype' to 'wctype-h'.
20117         * modules/wctype-h: Renamed from modules/wctype.
20118         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20119         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20120         (Files, Depends-on, Makefile.am): Update.
20121         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20122         (Files, Makefile.am): Update.
20123         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20124         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20125         * doc/posix-headers/wctype.texi: Update.
20126         * doc/posix-functions/iswalnum.texi: Update.
20127         * doc/posix-functions/iswalpha.texi: Update.
20128         * doc/posix-functions/iswblank.texi: Update.
20129         * doc/posix-functions/iswcntrl.texi: Update.
20130         * doc/posix-functions/iswdigit.texi: Update.
20131         * doc/posix-functions/iswgraph.texi: Update.
20132         * doc/posix-functions/iswlower.texi: Update.
20133         * doc/posix-functions/iswprint.texi: Update.
20134         * doc/posix-functions/iswpunct.texi: Update.
20135         * doc/posix-functions/iswspace.texi: Update.
20136         * doc/posix-functions/iswupper.texi: Update.
20137         * doc/posix-functions/iswxdigit.texi: Update.
20138         * doc/posix-functions/towlower.texi: Update.
20139         * doc/posix-functions/towupper.texi: Update.
20140         * NEWS: Mention the change.
20141         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20142         * modules/mbchar (Dependencies): Likewise.
20143         * modules/mbswidth (Dependencies): Likewise.
20144         * modules/quotearg (Dependencies): Likewise.
20145         * modules/regex (Dependencies): Likewise.
20146         * modules/wcscasecmp (Dependencies): Likewise.
20147         * modules/wcsncasecmp (Dependencies): Likewise.
20148         * modules/wcwidth (Dependencies): Likewise.
20149
20150 2011-02-06  Bruno Haible  <bruno@clisp.org>
20151
20152         New module 'wcswidth'.
20153         * modules/wcswidth: New file.
20154         * lib/wchar.in.h (wcswidth): New declaration.
20155         * lib/wcswidth.c: New file.
20156         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20157         * m4/wcswidth.m4: New file.
20158         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20159         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20160         REPLACE_WCSWIDTH.
20161         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20162         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20163         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20164         * doc/posix-functions/wcswidth.texi: Mention the new module.
20165
20166 2011-02-06  Bruno Haible  <bruno@clisp.org>
20167
20168         New module 'wcstok'.
20169         * modules/wcstok: New file.
20170         * lib/wchar.in.h (wcstok): New declaration.
20171         * lib/wcstok.c: New file.
20172         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20173         * m4/wcstok.m4: New file.
20174         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20175         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20176         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20177         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20178         * doc/posix-functions/wcstok.texi: Mention the new module.
20179
20180 2011-02-06  Bruno Haible  <bruno@clisp.org>
20181
20182         New module 'wcsstr'.
20183         * modules/wcsstr: New file.
20184         * lib/wchar.in.h (wcsstr): New declaration.
20185         * lib/wcsstr.c: New file.
20186         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20187         * m4/wcsstr.m4: New file.
20188         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20189         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20190         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20191         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20192         * doc/posix-functions/wcsstr.texi: Mention the new module.
20193
20194 2011-02-06  Bruno Haible  <bruno@clisp.org>
20195
20196         New module 'wcspbrk'.
20197         * modules/wcspbrk: New file.
20198         * lib/wchar.in.h (wcspbrk): New declaration.
20199         * lib/wcspbrk.c: New file.
20200         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20201         * m4/wcspbrk.m4: New file.
20202         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20203         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20204         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20205         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20206         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20207
20208 2011-02-06  Bruno Haible  <bruno@clisp.org>
20209
20210         New module 'wcsspn'.
20211         * modules/wcsspn: New file.
20212         * lib/wchar.in.h (wcsspn): New declaration.
20213         * lib/wcsspn.c: New file.
20214         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20215         * m4/wcsspn.m4: New file.
20216         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20217         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20218         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20219         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20220         * doc/posix-functions/wcsspn.texi: Mention the new module.
20221
20222 2011-02-06  Bruno Haible  <bruno@clisp.org>
20223
20224         New module 'wcscspn'.
20225         * modules/wcscspn: New file.
20226         * lib/wchar.in.h (wcscspn): New declaration.
20227         * lib/wcscspn.c: New file.
20228         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20229         * m4/wcscspn.m4: New file.
20230         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20231         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20232         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20233         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20234         * doc/posix-functions/wcscspn.texi: Mention the new module.
20235
20236 2011-02-06  Bruno Haible  <bruno@clisp.org>
20237
20238         New module 'wcsrchr'.
20239         * modules/wcsrchr: New file.
20240         * lib/wchar.in.h (wcsrchr): New declaration.
20241         * lib/wcsrchr.c: New file.
20242         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20243         * m4/wcsrchr.m4: New file.
20244         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20245         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20246         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20247         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20248         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20249
20250 2011-02-06  Bruno Haible  <bruno@clisp.org>
20251
20252         New module 'wcschr'.
20253         * modules/wcschr: New file.
20254         * lib/wchar.in.h (wcschr): New declaration.
20255         * lib/wcschr.c: New file.
20256         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20257         * m4/wcschr.m4: New file.
20258         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20259         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20260         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20261         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20262         * doc/posix-functions/wcschr.texi: Mention the new module.
20263
20264 2011-02-06  Bruno Haible  <bruno@clisp.org>
20265
20266         New module 'wcsdup'.
20267         * modules/wcsdup: New file.
20268         * lib/wchar.in.h (wcsdup): New declaration.
20269         * lib/wcsdup.c: New file.
20270         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20271         * m4/wcsdup.m4: New file.
20272         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20273         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20274         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20275         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20276         * doc/posix-functions/wcsdup.texi: Mention the new module.
20277
20278 2011-02-06  Bruno Haible  <bruno@clisp.org>
20279
20280         New module 'wcsxfrm'.
20281         * modules/wcsxfrm: New file.
20282         * lib/wchar.in.h (wcsxfrm): New declaration.
20283         * lib/wcsxfrm.c: New file.
20284         * lib/wcsxfrm-impl.h: New file.
20285         * m4/wcsxfrm.m4: New file.
20286         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20287         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20288         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20289         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20290         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20291
20292 2011-02-06  Bruno Haible  <bruno@clisp.org>
20293
20294         New module 'wcscoll'.
20295         * modules/wcscoll: New file.
20296         * lib/wchar.in.h (wcscoll): New declaration.
20297         * lib/wcscoll.c: New file.
20298         * lib/wcscoll-impl.h: New file.
20299         * m4/wcscoll.m4: New file.
20300         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20301         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20302         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20303         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20304         * doc/posix-functions/wcscoll.texi: Mention the new module.
20305
20306 2011-02-06  Bruno Haible  <bruno@clisp.org>
20307
20308         New module 'wcsncasecmp'.
20309         * modules/wcsncasecmp: New file.
20310         * lib/wchar.in.h (wcsncasecmp): New declaration.
20311         * lib/wcsncasecmp.c: New file.
20312         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20313         * m4/wcsncasecmp.m4: New file.
20314         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20315         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20316         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20317         HAVE_WCSNCASECMP.
20318         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20319         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20320
20321 2011-02-06  Bruno Haible  <bruno@clisp.org>
20322
20323         New module 'wcscasecmp'.
20324         * modules/wcscasecmp: New file.
20325         * lib/wchar.in.h (wcscasecmp): New declaration.
20326         * lib/wcscasecmp.c: New file.
20327         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20328         * m4/wcscasecmp.m4: New file.
20329         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20330         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20331         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20332         HAVE_WCSCASECMP.
20333         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20334         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20335
20336 2011-02-05  Bruno Haible  <bruno@clisp.org>
20337
20338         New module 'wcsncmp'.
20339         * modules/wcsncmp: New file.
20340         * lib/wchar.in.h (wcsncmp): New declaration.
20341         * lib/wcsncmp.c: New file.
20342         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20343         * m4/wcsncmp.m4: New file.
20344         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20345         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20346         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20347         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20348         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20349
20350 2011-02-05  Bruno Haible  <bruno@clisp.org>
20351
20352         New module 'wcscmp'.
20353         * modules/wcscmp: New file.
20354         * lib/wchar.in.h (wcscmp): New declaration.
20355         * lib/wcscmp.c: New file.
20356         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20357         * m4/wcscmp.m4: New file.
20358         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20359         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20360         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20361         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20362         * doc/posix-functions/wcscmp.texi: Mention the new module.
20363
20364 2011-02-05  Bruno Haible  <bruno@clisp.org>
20365
20366         New module 'wcsncat'.
20367         * modules/wcsncat: New file.
20368         * lib/wchar.in.h (wcsncat): New declaration.
20369         * lib/wcsncat.c: New file.
20370         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20371         * m4/wcsncat.m4: New file.
20372         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20373         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20374         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20375         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20376         * doc/posix-functions/wcsncat.texi: Mention the new module.
20377
20378 2011-02-05  Bruno Haible  <bruno@clisp.org>
20379
20380         New module 'wcscat'.
20381         * modules/wcscat: New file.
20382         * lib/wchar.in.h (wcscat): New declaration.
20383         * lib/wcscat.c: New file.
20384         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20385         * m4/wcscat.m4: New file.
20386         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20387         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20388         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20389         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20390         * doc/posix-functions/wcscat.texi: Mention the new module.
20391
20392 2011-02-05  Bruno Haible  <bruno@clisp.org>
20393
20394         New module 'wcpncpy'.
20395         * modules/wcpncpy: New file.
20396         * lib/wchar.in.h (wcpncpy): New declaration.
20397         * lib/wcpncpy.c: New file.
20398         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20399         * m4/wcpncpy.m4: New file.
20400         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20401         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20402         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20403         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20404         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20405
20406 2011-02-05  Bruno Haible  <bruno@clisp.org>
20407
20408         New module 'wcsncpy'.
20409         * modules/wcsncpy: New file.
20410         * lib/wchar.in.h (wcsncpy): New declaration.
20411         * lib/wcsncpy.c: New file.
20412         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20413         * m4/wcsncpy.m4: New file.
20414         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20415         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20416         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20417         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20418         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20419
20420 2011-02-05  Bruno Haible  <bruno@clisp.org>
20421
20422         New module 'wcpcpy'.
20423         * modules/wcpcpy: New file.
20424         * lib/wchar.in.h (wcpcpy): New declaration.
20425         * lib/wcpcpy.c: New file.
20426         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20427         * m4/wcpcpy.m4: New file.
20428         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20429         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20430         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20431         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20432         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20433
20434 2011-02-05  Bruno Haible  <bruno@clisp.org>
20435
20436         New module 'wcscpy'.
20437         * modules/wcscpy: New file.
20438         * lib/wchar.in.h (wcscpy): New declaration.
20439         * lib/wcscpy.c: New file.
20440         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20441         * m4/wcscpy.m4: New file.
20442         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20443         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20444         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20445         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20446         * doc/posix-functions/wcscpy.texi: Mention the new module.
20447
20448 2011-02-05  Bruno Haible  <bruno@clisp.org>
20449
20450         New module 'wcsnlen'.
20451         * modules/wcsnlen: New file.
20452         * lib/wchar.in.h (wcsnlen): New declaration.
20453         * lib/wcsnlen.c: New file.
20454         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20455         * m4/wcsnlen.m4: New file.
20456         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20457         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20458         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20459         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20460         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20461
20462 2011-02-05  Bruno Haible  <bruno@clisp.org>
20463
20464         New module 'wcslen'.
20465         * modules/wcslen: New file.
20466         * lib/wchar.in.h (wcslen): New declaration.
20467         * lib/wcslen.c: New file.
20468         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20469         * m4/wcslen.m4: New file.
20470         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20471         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20472         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20473         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20474         * doc/posix-functions/wcslen.texi: Mention the new module.
20475
20476 2011-02-05  Bruno Haible  <bruno@clisp.org>
20477
20478         New module 'wmemset'.
20479         * modules/wmemset: New file.
20480         * lib/wchar.in.h (wmemset): New declaration.
20481         * lib/wmemset.c: New file.
20482         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20483         * m4/wmemset.m4: New file.
20484         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20485         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20486         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20487         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20488         * doc/posix-functions/wmemset.texi: Mention the new module.
20489
20490 2011-02-05  Bruno Haible  <bruno@clisp.org>
20491
20492         New module 'wmemmove'.
20493         * modules/wmemmove: New file.
20494         * lib/wchar.in.h (wmemmove): New declaration.
20495         * lib/wmemmove.c: New file.
20496         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20497         * m4/wmemmove.m4: New file.
20498         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20499         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20500         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20501         HAVE_WMEMMOVE.
20502         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20503         * doc/posix-functions/wmemmove.texi: Mention the new module.
20504
20505 2011-02-05  Bruno Haible  <bruno@clisp.org>
20506
20507         New module 'wmemcpy'.
20508         * modules/wmemcpy: New file.
20509         * lib/wchar.in.h (wmemcpy): New declaration.
20510         * lib/wmemcpy.c: New file.
20511         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20512         * m4/wmemcpy.m4: New file.
20513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20515         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20516         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20517         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20518
20519 2011-02-05  Bruno Haible  <bruno@clisp.org>
20520
20521         New module 'wmemcmp'.
20522         * modules/wmemcmp: New file.
20523         * lib/wchar.in.h (wmemcmp): New declaration.
20524         * lib/wmemcmp.c: New file.
20525         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20526         * m4/wmemcmp.m4: New file.
20527         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20528         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20529         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20530         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20531         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20532
20533 2011-02-07  Jim Meyering  <meyering@redhat.com>
20534
20535         di-set, ino-map: new modules, from coreutils
20536         * lib/di-set.c: New file.
20537         * lib/di-set.h: Likewise.
20538         * lib/ino-map.c: Likewise.
20539         * lib/ino-map.h: Likewise.
20540         * modules/di-set: Likewise.
20541         * modules/di-set-tests: Likewise.
20542         * modules/ino-map: Likewise.
20543         * modules/ino-map-tests: Likewise.
20544         * tests/test-di-set.c: Likewise.
20545         * tests/test-ino-map.c: Likewise.
20546
20547 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20548
20549         getloadavg: merge minor changes from Emacs
20550
20551         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20552         (getloadavg): Use memset, not bzero.
20553
20554         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20555         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20556         clash (bug#86).
20557
20558 2010-11-14  Bruno Haible  <bruno@clisp.org>
20559
20560         Allow multiple gnulib generated replacements to coexist.
20561         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20562         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20563         * lib/langinfo.in.h (nl_item): Likewise.
20564         * lib/math.in.h (_NaN, NAN): Likewise.
20565         * lib/netdb.in.h (struct addrinfo): Likewise.
20566         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20567         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20568         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20569         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20570         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20571         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20572         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20573         pthread_mutexattr_init, pthread_mutexattr_settype,
20574         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20575         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20576         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20577         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20578         * lib/sched.in.h (struct sched_param): Likewise.
20579         * lib/se-selinux.in.h (security_class_t, security_context_t,
20580         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20581         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20582         lsetfilecon, fsetfilecon, security_check_context,
20583         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20584         Likewise.
20585         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20586         Likewise.
20587         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20588         _gl_function_taking_int_returning_void_t, union sigval,
20589         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20590         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20591         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20592         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20593         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20594         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20595         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20596         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20597         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20598         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20599         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20600         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20601         socklen_t, rpl_fd_isset): Likewise.
20602         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20603         * lib/sys_time.in.h (struct timeval): Likewise.
20604         * lib/sys_times.in.h (struct tms): Likewise.
20605         * lib/sys_utsname.in.h (struct utsname):
20606         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20607         * lib/unistd.in.h (getpagesize): Likewise.
20608         * lib/wchar.in.h (mbstate_t): Likewise.
20609         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20610         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20611         towlower, towupper): Likewise.
20612         Reported by Sam Steingold <sds@gnu.org>.
20613
20614 2011-02-05  Eric Blake  <eblake@redhat.com>
20615
20616         unsetenv: work around Haiku issues
20617         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20618         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20619
20620 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20621
20622         libposix: avoid calling error() within libposix
20623         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20624         is defined.
20625
20626 2011-02-05  Eric Blake  <eblake@redhat.com>
20627
20628         strerror_r-posix: port to cygwin
20629         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20630         implementation.
20631         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20632         * tests/test-strerror_r.c (main): Fix test.
20633         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20634         issue.
20635
20636 2011-02-05  Bruno Haible  <bruno@clisp.org>
20637
20638         New module 'wmemchr'.
20639         * modules/wmemchr: New file.
20640         * lib/wchar.in.h (wmemchr): New declaration.
20641         * lib/wmemchr.c: New file.
20642         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20643         * m4/wmemchr.m4: New file.
20644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20646         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20647         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20648         * doc/posix-functions/wmemchr.texi: Mention the new module.
20649
20650 2011-02-04  Eric Blake  <eblake@redhat.com>
20651
20652         fdopendir: detect FreeBSD bug
20653         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20654         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20655
20656 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20657
20658         stdbool: do not define HAVE_STDBOOL_H
20659         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20660         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20661         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20662         imported from the latest Autoconf git.  It was motivated by Emacs,
20663         which uses gnulib but does not need HAVE_STDBOOL_H.
20664
20665 2011-02-04  Bruno Haible  <bruno@clisp.org>
20666
20667         wcsnrtombs: Prepare for new module wwcsnrtombs.
20668         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20669         * lib/wcsnrtombs.c: Include it.
20670         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20671
20672         wcsrtombs: Prepare for new module wwcsrtombs.
20673         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20674         * lib/wcsrtombs.c: Include it.
20675         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20676
20677         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20678         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20679         * lib/mbsnrtowcs.c: Include it.
20680         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20681
20682         mbsrtowcs: Prepare for new module mbsrtowwcs.
20683         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20684         * lib/mbsrtowcs.c: Include it.
20685         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20686
20687 2011-02-04  Bruno Haible  <bruno@clisp.org>
20688
20689         vasnprintf: Reduce use of malloc for small format strings.
20690         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20691         (arguments): Add room for the first 7 arguments.
20692         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20693         (char_directives, u8_directives, u16_directives, u32_directives): Add
20694         room for the first 7 directives.
20695         * lib/printf-parse.c: Include <string.h>.
20696         (PRINTF_PARSE): Change memory handling code so that it uses the first
20697         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20698         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20699         Reported by Pádraig Brady <P@draigbrady.com>.
20700
20701 2011-01-31  Eric Blake  <eblake@redhat.com>
20702
20703         dup2: work around Haiku bug
20704         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20705         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20706         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20707         * tests/test-dup2.c (main): Enhance test.
20708
20709 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20710
20711         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20712         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20713         declared by eglibc 2.11.2.
20714         * lib/stdio.in.h: Likewise.
20715
20716 2011-01-31  Eric Blake  <eblake@redhat.com>
20717
20718         ignore-value: add missing test dependency
20719         * tests/test-ignore-value.c: Revert previous change; stdio.h
20720         provides off_t.
20721         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20722
20723 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20724
20725         mktime: clarify long_int width checking
20726         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20727         the top level, to make it clearer that the assumption about
20728         long_int width is being checked.  See
20729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20730
20731 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20732
20733         ignore-value: Fix self-test.
20734         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20735
20736 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20737
20738         TYPE_MAXIMUM: avoid theoretically undefined behavior
20739         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20740         negative number, which the C Standard says has undefined behavior.
20741         In practice this is not a problem, but might as well do it by the book.
20742         Reported by Rich Felker and Eric Blake; see
20743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20744         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20745         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20746         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20747         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20748         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20749         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20750
20751         mktime: #undef mktime before #defining it
20752         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20753
20754         mktime: systematically normalize tm_isdst comparisons
20755         * lib/mktime.c (isdst_differ): New function.
20756         (__mktime_internal): Use it systematically for all isdst comparisons.
20757         This completes the fix for libc BZ #6723, and removes the need for
20758         normalizing tm_isdst.  See
20759         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20760         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20761
20762         mktime: fix some integer overflow issues and sidestep the rest
20763
20764         This was prompted by a bug report by Benjamin Lindner for MinGW
20765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20766         His bug is due to signed integer overflow (0 - INT_MIN), and I
20767         I scanned through mktime.c looking for other integer overflow
20768         problems, fixing all the bugs I found.
20769
20770         Although the C Standard says the resulting code is still not safe
20771         in the presence of integer overflow, in practice it should be good
20772         enough for all real-world two's-complement implementations, except
20773         for debugging environments that deliberately trap on integer
20774         overflow (e.g., gcc -ftrapv).
20775
20776         * lib/mktime.c (WRAPV): New macro.
20777         (SHR): Also check that long_int and time_t shift right in the
20778         usual way, before using the fast-but-unportable method.
20779         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20780         used.  The code already assumed two's complement, so there's
20781         no need to test for alternatives.  All uses removed.
20782         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20783         the C standard.  Problem reported by Rich Felker in
20784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20785         (twos_complement_arithmetic): Also check long_int and time_t.
20786         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20787         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20788         (__mktime_internal): Avoid integer overflow with unary subtraction
20789         in two instances where -1 - X is an adequate replacement for -X,
20790         since the calculations are approximate.
20791
20792 2011-01-29  Eric Blake  <eblake@redhat.com>
20793
20794         mktime: avoid infinite loop
20795         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20796         type; behavior is still undefined but portable to all known targets.
20797         Reported by Rich Felker.
20798
20799 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20800
20801         rename, unlink, same-inode: Relicense.
20802         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20803         * modules/unlink (License): Likewise.
20804         * modules/same-inode (License): Likewise.
20805
20806 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20807
20808         mktime: avoid problems on NetBSD 5 / i386
20809         * lib/mktime.c (long_int): New type.  This works around a problem
20810         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20811         but time_t is 64 bits, and where I expect the existing code is
20812         wrong in some cases.
20813         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20814         (ydhms_diff): Bring back the compile-time check for wide-enough
20815         year and yday.
20816
20817         mktime: fix misspelling in comment
20818         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20819         This merges all recent glibc changes of importance.
20820
20821 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20822
20823         move-if-change: cope with concurrent mv of identical file.
20824         * build-aux/move-if-change (CMPPROG): Accept environment
20825         variable as an override for `cmp'.
20826         (usage): Document CMPPROG.
20827         Adjust comparison to drop stdout.  Cope with failure of mv if
20828         the target file exists and is identical to the source, for
20829         parallel builds.
20830         Report from H.J. Lu against binutils in PR binutils/12283.
20831
20832 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20833
20834         * users.txt: Mention sharutils.
20835
20836 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20837
20838         * users.txt: Mention OATH Toolkit.
20839
20840 2011-01-27  Bruno Haible  <bruno@clisp.org>
20841
20842         Prepare for supporting FreeBSD 10.
20843         * build-aux/config.libpath: Remove handling of freebsd1*.
20844
20845 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20846
20847         Prepare for supporting FreeBSD 10.
20848         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20849         match FreeBSD 10.0.
20850
20851 2011-01-27  Bruno Haible  <bruno@clisp.org>
20852
20853         vma-iter, get-rusage-as: Add OpenBSD support.
20854         * modules/vma-iter (configure.ac): Test for mquery.
20855         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20856         * lib/vma-iter.c: Include <sys/mman.h>.
20857         (vma_iterate): Add an implementation based on mquery().
20858         * lib/resource-ext.h (get_rusage_as): Update comments.
20859         * lib/get-rusage-as.c: Likewise.
20860         * lib/get-rusage-data.c: Likewise.
20861
20862 2011-01-26  Karl Berry  <karl@gnu.org>
20863
20864         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20865         variables to make it easier to override the makeinfo program used.
20866
20867 2011-01-26  Eric Blake  <eblake@redhat.com>
20868
20869         fcntl: work around Haiku F_DUPFD bugs
20870         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20871         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20872         cloexec bit on duplication.
20873         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20874
20875 2011-01-26  Bruno Haible  <bruno@clisp.org>
20876
20877         Enable memory leak tests on AIX.
20878         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20879         * tests/test-fprintf-posix3.c (main): Likewise.
20880
20881 2011-01-26  Bruno Haible  <bruno@clisp.org>
20882
20883         Tests for module 'get-rusage-data'.
20884         * modules/get-rusage-data-tests: New file.
20885         * tests/test-get-rusage-data.c: New file.
20886
20887         New module 'get-rusage-data'.
20888         * lib/resource-ext.h (get_rusage_data): New declaration.
20889         * lib/get-rusage-data.c: New file.
20890         * modules/get-rusage-data: New file.
20891
20892 2011-01-25  Bruno Haible  <bruno@clisp.org>
20893
20894         get-rusage-as: Allow for easier testing.
20895         * lib/resource-ext.h (get_rusage_as): Add comment.
20896         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20897         (main): New function for interactive testing.
20898
20899 2011-01-25  Bruno Haible  <bruno@clisp.org>
20900
20901         vma-iter: Treat Haiku like BeOS.
20902         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20903         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20904
20905 2011-01-25  Eric Blake  <eblake@redhat.com>
20906
20907         c-stack: fix regression on cygwin when libsigsegv is present
20908         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20909
20910 2011-01-24  Bruno Haible  <bruno@clisp.org>
20911
20912         vma-iter: Avoid empty intervals.
20913         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20914         on an empty interval.
20915
20916 2011-01-24  Jim Meyering  <meyering@redhat.com>
20917
20918         u64: remove unnecessary #include
20919         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20920
20921 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20922
20923         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20924         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20925
20926 2011-01-23  Bruno Haible  <bruno@clisp.org>
20927
20928         New module 'vma-iter'.
20929         * lib/vma-iter.h: New file.
20930         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20931         * modules/vma-iter: New file.
20932         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20933         for get_rusage_as_via_iterator.
20934         (vma_iterate_callback): New function.
20935         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20936         * modules/get-rusage-as (Depends-on): Add vma-iter.
20937
20938 2011-01-23  Bruno Haible  <bruno@clisp.org>
20939
20940         uninorm: Tweak includes.
20941         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20942         Reported by Jim Meyering.
20943
20944 2011-01-23  Bruno Haible  <bruno@clisp.org>
20945
20946         get-rusage-as: Improve on NetBSD.
20947         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20948         /proc, like on FreeBSD.
20949
20950 2011-01-23  Jim Meyering  <meyering@redhat.com>
20951
20952         xreadlink.h: remove unnecessary #include
20953         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20954
20955         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20956         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20957
20958 2011-01-23  Bruno Haible  <bruno@clisp.org>
20959
20960         get-rusage-as: Fix bug.
20961         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20962         original limit when aborting the first loop.
20963
20964 2011-01-23  Bruno Haible  <bruno@clisp.org>
20965
20966         wctype: Ensure valid C syntax.
20967         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20968         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20969
20970 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20971
20972         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20974         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20975         as they are needed only for configure's test case.
20976         This removes two unnecessary symbols from config.h.
20977
20978         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20979         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20981         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20982         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20983         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20984         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20985         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20986         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20987         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20988         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20989         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20990         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20991         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20992         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20993         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20994         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20995         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20996
20997 2011-01-21  Eric Blake  <eblake@redhat.com>
20998
20999         maintainer-makefile: work with older git for submodule check
21000         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21001         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21002         Reported by Matthias Bolte.
21003
21004         bootstrap: minor portability fixes
21005         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21006         (usage): Omit leading capital and trailing . on help phrases, per
21007         GNU Coding Standards.
21008         (check_versions, top level): Prefix messages with script name.
21009
21010 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21011
21012         bootstrap: support --no-git option
21013         * build-aux/bootstrap: Add --no-git option, to be used when
21014         --gnulib-srcdir points to the exact desired checkout.
21015
21016 2011-01-21  Eric Blake  <eblake@redhat.com>
21017
21018         strerror_r-posix: work with glibc 2.13
21019         * lib/strerror_r.c (strerror_r): Fix return type.
21020
21021 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21022             Bruno Haible  <bruno@clisp.org>
21023
21024         uN_strstr: New unit tests.
21025         * modules/unistr/u8-strstr-tests: New file.
21026         * modules/unistr/u16-strstr-tests: New file.
21027         * modules/unistr/u32-strstr-tests: New file.
21028         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21029         * tests/unistr/test-u8-strstr.c: New file.
21030         * tests/unistr/test-u16-strstr.c: New file.
21031         * tests/unistr/test-u32-strstr.c: New file.
21032
21033 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21034             Bruno Haible  <bruno@clisp.org>
21035
21036         Make uN_strstr functions O(n) worst-case.
21037         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21038         16-bit and 32-bit unit cases, use the unibyte algorithm from
21039         lib/mbsstr.c.
21040         * lib/unistr/u8-strstr.c: Include <string.h>.
21041         (UNIT_IS_UINT8_T): New macro.
21042         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21043         (U_STRLEN, U_STRNLEN): New macros.
21044         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21045         (U_STRLEN, U_STRNLEN): New macros.
21046         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21047         (configure.ac): Update required libunistring version.
21048         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21049         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21050         malloca.
21051         (configure.ac): Update required libunistring version.
21052         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21053         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21054         malloca.
21055         (configure.ac): Update required libunistring version.
21056
21057 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21058             Bruno Haible  <bruno@clisp.org>
21059
21060         Prepare for faster uN_strstr functions.
21061         * lib/str-kmp.h: Support definable UNITs.
21062         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21063         needle_len argument.
21064         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21065         * lib/mbscasestr.c (mbscasestr): Likewise.
21066
21067 2011-01-21  Pádraig Brady <P@draigBrady.com>
21068
21069         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21070         * tests/test-malloca.c (main): Unset the environment variable
21071         to greatly speed up the test.
21072         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21073         * modules/malloca-tests: Depend on unsetenv.
21074
21075 2011-01-21  Pádraig Brady <P@draigBrady.com>
21076
21077         ignore-value: remove stdint dependency
21078         * lib/ignore-value.h: Remove <stdint.h>
21079         * modules/ignore-value: Remove stdint dependency.
21080
21081 2011-01-21  Jim Meyering  <meyering@redhat.com>
21082
21083         maint.mk: adjust variable name to be consistent with other gl_ vars
21084         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21085         to be lower case.
21086
21087 2011-01-20  Jim Meyering  <meyering@redhat.com>
21088
21089         maint.mk: make "check" depend on public-submodule-commit by default
21090         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21091
21092 2011-01-20  Bruno Haible  <bruno@clisp.org>
21093
21094         mbfile, mbiter: Complete change from 2008-12-21.
21095         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21096         * m4/mbiter.m4 (gl_MBITER): Likewise.
21097
21098 2011-01-20  Jim Meyering  <meyering@redhat.com>
21099
21100         init.sh: insert space between each function name and "()"
21101         * tests/init.sh: Make it a little easier to see that a function's
21102         name is "warn_", and not "warn" when looking at the first part of
21103         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21104
21105 2011-01-20  Jim Meyering  <meyering@redhat.com>
21106
21107         mountlist: clean up code formatting
21108         * lib/mountlist.c (read_file_system_list): Split a long line,
21109         correct bracing style, use NULL in place of "(struct statfs *)0",
21110         don't parenthesize return value, add spaces around "=" and after
21111         ";-in-for-stmt".
21112
21113 2011-01-14  Markus Duft <mduft@gentoo.org>
21114
21115         mountlist: add support for Interix
21116         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21117         Apply statvfs to all entries of /dev/fs.
21118         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21119         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21120
21121 2011-01-20  Jim Meyering  <meyering@redhat.com>
21122
21123         maint.mk: improve the public-submodule-commit rule
21124         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21125         to suppress printing of its commands... unless V=1.
21126         Add git submodule's --quiet option to suppress printing of e.g.,
21127         "Entering gnulib" output.
21128         "cd" into $(srcdir) before running git submodule.
21129
21130 2011-01-20  Bruno Haible  <bruno@clisp.org>
21131
21132         include_next: Fix bug introduced on 2011-01-18.
21133         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21134         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21135         ac_cv_header_... variable if the second argument is not 'check'.
21136         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21137         gl_NEXT_HEADERS_INTERNAL.
21138
21139 2011-01-20  Bruno Haible  <bruno@clisp.org>
21140
21141         Allow the user to avoid the GNULIB_TEST_* macros.
21142         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21143         Suggested by Paul Eggert.
21144
21145 2011-01-14  Jim Meyering  <meyering@redhat.com>
21146
21147         bootstrap: avoid failure when there is no .gitmodules file
21148         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21149         has been assigned to, even when its value is the empty string.
21150         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21151         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21152         Reported by John W. Eaton <jwe@gnu.org>.
21153
21154 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21155
21156         assume <ctype.h>, ..., <time.h> exist
21157         For years gnulib has been assuming the existence of the headers
21158         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21159         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21160         them, since they don't appear to be needed.
21161         * README (Portability guidelines): Document this.
21162         * lib/flock.c: Assume <fcntl.h> exists.
21163         * lib/regex_internal.h: Assume <locale.h> exists.
21164         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21165         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21166         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21167         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21168         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21169         * m4/regex.m4 (gl_REGEX): Likewise.
21170         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21171         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21172         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21173         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21174         * tests/test-argp.c: Likewise.
21175         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21176
21177         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21178         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21179         AA_APPLE_UNIVERSAL_BUILD.  See
21180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21181         * NEWS: Document this.
21182
21183 2011-01-19  Eric Blake  <eblake@redhat.com>
21184
21185         c-stack: assume stack overflow if SA_SIGINFO unsupported
21186         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21187         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21188         sigaction will work.
21189         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21190         behavior match Linux.
21191         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21192
21193         stdbool-tests: accomodate Haiku
21194         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21195
21196         binary-io: fix O_TEXT on Haiku
21197         * modules/binary-io (Depends-on): Add fcntl-h.
21198         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21199         than blindly undefining O_TEXT.
21200         Reported by Scott McCreary.
21201
21202 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21203
21204         include_next: do not check for standard headers like stddef.h
21205
21206         I found this problem when modifying Emacs to use gnulib.
21207         I noticed that it added HAVE_STDDEF_H to config.h, even though
21208         gnulib always assumes <stddef.h> exists as per README and this
21209         symbol is unnecessary.
21210         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21211         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21212         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21213         faster for headers like stddef.h that are known to exist.
21214         (gl_CHECK_NEXT_HEADERS): Use it.
21215         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21216         rather than gl_CHECK_NEXT_HEADERS.
21217         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21218         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21219
21220 2011-01-18  Eric Blake  <eblake@redhat.com>
21221
21222         ansi-c++-opt: skip C++ dependency style if C++ is unused
21223         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21224         tests when we know C++ compilation is not desired.
21225         Reported by Scott McCreary.
21226
21227 2011-01-18  Bruno Haible  <bruno@clisp.org>
21228
21229         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21230         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21231         (main): Perform test also when getrlimit and setrlimit don't exist or
21232         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21233         limiting the address space size using setrlimit, compare the address
21234         space size before and after the the test.
21235         * tests/test-dprintf-posix2.c: Likewise.
21236         * tests/test-fprintf-posix3.sh: Update skip messages.
21237         * tests/test-dprintf-posix2.sh: Likewise.
21238         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21239         * modules/dprintf-posix-tests (Depends-on): Likewise.
21240         Reported by Bruce Korb <bkorb@gnu.org> and
21241         Gary V. Vaughan <gary@gnu.org>.
21242
21243 2011-01-18  Bruno Haible  <bruno@clisp.org>
21244
21245         get-rusage-as: Improvement for Cygwin.
21246         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21247         areas that are merely reserved.
21248
21249 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21250
21251         strftime: remove dependencies on multibyte modules
21252
21253         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21254         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21255         only if __osf__ is defined, and I suspect OSF doesn't need these
21256         other modules.  If my guess is wrong, we'll need to come up with a
21257         variant of strftime that doesn't need the multibyte modules.
21258
21259         I discovered this problem when attempting modify Emacs to use the
21260         strftime module.  With the previous gnulib, this caused Emacs to
21261         need 31 new files, ranging from lib/config.charset to
21262         m4/wint_t.m4.  This was overkill and I expect would be offputting
21263         to the Emacs maintainers.  After this change, only 6 new files are
21264         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21265         stdbool.m4, and tm_gmtoff.m4.
21266
21267         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21268         Suggested by Bruno Haible in
21269         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21270         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21271         and do not check for wchar.h.
21272         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21273         (Depends-on): Remove mbrlen, mbsinit, wchar.
21274
21275 2011-01-18  Bruno Haible  <bruno@clisp.org>
21276
21277         Tests for module 'get-rusage-as'.
21278         * modules/get-rusage-as-tests: New file.
21279         * tests/test-get-rusage-as.c: New file.
21280
21281         New module 'get-rusage-as'.
21282         * modules/get-rusage-as: New file.
21283         * lib/resource-ext.h: New file.
21284         * lib/get-rusage-as.c: New file.
21285
21286 2011-01-17  Eric Blake  <eblake@redhat.com>
21287
21288         sigaction: relax license from LGPLv3+ to LGPLv2+
21289         * modules/sigaction (License): Relax to LGPLv2+.
21290
21291 2011-01-14  Bruno Haible  <bruno@clisp.org>
21292
21293         filemode: Make function declarations usable in C++ mode.
21294         * lib/filemode.h: Enclose function declarations in extern "C" block.
21295         Reported by John W. Eaton <jwe@gnu.org>.
21296
21297 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21298
21299         save-cwd: no longer include "xgetcwd.h"
21300         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21301         This avoids a compilation failure in projects that use save-cwd
21302         without also using the xgetcwd module.
21303
21304 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21305
21306         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21307         This is so that a program like Emacs, which needs only dtoastr,
21308         does not have to bother with distributing and compiling ftoastr
21309         and ldtoastr.
21310         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21311         * modules/dtoastr, modules/ldtoastr: New files.
21312         * modules/ftoastr: Now works just for 'float'.
21313         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21314         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21315         dtoastr.c, ldtoastr.c.
21316
21317 2011-01-11  Jim Meyering  <meyering@redhat.com>
21318
21319         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21320         There is no need to work around the lack of the fchdir function,
21321         since gnulib can now provide a replacement when required.
21322         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21323         * modules/save-cwd (Depends-on): Add fchdir.
21324
21325 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21326
21327         openat, save-cwd: avoid xmalloc
21328
21329         This removes a direct (but undocumented) dependency of openat on
21330         xalloc, along with an indirect dependency via save-cwd.  It also
21331         removes a dependency of save-cwd on xgetcwd, and thereby
21332         indirectly on xalloc.  This change causes the openat substitute
21333         to fall back on save_cwd when memory is tight, and for save_cwd to
21334         fail instead of dying when memory is tight, but that's good enough.
21335         Problem and initial idea for fix reported by Bastien Roucaries in
21336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21337
21338         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21339         xalloc.h (for xmalloc).
21340         (openat_proc_name): Use malloc, not xmalloc.
21341         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21342         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21343
21344         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21345         This avoids heap allocation for file names whose lengths are in
21346         the range 512..1023, with the upper bound increasing to at most
21347         4031 depending on the platform's PATH_MAX.  (We do not want
21348         pathmax.h here as it might supply a non-constant PATH_MAX.)
21349         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21350         Perhaps they should be moved to malloca.h?
21351         (OPENAT_BUFFER_SIZE): Use them.
21352
21353 2011-01-10  Bruno Haible  <bruno@clisp.org>
21354
21355         doc: Update users.txt.
21356         * users.txt: Add recutils.
21357
21358 2011-01-09  Karl Berry  <karl@gnu.org>
21359
21360         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21361
21362         * doc/configmake.texi: New file.
21363         * doc/gnulib.texi: Include it.
21364         * modules/configmake: Move documentation from here.
21365
21366 2011-01-09  Bruno Haible  <bruno@clisp.org>
21367
21368         Update to Unicode 6.0.0.
21369         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21370         (get_lbp): Update for Unicode 6.0.0.
21371         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21372         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21373         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21374         U+11001, U+11038..U+11046. Remove U+06DE.
21375         (uc_width): Fix bounds of planes.
21376         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21377         lib/uniwidth/width.c.
21378         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21379         trailing whitespace removed.
21380         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21381         without comments, but with the original copyright notice.
21382         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21383         * lib/unicase/ignorable.h: Likewise.
21384         * lib/unicase/tocasefold.h: Likewise.
21385         * lib/unicase/tolower.h: Likewise.
21386         * lib/unicase/totitle.h: Likewise.
21387         * lib/unicase/toupper.h: Likewise.
21388         * lib/unictype/bidi_of.h: Likewise.
21389         * lib/unictype/blocks.h: Likewise.
21390         * lib/unictype/categ_C.h: Likewise.
21391         * lib/unictype/categ_Cn.h: Likewise.
21392         * lib/unictype/categ_L.h: Likewise.
21393         * lib/unictype/categ_Ll.h: Likewise.
21394         * lib/unictype/categ_Lm.h: Likewise.
21395         * lib/unictype/categ_Lo.h: Likewise.
21396         * lib/unictype/categ_Lu.h: Likewise.
21397         * lib/unictype/categ_M.h: Likewise.
21398         * lib/unictype/categ_Mc.h: Likewise.
21399         * lib/unictype/categ_Me.h: Likewise.
21400         * lib/unictype/categ_Mn.h: Likewise.
21401         * lib/unictype/categ_N.h: Likewise.
21402         * lib/unictype/categ_Nd.h: Likewise.
21403         * lib/unictype/categ_No.h: Likewise.
21404         * lib/unictype/categ_P.h: Likewise.
21405         * lib/unictype/categ_Po.h: Likewise.
21406         * lib/unictype/categ_S.h: Likewise.
21407         * lib/unictype/categ_Sc.h: Likewise.
21408         * lib/unictype/categ_Sk.h: Likewise.
21409         * lib/unictype/categ_Sm.h: Likewise.
21410         * lib/unictype/categ_So.h: Likewise.
21411         * lib/unictype/categ_of.h: Likewise.
21412         * lib/unictype/combining.h: Likewise.
21413         * lib/unictype/ctype_alnum.h: Likewise.
21414         * lib/unictype/ctype_alpha.h: Likewise.
21415         * lib/unictype/ctype_graph.h: Likewise.
21416         * lib/unictype/ctype_lower.h: Likewise.
21417         * lib/unictype/ctype_print.h: Likewise.
21418         * lib/unictype/ctype_punct.h: Likewise.
21419         * lib/unictype/ctype_upper.h: Likewise.
21420         * lib/unictype/decdigit.h: Likewise.
21421         * lib/unictype/digit.h: Likewise.
21422         * lib/unictype/numeric.h: Likewise.
21423         * lib/unictype/pr_alphabetic.h: Likewise.
21424         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21425         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21426         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21427         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21428         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21429         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21430         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21431         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21432         * lib/unictype/pr_case_ignorable.h: Likewise.
21433         * lib/unictype/pr_cased.h: Likewise.
21434         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21435         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21436         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21437         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21438         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21439         * lib/unictype/pr_combining.h: Likewise.
21440         * lib/unictype/pr_composite.h: Likewise.
21441         * lib/unictype/pr_currency_symbol.h: Likewise.
21442         * lib/unictype/pr_decimal_digit.h: Likewise.
21443         * lib/unictype/pr_deprecated.h: Likewise.
21444         * lib/unictype/pr_format_control.h: Likewise.
21445         * lib/unictype/pr_grapheme_base.h: Likewise.
21446         * lib/unictype/pr_grapheme_extend.h: Likewise.
21447         * lib/unictype/pr_grapheme_link.h: Likewise.
21448         * lib/unictype/pr_id_continue.h: Likewise.
21449         * lib/unictype/pr_id_start.h: Likewise.
21450         * lib/unictype/pr_ideographic.h: Likewise.
21451         * lib/unictype/pr_lowercase.h: Likewise.
21452         * lib/unictype/pr_math.h: Likewise.
21453         * lib/unictype/pr_numeric.h: Likewise.
21454         * lib/unictype/pr_other_alphabetic.h: Likewise.
21455         * lib/unictype/pr_other_id_continue.h: Likewise.
21456         * lib/unictype/pr_other_math.h: Likewise.
21457         * lib/unictype/pr_punctuation.h: Likewise.
21458         * lib/unictype/pr_sentence_terminal.h: Likewise.
21459         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21460         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21461         * lib/unictype/pr_unified_ideograph.h: Likewise.
21462         * lib/unictype/pr_uppercase.h: Likewise.
21463         * lib/unictype/pr_xid_continue.h: Likewise.
21464         * lib/unictype/pr_xid_start.h: Likewise.
21465         * lib/unictype/scripts.h: Likewise.
21466         * lib/unictype/scripts_byname.gperf: Likewise.
21467         * lib/unictype/sy_java_ident.h: Likewise.
21468         * lib/unigbrk/gbrkprop.h: Likewise.
21469         * lib/unilbrk/lbrkprop1.h: Likewise.
21470         * lib/unilbrk/lbrkprop2.h: Likewise.
21471         * lib/uninorm/decomposition-table2.h: Likewise.
21472         * lib/uniwbrk/wbrkprop.h: Likewise.
21473         * tests/unicase/test-cased.c: Likewise.
21474         * tests/unicase/test-ignorable.c: Likewise.
21475         * tests/unicase/test-uc_tolower.c: Likewise.
21476         * tests/unicase/test-uc_totitle.c: Likewise.
21477         * tests/unicase/test-uc_toupper.c: Likewise.
21478         * tests/unictype/test-categ_C.c: Likewise.
21479         * tests/unictype/test-categ_Cn.c: Likewise.
21480         * tests/unictype/test-categ_L.c: Likewise.
21481         * tests/unictype/test-categ_Ll.c: Likewise.
21482         * tests/unictype/test-categ_Lm.c: Likewise.
21483         * tests/unictype/test-categ_Lo.c: Likewise.
21484         * tests/unictype/test-categ_Lu.c: Likewise.
21485         * tests/unictype/test-categ_M.c: Likewise.
21486         * tests/unictype/test-categ_Mc.c: Likewise.
21487         * tests/unictype/test-categ_Me.c: Likewise.
21488         * tests/unictype/test-categ_Mn.c: Likewise.
21489         * tests/unictype/test-categ_N.c: Likewise.
21490         * tests/unictype/test-categ_Nd.c: Likewise.
21491         * tests/unictype/test-categ_No.c: Likewise.
21492         * tests/unictype/test-categ_P.c: Likewise.
21493         * tests/unictype/test-categ_Po.c: Likewise.
21494         * tests/unictype/test-categ_S.c: Likewise.
21495         * tests/unictype/test-categ_Sc.c: Likewise.
21496         * tests/unictype/test-categ_Sk.c: Likewise.
21497         * tests/unictype/test-categ_Sm.c: Likewise.
21498         * tests/unictype/test-categ_So.c: Likewise.
21499         * tests/unictype/test-ctype_alnum.c: Likewise.
21500         * tests/unictype/test-ctype_alpha.c: Likewise.
21501         * tests/unictype/test-ctype_graph.c: Likewise.
21502         * tests/unictype/test-ctype_lower.c: Likewise.
21503         * tests/unictype/test-ctype_print.c: Likewise.
21504         * tests/unictype/test-ctype_punct.c: Likewise.
21505         * tests/unictype/test-ctype_upper.c: Likewise.
21506         * tests/unictype/test-decdigit.h: Likewise.
21507         * tests/unictype/test-digit.h: Likewise.
21508         * tests/unictype/test-numeric.h: Likewise.
21509         * tests/unictype/test-pr_alphabetic.c: Likewise.
21510         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21511         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21512         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21513         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21514         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21515         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21516         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21517         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21518         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21519         * tests/unictype/test-pr_cased.c: Likewise.
21520         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21521         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21522         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21523         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21524         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21525         * tests/unictype/test-pr_combining.c: Likewise.
21526         * tests/unictype/test-pr_composite.c: Likewise.
21527         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21528         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21529         * tests/unictype/test-pr_deprecated.c: Likewise.
21530         * tests/unictype/test-pr_format_control.c: Likewise.
21531         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21532         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21533         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21534         * tests/unictype/test-pr_id_continue.c: Likewise.
21535         * tests/unictype/test-pr_id_start.c: Likewise.
21536         * tests/unictype/test-pr_ideographic.c: Likewise.
21537         * tests/unictype/test-pr_lowercase.c: Likewise.
21538         * tests/unictype/test-pr_math.c: Likewise.
21539         * tests/unictype/test-pr_numeric.c: Likewise.
21540         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21541         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21542         * tests/unictype/test-pr_other_math.c: Likewise.
21543         * tests/unictype/test-pr_punctuation.c: Likewise.
21544         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21545         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21546         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21547         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21548         * tests/unictype/test-pr_uppercase.c: Likewise.
21549         * tests/unictype/test-pr_xid_continue.c: Likewise.
21550         * tests/unictype/test-pr_xid_start.c: Likewise.
21551         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21552         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21553         changes.
21554         * lib/unictype/categ_Cc.h: Likewise.
21555         * lib/unictype/categ_Cf.h: Likewise.
21556         * lib/unictype/categ_Co.h: Likewise.
21557         * lib/unictype/categ_Cs.h: Likewise.
21558         * lib/unictype/categ_Lt.h: Likewise.
21559         * lib/unictype/categ_Nl.h: Likewise.
21560         * lib/unictype/categ_Pc.h: Likewise.
21561         * lib/unictype/categ_Pd.h: Likewise.
21562         * lib/unictype/categ_Pe.h: Likewise.
21563         * lib/unictype/categ_Pf.h: Likewise.
21564         * lib/unictype/categ_Pi.h: Likewise.
21565         * lib/unictype/categ_Ps.h: Likewise.
21566         * lib/unictype/categ_Z.h: Likewise.
21567         * lib/unictype/categ_Zl.h: Likewise.
21568         * lib/unictype/categ_Zp.h: Likewise.
21569         * lib/unictype/categ_Zs.h: Likewise.
21570         * lib/unictype/ctype_blank.h: Likewise.
21571         * lib/unictype/ctype_cntrl.h: Likewise.
21572         * lib/unictype/ctype_digit.h: Likewise.
21573         * lib/unictype/ctype_space.h: Likewise.
21574         * lib/unictype/ctype_xdigit.h: Likewise.
21575         * lib/unictype/mirror.h: Likewise.
21576         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21577         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21578         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21579         * lib/unictype/pr_bidi_control.h: Likewise.
21580         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21581         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21582         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21583         * lib/unictype/pr_bidi_pdf.h: Likewise.
21584         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21585         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21586         * lib/unictype/pr_dash.h: Likewise.
21587         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21588         * lib/unictype/pr_diacritic.h: Likewise.
21589         * lib/unictype/pr_extender.h: Likewise.
21590         * lib/unictype/pr_hex_digit.h: Likewise.
21591         * lib/unictype/pr_hyphen.h: Likewise.
21592         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21593         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21594         * lib/unictype/pr_ignorable_control.h: Likewise.
21595         * lib/unictype/pr_iso_control.h: Likewise.
21596         * lib/unictype/pr_join_control.h: Likewise.
21597         * lib/unictype/pr_left_of_pair.h: Likewise.
21598         * lib/unictype/pr_line_separator.h: Likewise.
21599         * lib/unictype/pr_logical_order_exception.h: Likewise.
21600         * lib/unictype/pr_non_break.h: Likewise.
21601         * lib/unictype/pr_not_a_character.h: Likewise.
21602         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21603         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21604         * lib/unictype/pr_other_id_start.h: Likewise.
21605         * lib/unictype/pr_other_lowercase.h: Likewise.
21606         * lib/unictype/pr_other_uppercase.h: Likewise.
21607         * lib/unictype/pr_paired_punctuation.h: Likewise.
21608         * lib/unictype/pr_paragraph_separator.h: Likewise.
21609         * lib/unictype/pr_pattern_syntax.h: Likewise.
21610         * lib/unictype/pr_pattern_white_space.h: Likewise.
21611         * lib/unictype/pr_private_use.h: Likewise.
21612         * lib/unictype/pr_quotation_mark.h: Likewise.
21613         * lib/unictype/pr_radical.h: Likewise.
21614         * lib/unictype/pr_soft_dotted.h: Likewise.
21615         * lib/unictype/pr_space.h: Likewise.
21616         * lib/unictype/pr_titlecase.h: Likewise.
21617         * lib/unictype/pr_variation_selector.h: Likewise.
21618         * lib/unictype/pr_white_space.h: Likewise.
21619         * lib/unictype/pr_zero_width.h: Likewise.
21620         * lib/unictype/sy_c_ident.h: Likewise.
21621         * lib/unictype/sy_c_whitespace.h: Likewise.
21622         * lib/unictype/sy_java_whitespace.h: Likewise.
21623         * lib/uninorm/composition-table.gperf: Likewise.
21624         * lib/uninorm/decomposition-table1.h: Likewise.
21625         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21626         LB8.
21627         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21628         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21629         * modules/unictype/*: Bump version number of expected libunistring
21630         version.
21631
21632 2011-01-09  Bruno Haible  <bruno@clisp.org>
21633
21634         Update to Unicode 5.2.0.
21635         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21636         trailing whitespace removed.
21637
21638 2011-01-09  Bruno Haible  <bruno@clisp.org>
21639
21640         New Unicode character properties, from Unicode 5.2.0.
21641         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21642         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21643         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21644         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21645         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21646         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21647         uc_is_property_cased, uc_is_property_case_ignorable,
21648         uc_is_property_changes_when_lowercased,
21649         uc_is_property_changes_when_uppercased,
21650         uc_is_property_changes_when_titlecased,
21651         uc_is_property_changes_when_casefolded,
21652         uc_is_property_changes_when_casemapped): New declarations.
21653         * lib/unictype/pr_byname.gperf: Add the new properties.
21654         * modules/unictype/property-byname (Depends-on): Depend on the new
21655         properties modules.
21656         * modules/unictype/property-all (Depends-on): Likewise.
21657         * MODULES.html.sh (Unicode string functions): Add
21658         unictype/property-case-ignorable, unictype/property-cased,
21659         unictype/property-changes-when-casefolded,
21660         unictype/property-changes-when-casemapped,
21661         unictype/property-changes-when-lowercased,
21662         unictype/property-changes-when-titlecased,
21663         unictype/property-changes-when-uppercased.
21664
21665         New module 'unictype/property-changes-when-casemapped'.
21666         * modules/unictype/property-changes-when-casemapped: New file.
21667         * lib/unictype/pr_changes_when_casemapped.c: New file.
21668         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21669         generated by gen-uni-tables.
21670         * modules/unictype/property-changes-when-casemapped-tests: New file.
21671         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21672         automatically generated by gen-uni-tables.
21673
21674         New module 'unictype/property-changes-when-casefolded'.
21675         * modules/unictype/property-changes-when-casefolded: New file.
21676         * lib/unictype/pr_changes_when_casefolded.c: New file.
21677         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21678         generated by gen-uni-tables.
21679         * modules/unictype/property-changes-when-casefolded-tests: New file.
21680         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21681         automatically generated by gen-uni-tables.
21682
21683         New module 'unictype/property-changes-when-titlecased'.
21684         * modules/unictype/property-changes-when-titlecased: New file.
21685         * lib/unictype/pr_changes_when_titlecased.c: New file.
21686         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21687         generated by gen-uni-tables.
21688         * modules/unictype/property-changes-when-titlecased-tests: New file.
21689         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21690         automatically generated by gen-uni-tables.
21691
21692         New module 'unictype/property-changes-when-uppercased'.
21693         * modules/unictype/property-changes-when-uppercased: New file.
21694         * lib/unictype/pr_changes_when_uppercased.c: New file.
21695         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21696         generated by gen-uni-tables.
21697         * modules/unictype/property-changes-when-uppercased-tests: New file.
21698         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21699         automatically generated by gen-uni-tables.
21700
21701         New module 'unictype/property-changes-when-lowercased'.
21702         * modules/unictype/property-changes-when-lowercased: New file.
21703         * lib/unictype/pr_changes_when_lowercased.c: New file.
21704         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21705         generated by gen-uni-tables.
21706         * modules/unictype/property-changes-when-lowercased-tests: New file.
21707         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21708         automatically generated by gen-uni-tables.
21709
21710         New module 'unictype/property-case-ignorable'.
21711         * modules/unictype/property-case-ignorable: New file.
21712         * lib/unictype/pr_case_ignorable.c: New file.
21713         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21714         by gen-uni-tables.
21715         * modules/unictype/property-case-ignorable-tests: New file.
21716         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21717         generated by gen-uni-tables.
21718
21719         New module 'unictype/property-cased'.
21720         * modules/unictype/property-cased: New file.
21721         * lib/unictype/pr_cased.c: New file.
21722         * lib/unictype/pr_cased.h: New file, automatically generated by
21723         gen-uni-tables.
21724         * modules/unictype/property-cased-tests: New file.
21725         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21726         gen-uni-tables.
21727
21728 2011-01-09  Bruno Haible  <bruno@clisp.org>
21729
21730         Update to Unicode 5.2.0.
21731         * lib/gen-uni-tables.c (output_predicate, output_category,
21732         output_combclass, output_bidi_category, output_decimal_digit_test,
21733         output_decimal_digit, output_digit_test, output_digit,
21734         output_numeric_test, output_numeric, output_mirror, output_scripts,
21735         output_scripts_byname, output_blocks, output_ident_category): Fix
21736         comment header.
21737         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21738         get_wbp.
21739         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21740         items.
21741         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21742         Changes_When_Lowercased, Changes_When_Uppercased,
21743         Changes_When_Titlecased, Changes_When_Casefolded,
21744         Changes_When_Casemapped.
21745         (is_property_alphabetic, is_property_default_ignorable_code_point):
21746         Update for Unicode 5.2.0.
21747         (is_property_cased, is_property_case_ignorable,
21748         is_property_changes_when_lowercased,
21749         is_property_changes_when_uppercased,
21750         is_property_changes_when_titlecased,
21751         is_property_changes_when_casefolded,
21752         is_property_changes_when_casemapped): New functions.
21753         (output_properties): Output also the properties cased, case_ignorable,
21754         changes_when_lowercased, changes_when_uppercased,
21755         changes_when_titlecased, changes_when_casefolded,
21756         changes_when_casemapped.
21757         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21758         Unicode TR#11 revision 17 -> 19.
21759         (LBP_CP): New enumeration value.
21760         (LBP_*): Adjust values accordingly.
21761         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21762         TR#14 revision 22 -> 24.
21763         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21764         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21765         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21766         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21767         is_WBP_MIDLETTER.
21768         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21769         the code1 and code2 of each composition rule.
21770         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21771         * lib/unicase/ignorable.h: Likewise.
21772         * lib/unicase/tocasefold.h: Likewise.
21773         * lib/unicase/tolower.h: Likewise.
21774         * lib/unicase/totitle.h: Likewise.
21775         * lib/unicase/toupper.h: Likewise.
21776         * lib/unictype/bidi_of.h: Likewise.
21777         * lib/unictype/blocks.h: Likewise.
21778         * lib/unictype/categ_C.h: Likewise.
21779         * lib/unictype/categ_Cf.h: Likewise.
21780         * lib/unictype/categ_Cn.h: Likewise.
21781         * lib/unictype/categ_L.h: Likewise.
21782         * lib/unictype/categ_Ll.h: Likewise.
21783         * lib/unictype/categ_Lm.h: Likewise.
21784         * lib/unictype/categ_Lo.h: Likewise.
21785         * lib/unictype/categ_Lu.h: Likewise.
21786         * lib/unictype/categ_M.h: Likewise.
21787         * lib/unictype/categ_Mc.h: Likewise.
21788         * lib/unictype/categ_Mn.h: Likewise.
21789         * lib/unictype/categ_N.h: Likewise.
21790         * lib/unictype/categ_Nd.h: Likewise.
21791         * lib/unictype/categ_Nl.h: Likewise.
21792         * lib/unictype/categ_No.h: Likewise.
21793         * lib/unictype/categ_P.h: Likewise.
21794         * lib/unictype/categ_Pd.h: Likewise.
21795         * lib/unictype/categ_Po.h: Likewise.
21796         * lib/unictype/categ_S.h: Likewise.
21797         * lib/unictype/categ_Sc.h: Likewise.
21798         * lib/unictype/categ_So.h: Likewise.
21799         * lib/unictype/categ_of.h: Likewise.
21800         * lib/unictype/combining.h: Likewise.
21801         * lib/unictype/ctype_alnum.h: Likewise.
21802         * lib/unictype/ctype_alpha.h: Likewise.
21803         * lib/unictype/ctype_graph.h: Likewise.
21804         * lib/unictype/ctype_lower.h: Likewise.
21805         * lib/unictype/ctype_print.h: Likewise.
21806         * lib/unictype/ctype_punct.h: Likewise.
21807         * lib/unictype/ctype_upper.h: Likewise.
21808         * lib/unictype/decdigit.h: Likewise.
21809         * lib/unictype/digit.h: Likewise.
21810         * lib/unictype/numeric.h: Likewise.
21811         * lib/unictype/pr_alphabetic.h: Likewise.
21812         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21813         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21814         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21815         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21816         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21817         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21818         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21819         * lib/unictype/pr_combining.h: Likewise.
21820         * lib/unictype/pr_composite.h: Likewise.
21821         * lib/unictype/pr_currency_symbol.h: Likewise.
21822         * lib/unictype/pr_dash.h: Likewise.
21823         * lib/unictype/pr_decimal_digit.h: Likewise.
21824         * lib/unictype/pr_deprecated.h: Likewise.
21825         * lib/unictype/pr_diacritic.h: Likewise.
21826         * lib/unictype/pr_extender.h: Likewise.
21827         * lib/unictype/pr_grapheme_base.h: Likewise.
21828         * lib/unictype/pr_grapheme_extend.h: Likewise.
21829         * lib/unictype/pr_grapheme_link.h: Likewise.
21830         * lib/unictype/pr_id_continue.h: Likewise.
21831         * lib/unictype/pr_id_start.h: Likewise.
21832         * lib/unictype/pr_ideographic.h: Likewise.
21833         * lib/unictype/pr_ignorable_control.h: Likewise.
21834         * lib/unictype/pr_logical_order_exception.h: Likewise.
21835         * lib/unictype/pr_lowercase.h: Likewise.
21836         * lib/unictype/pr_numeric.h: Likewise.
21837         * lib/unictype/pr_other_alphabetic.h: Likewise.
21838         * lib/unictype/pr_punctuation.h: Likewise.
21839         * lib/unictype/pr_sentence_terminal.h: Likewise.
21840         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21841         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21842         * lib/unictype/pr_unified_ideograph.h: Likewise.
21843         * lib/unictype/pr_uppercase.h: Likewise.
21844         * lib/unictype/pr_xid_continue.h: Likewise.
21845         * lib/unictype/pr_xid_start.h: Likewise.
21846         * lib/unictype/pr_zero_width.h: Likewise.
21847         * lib/unictype/scripts.h: Likewise.
21848         * lib/unictype/scripts_byname.gperf: Likewise.
21849         * lib/unictype/sy_java_ident.h: Likewise.
21850         * lib/unigbrk/gbrkprop.h: Likewise.
21851         * lib/unilbrk/lbrkprop1.h: Likewise.
21852         * lib/unilbrk/lbrkprop2.h: Likewise.
21853         * lib/unilbrk/lbrktables.h: Likewise.
21854         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21855         LBP_CP. Implement rule LB30.
21856         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21857         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21858         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21859         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21860         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21861         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21862         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21863         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21864         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21865         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21866         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21867         bits instead of 16 bits in the code1 and code2 of each composition
21868         rule.
21869         (uc_composition): Update for Unicode 5.2.0.
21870         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21871         * lib/uninorm/decomposition-table2.h: Likewise.
21872         * lib/uniwbrk/wbrkprop.h: Likewise.
21873         * tests/unicase/test-cased.c: Likewise.
21874         * tests/unicase/test-ignorable.c: Likewise.
21875         * tests/unicase/test-uc_tolower.c: Likewise.
21876         * tests/unicase/test-uc_totitle.c: Likewise.
21877         * tests/unicase/test-uc_toupper.c: Likewise.
21878         * tests/unictype/test-categ_C.c: Likewise.
21879         * tests/unictype/test-categ_Cf.c: Likewise.
21880         * tests/unictype/test-categ_Cn.c: Likewise.
21881         * tests/unictype/test-categ_L.c: Likewise.
21882         * tests/unictype/test-categ_Ll.c: Likewise.
21883         * tests/unictype/test-categ_Lm.c: Likewise.
21884         * tests/unictype/test-categ_Lo.c: Likewise.
21885         * tests/unictype/test-categ_Lu.c: Likewise.
21886         * tests/unictype/test-categ_M.c: Likewise.
21887         * tests/unictype/test-categ_Mc.c: Likewise.
21888         * tests/unictype/test-categ_Mn.c: Likewise.
21889         * tests/unictype/test-categ_N.c: Likewise.
21890         * tests/unictype/test-categ_Nd.c: Likewise.
21891         * tests/unictype/test-categ_Nl.c: Likewise.
21892         * tests/unictype/test-categ_No.c: Likewise.
21893         * tests/unictype/test-categ_P.c: Likewise.
21894         * tests/unictype/test-categ_Pd.c: Likewise.
21895         * tests/unictype/test-categ_Po.c: Likewise.
21896         * tests/unictype/test-categ_S.c: Likewise.
21897         * tests/unictype/test-categ_Sc.c: Likewise.
21898         * tests/unictype/test-categ_So.c: Likewise.
21899         * tests/unictype/test-ctype_alnum.c: Likewise.
21900         * tests/unictype/test-ctype_alpha.c: Likewise.
21901         * tests/unictype/test-ctype_graph.c: Likewise.
21902         * tests/unictype/test-ctype_lower.c: Likewise.
21903         * tests/unictype/test-ctype_print.c: Likewise.
21904         * tests/unictype/test-ctype_punct.c: Likewise.
21905         * tests/unictype/test-ctype_upper.c: Likewise.
21906         * tests/unictype/test-decdigit.h: Likewise.
21907         * tests/unictype/test-digit.h: Likewise.
21908         * tests/unictype/test-numeric.h: Likewise.
21909         * tests/unictype/test-pr_alphabetic.c: Likewise.
21910         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21911         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21912         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21913         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21914         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21915         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21916         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21917         * tests/unictype/test-pr_combining.c: Likewise.
21918         * tests/unictype/test-pr_composite.c: Likewise.
21919         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21920         * tests/unictype/test-pr_dash.c: Likewise.
21921         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21922         * tests/unictype/test-pr_deprecated.c: Likewise.
21923         * tests/unictype/test-pr_diacritic.c: Likewise.
21924         * tests/unictype/test-pr_extender.c: Likewise.
21925         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21926         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21927         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21928         * tests/unictype/test-pr_id_continue.c: Likewise.
21929         * tests/unictype/test-pr_id_start.c: Likewise.
21930         * tests/unictype/test-pr_ideographic.c: Likewise.
21931         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21932         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21933         * tests/unictype/test-pr_lowercase.c: Likewise.
21934         * tests/unictype/test-pr_numeric.c: Likewise.
21935         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21936         * tests/unictype/test-pr_punctuation.c: Likewise.
21937         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21938         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21939         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21940         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21941         * tests/unictype/test-pr_uppercase.c: Likewise.
21942         * tests/unictype/test-pr_xid_continue.c: Likewise.
21943         * tests/unictype/test-pr_xid_start.c: Likewise.
21944         * tests/unictype/test-pr_zero_width.c: Likewise.
21945         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21946         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21947         changed behaviour: line breaking is now disallowed between a letter
21948         or '=' and '('.
21949         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21950         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21951         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21952         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21953         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21954         lib/uniwidth/width.c.
21955         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21956         without comments, but with the original copyright notice.
21957         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21958         changes.
21959         * lib/unictype/categ_Cc.h: Likewise.
21960         * lib/unictype/categ_Co.h: Likewise.
21961         * lib/unictype/categ_Cs.h: Likewise.
21962         * lib/unictype/categ_Lt.h: Likewise.
21963         * lib/unictype/categ_Me.h: Likewise.
21964         * lib/unictype/categ_Pc.h: Likewise.
21965         * lib/unictype/categ_Pe.h: Likewise.
21966         * lib/unictype/categ_Pf.h: Likewise.
21967         * lib/unictype/categ_Pi.h: Likewise.
21968         * lib/unictype/categ_Ps.h: Likewise.
21969         * lib/unictype/categ_Sk.h: Likewise.
21970         * lib/unictype/categ_Sm.h: Likewise.
21971         * lib/unictype/categ_Z.h: Likewise.
21972         * lib/unictype/categ_Zl.h: Likewise.
21973         * lib/unictype/categ_Zp.h: Likewise.
21974         * lib/unictype/categ_Zs.h: Likewise.
21975         * lib/unictype/ctype_blank.h: Likewise.
21976         * lib/unictype/ctype_cntrl.h: Likewise.
21977         * lib/unictype/ctype_digit.h: Likewise.
21978         * lib/unictype/ctype_space.h: Likewise.
21979         * lib/unictype/ctype_xdigit.h: Likewise.
21980         * lib/unictype/mirror.h: Likewise.
21981         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21982         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21983         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21984         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21985         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21986         * lib/unictype/pr_bidi_control.h: Likewise.
21987         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21988         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21989         * lib/unictype/pr_bidi_pdf.h: Likewise.
21990         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21991         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21992         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21993         * lib/unictype/pr_format_control.h: Likewise.
21994         * lib/unictype/pr_hex_digit.h: Likewise.
21995         * lib/unictype/pr_hyphen.h: Likewise.
21996         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21997         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21998         * lib/unictype/pr_iso_control.h: Likewise.
21999         * lib/unictype/pr_join_control.h: Likewise.
22000         * lib/unictype/pr_left_of_pair.h: Likewise.
22001         * lib/unictype/pr_line_separator.h: Likewise.
22002         * lib/unictype/pr_math.h: Likewise.
22003         * lib/unictype/pr_non_break.h: Likewise.
22004         * lib/unictype/pr_not_a_character.h: Likewise.
22005         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22006         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22007         * lib/unictype/pr_other_id_continue.h: Likewise.
22008         * lib/unictype/pr_other_id_start.h: Likewise.
22009         * lib/unictype/pr_other_lowercase.h: Likewise.
22010         * lib/unictype/pr_other_math.h: Likewise.
22011         * lib/unictype/pr_other_uppercase.h: Likewise.
22012         * lib/unictype/pr_paired_punctuation.h: Likewise.
22013         * lib/unictype/pr_paragraph_separator.h: Likewise.
22014         * lib/unictype/pr_pattern_syntax.h: Likewise.
22015         * lib/unictype/pr_pattern_white_space.h: Likewise.
22016         * lib/unictype/pr_private_use.h: Likewise.
22017         * lib/unictype/pr_quotation_mark.h: Likewise.
22018         * lib/unictype/pr_radical.h: Likewise.
22019         * lib/unictype/pr_soft_dotted.h: Likewise.
22020         * lib/unictype/pr_space.h: Likewise.
22021         * lib/unictype/pr_titlecase.h: Likewise.
22022         * lib/unictype/pr_variation_selector.h: Likewise.
22023         * lib/unictype/pr_white_space.h: Likewise.
22024         * lib/unictype/sy_c_ident.h: Likewise.
22025         * lib/unictype/sy_c_whitespace.h: Likewise.
22026         * lib/unictype/sy_java_whitespace.h: Likewise.
22027         * modules/uni*/*: Bump version number of expected libunistring version.
22028         Reported by Simon Josefsson.
22029
22030 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22031
22032         useless-if-before-free: fix typo in --help and make the internal,
22033         automatic version date update process work once again.
22034         --help output contained a NUL character instead of the
22035         backslash-zero that was intended.  Also, the "must lie within
22036         the first 8 lines" line is on line 9, and hence not getting
22037         automatically updated.
22038         * build-aux/useless-if-before-free: Fix the former by adding a
22039         backslash, and the latter by condensing the three lines of what-it-does
22040         to a single line, leaving one line of slack for the future.
22041
22042 2011-01-09  Bruno Haible  <bruno@clisp.org>
22043
22044         uniwidth/width: Fix width of U+1D173..U+1D17A.
22045         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22046         symbolic_width, output_width_property_test): New functions.
22047         (main): Invoke output_nonspacing_property, output_width_property_test.
22048         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22049         U+1D173..U+1D17A.
22050         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22051         1.
22052         * modules/uniwidth/*: Bump version number of expected libunistring
22053         version.
22054         * modules/unilbrk/*: Likewise.
22055
22056 2011-01-08  Bruno Haible  <bruno@clisp.org>
22057
22058         uninorm tests: Preserve copyright of Unicode data file.
22059         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22060         Mention modifications.
22061
22062 2011-01-08  Bruno Haible  <bruno@clisp.org>
22063
22064         gen-uni-tables: Prepare for Unicode 5.2.0.
22065         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22066         (debug_output_lbp, output_lbp): Update.
22067
22068 2011-01-08  Bruno Haible  <bruno@clisp.org>
22069
22070         unilbrk: Clarify gen-uni-tables.c code.
22071         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22072         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22073         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22074
22075 2011-01-07  Bruno Haible  <bruno@clisp.org>
22076
22077         strtod: Restore errno when successfully parsing Infinity or NaN.
22078         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22079         restore the original errno.
22080
22081 2011-01-07  Bruno Haible  <bruno@clisp.org>
22082
22083         remove test: Avoid failure on HP-UX 11.
22084         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22085
22086 2011-01-07  Bruno Haible  <bruno@clisp.org>
22087
22088         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22089         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22090         error code.
22091
22092 2011-01-07  Pádraig Brady <P@draigBrady.com>
22093
22094         ignore-value: fixup comments, and add Eric Blake
22095         as an author since he rewrote the macros.
22096         * lib/ignore-value.h (ignore_value):  State that
22097         we now support aggregates.  Also specify exactly
22098         when the GCC warn_unused_result feature was added.
22099
22100 2011-01-06  Eric Blake  <eblake@redhat.com>
22101
22102         ignore-value: support aggregate types
22103         * lib/ignore-value.h (ignore_value): Provide separate gcc
22104         definition.
22105         * modules/ignore-value-tests: New test module.
22106         * tests/test-ignore-value.c: New test.
22107
22108         maint.mk: improve sc_prohibit_strcmp regex
22109         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22110         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22111         definition of STRNEQ.
22112
22113         signal: work around Haiku issue with SIGBUS
22114         * lib/siglist.h: Add comment.
22115         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22116         strsignal's favoring of SIGSEGV.
22117         * tests/test-signal.c (main): Avoid test failure.
22118         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22119         Reported by Scott McCreary.
22120
22121         maint.mk: add pre-release check to ensure submodule commits are public
22122         * top/maint.mk (public-submodule-commit): New rule.
22123         (submodule-checks): New variable.
22124         (alpha beta stable): Depend on the variable.
22125
22126 2011-01-05  Pádraig Brady <P@draigBrady.com>
22127         and Jim Meyering  <meyering@redhat.com>
22128
22129         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22130         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22131         (ATTRIBUTE_DEPRECATED): Define.
22132         (_ignore_case): New function.
22133         (ignore_value): New macro, to replace the old function.
22134         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22135         * modules/ignore-value (Depends-on): Add stdint.
22136
22137 2011-01-04  Eric Blake  <eblake@redhat.com>
22138
22139         doc: regenerate INSTALL
22140         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22141         @firstparagraphindent support, now that autoconf dropped it.
22142         (INSTALL_PRELUDE): Reinstate old macro.
22143         * doc/install.texi: Resync from autoconf.
22144         * doc/INSTALL: Reflect recent autoconf update.
22145         * doc/INSTALL.ISO: Likewise.
22146         * doc/INSTALL.UTF-8: Likewise.
22147         Reported by Karl Berry.
22148
22149 2011-01-04  Bruce Korb  <address@hidden>
22150
22151         git-version-gen: avoid a sub-shell
22152         * build-aux/git-version-gen: Redirect stderr in `...` via
22153         "exec 2>...", rather than via an added sub-shell.
22154
22155 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22156
22157         git-version-gen: use (...) rather than sh -c '...'
22158         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22159         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22160
22161 2011-01-03  Jim Meyering  <meyering@redhat.com>
22162
22163         git-version-gen: convert leading TABs to spaces
22164         * build-aux/git-version-gen: Expand leading TABs.
22165
22166         git-version-gen: handle failed "git rev-list"
22167         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22168         from git and proceeding as if it had succeeded but printed no SHA1
22169         checksums, suppress the diagnostic and handle the failure.
22170         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22171
22172         git-version-gen: include command name in one more diagnostic
22173         * build-aux/git-version-gen: When the required .tarball-version file
22174         was missing or unreadable, you might see the diagnostic from "cat",
22175         but no trace of the name of the invoking script.  Now, you still see
22176         the diagnostic from cat, but also get one from "git-version-gen: ".
22177         Inspired by a patch from Bruce Korb.
22178
22179         update-copyright: adjust test to match changed code
22180         * tests/test-update-copyright.sh: Change test's expected output
22181         to match new actual output.
22182
22183 2011-01-02  Bruno Haible  <bruno@clisp.org>
22184
22185         getlogin_r: Avoid test failure on HP-UX 11.
22186         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22187         ERANGE when the second argument is zero.
22188         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22189         portability problem.
22190
22191 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22192
22193         * build-aux/update-copyright: doc Simon's changes
22194
22195 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22196
22197         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22198         environment variable.
22199
22200 2011-01-02  Bruno Haible  <bruno@clisp.org>
22201
22202         unigbrk: Avoid gcc warnings.
22203         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22204         unused variable.
22205         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22206         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22207         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22208         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22209         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22210         Change type of first argument to 'const char *'.
22211         (main): Remove unused variable.
22212         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22213         type of first argument to 'const char *'.
22214         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22215         Likewise.
22216         (main): Change type of variable 's'.
22217         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22218         to 'int'.
22219
22220 2011-01-02  Bruno Haible  <bruno@clisp.org>
22221
22222         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22223         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22224         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22225         bug.
22226         * lib/pwrite.c: Undo 2010-12-31 patch.
22227         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22228
22229 2011-01-02  Bruno Haible  <bruno@clisp.org>
22230
22231         pread: Fix test whether it works.
22232         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22233
22234 2011-01-02  Bruno Haible  <bruno@clisp.org>
22235
22236         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22237         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22238         ends in "6". Don't require a specific month name. Try also the locale
22239         names found on HP-UX 11 and Solaris 7.
22240
22241 2011-01-02  Bruno Haible  <bruno@clisp.org>
22242
22243         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22244         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22245         C linkage.
22246         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22247
22248 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22249
22250         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22251         for consistency, since the "cluster" term is not used elsewhere.
22252         * lib/unigbrk.in.h: Update name.
22253         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22254         * lib/unigbrk/u16-grapheme-next.c: Update name.
22255         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22256         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22257         * lib/unigbrk/u32-grapheme-next.c: Update name.
22258         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22259         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22260         * lib/unigbrk/u8-grapheme-next.c: Update name.
22261         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22262         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22263         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22264         Suggested by Bruno Haible.
22265
22266 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22267
22268         Remove module 'u8-grapheme-len' as too redundant with
22269         'u8-grapheme-next'.
22270         * modules/unigbrk/u8-grapheme-len: Delete file.
22271         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22272         * lib/unigbrk.in.h: Remove prototype for deleted function.
22273         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22274         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22275
22276         Remove module 'u16-grapheme-len' as too redundant with
22277         'u16-grapheme-next'.
22278         * modules/unigbrk/u16-grapheme-len: Delete file.
22279         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22280         * lib/unigbrk.in.h: Remove prototype for deleted function.
22281         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22282         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22283
22284         Remove module 'u32-grapheme-len' as too redundant with
22285         'u32-grapheme-next'.
22286         * modules/unigbrk/u32-grapheme-len: Delete file.
22287         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22288         * lib/unigbrk.in.h: Remove prototype for deleted function.
22289         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22290         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22291
22292         Suggested by Bruno Haible.
22293
22294 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22295
22296         * unigbrk.in.h: Fix typo: "ben" => "been".
22297         Reported by Bruno Haible.
22298
22299 2011-01-01  Jim Meyering  <meyering@redhat.com>
22300
22301         maint: update almost all copyright ranges to include 2011
22302         Run the new "make update-copyright" rule.
22303
22304 2011-01-01  Jim Meyering  <meyering@redhat.com>
22305
22306         maint: update-copyright: exempt doc/INSTALL*
22307         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22308         since they are generated.  Suggested by Bruno Haible.
22309
22310 2011-01-01  Jim Meyering  <meyering@redhat.com>
22311
22312         maint: refine the update-copyright rule
22313         * Makefile (update-copyright): Also exclude any file that includes
22314         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22315         code that merely generates the comment.
22316
22317 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22318
22319         New module 'u8-grapheme-len'.
22320         * modules/unigbrk/u8-grapheme-len: New file.
22321         * modules/unigbrk/u8-grapheme-len-tests: New file.
22322         * lib/unigbrk.in.h: Add prototype for new function.
22323         * lib/unigbrk/u8-grapheme-len.c: New file.
22324         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22325
22326         New module 'u16-grapheme-len'.
22327         * modules/unigbrk/u16-grapheme-len: New file.
22328         * modules/unigbrk/u16-grapheme-len-tests: New file.
22329         * lib/unigbrk.in.h: Add prototype for new function.
22330         * lib/unigbrk/u16-grapheme-len.c: New file.
22331         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22332
22333         New module 'u32-grapheme-len'.
22334         * modules/unigbrk/u32-grapheme-len: New file.
22335         * modules/unigbrk/u32-grapheme-len-tests: New file.
22336         * lib/unigbrk.in.h: Add prototype for new function.
22337         * lib/unigbrk/u32-grapheme-len.c: New file.
22338         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22339
22340         New module 'u8-grapheme-next'.
22341         * modules/unigbrk/u8-grapheme-next: New file.
22342         * modules/unigbrk/u8-grapheme-next-tests: New file.
22343         * lib/unigbrk.in.h: Add prototype for new function.
22344         * lib/unigbrk/u8-grapheme-next.c: New file.
22345         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22346
22347         New module 'u16-grapheme-next'.
22348         * modules/unigbrk/u16-grapheme-next: New file.
22349         * modules/unigbrk/u16-grapheme-next-tests: New file.
22350         * lib/unigbrk.in.h: Add prototype for new function.
22351         * lib/unigbrk/u16-grapheme-next.c: New file.
22352         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22353
22354         New module 'u32-grapheme-next'.
22355         * modules/unigbrk/u32-grapheme-next: New file.
22356         * modules/unigbrk/u32-grapheme-next-tests: New file.
22357         * lib/unigbrk.in.h: Add prototype for new function.
22358         * lib/unigbrk/u32-grapheme-next.c: New file.
22359         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22360
22361         New module 'u8-grapheme-prev'.
22362         * modules/unigbrk/u8-grapheme-prev: New file.
22363         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22364         * lib/unigbrk.in.h: Add prototype for new function.
22365         * lib/unigbrk/u8-grapheme-prev.c: New file.
22366         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22367
22368         New module 'u16-grapheme-prev'.
22369         * modules/unigbrk/u16-grapheme-prev: New file.
22370         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22371         * lib/unigbrk.in.h: Add prototype for new function.
22372         * lib/unigbrk/u16-grapheme-prev.c: New file.
22373         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22374
22375         New module 'u32-grapheme-prev'.
22376         * modules/unigbrk/u32-grapheme-prev: New file.
22377         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22378         * lib/unigbrk.in.h: Add prototype for new function.
22379         * lib/unigbrk/u32-grapheme-prev.c: New file.
22380         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22381
22382         New module 'u8-grapheme-breaks'.
22383         * modules/unigbrk/u8-grapheme-breaks: New file.
22384         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22385         * lib/unigbrk.in.h: Add prototype for new function.
22386         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22387         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22388
22389         New module 'u16-grapheme-breaks'.
22390         * modules/unigbrk/u16-grapheme-breaks: New file.
22391         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22392         * lib/unigbrk.in.h: Add prototype for new function.
22393         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22394         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22395
22396         New module 'u32-grapheme-breaks'.
22397         * modules/unigbrk/u32-grapheme-breaks: New file.
22398         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22399         * lib/unigbrk.in.h: Add prototype for new function.
22400         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22401         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22402
22403         New module 'ulc-grapheme-breaks'.
22404         * modules/unigbrk/ulc-grapheme-breaks: New file.
22405         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22406         * m4/locale-ar.m4: New file.
22407         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22408         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22409         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22410
22411 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22412
22413         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22414         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22415         modified how this file was generated before I initially submitted
22416         the module, but failed to regenerate it.  This meant that several
22417         of the level2 entries were wrong.
22418         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22419         Remove the division-by-2 that is folded into the table now that
22420         gbrkprop.h has been regenerated properly.  Now -1 entries are
22421         handled correctly.
22422
22423         New module 'unigbrk/uc-gbrk-prop-tests'.
22424         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22425         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22426         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22427         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22428
22429 2011-01-01  Bruno Haible  <bruno@clisp.org>
22430
22431         Avoid use of hexadecimal escapes.
22432         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22433         instead of hexadecimal escapes.
22434
22435 2011-01-01  Jim Meyering  <meyering@redhat.com>
22436
22437         maint: new rule to update copyright year ranges
22438         * Makefile (update-copyright): New rule.
22439
22440         maint: indent with TABs in Makefile
22441         * Makefile: Expand leading sequences of spaces to TABs
22442
22443         version-etc: update the copyright year it reports
22444         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22445
22446 2010-12-31  Bruno Haible  <bruno@clisp.org>
22447
22448         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22449         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22450         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22451         zero.
22452
22453 2010-12-31  Bruno Haible  <bruno@clisp.org>
22454
22455         pwrite: Work around HP-UX 11.11 bug.
22456         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22457         works and set REPLACE_PWRITE if not.
22458         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22459         function.
22460         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22461
22462 2010-12-31  Bruno Haible  <bruno@clisp.org>
22463
22464         pread: Work around HP-UX 11 bugs.
22465         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22466         and set REPLACE_PREAD if not.
22467         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22468
22469 2010-12-31  Eric Blake  <eblake@redhat.com>
22470
22471         nl_langinfo: fix YESEXPR on Irix 6.5
22472         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22473         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22474         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22475         it.
22476
22477 2010-12-31  Bruno Haible  <bruno@clisp.org>
22478
22479         iconv: Document HP-UX 11 bug.
22480         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22481
22482 2010-12-31  Bruno Haible  <bruno@clisp.org>
22483
22484         ldexpl: Fix link error on HP-UX 11.
22485         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22486         LDEXPL_LIBM, using $ISNANL_LIBM.
22487
22488 2010-12-31  Eric Blake  <eblake@redhat.com>
22489
22490         ftello: avoid compilation failure with SunStudio c89
22491         * lib/ftello.c (ftello): Use lseek, not llseek.
22492
22493         tests: avoid failing coreutils tests on cygwin
22494         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22495         (create_exe_shims_): Return 0 when skipping.
22496
22497 2010-12-31  Bruno Haible  <bruno@clisp.org>
22498
22499         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22500         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22501
22502 2010-12-31  Bruno Haible  <bruno@clisp.org>
22503
22504         waitpid: Fix link error in C++ mode.
22505         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22506
22507 2010-12-31  Bruno Haible  <bruno@clisp.org>
22508
22509         isnan: Use GCC built-ins when possible.
22510         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22511         __builtin_isnan.
22512         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22513         (isnan): Define using GCC built-ins for GCC >= 4.0.
22514
22515 2010-12-31  Bruno Haible  <bruno@clisp.org>
22516
22517         isnand: Fix mistake.
22518         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22519         __builtin_isnand.
22520
22521 2010-12-31  Bruno Haible  <bruno@clisp.org>
22522
22523         open: Avoid C++ error on HP-UX 11.
22524         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22525
22526 2010-12-31  Bruno Haible  <bruno@clisp.org>
22527
22528         time_r: Add missing declarations on HP-UX 11.
22529         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22530         instead of HAVE_LOCALTIME_R.
22531         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22532         HAVE_LOCALTIME_R always.
22533         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22534         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22535         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22536         HAVE_LOCALTIME_R.
22537         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22538         * doc/posix-functions/localtime_r.texi: Likewise.
22539
22540 2010-12-29  Eric Blake  <eblake@redhat.com>
22541
22542         mountlist: tweak previous commit
22543         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22544         Reported by Paul Eggert.
22545
22546         mountlist: fix local drive detection on cygwin
22547         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22548         that works for cygwin.
22549
22550 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22551
22552         ftoastr, snprintf: ftoastr + snprintf module
22553         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22554         since the snprintf module now should be good enough here.
22555         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22556         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22557         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22558         GNULIB_SNPRINTF only for the test directory, and the latter
22559         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22560         seems to suffice by itself.
22561
22562 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22563
22564         alloca: one step towards thread-safety
22565         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22566         need for a static variable.  All callers changed.  This does not
22567         make the alloca replacement thread-safe, but it's one step.
22568
22569         tests: minor indenting change
22570         * tests/init.sh: Sync from coreutils housekeeping patch
22571         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22572         to keep lines within 80 columns.
22573
22574 2010-12-28  Jim Meyering  <meyering@redhat.com>
22575
22576         regex: don't infloop on persistent failing calloc
22577         * lib/regexec.c (build_trtable): Return failure indication upon
22578         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22579         In glibc, this was fixed for version 2.13:
22580         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22581
22582 2010-12-28  Bruno Haible  <bruno@clisp.org>
22583             Paul Eggert <eggert@cs.ucla.edu>
22584
22585         linkat: Make implementation robust against system behaviour variations.
22586         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22587         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22588         way, and to -2 if it needs a generic runtime test.
22589         * lib/linkat.c (solaris_optimized_link_immediate,
22590         solaris_optimized_link_follow): New functions.
22591         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22592         (check_same_link): Use it.
22593
22594 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22595
22596         New module 'unigbrk/base'.
22597         * modules/unigbrk/base: New file.
22598         * lib/unigbrk.in.h: New file.
22599
22600         New module 'unigbrk/uc-gbrk-prop'.
22601         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22602         * modules/unigbrk/uc-gbrk-prop: New file.
22603         * lib/unigbrk/gbrkprop.h: New file.
22604         * lib/unigbrk/uc-gbrk-prop.c: New file.
22605
22606         New module 'unigbrk/uc-is-grapheme-break'.
22607         * modules/unigbrk/uc-is-grapheme-break: New file.
22608         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22609         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22610         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22611         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22612         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22613
22614         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22615
22616 2010-12-27  Bruno Haible  <bruno@clisp.org>
22617
22618         linkat test: Avoid failure on Solaris 11 2010-11.
22619         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22620
22621 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22622
22623         utimens: work around glibc rounding bug on more platforms
22624         * lib/utimens.c (fdutimens): Work around rounding bug even if
22625         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22626         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22627
22628 2010-12-27  Bruno Haible  <bruno@clisp.org>
22629
22630         select tests: Improve comments.
22631         * tests/test-select.c (do_select): Add comments.
22632
22633 2010-12-27  Bruno Haible  <bruno@clisp.org>
22634
22635         select tests: Safer way of handling timeout.
22636         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22637         at every invocation.
22638
22639 2010-12-27  Bruno Haible  <bruno@clisp.org>
22640
22641         select tests: Use 'bool' where appropriate.
22642         * tests/test-select.c (connect_to_socket): Change argument type to
22643         'bool'.
22644
22645 2010-12-27  Bruno Haible  <bruno@clisp.org>
22646
22647         select tests: Use existing modules.
22648         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22649         (configure.ac): Don't test for unistd.h.
22650         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22651         declared in <unistd.h>.
22652
22653 2010-12-27  Bruno Haible  <bruno@clisp.org>
22654
22655         mbrtowc: Work around a Solaris 7 bug.
22656         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22657         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22658         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22659         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22660         MBRTOWC_NULL_ARG1_BUG.
22661         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22662         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22663         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22664         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22665
22666 2010-12-27  Jim Meyering  <meyering@redhat.com>
22667
22668         read-file.c: tweak syntax
22669         * lib/read-file.c (fread_file): Remove space after "*" in function
22670         definitions.
22671
22672 2010-12-27  Bruno Haible  <bruno@clisp.org>
22673
22674         times test: Avoid gcc warnings on OSF/1.
22675         * tests/test-times.c (main): Cast printf arguments from clock_t to
22676         'long int'.
22677
22678 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22679
22680         utimens: work around glibc rounding bug on older Linux kernels
22681         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22682         on Linux with a glibc whose utimes might not work, then work
22683         around a longstanding glibc bug involving rounding rather than
22684         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22685         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22686
22687 2010-12-26  Bruno Haible  <bruno@clisp.org>
22688
22689         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22690         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22691         _GL_CXXALIAS_SYS.
22692         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22693
22694 2010-12-26  Bruno Haible  <bruno@clisp.org>
22695
22696         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22697         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22698         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22699         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22700         looking for the declaration.
22701         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22702         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22703         problem.
22704         * doc/posix-functions/inet_pton.texi: Likewise.
22705
22706 2010-12-26  Bruno Haible  <bruno@clisp.org>
22707
22708         arpa_inet: Use the common idioms with C++ support.
22709         * lib/arpa_inet.in.h: Include c++defs.h.
22710         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22711         support.
22712         * modules/arpa_inet (Depends-on): Add c++defs.
22713         (Makefile.am): Substitute the contents of c++defs.h.
22714         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22715         * modules/arpa_inet-c++-tests: New file.
22716         * tests/test-arpa_inet-c++.cc: New file.
22717
22718 2010-12-25  Bruno Haible  <bruno@clisp.org>
22719
22720         Fix more C++ link errors on Solaris 8.
22721         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22722         $(LIB_EACCESS).
22723         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22724         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22725         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22726         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22727         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22728
22729 2010-12-25  Bruno Haible  <bruno@clisp.org>
22730
22731         printf-posix: Fix link error when a non-GCC compiler is used.
22732         * lib/stdio.in.h (printf): When not using GCC, override printf
22733         correctly.
22734         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22735
22736 2010-12-25  Bruno Haible  <bruno@clisp.org>
22737
22738         strerror_r-posix: Update doc.
22739         * doc/posix-functions/strerror_r.texi: Update doc about the return
22740         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22741
22742 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22743
22744         utimens: simplify the logic of the previous change
22745         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22746         This should not affect whether the test succeeds or fails.
22747
22748         utimens: configure better on hosts with NFS clock skew
22749         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22750         uses the clock of the local host.  It might use the clock of the
22751         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22752         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22753
22754 2010-12-25  Bruno Haible  <bruno@clisp.org>
22755
22756         ptsname test: Avoid failure on Solaris.
22757         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22758         open a pseudo-terminal; don't use BSD-style ptys.
22759         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22760
22761 2010-12-25  Bruno Haible  <bruno@clisp.org>
22762
22763         ptsname: Avoid ERANGE failure on some systems.
22764         * lib/ptsname.c (buffer): Increase size.
22765
22766 2010-12-25  Bruno Haible  <bruno@clisp.org>
22767
22768         rename, renameat: Avoid test failures at NFS mounted locations.
22769         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22770         so that subsequent mkdir calls succeed.
22771
22772 2010-12-25  Bruno Haible  <bruno@clisp.org>
22773
22774         iswblank: Fix C++ link error on Solaris 8.
22775         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22776         _GL_FUNCDECL_SYS.
22777
22778 2010-12-25  Bruno Haible  <bruno@clisp.org>
22779
22780         unistd: Fix C++ link error on Solaris 8.
22781         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22782
22783 2010-12-25  Bruno Haible  <bruno@clisp.org>
22784
22785         readlink doc: Mention an old glibc bug.
22786         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22787
22788 2010-12-25  Bruno Haible  <bruno@clisp.org>
22789
22790         fcntl-h: Fix for use of C++ on glibc systems.
22791         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22792         also on glibc systems in C++ mode.
22793         Reported by Gary V. Vaughan <gary@gnu.org>.
22794
22795 2010-12-25  Bruno Haible  <bruno@clisp.org>
22796
22797         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22798         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22799
22800 2010-12-25  Bruno Haible  <bruno@clisp.org>
22801
22802         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22803         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22804         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22805         test whether truncl works according to ISO C 99 with IEC 60559.
22806         * m4/truncl-ieee.m4: New file.
22807         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22808         m4/signbit.m4.
22809         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22810
22811 2010-12-25  Bruno Haible  <bruno@clisp.org>
22812
22813         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22814         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22815         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22816         test whether ceill works according to ISO C 99 with IEC 60559.
22817         * m4/ceill-ieee.m4: New file.
22818         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22819         m4/signbit.m4.
22820         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22821
22822 2010-12-25  Bruno Haible  <bruno@clisp.org>
22823
22824         Ensure all prerequisites of <wchar.h> are included.
22825         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22826         before <wchar.h>.
22827         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22828         gl_MBRLEN_NUL_RETVAL): Likewise.
22829         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22830         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22831         AC_FUNC_MBRTOWC): Likewise.
22832         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22833         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22834         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22835         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22836         Likewise.
22837         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22838         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22839         (gl_WCHAR_H): Improve comments.
22840         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22841
22842 2010-12-25  Bruno Haible  <bruno@clisp.org>
22843
22844         strtok_r: Fix C syntax error in autoconf macro.
22845         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22846         characters in test program.
22847
22848 2010-12-24  Bruno Haible  <bruno@clisp.org>
22849
22850         ceil, trunc, round: Fix gcc warnings.
22851         * lib/ceil.c (MIN): Undefine before redefining.
22852         * lib/trunc.c (MIN): Likewise.
22853         * lib/round.c (MIN): Likewise.
22854         Include <math.h> first.
22855
22856 2010-12-24  Bruno Haible  <bruno@clisp.org>
22857
22858         select tests: Avoid failures on OSF/1 5.1.
22859         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22860         failure of closing the last socket; it may fail with ECONNRESET.
22861
22862 2010-12-24  Eric Blake  <eblake@redhat.com>
22863
22864         stdint: avoid HP-UX 10.20 preprocessor bug
22865         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22866         than #if.
22867         * tests/test-floor2.c (main): Likewise.
22868         Reported by Peter O'Gorman.
22869
22870         pipe: make obsoletion transition easier
22871         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22872         * modules/pipe (Files): Include revived file.
22873         (Include): Drop reference, to mirror getdate's behavior.
22874
22875 2010-12-24  Bruno Haible  <bruno@clisp.org>
22876
22877         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22878         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22879         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22880         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22881
22882 2010-12-24  Bruno Haible  <bruno@clisp.org>
22883
22884         gethostname: Ensure declaration on NonStop Kernel.
22885         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22886         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22887
22888 2010-12-24  Bruno Haible  <bruno@clisp.org>
22889
22890         sys_select: Ensure all necessary types on NonStop Kernel.
22891         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22892         include <sys/time.h>.
22893         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22894         NonStop Kernel.
22895         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22896
22897 2010-12-24  Bruno Haible  <bruno@clisp.org>
22898
22899         sys_select: Remove unneeded include.
22900         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22901         have <sys/select.h>.
22902
22903 2010-12-24  Bruno Haible  <bruno@clisp.org>
22904
22905         gethostname: Provide a fallback for HOST_NAME_MAX.
22906         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22907         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22908         instead.
22909         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22910
22911 2010-12-24  Bruno Haible  <bruno@clisp.org>
22912
22913         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22914         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22915         (SA_RESTART): Likewise.
22916         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22917
22918 2010-12-24  Bruno Haible  <bruno@clisp.org>
22919
22920         signal: Define NSIG.
22921         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22922         * tests/test-signal.c (nsig): New variable.
22923         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22924
22925 2010-12-24  Bruno Haible  <bruno@clisp.org>
22926
22927         rename, renameat: Avoid test failures on OSF/1 5.1.
22928         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22929         alternative error codes.
22930         * tests/test-renameat.c (main): Likewise.
22931
22932 2010-12-24  Bruno Haible  <bruno@clisp.org>
22933
22934         *printf: Detect large precisions bug on Solaris 10/SPARC.
22935         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22936         by Paul Eggert.
22937         * tests/test-snprintf-posix.h (test_function): Add this test code here
22938         too.
22939         * tests/test-sprintf-posix.h (test_function): Likewise.
22940         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22941         * tests/test-vasprintf-posix.c (test_function): Likewise.
22942         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22943         around by gnulib.
22944         * doc/posix-functions/printf.texi: Likewise.
22945         * doc/posix-functions/snprintf.texi: Likewise.
22946         * doc/posix-functions/sprintf.texi: Likewise.
22947         * doc/posix-functions/vfprintf.texi: Likewise.
22948         * doc/posix-functions/vprintf.texi: Likewise.
22949         * doc/posix-functions/vsnprintf.texi: Likewise.
22950         * doc/posix-functions/vsprintf.texi: Likewise.
22951         * doc/posix-functions/dprintf.texi: Undo last commit.
22952         * doc/posix-functions/vdprintf.texi: Likewise.
22953
22954 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22955
22956         tests: port test-fdutimensat.c to Solaris 8
22957         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22958         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22959         On Solaris 8, it fails with errno == ENOSYS, because there is no
22960         futimens (so it can't use the fd), and there is no lutimens (so it
22961         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22962
22963         vsnprintf: make more consistent with snprintf; doc fixes
22964
22965         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22966         the byte count return problem was promoted from the snprintf-posix
22967         to the snprintf module.
22968         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22969         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22970         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22971         * tests/test-snprintf.c (main): Check the byte count returned.
22972         * tests/test-vsnprintf.c (main): Likewise.
22973
22974 2010-12-23  Eric Blake  <eblake@redhat.com>
22975
22976         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22977         * modules/sigpipe (License): Relax license.
22978
22979 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22980
22981         doc: document Solaris printf bug with large float precisions
22982         * doc/posix-functions/dprintf.texi (dprintf):
22983         * doc/posix-functions/fprintf.texi (fprintf):
22984         * doc/posix-functions/printf.texi (printf):
22985         * doc/posix-functions/snprintf.texi (snprintf):
22986         * doc/posix-functions/sprintf.texi (sprintf):
22987         * doc/posix-functions/vdprintf.texi (vdprintf):
22988         * doc/posix-functions/vfprintf.texi (vfprintf):
22989         * doc/posix-functions/vprintf.texi (vprintf):
22990         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22991         * doc/posix-functions/vsprintf.texi (vsprintf):
22992         Mention that these functions mishandle large floating point
22993         precisions on Solaris 10.  The same bug is also present in Solaris
22994         8, and I assume earlier.  This causes "cd gnulib-tests; make
22995         check" to fail on Solaris 8 (and I assume, later) when building
22996         the latest coreutils, in test-vasprintf-posix's call to
22997         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22998         the wide flavors (e.g., wprintf) so this patch just updates the
22999         documentation for the narrow ones.
23000
23001         test-posixtm.c: add two tests
23002         * tests/test-posixtm.c: Add two tests, to highlight the
23003         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23004         around this bug; this is merely to document it.
23005
23006 2010-12-22  Bruno Haible  <bruno@clisp.org>
23007
23008         getlogin_r: Work around portability problem on OSF/1.
23009         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23010         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23011         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23012         test for a truncated result.
23013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23014         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23015         * modules/getlogin_r (Depends-on): Add memchr.
23016         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23017
23018 2010-12-22  Bruno Haible  <bruno@clisp.org>
23019
23020         ptsname: Avoid test failure on OSF/1 5.1.
23021         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23022         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23023         (same_slave): New function.
23024         (main): Use it to compare ptsname's result with the expected file name.
23025
23026 2010-12-22  Bruno Haible  <bruno@clisp.org>
23027
23028         Port extended stdio modules to HP NonStop Kernel.
23029         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23030         macros.
23031         * lib/fbufmode.c: Update comments.
23032         * lib/fflush.c: Likewise.
23033         * lib/fpurge.c: Likewise.
23034         * lib/freadable.c: Likewise.
23035         * lib/freadahead.c: Likewise.
23036         * lib/freading.c: Likewise.
23037         * lib/freadptr.c: Likewise.
23038         * lib/freadseek.c: Likewise.
23039         * lib/fseeko.c: Likewise.
23040         * lib/fseterr.c: Likewise.
23041         * lib/fwritable.c: Likewise.
23042         * lib/fwriting.c: Likewise.
23043         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23044
23045 2010-12-22  Bruno Haible  <bruno@clisp.org>
23046
23047         ttyname_r: Work around bug on OSF/1 5.1.
23048         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23049         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23050         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23051         present.
23052         * lib/ttyname_r.c (ttyname_r): Update comments.
23053
23054 2010-12-22  Bruno Haible  <bruno@clisp.org>
23055
23056         round: Implement result sign according to IEEE 754.
23057         * lib/round.c (MIN, MINUS_ZERO): New macros.
23058         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23059         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23060         * tests/test-round-ieee.c (main): Likewise.
23061         * tests/test-roundl-ieee.c (main): Likewise.
23062
23063         trunc: Implement result sign according to IEEE 754.
23064         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23065         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23066         * tests/test-trunc2.c: Include minus-zero.h.
23067         (MINUS_ZERO): New macro.
23068         (trunc_reference): Keep in sync with lib/trunc.c.
23069         * tests/test-truncf2.c: Include minus-zero.h.
23070         (MINUS_ZERO): New macro.
23071         (truncf_reference): Keep in sync with lib/trunc.c.
23072         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23073         * tests/test-trunc-ieee.c (main): Likewise.
23074         * tests/test-truncl-ieee.c (main): Likewise.
23075
23076         ceil: Implement result sign according to IEEE 754.
23077         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23078         (FUNC): Return -0.0 for -1 < x < 0.
23079         * tests/test-ceil2.c: Include minus-zero.h.
23080         (MINUS_ZERO): New macro.
23081         (ceil_reference): Keep in sync with lib/ceil.c.
23082         * tests/test-ceilf2.c: Include minus-zero.h.
23083         (MINUS_ZERO): New macro.
23084         (ceilf_reference): Keep in sync with lib/ceil.c.
23085         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23086         * tests/test-ceil-ieee.c (main): Likewise.
23087         * tests/test-ceill-ieee.c (main): Likewise.
23088
23089         floor: Implement result sign according to IEEE 754.
23090         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23091         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23092         * tests/test-floorf2.c (floorf_reference): Likewise.
23093         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23094         * tests/test-floor-ieee.c (main): Likewise.
23095         * tests/test-floorl-ieee.c (main): Likewise.
23096
23097 2010-12-22  Bruno Haible  <bruno@clisp.org>
23098
23099         getaddrinfo: Update doc.
23100         * doc/posix-functions/gai_strerror.texi: Return type is also different
23101         on AIX and HP-UX.
23102
23103 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23104
23105         getaddrinfo, inet_ntop: Update doc for Solaris.
23106         * doc/posix-functions/gai_strerror.texi: Return type is also an
23107         issue on Solaris 9 and earlier.
23108         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23109         on Solaris 10 and earlier.
23110
23111 2010-12-21  Bruno Haible  <bruno@clisp.org>
23112
23113         New module 'roundl-ieee'.
23114         * modules/roundl-ieee: New file.
23115         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23116         test whether roundl works according to ISO C 99 with IEC 60559.
23117         * m4/roundl-ieee.m4: New file.
23118         * modules/roundl-ieee-tests: New file.
23119         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23120         * tests/test-roundl.c (main): Remove signbit tests.
23121         * modules/roundl-tests (Depends-on): Remove signbit.
23122         * doc/posix-functions/roundl.texi: Mention the new module.
23123
23124 2010-12-21  Bruno Haible  <bruno@clisp.org>
23125
23126         New module 'truncl-ieee'.
23127         * modules/truncl-ieee: New file.
23128         * modules/truncl-ieee-tests: New file.
23129         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23130         * tests/test-truncl.c (main): Remove signbit tests.
23131         * modules/truncl-tests (Depends-on): Remove signbit.
23132         * doc/posix-functions/truncl.texi: Mention the new module.
23133
23134 2010-12-21  Bruno Haible  <bruno@clisp.org>
23135
23136         New module 'ceill-ieee'.
23137         * modules/ceill-ieee: New file.
23138         * modules/ceill-ieee-tests: New file.
23139         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23140         * tests/test-ceill.c (main): Remove signbit tests.
23141         * modules/ceill-tests (Depends-on): Remove signbit.
23142         * doc/posix-functions/ceill.texi: Mention the new module.
23143
23144 2010-12-21  Bruno Haible  <bruno@clisp.org>
23145
23146         New module 'floorl-ieee'.
23147         * modules/floorl-ieee: New file.
23148         * modules/floorl-ieee-tests: New file.
23149         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23150         * tests/test-floorl.c (main): Remove signbit tests.
23151         * modules/floorl-tests (Depends-on): Remove signbit.
23152         * doc/posix-functions/floorl.texi: Mention the new module.
23153
23154 2010-12-21  Bruno Haible  <bruno@clisp.org>
23155
23156         New module 'round-ieee'.
23157         * modules/round-ieee: New file.
23158         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23159         whether round works according to ISO C 99 with IEC 60559.
23160         * m4/round-ieee.m4: New file.
23161         * modules/round-ieee-tests: New file.
23162         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23163         * tests/test-round1.c (main): Remove signbit tests.
23164         * modules/round-tests (Depends-on): Remove 'signbit'.
23165         * doc/posix-functions/round.texi: Mention the new module.
23166
23167 2010-12-21  Bruno Haible  <bruno@clisp.org>
23168
23169         New module 'trunc-ieee'.
23170         * modules/trunc-ieee: New file.
23171         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23172         whether trunc works according to ISO C 99 with IEC 60559.
23173         * m4/trunc-ieee.m4: New file.
23174         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23175         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23176         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23177         * modules/trunc-ieee-tests: New file.
23178         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23179         * tests/test-trunc1.c (main): Remove signbit tests.
23180         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23181         * doc/posix-functions/trunc.texi: Mention the new module.
23182
23183 2010-12-21  Bruno Haible  <bruno@clisp.org>
23184
23185         New module 'ceil-ieee'.
23186         * modules/ceil-ieee: New file.
23187         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23188         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23189         ISO C 99 with IEC 60559.
23190         * m4/ceil-ieee.m4: New file.
23191         * modules/ceil (Files): Add lib/ceil.c.
23192         (Depends-on): Add 'float'.
23193         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23194         * lib/math.in.h (ceil): New declaration.
23195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23196         REPLACE_CEIL.
23197         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23198         * modules/ceil-ieee-tests: New file.
23199         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23200         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23201         * doc/posix-functions/ceil.texi: Mention the new module.
23202
23203 2010-12-21  Bruno Haible  <bruno@clisp.org>
23204
23205         New module 'floor-ieee'.
23206         * modules/floor-ieee: New file.
23207         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23208         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23209         ISO C 99 with IEC 60559.
23210         * m4/floor-ieee.m4: New file.
23211         * modules/floor (Files): Add lib/floor.c.
23212         (Depends-on): Add 'float'.
23213         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23214         * lib/math.in.h (floor): New declaration.
23215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23216         REPLACE_FLOOR.
23217         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23218         * modules/floor-ieee-tests: New file.
23219         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23220         * tests/test-math-c++.cc: Check the signature of 'floor'.
23221         * doc/posix-functions/floor.texi: Mention the new module.
23222
23223 2010-12-21  Bruno Haible  <bruno@clisp.org>
23224
23225         New module 'roundf-ieee'.
23226         * modules/roundf-ieee: New file.
23227         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23228         test whether roundf works according to ISO C 99 with IEC 60559.
23229         * m4/roundf-ieee.m4: New file.
23230         * modules/roundf-ieee-tests: New file.
23231         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23232         * tests/test-roundf1.c (main): Remove signbit tests.
23233         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23234         * doc/posix-functions/roundf.texi: Mention the new module.
23235
23236 2010-12-21  Bruno Haible  <bruno@clisp.org>
23237
23238         New module 'truncf-ieee'.
23239         * modules/truncf-ieee: New file.
23240         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23241         test whether truncf works according to ISO C 99 with IEC 60559.
23242         * m4/truncf-ieee.m4: New file.
23243         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23244         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23245         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23246         * modules/truncf-ieee-tests: New file.
23247         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23248         * tests/test-truncf1.c (main): Remove signbit tests.
23249         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23250         * doc/posix-functions/truncf.texi: Mention the new module.
23251
23252 2010-12-21  Bruno Haible  <bruno@clisp.org>
23253
23254         New module 'ceilf-ieee'.
23255         * modules/ceilf-ieee: New file.
23256         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23257         test whether ceilf works according to ISO C 99 with IEC 60559.
23258         * m4/ceilf-ieee.m4: New file.
23259         * modules/ceilf-ieee-tests: New file.
23260         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23261         * tests/test-ceilf1.c (main): Remove signbit tests.
23262         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23263         * doc/posix-functions/ceilf.texi: Mention the new module.
23264
23265 2010-12-21  Bruno Haible  <bruno@clisp.org>
23266
23267         New module 'floorf-ieee'.
23268         * modules/floorf-ieee: New file.
23269         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23270         test whether floorf works according to ISO C 99 with IEC 60559.
23271         * m4/floorf-ieee.m4: New file.
23272         * modules/floorf-ieee-tests: New file.
23273         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23274         * tests/test-floorf1.c (main): Remove signbit tests.
23275         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23276         * doc/posix-functions/floorf.texi: Mention the new module.
23277
23278 2010-12-21  Bruno Haible  <bruno@clisp.org>
23279
23280         Support for minus zero in autoconf macros.
23281         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23282         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23283         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23284         * tests/minus-zero.h: Update comments.
23285
23286 2010-12-21  Bruno Haible  <bruno@clisp.org>
23287
23288         Tests for module 'ceil'.
23289         * modules/ceil-tests: New file.
23290         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23291         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23292
23293 2010-12-21  Bruno Haible  <bruno@clisp.org>
23294
23295         Tests for module 'floor'.
23296         * modules/floor-tests: New file.
23297         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23298         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23299
23300 2010-12-21  Bruno Haible  <bruno@clisp.org>
23301
23302         math: Fix indentation.
23303         * lib/math.in.h (floorf): Fix indentation.
23304
23305 2010-12-21  Bruno Haible  <bruno@clisp.org>
23306
23307         Fix cross-compilation guesses on Solaris.
23308         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23309         not match "solaris2.10".
23310         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23311         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23312         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23313
23314 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23315
23316         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23317         This fixes a problem observed with the latest coreutils snapshot
23318         that caused a test to fail on Solaris 8.  src/csplit.c's call
23319         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23320         earlier, instead of returning the number of bytes that would have
23321         been generated; this causes csplit to incorrectly report memory
23322         exhaustion.
23323         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23324         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23325         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23326         comments to match.
23327         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23328         Fix typo in matching older versions of Solaris: "solaris2.10"
23329         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23330         only for guessing while cross-compiling.
23331         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23332
23333 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23334
23335         ftoastr: fix comment again
23336         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23337         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23338         Also, simplify example a bit by using flags = 0.
23339
23340 2010-12-20  Bruno Haible  <bruno@clisp.org>
23341
23342         round*, trunc*: Update documentation regarding glibc.
23343         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23344         * doc/posix-functions/round.texi: Likewise.
23345         * doc/posix-functions/roundl.texi: Likewise.
23346         * doc/posix-functions/truncf.texi: Likewise.
23347         * doc/posix-functions/trunc.texi: Likewise.
23348         * doc/posix-functions/truncl.texi: Likewise.
23349
23350 2010-12-20  Bruno Haible  <bruno@clisp.org>
23351
23352         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23353         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23354         * doc/posix-functions/round.texi: Likewise.
23355         * doc/posix-functions/roundl.texi: Likewise.
23356
23357 2010-12-20  Bruno Haible  <bruno@clisp.org>
23358
23359         ttyname_r: Add missing declaration on HP-UX 11.
23360         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23361         HAVE_TTYNAME_R.
23362         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23363         declared. Set HAVE_TTYNAME_R always.
23364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23365         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23366         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23367         HAVE_TTYNAME_R.
23368         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23369
23370 2010-12-20  Bruno Haible  <bruno@clisp.org>
23371
23372         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23373         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23374         * doc/posix-functions/getlogin_r.texi: Likewise.
23375         * tests/test-getlogin.c: Include <errno.h>.
23376         (main): Avoid test failure on HP-UX 11.11.
23377         * tests/test-getlogin_r.c (main): Likewise.
23378
23379 2010-12-20  Bruno Haible  <bruno@clisp.org>
23380
23381         getlogin_r: Add missing declaration on HP-UX 11.
23382         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23383         declared also when it exists as a function.
23384         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23385
23386 2010-12-20  Bruno Haible  <bruno@clisp.org>
23387
23388         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23389         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23390         through wcrtomb.
23391
23392 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23393
23394         ftoastr: fix comment
23395         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23396         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23397
23398 2010-12-19  Bruno Haible  <bruno@clisp.org>
23399
23400         isnan: Ensure it is a macro.
23401         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23402         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23403         Solaris.
23404
23405 2010-12-19  Bruno Haible  <bruno@clisp.org>
23406
23407         ldexpl test: Fix link error on OSF/1 5.1.
23408         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23409
23410 2010-12-19  Bruno Haible  <bruno@clisp.org>
23411
23412         wctype: Make it work in C++ mode on OSF/1 5.1.
23413         * lib/wctype.in.h (iswblank): Declare but not define here.
23414         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23415         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23416         * modules/wctype (Files): Add lib/iswblank.c.
23417
23418 2010-12-19  Bruno Haible  <bruno@clisp.org>
23419
23420         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23421         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23422         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23423
23424 2010-12-19  Bruno Haible  <bruno@clisp.org>
23425
23426         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23427         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23428         _POSIX_PII_SOCKET.
23429         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23430         * doc/posix-functions/recvfrom.texi: Likewise.
23431         * doc/posix-functions/send.texi: Likewise.
23432         * doc/posix-functions/sendto.texi: Likewise.
23433
23434 2010-12-19  Bruno Haible  <bruno@clisp.org>
23435
23436         tcgetsid: Add missing declaration on OSF/1 5.1.
23437         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23438         HAVE_TCGETSID.
23439         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23440         Don't set HAVE_TCGETSID.
23441         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23442         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23443         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23444         HAVE_TCGETSID.
23445         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23446
23447 2010-12-19  Bruno Haible  <bruno@clisp.org>
23448
23449         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23450         * lib/stdio.in.h: During the include_next statement, let recursive
23451         includes of this file include only the system header file.
23452
23453 2010-12-19  Bruno Haible  <bruno@clisp.org>
23454
23455         iconv_open: Fix regression from 2010-12-04.
23456         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23457         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23458
23459 2010-12-19  Bruno Haible  <bruno@clisp.org>
23460
23461         stdbool test: Avoid a gcc warning.
23462         * tests/test-stdbool.c (main): Fail if e1 is false.
23463         Reported by Jim Meyering.
23464
23465 2010-12-19  Jim Meyering  <meyering@redhat.com>
23466
23467         setenv: restore to working order
23468         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23469         mistakenly removed.
23470         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23471         HAVE_SETENV.
23472         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23473         HAVE_SETENV.
23474
23475 2010-12-19  Bruno Haible  <bruno@clisp.org>
23476
23477         Document some different function declarations on OSF/1 5.1.
23478         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23479         * doc/posix-functions/inet_ntop.texi: Likewise.
23480         * doc/posix-functions/gethostname.texi: Likewise.
23481         * lib/unistd.in.h (gethostname): Update comment.
23482
23483 2010-12-19  Bruno Haible  <bruno@clisp.org>
23484
23485         doc: Mention vasprintf-posix module.
23486         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23487         the 'vasprintf-posix' module.
23488         * doc/glibc-functions/vasprintf.texi: Likewise.
23489
23490 2010-12-19  Bruno Haible  <bruno@clisp.org>
23491
23492         unsetenv: Add missing declaration on OSF/1 5.1.
23493         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23494         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23495         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23497         not HAVE_UNSETENV.
23498         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23499         HAVE_UNSETENV.
23500         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23501
23502 2010-12-19  Bruno Haible  <bruno@clisp.org>
23503
23504         setenv: Add missing declaration on OSF/1 5.1.
23505         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23506         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23507         declared. Don't set HAVE_SETENV.
23508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23509         not HAVE_SETENV.
23510         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23511         HAVE_SETENV.
23512         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23513
23514 2010-12-19  Bruno Haible  <bruno@clisp.org>
23515
23516         nl_langinfo tests: Avoid gcc warning.
23517         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23518
23519 2010-12-19  Bruno Haible  <bruno@clisp.org>
23520
23521         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23522         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23523         _GL_CXXALIAS_SYS.
23524
23525 2010-12-19  Bruno Haible  <bruno@clisp.org>
23526
23527         stdbool: Relax test.
23528         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23529         address to 'bool' work in static initializer, for compilers other than
23530         GCC.
23531
23532 2010-12-19  Bruno Haible  <bruno@clisp.org>
23533
23534         ftello: Add missing declaration on OSF/1 5.1.
23535         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23536         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23538         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23539         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23540
23541 2010-12-19  Bruno Haible  <bruno@clisp.org>
23542
23543         fseeko: Add missing declaration on OSF/1 5.1.
23544         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23545         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23547         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23548         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23549
23550 2010-12-19  Bruno Haible  <bruno@clisp.org>
23551
23552         fchdir: Add missing declaration on OSF/1 5.1.
23553         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23554         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23556         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23557         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23558
23559 2010-12-19  Bruno Haible  <bruno@clisp.org>
23560
23561         relocatable-prog-wrapper: Separate from relocatable-prog.
23562         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23563         uninstall-relocwrapper rule here.
23564         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23565         Reported by Ian Beckwith <ianb@erislabs.net>.
23566
23567 2010-12-19  Bruno Haible  <bruno@clisp.org>
23568
23569         unistr/u8-mbsnlen: Add missing dependency.
23570         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23571         Reported by Ian Beckwith <ianb@erislabs.net>.
23572
23573 2010-12-19  Bruno Haible  <bruno@clisp.org>
23574
23575         iconv: Make it possible again to use this module without 'iconv-h'.
23576         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23577         if it is not defined.
23578         Reported by Ian Beckwith <ianb@erislabs.net>.
23579
23580 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23581
23582         acl: port to Solaris 8 when copying from tmpfs to ufs
23583         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23584         error number.  Problem observed on Solaris 8 with latest
23585         coreutils, with "mv A B", where A is on a tmpfs file system and B
23586         is on a ufs file system.  This caused coreutils' mv/part-symlink
23587         test to fail.
23588
23589         tests: set fail=0 at start
23590         * tests/init.sh (setup_): Move fail=0 initialization here ...
23591         (mktempd_): ... from here, so that tests can rely on fail being
23592         set to 0 initially.  This fixes a problem in coreutils; see:
23593         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23594
23595 2010-12-18  Bruno Haible  <bruno@clisp.org>
23596
23597         memmem-simple: Stylistic changes.
23598         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23599         Fix preprocessor directive indentation.
23600
23601 2010-12-15  Pádraig Brady <P@draigBrady.com>
23602
23603         memmem, memmem-simple: reorganize and expand empty needle check
23604         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23605         functional checks to memmem-simple so that one has a fully functional
23606         memmem by using just this module.
23607         Restrict the performance only check to the memmem module.
23608         Also expand the empty needle check to ensure the correct
23609         pointer is returned, not just a non NULL pointer.
23610         * doc/glibc-functions/memmem.texi: Rearrange the portability
23611         documentation to correlate with the rearranged checks.
23612         Clarify exactly how the memmem and memmem-simple modules
23613         relate to each other.
23614
23615 2010-12-15  Pádraig Brady <P@draigBrady.com>
23616             Bruno Haible  <bruno@clisp.org>
23617
23618         Improve cross-compilation guesses for uClibc.
23619         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23620         that uClibc does not have the glibc bug.
23621         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23622         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23623
23624 2010-12-14  Eric Blake  <eblake@redhat.com>
23625
23626         configmake: provide fallbacks for oldest supported autotools
23627         * m4/configmake.m4: New file.
23628         * modules/configmake (Files): Ship it.
23629         (configure.ac): Use it to guarantee fallbacks.
23630
23631 2010-12-13  Pádraig Brady <P@draigBrady.com>
23632
23633         read-file: Improve handling of large files
23634         * lib/read-file.c (fread_file): Minimize realloc()s
23635         for regular files, and better manage sizes around SIZE_MAX.
23636
23637 2010-12-13  Eric Blake  <eblake@redhat.com>
23638
23639         cloexec, fcntl: relax license
23640         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23641         consent from all contributors.
23642         * modules/fcntl (License): Likewise.
23643
23644 2010-12-10  Bruno Haible  <bruno@clisp.org>
23645
23646         Tests for module 'pipe-posix'.
23647         * modules/pipe-posix-tests: New file.
23648         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23649
23650 2010-12-10  Bruno Haible  <bruno@clisp.org>
23651
23652         pipe-posix: Make it work in C++ mode.
23653         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23654         (pipe): Use common idiom, not a macro definition.
23655         * lib/pipe.c: New file.
23656         * m4/pipe.m4: New file.
23657         * modules/pipe-posix (Description): Enhance.
23658         (Files): Add lib/pipe.c, m4/pipe.m4.
23659         (configure.ac): Invoke gl_FUNC_PIPE.
23660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23661         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23662         * tests/test-unistd-c++.cc: Check the signature of pipe.
23663
23664 2010-12-10  Bruno Haible  <bruno@clisp.org>
23665
23666         Rename module 'pipe' to 'spawn-pipe'.
23667         * modules/spawn-pipe: New file, renamed from modules/pipe.
23668         (Files, configure.ac, Makefile.am): Update.
23669         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23670         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23671         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23672         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23673         "spawn-pipe.h" instead of "pipe.h".
23674         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23675         to gl_SPAWN_PIPE.
23676         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23677         (Files, Makefile.am): Update.
23678         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23679         Update.
23680         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23681         Include "spawn-pipe.h" instead of "pipe.h".
23682         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23683         * lib/javacomp.c: Likewise.
23684         * lib/javaversion.c: Likewise.
23685         * lib/pipe-filter-gi.c: Likewise.
23686         * lib/pipe-filter-ii.c: Likewise.
23687         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23688         * modules/javacomp (Depends-on): Likewise.
23689         * modules/javaversion (Depends-on): Likewise.
23690         * modules/pipe-filter-gi (Depends-on): Likewise.
23691         * modules/pipe-filter-ii (Depends-on): Likewise.
23692         * MODULES.html.sh (Executing programs): Update.
23693         * NEWS: Mention the change.
23694
23695 2010-12-10  Eric Blake  <eblake@redhat.com>
23696
23697         pipe-posix: new module
23698         * modules/pipe-posix: New file.
23699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23700         (gl_UNISTD_H): Check for declaration.
23701         * modules/unistd (Makefile.am): Substitute it.
23702         * lib/unistd.in.h (pipe): Provide it for mingw.
23703         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23704         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23705
23706 2010-12-07  Bruno Haible  <bruno@clisp.org>
23707
23708         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23709         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23710         u8_strcmp_gnu.
23711         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23712
23713 2010-12-06  Bruno Haible  <bruno@clisp.org>
23714
23715         Update internal documentation.
23716         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23717
23718 2010-12-04  Bruno Haible  <bruno@clisp.org>
23719
23720         Put more information about failed tests into the test return codes.
23721         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23722         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23723         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23724         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23725         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23726         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23727         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23728         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23729         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23730         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23731         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23732         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23733         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23734         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23735         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23736         returns a bit mask.
23737         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23738         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23739         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23740         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23741         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23742         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23743         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23744         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23745         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23746         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23747         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23748         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23749         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23750         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23751         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23752         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23753         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23754         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23755         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23756         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23757         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23758         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23759         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23760         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23761         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23762         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23763         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23764         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23765         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23766         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23767         gl_PRINTF_PRECISION): Likewise.
23768         * m4/regex.m4 (gl_REGEX): Likewise.
23769         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23770         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23771         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23772         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23773         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23774         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23775         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23776         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23777         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23778         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23779         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23780         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23781         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23782         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23783         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23784         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23785         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23786         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23787         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23788         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23789         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23790         enumerated value.
23791         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23792
23793 2010-12-04  Bruno Haible  <bruno@clisp.org>
23794
23795         Update for Solaris 11 2010-11.
23796         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23797         Express, released in November 2010.
23798
23799 2010-12-04  Bruno Haible  <bruno@clisp.org>
23800
23801         nproc: Relax license.
23802         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23803         and Paul Eggert.
23804         Requested by Ludovic Courtès <ludo@gnu.org>.
23805
23806 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23807
23808         utimecmp: fine-grained src to nearby coarse-grained dest
23809
23810         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23811         and the source is on a file system with higher-resolution time
23812         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23813         not work, and the time stamps are close together, the algorithm to
23814         determine the exact resolution from the read-back mtime was buggy:
23815         it had a "!=" where it should have had an "==".  This bug has been
23816         in the code ever since it was introduced to gnulib.
23817         Problem reported by Dan Jacobson in
23818         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23819
23820 2010-11-30  Bruno Haible  <bruno@clisp.org>
23821
23822         strerror_r-posix: Fix autoconf test.
23823         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23824
23825 2010-11-28  Bruno Haible  <bruno@clisp.org>
23826             Paul Eggert  <eggert@cs.ucla.edu>
23827
23828         Tests for module 'getdomainname'.
23829         * modules/getdomainname-tests: New file.
23830         * tests/test-getdomainname.c: New file, based on
23831         tests/test-gethostname.c.
23832
23833 2010-11-28  Bruno Haible  <bruno@clisp.org>
23834             Paul Eggert  <eggert@cs.ucla.edu>
23835
23836         getdomainname: Use the system function when possible.
23837         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23838         (getdomainname): Replace if needed. Provide the declaration if it is
23839         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23840         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23841         (getdomainname): When the system has getdomainname, call the system
23842         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23843         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23844         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23845         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23846         the function if its second argument is of type 'int' or if it is found
23847         in libnsl.
23848         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23849         <sys/systeminfo.h> and sysinfo().
23850         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23852         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23853         HAVE_GETDOMAINNAME.
23854         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23855         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23856         * doc/glibc-functions/getdomainname.texi: Document the problems with
23857         the getdomainname declaration.
23858
23859 2010-11-28  Bruno Haible  <bruno@clisp.org>
23860
23861         sys_socket: Ensure ss_family field on AIX.
23862         * lib/sys_socket.in.h (ss_family): New macro definition.
23863         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23864         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23865         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23866         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23867         * modules/sys_socket (Makefile.am): Substitute
23868         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23869         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23870
23871 2010-11-27  Bruno Haible  <bruno@clisp.org>
23872
23873         readline: Improve configure output.
23874         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23875         "checking for readline..." result understandable.
23876
23877 2010-11-27  Bruno Haible  <bruno@clisp.org>
23878
23879         *printf-posix: Detect a bug on Solaris 10/x86.
23880         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23881         for floating-point output.
23882         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23883         directive.
23884         * tests/test-snprintf-posix.h (test_function): Likewise.
23885         * tests/test-sprintf-posix.h (test_function): Likewise.
23886         * tests/test-vasprintf-posix.c (test_function): Likewise.
23887         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23888         * doc/posix-functions/printf.texi: Likewise.
23889         * doc/posix-functions/snprintf.texi: Likewise.
23890         * doc/posix-functions/sprintf.texi: Likewise.
23891         * doc/posix-functions/vfprintf.texi: Likewise.
23892         * doc/posix-functions/vprintf.texi: Likewise.
23893         * doc/posix-functions/vsnprintf.texi: Likewise.
23894         * doc/posix-functions/vsprintf.texi: Likewise.
23895         * doc/glibc-functions/obstack_printf.texi: Likewise.
23896         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23897
23898 2010-11-27  Bruno Haible  <bruno@clisp.org>
23899
23900         Fix link error when module libunistring-optional is in use.
23901         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23902         * modules/striconveha-tests (Makefile.am): Likewise.
23903
23904 2010-11-27  Bruno Haible  <bruno@clisp.org>
23905
23906         regex: Mention link dependencies.
23907         * modules/regex (Link): New section.
23908         * modules/rpmatch (Link): Likewise.
23909         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23910
23911 2010-11-27  Bruno Haible  <bruno@clisp.org>
23912
23913         ftoastr: Fix compilation error on Solaris.
23914         * lib/ftoastr.c: Include <config.h>.
23915
23916 2010-11-27  Bruno Haible  <bruno@clisp.org>
23917
23918         getloadavg: Update documentation.
23919         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23920
23921 2010-11-27  Bruno Haible  <bruno@clisp.org>
23922
23923         sys_socket: Fix test whether the functions are declared.
23924         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23925         not <sys/select.h>.
23926
23927 2010-11-27  Bruno Haible  <bruno@clisp.org>
23928
23929         getpass: Make sure to get system declaration on some platforms.
23930         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23931         gl_USE_SYSTEM_EXTENSIONS.
23932         * modules/getpass (Depends-on): Add extensions.
23933
23934 2010-11-26  Bruno Haible  <bruno@clisp.org>
23935
23936         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23937         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23938         'iconv' module is present.
23939         (ICONV_CONST): New macro.
23940         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23941         ICONV_CONST.
23942         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23943         set ICONV_CONST.
23944         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23945         here.
23946         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23947         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23948         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23949         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23950         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23951         present.
23952
23953 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23954
23955         ftoastr: comment fix
23956         * lib/ftoastr.c: "little" -> "little or no" in comment
23957
23958 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23959
23960         stdint: port to GCC 4.3 + OSX + Octave
23961         On this platform, stdint.h is buggy and defines int64_t to long
23962         long int.  The replacement defined it to long int, causing
23963         problems with C++ style name mangling.  Instead, trust the system
23964         definition if INT64_MAX is defined, and likewise for the unsigned
23965         variant.   Problem reported by Jarno Rajahalme in
23966         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23967         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23968         and don't mess with int64_t and INT64_MAX in this case.
23969         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23970
23971 2010-11-24  Bruno Haible  <bruno@clisp.org>
23972
23973         doc: Corrections regarding MacOS X 10.4 and 10.5.
23974         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23975         MacOS X.
23976         Reported by Simon Josefsson.
23977
23978 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23979
23980         Uninstall ".bin" files installed by relocwrapper.
23981         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23982         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23983         unless it is already there.
23984
23985 2010-11-21  Bruno Haible  <bruno@clisp.org>
23986
23987         Update for NetBSD 5.0.
23988         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23989         NetBSD; the test fails on NetBSD 5.0.
23990         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23991         about NetBSD.
23992
23993 2010-11-21  Bruno Haible  <bruno@clisp.org>
23994
23995         Update for HP-UX 11.23 and HP-UX 11.31.
23996         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23997         HP-UX.
23998
23999 2010-11-21  Bruno Haible  <bruno@clisp.org>
24000
24001         Update for MacOS X 10.5.
24002         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24003         MacOS X; the test fails on MacOS X 10.5.8.
24004         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24005         about MacOS X.
24006
24007 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24008
24009         bootstrap: add bootstrap_sync option.
24010         See discussion at
24011         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24012         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24013         * build-aux/bootstrap: Accept --bootstrap-sync to update
24014         bootstrap if it is not identical to the local gnulib's
24015         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24016         enable this by default.  Accept --no-bootstrap-sync to disable
24017         it.
24018
24019 2010-11-20  Bruno Haible  <bruno@clisp.org>
24020
24021         Ensure that <features.h> is included before __GLIBC__ is tested.
24022         * lib/printf-parse.h: Include <features.h>.
24023         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24024         Reported by Mike Frysinger <vapier@gentoo.org>.
24025
24026         Ensure that <features.h> is included before __GLIBC__ is tested.
24027         * lib/wchar.in.h: Include <features.h>.
24028         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24029         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24030         Reported by Mike Frysinger <vapier@gentoo.org>.
24031
24032         Ensure that <features.h> is included before __GLIBC__ is tested.
24033         * lib/arpa_inet.in.h: Include <features.h>.
24034         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24035         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24036         Reported by Mike Frysinger <vapier@gentoo.org>.
24037
24038         Ensure that <features.h> is included before __GLIBC__ is tested.
24039         * build-aux/link-warning.h: Include <features.h>.
24040         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24041         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24042         Reported by Mike Frysinger <vapier@gentoo.org>.
24043
24044         Ensure that <features.h> is included before __GLIBC__ is tested.
24045         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24046         Reported by Mike Frysinger <vapier@gentoo.org>.
24047
24048 2010-11-20  Bruno Haible  <bruno@clisp.org>
24049
24050         memmem: Fix autoconf test.
24051         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24052
24053 2010-11-20  Bruno Haible  <bruno@clisp.org>
24054
24055         Port to uClibc.
24056         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24057         * lib/fcntl.in.h: Likewise.
24058         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24059         * lib/mbrtowc.c (mbrtowc): Likewise.
24060         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24061         * lib/strerror_r.c: Likewise.
24062         * lib/unistr/u8-strnlen.c: Likewise.
24063         * lib/vasnprintf.c (decimal_point_char): Likewise.
24064         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24065         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24066         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24067         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24068         * tests/test-sigaction.c (handler, main): Likewise.
24069         * lib/freading.h: Treat uClibc like a non-glibc platform.
24070         * lib/freading.c: Likewise.
24071         * lib/gettext.h: Likewise.
24072         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24073         Likewise.
24074         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24075         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24076         * lib/propername.c (proper_name_utf8): Likewise.
24077         * lib/spawn.in.h: Likewise.
24078         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24079         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24080         mem_cd_iconveh_internal): Likewise.
24081         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24082         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24083         strstr, strcasestr): Likewise.
24084         * lib/unicodeio.c (unicode_to_mb): Likewise.
24085         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24086         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24087         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24088         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24089         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24090         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24091         * lib/unistr/u8-stpncpy.c: Likewise.
24092         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24093         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24094         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24095         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24096         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24097         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24098         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24099         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24100         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24101         Likewise.
24102         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24103         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24104         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24105         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24106         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24107         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24108         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24109         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24110         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24111         * tests/test-striconveha.c (main): Likewise.
24112         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24113         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24114         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24115         * doc/posix-functions/getline.texi: Likewise.
24116         Reported by Mike Frysinger <vapier@gentoo.org>.
24117
24118 2010-11-20  Bruno Haible  <bruno@clisp.org>
24119
24120         nproc: Fix condition.
24121         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24122         HAVE_PTHREAD_AFFINITY_NP.
24123
24124 2010-11-20  Bruno Haible  <bruno@clisp.org>
24125
24126         Fix a comment.
24127         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24128
24129 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24130
24131         ftoastr: don't assume snprintf
24132         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24133         Implement a subset of snprintf here, by using sprintf safely.
24134         * modules/ftoastr (Depends-on): Remove snprintf.
24135
24136 2010-11-19  Jim Meyering  <meyering@redhat.com>
24137
24138         test-rename.h: fix compilation failure
24139         * tests/test-rename.h (test_rename): Add omitted "}".
24140
24141 2010-11-17  Jim Meyering  <meyering@redhat.com>
24142
24143         maint.mk: add a URL discussing the no-@acronym policy
24144         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24145
24146 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24147
24148         ftoastr: depend on snprintf, improve comments
24149         * lib/ftoastr.c: Also mention Loitsch's draft.
24150         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24151         needed in the current implementation, but it might simplify
24152         speeding up the code later.
24153         * modules/ftoastr: Depend on snprintf; this improves portability.
24154         Suggested by Bruno Haible in the same email.
24155
24156         ftoastr: port to hosts lacking strtof and strtold
24157         Problem reported by Bruno Haible in
24158         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24159         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24160         environment and strtold (and presumably strtof) are not available.
24161         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24162         (configure.ac): Require gl_C99_STRTOLD.
24163
24164 2010-11-18  Bruno Haible  <bruno@clisp.org>
24165
24166         c-strtold: Avoid link error on AIX 7.
24167         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24168         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24169         (gl_C_STRTOLD): Test whether strtold_l exists.
24170         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24171
24172 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24173
24174         intprops: new macro INT_BITS_STRLEN_BOUND
24175         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24176         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24177         not exposed.  Also, it uses a slightly tighter bound than before;
24178         though this makes no practical difference, we might as well be as
24179         tight as we easily can.
24180
24181         ftoastr: new module, for lossless conversion of floats to short strings
24182         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24183         * modules/ftoastr: New files.
24184
24185 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24186
24187         bootstrap: port to Solaris sed
24188         * build-aux/bootstrap (get_version): Port to Solaris sed.
24189         See Ralf Wildenhues's note in
24190         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24191
24192 2010-11-14  Jim Meyering  <meyering@redhat.com>
24193
24194         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24195         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24196         and move definition closer to sole use.
24197
24198 2010-11-13  Jim Meyering  <meyering@redhat.com>
24199
24200         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24201         Now we require at least autoconf-2.59, which means the work-around
24202         is no longer needed.
24203         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24204         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24205         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24206         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24207         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24208
24209 2010-11-13  Bruno Haible  <bruno@clisp.org>
24210
24211         rename, renameat: Avoid test failures at NFS mounted locations.
24212         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24213         functions.
24214         (test_rename): Use assert_nonexistent.
24215         * tests/test-rename.c: Include <dirent.h>.
24216         * tests/test-renameat.c: Likewise.
24217         Reported by Gary V. Vaughan <gary@gnu.org>.
24218
24219         rename, renameat: Document Linux bug with NFS
24220         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24221         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24222         * doc/posix-functions/renameat.texi: Likewise.
24223         Suggested by Eric Blake.
24224
24225 2010-11-13  Bruno Haible  <bruno@clisp.org>
24226
24227         rename test: Add comments.
24228         * tests/test-rename.h (test_rename): Add structure and comments.
24229
24230 2010-11-13  Eric Blake  <eblake@redhat.com>
24231
24232         maintainer-makefile: cover a few more files
24233         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24234         scripts generated within C files, for libvirt.
24235
24236 2010-11-13  Bruno Haible  <bruno@clisp.org>
24237
24238         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24239         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24240         character, return the number of bytes that belong together, not always
24241         1.
24242         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24243         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24244         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24245         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24246         number of bytes of an invalid character.
24247         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24248         (main): Invoke it.
24249         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24250         results.
24251         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24252         malformed byte sequences.
24253         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24254         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24255         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24256         Reported by Ben Pfaff and Paolo Bonzini.
24257
24258 2010-11-13  Bruno Haible  <bruno@clisp.org>
24259
24260         openat: Work around glibc bug with fchownat() and empty file names.
24261         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24262         (gl_FUNC_FCHOWNAT): Invoke it.
24263         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24264         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24265         Reported by Gary V. Vaughan <gary@gnu.org>.
24266
24267 2010-11-13  Bruno Haible  <bruno@clisp.org>
24268
24269         openat: Ensure autoconf macro ordering.
24270         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24271         gl_USE_SYSTEM_EXTENSIONS.
24272         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24273
24274 2010-11-13  Bruno Haible  <bruno@clisp.org>
24275
24276         Update comments.
24277         * lib/unistr/u8-check.c: Update file name in comments.
24278         * lib/unistr/u8-mblen.c: Likewise.
24279         * lib/unistr/u8-prev.c: Likewise.
24280         * lib/unistr/u8-strmblen.c: Likewise.
24281         * lib/unistr/u8-strmbtouc.c: Likewise.
24282
24283 2010-11-13  Jim Meyering  <meyering@redhat.com>
24284
24285         tests: avoid test failure on Solaris 10 due to lack of PATH export
24286         * tests/test-update-copyright.sh: Don't forget to export PATH.
24287
24288         init.sh: ensure that IFS is defined, just in case...
24289         * tests/init.sh (setup_): Ensure that IFS is defined,
24290         so that saving and restoring it works as expected.  This
24291         appears to be useful at least for an old version of dash
24292         from a long time ago (RH 6).  See here for details:
24293         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24294
24295         maint.mk: tighten "test a == b" check
24296         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24297         test to files that contain something like #!/bin/sh.
24298         Without this, coreutils would get two false positives in
24299         the comments of C source files.
24300
24301 2010-11-12  Eric Blake  <eblake@redhat.com>
24302
24303         bootstrap: fix typo in previous attempt
24304         * build-aux/bootstrap (buildreq): Correct the grouping.
24305         Reported by Paul Eggert.
24306
24307         maintainer-makefile: prohibit test x == x
24308         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24309         Based on a report by Matthias Bolte.
24310
24311         bootstrap: allow FreeBSD gzip
24312         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24313         which has no '.' and goes to stderr.
24314         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24315         Reported by Matthias Bolte.
24316
24317         maintainer-makefile: check for i18n setup
24318         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24319         will likely work.
24320
24321 2010-11-12  Bruno Haible  <bruno@clisp.org>
24322
24323         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24324         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24325         * lib/nanosleep.c (nanosleep): Likewise.
24326
24327 2010-11-11  Bruno Haible  <bruno@clisp.org>
24328
24329         fcntl-h: Fix for use of C++ on glibc systems.
24330         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24331         also on glibc systems in C++ mode.
24332         Reported by Gary V. Vaughan <gary@gnu.org>.
24333
24334 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24335
24336         mknod: avoid false failure with dash
24337         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24338
24339 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24340
24341         unlink: Fix "is it should" typo in diagnostic.
24342         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24343         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24344
24345 2010-11-11  Bruno Haible  <bruno@clisp.org>
24346
24347         Tests for module 'strerror_r-posix'.
24348         * modules/strerror_r-posix-tests: New file.
24349         * tests/test-strerror_r.c: New file.
24350         * tests/test-string-c++.cc: Check the signature of strerror_r.
24351
24352         New module 'strerror_r-posix'.
24353         * lib/string.in.h (strerror_r): New declaration.
24354         * lib/strerror_r.c: New file.
24355         * m4/strerror_r.m4: New file.
24356         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24357         of strerror_r.
24358         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24359         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24360         * modules/strerror_r-posix: New file.
24361         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24362         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24363         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24364         portability problems.
24365
24366 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24367
24368         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24369         line is also considered for output. Quoted function name in shell
24370         command, so temporary files for functions like MyClass::operator()
24371         are removed correctly without errors.
24372
24373 2010-11-09  Bruno Haible  <bruno@clisp.org>
24374
24375         * doc/posix-functions/strerror.texi: List more failing platforms.
24376
24377         * doc/posix-functions/strerror.texi: Add a comment.
24378
24379 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24380
24381         fdopendir: fix bug on MacOS X when low on file descriptors
24382
24383         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24384         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24385         All callers changed.
24386         (fdopendir): Invoke save_cwd at the top level, not after using
24387         multiple dup() calls to use up file descriptors.  Then retry
24388         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24389         less than the maximum number of open file descriptors, because
24390         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24391         on Mac OS X 10.6.4 for tar 1.24
24392         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24393         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24394         and for tar 1.25
24395         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24396
24397 2010-11-07  Bruno Haible  <bruno@clisp.org>
24398
24399         vasnprintf: Support I flag on glibc systems.
24400         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24401         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24402         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24403         snprintf function.
24404         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24405         glibc systems.
24406         * tests/test-vasnprintf-posix3.c: New file.
24407         * modules/vasnprintf-posix-tests (Files): Add it.
24408         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24409
24410 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24411
24412         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24413         * MODULES.html.sh: For compiler warnings, use name
24414         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24415
24416 2010-11-05  Eric Blake  <eblake@redhat.com>
24417
24418         ceil, floor: avoid spurious failure with icc
24419         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24420         [denormals-as-zero] when optimizing without -mieee-fp option.
24421         * tests/test-floorf2.c (floorf_reference): Likewise.
24422         * tests/test-ceilf1.c (dummy): New function.
24423         (main): Use it to outsmart icc's optimization.
24424         * tests/test-floorf1.c (dummy, main): Likewise.
24425
24426         tests: require working signbit
24427         * modules/ceilf-tests (Depends-on): Add signbit.
24428         * modules/ceill-tests (Depends-on): Likewise.
24429         * modules/floorf-tests (Depends-on): Likewise.
24430         * modules/floorl-tests (Depends-on): Likewise.
24431         * modules/round-tests (Depends-on): Likewise.
24432         * modules/roundf-tests (Depends-on): Likewise.
24433         * modules/roundl-tests (Depends-on): Likewise.
24434         * modules/trunc-tests (Depends-on): Likewise.
24435         * modules/truncf-tests (Depends-on): Likewise.
24436         * modules/truncl-tests (Depends-on): Likewise.
24437
24438         strtod: work around icc bug
24439         * lib/strtod.c (minus_zero): Define to working value.
24440         (strtod): Use it to avoid icc bug.
24441
24442         copysign: enhance tests
24443         * modules/copysign-tests (Files): Add minus-zero.h.
24444         * tests/test-copysign.c (main): Also test zeros.
24445
24446 2010-11-04  Eric Blake  <eblake@redhat.com>
24447
24448         ceil, floor, round, trunc: enhance tests of -0
24449         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24450         * tests/test-ceill.c (main): Likewise.
24451         * tests/test-floorf1.c (main): Likewise.
24452         * tests/test-floorl.c (main): Likewise.
24453         * tests/test-round1.c (main): Likewise.
24454         * tests/test-roundf1.c (main): Likewise.
24455         * tests/test-roundl.c (main): Likewise.
24456         * tests/test-trunc1.c (main): Likewise.
24457         * tests/test-truncf1.c (main): Likewise.
24458         * tests/test-truncl.c (main): Likewise.
24459
24460 2010-11-04  Eric Blake  <eblake@redhat.com>
24461
24462         frexp, tests: work around ICC bug with -zero
24463         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24464         works with more compilers.
24465         * tests/minus-zero.h: New file.
24466         * modules/ceilf-tests (Files): Include it.
24467         * modules/ceill-tests (Files): Likewise.
24468         * modules/floorf-tests (Files): Likewise.
24469         * modules/floorl-tests (Files): Likewise.
24470         * modules/frexp-nolibm-tests (Files): Likewise.
24471         * modules/frexp-tests (Files): Likewise.
24472         * modules/frexpl-nolibm-tests (Files): Likewise.
24473         * modules/frexpl-tests (Files): Likewise.
24474         * modules/isnan-tests (Files): Likewise.
24475         * modules/isnand-nolibm-tests (Files): Likewise.
24476         * modules/isnand-tests (Files): Likewise.
24477         * modules/isnanf-nolibm-tests (Files): Likewise.
24478         * modules/isnanf-tests (Files): Likewise.
24479         * modules/isnanl-nolibm-tests (Files): Likewise.
24480         * modules/isnanl-tests (Files): Likewise.
24481         * modules/round-tests (Files): Likewise.
24482         * modules/roundf-tests (Files): Likewise.
24483         * modules/roundl-tests (Files): Likewise.
24484         * modules/ldexpl-tests (Files): Likewise.
24485         * modules/signbit-tests (Files): Likewise.
24486         * modules/snprintf-posix-tests (Files): Likewise.
24487         * modules/sprintf-posix-tests (Files): Likewise.
24488         * modules/strtod-tests (Files): Likewise.
24489         * modules/trunc-tests (Files): Likewise.
24490         * modules/truncf-tests (Files): Likewise.
24491         * modules/truncl-tests (Files): Likewise.
24492         * modules/vsnprintf-posix-tests (Files): Likewise.
24493         * modules/vsprintf-posix-tests (Files): Likewise.
24494         * modules/vasnprintf-posix-tests (Files): Likewise.
24495         * modules/vasprintf-posix-tests (Files): Likewise.
24496         * tests/test-ceilf1.c (main): Use it.
24497         * tests/test-ceill.c (main): Likewise.
24498         * tests/test-floorf1.c (main): Likewise.
24499         * tests/test-floorl.c (main): Likewise.
24500         * tests/test-frexp.c (main): Likewise.
24501         * tests/test-frexpl.c (main): Likewise.
24502         * tests/test-isnan.c (main): Likewise.
24503         * tests/test-isnand.h (main): Likewise.
24504         * tests/test-isnanf.h (main): Likewise.
24505         * tests/test-isnanl.h (main): Likewise.
24506         * tests/test-ldexpl.c (main): Likewise.
24507         * tests/test-round.c (main): Likewise.
24508         * tests/test-roundf.c (main): Likewise.
24509         * tests/test-roundl.c (main): Likewise.
24510         * tests/test-signbit.c (test_signbitf, test_signbitd)
24511         (test_signbitl): Likewise.
24512         * tests/test-snprintf-posix.h (test_function): Likewise.
24513         * tests/test-sprintf-posix.h (test_function): Likewise.
24514         * tests/test-strtod.c (main): Likewise.
24515         * tests/test-trunc1.c (main): Likewise.
24516         * tests/test-truncf1.c (main): Likewise.
24517         * tests/test-truncl.c (main): Likewise.
24518
24519         isnanl: work around icc bug
24520         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24521
24522 2010-11-03  Eric Blake  <eblake@redhat.com>
24523
24524         tests: fix compiler warnings
24525         * tests/test-getopt.h (test_getopt): Fix condition.
24526         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24527         * tests/test-pipe2.c (main): Likewise.
24528         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24529
24530         utimens: fix broken m4 test
24531         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24532
24533 2010-10-28  Bruno Haible  <bruno@clisp.org>
24534
24535         posix_spawn*, getdtablesize: Relax license.
24536         * modules/posix_spawn (License): Change to LGPLv2+.
24537         * modules/posix_spawnp (License): Likewise.
24538         * modules/posix_spawn-internal (License): Likewise.
24539         * modules/posix_spawnattr_init (License): Likewise.
24540         * modules/posix_spawnattr_getflags (License): Likewise.
24541         * modules/posix_spawnattr_setflags (License): Likewise.
24542         * modules/posix_spawnattr_getpgroup (License): Likewise.
24543         * modules/posix_spawnattr_setpgroup (License): Likewise.
24544         * modules/posix_spawnattr_getschedparam (License): Likewise.
24545         * modules/posix_spawnattr_setschedparam (License): Likewise.
24546         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24547         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24548         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24549         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24550         * modules/posix_spawnattr_getsigmask (License): Likewise.
24551         * modules/posix_spawnattr_setsigmask (License): Likewise.
24552         * modules/posix_spawnattr_destroy (License): Likewise.
24553         * modules/posix_spawn_file_actions_init (License): Likewise.
24554         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24555         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24556         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24557         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24558         * modules/getdtablesize (License): Likewise.
24559         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24560
24561 2010-10-26  Bruno Haible  <bruno@clisp.org>
24562
24563         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24564         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24565         Cygwin and mingw.
24566         Suggested by Eric Blake.
24567
24568 2010-10-26  Bruno Haible  <bruno@clisp.org>
24569
24570         stdio: Work around compilation error due to renameat() on Solaris 10.
24571         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24572         * lib/renameat.c: Don't include <unistd.h> here.
24573         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24574         Reported by Paul Eggert and Eric Blake.
24575
24576 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24577
24578         renameat: port to Solaris 10, which declares renameat in unistd.h
24579
24580         * lib/renameat.c: Include unistd.h before stdio.h, because
24581         Solaris 10 declares renameat in unistd.h.  Problem encountered
24582         when building GNU tar 1.24 on Solaris 10.
24583
24584 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24585
24586         fdopendir: fix C89 compilation
24587         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24588         compilers.
24589
24590 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24591
24592         inttostr: simplify by removing unnecessary redundancy
24593         * lib/anytostr.c: Don't include verify.h.
24594         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24595         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24596         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24597         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24598         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24599         Likewise.
24600         * modules/inttostr (Depends-on): Remove 'verify'.
24601
24602 2010-10-23  Bruno Haible  <bruno@clisp.org>
24603
24604         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24605         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24606         Reported by Eric Blake.
24607
24608 2010-10-23  Bruno Haible  <bruno@clisp.org>
24609
24610         Tests: Fix LOCALE_JA on MirBSD 10.
24611         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24612         to an UTF-8 locale.
24613         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24614         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24615         Reported by Eric Blake.
24616
24617 2010-10-21  Bruno Haible  <bruno@clisp.org>
24618
24619         nl_langinfo test: Avoid test failure on NetBSD 5.
24620         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24621         Reported by Eric Blake.
24622
24623 2010-10-21  Eric Blake  <eblake@redhat.com>
24624
24625         c-stack: work around libsigsegv 2.8 bug
24626         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24627         overflow on at least PowerPC64.
24628
24629 2010-10-17  Bruno Haible  <bruno@clisp.org>
24630
24631         userspec: Drop redundant file.
24632         * modules/userspec (Files): Remove lib/inttostr.h.
24633
24634 2010-10-17  Bruno Haible  <bruno@clisp.org>
24635
24636         nl_langinfo tests: Silence some warnings.
24637         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24638         Reported by Jim Meyering.
24639
24640 2010-10-17  Bruno Haible  <bruno@clisp.org>
24641
24642         Make use of GCC's attribute __alloc_size__.
24643         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24644         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24645         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24646         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24647         __alloc_size__.
24648         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24649         Suggested by Jim Meyering.
24650
24651 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24652
24653         bootstrap: anchor .gitignore entries.
24654         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24655         with...
24656         (insert_vc_ignore): ... this new function, which prepends `/' to
24657         all .gitignore entries before passing them to
24658         insert_sorted_if_absent.
24659
24660 2010-10-16  Bruno Haible  <bruno@clisp.org>
24661
24662         nextafter: Fix configure check.
24663         * modules/nextafter (configure.ac): Correct expected prototype.
24664
24665 2010-10-16  Bruno Haible  <bruno@clisp.org>
24666
24667         termios: Update documentation.
24668         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24669
24670 2010-10-16  Bruno Haible  <bruno@clisp.org>
24671
24672         tests: Make them compile with TinyCC.
24673         * tests/test-strstr.c (main): Remove parentheses around array
24674         initializer.
24675
24676 2010-10-15  Eric Blake  <eblake@redhat.com>
24677
24678         ignore-value: make header idempotent
24679         * lib/ignore-value.h: Add double-inclusion guards.
24680         Reported by Stefan Berger.
24681
24682 2010-10-15  Jim Meyering  <meyering@redhat.com>
24683
24684         GNUmakefile: handle "stable" target, not "major"
24685         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24686         lists in maint.mk and announce-gen.  Without this, "make stable"
24687         would fail to ensure that $(VERSION) is up to date.
24688
24689 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24690
24691         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24692         & co.
24693
24694 2010-10-14  Bruno Haible  <bruno@clisp.org>
24695
24696         vasnprintf: Don't set errno to 0.
24697         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24698         block that sets it to 0.
24699         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24700
24701 2010-10-14  Bruno Haible  <bruno@clisp.org>
24702
24703         socketlib: Fix.
24704         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24705         gl_PREREQ_SYS_H_WINSOCK2.
24706         Reported by Ian Beckwith <ianb@erislabs.net>.
24707
24708 2010-10-13  Jim Meyering  <meyering@redhat.com>
24709
24710         test-select-stdin.c: avoid warn_unused_result warnings
24711         * tests/test-select-stdin.c: Include "macros.h".
24712         ASSERT that read and fflush succeed.
24713
24714 2010-10-13  Jim Meyering  <meyering@redhat.com>
24715
24716         git-version-gen: do require git-VC'd files in cwd
24717         * build-aux/git-version-gen: Reject a git version string
24718         if there are no commits associated with the current directory.
24719         This avoids an unlikely false-positive (unrelated dir whose parent
24720         repository also contains a tag matching v*), as pointed out
24721         by Giuseppe Scrivano in
24722         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24723
24724 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24725
24726         argv-iter: omit nonconforming declaration
24727         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24728         enum arg_iter_err declaration, which doesn't conform to C99.
24729         Solaris 10 cc warns about this.
24730
24731 2010-10-13  Eric Blake  <eblake@redhat.com>
24732
24733         termios: fix compilation on mingw
24734         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24735         (gl_TERMIOS_H): Adjust it on mingw.
24736         * modules/termios (Makefile.am): Substitute new key.
24737         * lib/termios.in.h (includes): Make include_next conditional.
24738         * doc/posix-headers/termios.texi (termios.h): Update
24739         documentation.
24740         Reported by Daniel P. Berrange.
24741
24742 2010-10-13  Jim Meyering  <meyering@redhat.com>
24743
24744         git-version-gen: don't require that .git/ be in the current dir
24745         * build-aux/git-version-gen: Adjust this script so that it works
24746         when run from any working directory beneath the top-level .git/-
24747         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24748         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24749
24750         test-select: avoid warn_unused_result warnings
24751         * tests/test-select.c: Include "macros.h".
24752         ASSERT that each call to read, write, and pipe succeeds.
24753         While not technically required, also check each "close".
24754         * modules/select-tests (Files): Add tests/macros.h.
24755
24756         test-symlinkat: remove declaration of unused local
24757         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24758
24759         test-inttostr: avoid shadowing warnings
24760         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24761         and use malloc rather than the stack for the same reason as
24762         mentioned in the comment justifying the other allocation.
24763
24764 2010-10-11  Bruno Haible  <bruno@clisp.org>
24765
24766         stdlib: Allow multiple gnulib generated replacements to coexist.
24767         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24768         Reported by Sam Steingold <sds@gnu.org>.
24769
24770 2010-10-11  Jim Meyering  <meyering@redhat.com>
24771
24772         fix a documentation typo
24773         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24774
24775 2010-10-11  Eric Blake  <eblake@redhat.com>
24776
24777         futimens: work around Solaris 11 bug
24778         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24779         * tests/test-futimens.h (test_futimens): Enhance, rather than
24780         weaken test.
24781         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24782
24783 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24784
24785         Indentation.
24786         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24787         higher-level operators more to the left.
24788
24789 2010-10-11  Jim Meyering  <meyering@redhat.com>
24790
24791         test-futimens: avoid unwarranted test failure on Solaris 5.11
24792         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24793         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24794         because it tries to dereference the NULL name argument.
24795
24796 2010-10-11  Bruno Haible  <bruno@clisp.org>
24797
24798         Indentation.
24799         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24800         indentation.
24801
24802 2010-10-11  Jim Meyering  <meyering@redhat.com>
24803
24804         spawn.in.h: make indentation consistent with parentheses
24805         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24806         Make indentation consistent with parentheses.
24807
24808 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24809
24810         Fix mismatched parens in previous commit
24811         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24812         parens.
24813
24814 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24815
24816         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24817
24818         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24819         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24820         * lib/malloca.c: Include "verify.h".
24821         (verify1): Remove, replacing with a verify call.
24822         * lib/relocwrapper.c (verify1): Likewise.
24823         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24824         Likewise.
24825         * modules/malloca (Depends-on): Add 'verify'.
24826         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24827         * modules/vasnprintf (Depends-on): Add 'verify'.
24828         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24829         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24830         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24831         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24832         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24833         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24834         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24835
24836         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24837
24838         Formerly the style was sometimes 2*X - 1, because the C standard
24839         was wrongly thought to disallow ?: in integral constant expressions.
24840         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24841         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24842         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24843         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24844         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24845         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24846         verify that time_t cannot be floating.
24847
24848 2010-10-08  Eric Blake  <eblake@redhat.com>
24849
24850         time: enforce recent POSIX ruling that time_t is integral
24851         * lib/time.in.h (__time_t_must_be_integral): Detect any
24852         problematic systems, allowing the rest of gnulib to assume POSIX.
24853
24854 2010-10-08  Jim Meyering  <meyering@redhat.com>
24855
24856         fdopendir: fix a bug on systems lacking openat and /proc support
24857         OpenBSD 4.7 is one such system.  The most noticeable effect was
24858         failure of any application making nontrivial use of fts: rm, du,
24859         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24860           ./rm: traversal failed: `a': Bad file descriptor
24861         Debugging that, you see that even though FD 6 was closed just
24862         prior to the opendir call in fd_clone_opendir, its resulting
24863         dir->dd_fd was 8, rather than the expected value of 6:
24864
24865         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24866         93                close (fd);
24867         (gdb) n
24868         94                dir = fd_clone_opendir (dupfd);
24869         (gdb) n
24870         95                saved_errno = errno;
24871         (gdb) p dir->dd_fd
24872         $11 = 8
24873
24874         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24875         The problem is that on OpenBSD, fd_clone_opendir has to resort
24876         to using the old-style save/restore CWD mechanism, due to its
24877         lack of openat/proc support, and *that* would steal the FD (6)
24878         that opendir was supposed to use.
24879
24880         The fix is to squirrel away the desired FD so that save_cwd uses a
24881         different one, and then free the dest FD right before calling opendir.
24882         That guarantees opendir will use the required file descriptor.
24883
24884         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24885
24886 2010-10-08  Bruno Haible  <bruno@clisp.org>
24887
24888         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24889         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24890
24891 2010-10-08  Bruno Haible  <bruno@clisp.org>
24892
24893         nanosleep: Make replacement POSIX compliant.
24894         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24895         is out of range.
24896         Reported by Jim Meyering.
24897
24898 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24899
24900         bootstrap: add hook for altering gnulib.mk, for Bison
24901         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24902         the Bison bootstrapping process can rewrite file names and variables
24903         in this file before later parts of 'bootstrap' use the file.
24904         Bison wants to include lib/gnulib.mk from the top-level makefile,
24905         so it needs the file names in this file to be relative to the top
24906         level, not relative to lib; plus it needs variable names to be
24907         rewritten.
24908         (slurp): Use the new function.
24909
24910         bootstrap: reformat for readability
24911         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24912
24913 2010-10-08  Eric Blake  <eblake@redhat.com>
24914
24915         docs: update cygwin progress
24916         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24917         1.7.7.
24918         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24919         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24920         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24921         * doc/posix-functions/carg.texi (carg): Likewise.
24922         * doc/posix-functions/cargf.texi (cargf): Likewise.
24923         * doc/posix-functions/casin.texi (casin): Likewise.
24924         * doc/posix-functions/casinf.texi (casinf): Likewise.
24925         * doc/posix-functions/casinh.texi (casinh): Likewise.
24926         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24927         * doc/posix-functions/catan.texi (catan): Likewise.
24928         * doc/posix-functions/catanf.texi (catanf): Likewise.
24929         * doc/posix-functions/catanh.texi (catanh): Likewise.
24930         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24931         * doc/posix-functions/ccos.texi (ccos): Likewise.
24932         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24933         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24934         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24935         * doc/posix-functions/cexp.texi (cexp): Likewise.
24936         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24937         * doc/posix-functions/cimag.texi (cimag): Likewise.
24938         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24939         * doc/posix-functions/clog.texi (clog): Likewise.
24940         * doc/posix-functions/clogf.texi (clogf): Likewise.
24941         * doc/posix-functions/conj.texi (conj): Likewise.
24942         * doc/posix-functions/conjf.texi (conjf): Likewise.
24943         * doc/posix-functions/cpow.texi (cpow): Likewise.
24944         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24945         * doc/posix-functions/cproj.texi (cproj): Likewise.
24946         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24947         * doc/posix-functions/creal.texi (creal): Likewise.
24948         * doc/posix-functions/crealf.texi (crealf): Likewise.
24949         * doc/posix-functions/csin.texi (csin): Likewise.
24950         * doc/posix-functions/csinf.texi (csinf): Likewise.
24951         * doc/posix-functions/csinh.texi (csinh): Likewise.
24952         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24953         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24954         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24955         * doc/posix-functions/ctan.texi (ctan): Likewise.
24956         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24957         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24958         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24959         * doc/posix-headers/complex.texi (complex.h): Likewise.
24960
24961 2010-10-07  Jim Meyering  <meyering@redhat.com>
24962
24963         parse-datetime: avoid compilation failure on OpenBSD 4.7
24964         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24965         This works around a compilation failure on OpenBSD 4.7:
24966         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24967
24968 2010-10-07  Eric Blake  <eblake@redhat.com>
24969
24970         docs: update cygwin progress
24971         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24972         1.7.6.
24973         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24974         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24975         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24976         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24977         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24978         Likewise.
24979         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24980         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24981         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24982         Likewise.
24983         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24984         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24985         Likewise.
24986         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24987         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24988         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24989         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24990         Likewise.
24991         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24992         Likewise.
24993         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24994
24995         docs: update parse-datetime history
24996         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24997         documentation of this function's history and alternatives.
24998
24999         cygwin: use more robust version check
25000         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25001         exclude an eventual cygwin 1.9.1.
25002         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25003         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25004         (gl_FUNC_STRCASESTR): Likewise.
25005         Reported by Bruno Haible.
25006
25007 2010-10-06  Bruno Haible  <bruno@clisp.org>
25008
25009         string, sys_select: Avoid #including large headers unless necessary.
25010         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25011         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25012         OSF/1, BeOS, Haiku.
25013         Reported by Jim Meyering.
25014
25015 2010-10-05  Eric Blake  <eblake@redhat.com>
25016
25017         memmem, strstr, strcasestr: fix bug with long periodic needle
25018         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25019         periodic needle having false positive.
25020         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25021         and cygwin 1.7.7.
25022         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25023         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25024         (gl_FUNC_STRCASESTR): Likewise.
25025         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25026         * tests/test-memmem.c (main): Expose the bug.
25027         * tests/test-strcasestr.c (main): Likewise.
25028         * tests/test-strstr.c (main): Likewise.
25029         * tests/test-c-strcasestr.c (main): Likewise.
25030         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25031         * doc/posix-functions/strstr.texi (strstr): Likewise.
25032         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25033         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25034
25035 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25036
25037         parse-datetime: do some more renaming
25038         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25039         parse_datetime, not get_date.  Mention the renaming.
25040         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25041         in comments.
25042         * m4/bison.m4: Likewise.
25043
25044 2010-10-05  Eric Blake  <eblake@redhat.com>
25045
25046         parse-datetime: better name than get_date
25047         * NEWS: Reword the deprecation notice.
25048         * modules/get_date: Rename to modules/parse-datetime.
25049         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25050         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25051         * lib/get_date.y: Rename to lib/parse-datetime.y.
25052         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25053         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25054         * doc/getdate.texi: Provide fallback wrapper.
25055         * lib/getdate.h: Move guts, and wrap...
25056         * lib/parse-datetime.h: ...new file.
25057         * lib/parse-datetime.y (get_date): Rename...
25058         (parse_datetime): ...to this.
25059         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25060         (gl_PARSE_DATETIME): ...to this.
25061         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25062         documentation.
25063         * modules/getdate (Files): Provide fallback docs and header.
25064         (Notice, Depends-on): Update references.
25065         * tests/test-parse-datetime.c: Likewise.
25066         * DEPENDENCIES: Likewise.
25067         * MODULES.html.sh (Date and time <time.h>): Likewise.
25068         * doc/parse-datetime.texi (Date input formats)
25069         (Authors of parse_datetime): Likewise.
25070         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25071         (Include): Likewise.
25072         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25073         * gnulib-tool: Likewise.
25074         * m4/bison.m4 (gl_BISON): Likewise.
25075         Suggested by Bruno Haible.
25076
25077 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25078
25079         more ports to Solaris tr, which needs [] around ranges
25080         * gnulib-tool: Solaris tr needs [] around ranges.
25081         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25082         * tests/test-pipe-filter-gi1.c (main): Likewise.
25083         * tests/test-pipe-filter-ii1.c (main): Likewise.
25084
25085 2010-10-05  Eric Blake  <eblake@redhat.com>
25086
25087         bootstrap: fix Solaris regression
25088         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25089         around ranges.
25090         Reported by Pádraig Brady.
25091
25092         bootstrap: work with pkg-config
25093         * build-aux/bootstrap (check_versions): Also transliterate - in
25094         prerequisite name.
25095         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25096         prerequisites that were already found, to avoid confusion.
25097         Reported by Justin Clift.
25098
25099         faccessat: remove unused wrappers
25100         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25101         presence of these wrappers dragged in -lgen on Solaris.
25102         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25103
25104 2010-10-05  Jim Meyering  <meyering@redhat.com>
25105
25106         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25107         * Makefile (sc_pragma_columns): New syntax-check rule.
25108
25109 2010-10-04  Bruno Haible  <bruno@clisp.org>
25110
25111         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25112         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25113         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25114         Reported by Bruce Korb and Eric Blake.
25115
25116 2010-10-04  Bruno Haible  <bruno@clisp.org>
25117
25118         threadlib: Make option --with-libpth-prefix work.
25119         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25120         use $LIBPTH, not just -lpth.
25121
25122 2010-10-04  Bruno Haible  <bruno@clisp.org>
25123
25124         Avoid line length limitation from HP NonStop system header files.
25125         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25126         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25127         * lib/ctype.in.h: Likewise.
25128         * lib/dirent.in.h: Likewise.
25129         * lib/errno.in.h: Likewise.
25130         * lib/fcntl.in.h: Likewise.
25131         * lib/float.in.h: Likewise.
25132         * lib/getopt.in.h: Likewise.
25133         * lib/iconv.in.h: Likewise.
25134         * lib/inttypes.in.h: Likewise.
25135         * lib/langinfo.in.h: Likewise.
25136         * lib/locale.in.h: Likewise.
25137         * lib/math.in.h: Likewise.
25138         * lib/netdb.in.h: Likewise.
25139         * lib/netinet_in.in.h: Likewise.
25140         * lib/poll.in.h: Likewise.
25141         * lib/pthread.in.h: Likewise.
25142         * lib/pty.in.h: Likewise.
25143         * lib/sched.in.h: Likewise.
25144         * lib/se-selinux.in.h: Likewise.
25145         * lib/search.in.h: Likewise.
25146         * lib/signal.in.h: Likewise.
25147         * lib/spawn.in.h: Likewise.
25148         * lib/stdarg.in.h: Likewise.
25149         * lib/stddef.in.h: Likewise.
25150         * lib/stdint.in.h: Likewise.
25151         * lib/stdio.in.h: Likewise.
25152         * lib/stdlib.in.h: Likewise.
25153         * lib/string.in.h: Likewise.
25154         * lib/strings.in.h: Likewise.
25155         * lib/sys_file.in.h: Likewise.
25156         * lib/sys_ioctl.in.h: Likewise.
25157         * lib/sys_select.in.h: Likewise.
25158         * lib/sys_socket.in.h: Likewise.
25159         * lib/sys_stat.in.h: Likewise.
25160         * lib/sys_time.in.h: Likewise.
25161         * lib/sys_times.in.h: Likewise.
25162         * lib/sys_utsname.in.h: Likewise.
25163         * lib/sys_wait.in.h: Likewise.
25164         * lib/sysexits.in.h: Likewise.
25165         * lib/termios.in.h: Likewise.
25166         * lib/time.in.h: Likewise.
25167         * lib/unistd.in.h: Likewise.
25168         * lib/wchar.in.h: Likewise.
25169         * lib/wctype.in.h: Likewise.
25170         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25171         * modules/ctype (Makefile.am): Likewise.
25172         * modules/dirent (Makefile.am): Likewise.
25173         * modules/errno (Makefile.am): Likewise.
25174         * modules/fcntl-h (Makefile.am): Likewise.
25175         * modules/float (Makefile.am): Likewise.
25176         * modules/getopt-posix (Makefile.am): Likewise.
25177         * modules/iconv-h (Makefile.am): Likewise.
25178         * modules/inttypes (Makefile.am): Likewise.
25179         * modules/langinfo (Makefile.am): Likewise.
25180         * modules/locale (Makefile.am): Likewise.
25181         * modules/math (Makefile.am): Likewise.
25182         * modules/netdb (Makefile.am): Likewise.
25183         * modules/netinet_in (Makefile.am): Likewise.
25184         * modules/poll-h (Makefile.am): Likewise.
25185         * modules/pthread (Makefile.am): Likewise.
25186         * modules/pty (Makefile.am): Likewise.
25187         * modules/sched (Makefile.am): Likewise.
25188         * modules/search (Makefile.am): Likewise.
25189         * modules/selinux-h (Makefile.am): Likewise.
25190         * modules/signal (Makefile.am): Likewise.
25191         * modules/spawn (Makefile.am): Likewise.
25192         * modules/stdarg (Makefile.am): Likewise.
25193         * modules/stddef (Makefile.am): Likewise.
25194         * modules/stdint (Makefile.am): Likewise.
25195         * modules/stdio (Makefile.am): Likewise.
25196         * modules/stdlib (Makefile.am): Likewise.
25197         * modules/string (Makefile.am): Likewise.
25198         * modules/strings (Makefile.am): Likewise.
25199         * modules/sys_file (Makefile.am): Likewise.
25200         * modules/sys_ioctl (Makefile.am): Likewise.
25201         * modules/sys_select (Makefile.am): Likewise.
25202         * modules/sys_socket (Makefile.am): Likewise.
25203         * modules/sys_stat (Makefile.am): Likewise.
25204         * modules/sys_time (Makefile.am): Likewise.
25205         * modules/sys_times (Makefile.am): Likewise.
25206         * modules/sys_utsname (Makefile.am): Likewise.
25207         * modules/sys_wait (Makefile.am): Likewise.
25208         * modules/sysexits (Makefile.am): Likewise.
25209         * modules/termios (Makefile.am): Likewise.
25210         * modules/time (Makefile.am): Likewise.
25211         * modules/unistd (Makefile.am): Likewise.
25212         * modules/wchar (Makefile.am): Likewise.
25213         * modules/wctype (Makefile.am): Likewise.
25214
25215 2010-10-04  Bruno Haible  <bruno@clisp.org>
25216
25217         read-file tests: Avoid a test failure on NonStop Kernel.
25218         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25219         a regular file.
25220         Reported by Joachim Schmitz <schmitz@hp.com>.
25221
25222 2010-10-03  Bruno Haible  <bruno@clisp.org>
25223
25224         gnulib-tool: Fixes for --create-testdir with --libtool.
25225         * gnulib-tool (func_get_automake_snippet): Don't augment
25226         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25227         an executable.
25228         (func_create_testdir): Handle module 'alloca' like func_import.
25229         Reported by Bruce Korb <bruce.korb@gmail.com>.
25230
25231 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25232
25233         Avoid some lines longer than 80 characters.
25234         * lib/stdint.in.h: Break long comment lines.
25235         * lib/math.in.h: Likewise.
25236         (_GL_NUM_UINT_WORDS): New macro, for readability.
25237         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25238         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25239         * lib/stdlib.in.h: Likewise.
25240         * lib/spawn.in.h: Likewise.
25241         * lib/sys_socket.in.h: Update an URL.
25242         * lib/sys_stat.in.h: Break long line.
25243
25244 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25245
25246         Improve pmccabe2html.
25247         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25248         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25249         when the sources change. Remove the line in the HTML about "Used
25250         ranges" (which implied that there might be other unused ranges),
25251         rename "Resume" to "Summary" (easier to understand for more users).
25252         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25253         styles, and some unnecessary blank lines.
25254
25255 2010-10-03  Bruno Haible  <bruno@clisp.org>
25256             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25257
25258         acl: Add support for ACLs on NonStop Kernel.
25259         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25260         Check whether the function aclsort() exists.
25261         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25262         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25263         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25264         (acl_nontrivial [HAVE_ACLSORT]: New function.
25265         (file_has_acl): Implement for NonStop Kernel.
25266         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25267         (qset_acl): Implement for NonStop Kernel.
25268         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25269         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25270         (main): Implement for NonStop Kernel.
25271         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25272         Kernel. Handle this flavor.
25273         * tests/test-set-mode-acl.sh: Likewise.
25274         * tests/test-copy-acl.sh: Likewise.
25275         * tests/test-copy-file.sh: Likewise.
25276
25277 2010-10-03  Bruno Haible  <bruno@clisp.org>
25278
25279         Info about ACLs on NonStop Kernel.
25280         * doc/acl-resources.txt: Add info about NonStop Kernel.
25281         References by Joachim Schmitz <schmitz@hp.com>.
25282
25283 2010-10-02  Bruno Haible  <bruno@clisp.org>
25284
25285         Define missing EDQUOT on NonStop Kernel.
25286         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25287         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25288         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25289         missing.
25290         * doc/posix-headers/errno.texi: Mention the NSK bug.
25291         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25292         Reported by Joachim Schmitz <schmitz@hp.com>.
25293
25294 2010-10-02  Bruno Haible  <bruno@clisp.org>
25295
25296         Update doc for POSIX:2008.
25297         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25298         Update URL of POSIX specification.
25299
25300 2010-10-02  Bruno Haible  <bruno@clisp.org>
25301
25302         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25303         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25304         from gnulib, not from Automake.
25305
25306 2010-10-02  Bruno Haible  <bruno@clisp.org>
25307
25308         New module 'system-posix'.
25309         * modules/system-posix: New file.
25310         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25311         module is present.
25312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25313         GNULIB_SYSTEM_POSIX.
25314         * modules/stdlib (Depends-on): Remove sys_wait.
25315         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25316         * doc/posix-functions/system.texi: Mention the new module.
25317         * doc/posix-headers/stdlib.texi: Likewise.
25318         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25319         define test_sys_wait_macros to a no-op.
25320         Reported by Sam Steingold <sds@gnu.org>.
25321
25322 2010-09-30  Bruno Haible  <bruno@clisp.org>
25323
25324         More renaming from 'getdate' to 'get_date'.
25325         * doc/get_date.texi: Renamed from doc/getdate.texi.
25326         * modules/get_date (Files): Update.
25327         * MODULES.html.sh (Date and time <time.h>): Update.
25328         * DEPENDENCIES: Update.
25329         * gnulib-tool: Update comment.
25330         * m4/bison.m4 (gl_BISON): Likewise.
25331         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25332
25333 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25334
25335         bootstrap: support ACLOCAL_FLAGS during aclocal
25336         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25337         can add additional -I dir for third-party .m4 files.
25338
25339 2010-09-30  Eric Blake  <eblake@redhat.com>
25340
25341         bootstrap: use glibtoolize on MacOS
25342         * build-aux/bootstrap (check_versions): Convert libtool into
25343         libtoolize.
25344         (tool search): Move libtool check earlier, and look for
25345         glibtoolize for MacOS.
25346         (gnulib_tool_options): Auto-add --libtool when appropriate.
25347         Reported by Justin Clift.
25348
25349         poll: fix typo that broke test on MacOS
25350         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25351         Reported by Justin Clift.
25352
25353         getdate: rename to get_date
25354         Note: getdate.h is not renamed, to minimize client impact.
25355         * modules/getdate: Mark obsolete.  Move old contents...
25356         * modules/get_date: ...to new module name.
25357         * modules/getdate-tests: Move...
25358         * modules/get_date-tests: ...here.
25359         * m4/getdate.m4: Move...
25360         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25361         * lib/getdate.y: Move...
25362         * lib/get_date.y: ...here.
25363         * tests/test-getdate.c: Move...
25364         * tests/test-get_date.c: ...here.
25365         * doc/posix-functions/getdate.texi (getdate): Update name.
25366         * NEWS: Mention the change.
25367
25368 2010-09-29  Bruno Haible  <bruno@clisp.org>
25369
25370         Separate the module 'waitpid' from the module 'sys_wait'.
25371         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25372         present.
25373         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25374         gl_MODULE_INDICATOR_FOR_TESTS.
25375         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25376         * modules/sys_wait (Depends-on): Remove waitpid.
25377         (Makefile.am): Substitute GNULIB_WAITPID.
25378         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25379         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25380         signature only if the 'waitpid' module is present.
25381         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25382         * NEWS: Mention the change.
25383         * modules/grantpt (Depends-on): Add waitpid.
25384         * modules/wait-process (Depends-on): Likewise.
25385
25386 2010-09-29  Bruno Haible  <bruno@clisp.org>
25387
25388         More tests for module 'sys_wait'.
25389         * modules/sys_wait-c++-tests: New file.
25390         * tests/test-sys_wait-c++.cc: New file.
25391         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25392         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25393
25394 2010-09-29  Bruno Haible  <bruno@clisp.org>
25395
25396         New module 'waitpid'.
25397         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25398         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25399         Don't include <process.h>.
25400         (waitpid): Declare only, using modern idiom.
25401         * m4/waitpid.m4: New file.
25402         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25403         * modules/waitpid: New file.
25404         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25405         (Makefile.am): Update.
25406         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25407
25408 2010-09-28  Bruno Haible  <bruno@clisp.org>
25409
25410         poll: Assume ANSI C.
25411         * lib/poll.c (poll): Use an ANSI C declaration.
25412
25413 2010-09-28  Bruno Haible  <bruno@clisp.org>
25414
25415         poll-h: Create poll.h on all platforms.
25416         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25417         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25418         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25419         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25420         (gl_REPLACE_POLL_H): Don't set POLL_H.
25421         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25422         * modules/poll-h (Depends-on): Add include_next.
25423         (Makefile.am): Create poll.h unconditionally. Substitute also
25424         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25425
25426 2010-09-28  Bruno Haible  <bruno@clisp.org>
25427
25428         Tests for module 'poll-h'.
25429         * modules/poll-h-c++-tests: New file.
25430         * tests/test-poll-h-c++.cc: New file.
25431
25432         Tests for module 'poll-h'.
25433         * modules/poll-h-tests: New file.
25434         * tests/test-poll-h.c: New file.
25435
25436 2010-09-28  Bruno Haible  <bruno@clisp.org>
25437
25438         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25439         * modules/poll-h (Depends-on): Add 'extensions'.
25440
25441 2010-09-28  Bruno Haible  <bruno@clisp.org>
25442
25443         New module 'poll-h'.
25444         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25445         (poll): Use modern idiom.
25446         * modules/poll-h: New file.
25447         * modules/poll (Files): Remove lib/poll.in.h.
25448         (Depends-on): Add poll-h.
25449         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25450         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25451         * m4/poll_h.m4: New file.
25452         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25453         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25454         and invoke gl_REPLACE_POLL_H.
25455         * lib/poll.c: Use common idiom.
25456         * tests/test-poll.c: Likewise.
25457         * doc/posix-headers/poll.texi: Mention the poll-h module.
25458         Suggested by Eric Blake.
25459
25460 2010-09-26  Bruno Haible  <bruno@clisp.org>
25461
25462         sys_wait: Implement WSTOPSIG.
25463         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25464         Reported by Simon Josefsson.
25465
25466 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25467
25468         stdlib, sys_wait: Avoid compilation error on mingw.
25469         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25470
25471 2010-09-26  Bruno Haible  <bruno@clisp.org>
25472
25473         stdlib tests: Avoid code duplication.
25474         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25475         * modules/sys_wait-tests (Files): Likewise.
25476         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25477         * tests/test-stdlib.c: Include test-sys_wait.h.
25478         (main): Invoke test_sys_wait_macros.
25479         * tests/test-sys_wait.c: Include test-sys_wait.h.
25480         (main): Invoke test_sys_wait_macros.
25481
25482 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25483
25484         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25485         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25486         sure Windows sockets are working before calling getaddrinfo.
25487         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25488         * doc/gnulib.texi (Windows sockets): Fix typo.
25489
25490 2010-09-25  Bruno Haible  <bruno@clisp.org>
25491
25492         Tests for module 'regex-quote'.
25493         * modules/regex-quote-tests: New file.
25494         * tests/test-regex-quote.c: New file.
25495
25496         New module 'regex-quote'.
25497         * lib/regex-quote.h: New file.
25498         * lib/regex-quote.c: New file.
25499         * modules/regex-quote: New file.
25500         Suggested by Reuben Thomas <rrt@sc3d.org>.
25501
25502 2010-09-24  Bruno Haible  <bruno@clisp.org>
25503
25504         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25505         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25506
25507 2010-09-23  Bruno Haible  <bruno@clisp.org>
25508
25509         setenv: Relax license.
25510         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25511         Blake.
25512         Requested by Eric Blake.
25513
25514 2010-09-22  Bruno Haible  <bruno@clisp.org>
25515
25516         termios: Relax license.
25517         * modules/termios (License): Change to LGPLv2+.
25518         Requested by Eric Blake.
25519
25520 2010-09-22  Bruno Haible  <bruno@clisp.org>
25521
25522         threadlib: Allow the package to change the default to 'no'.
25523         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25524         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25525         Reported by Paul Eggert.
25526
25527 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25528             Bruno Haible  <bruno@clisp.org>
25529
25530         Fix endless loop in mbmemcasecoll.
25531         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25532         byte.
25533         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25534
25535 2010-09-22  Bruno Haible  <bruno@clisp.org>
25536
25537         Tests for module 'memcoll'.
25538         * modules/memcoll-tests: New file.
25539         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25540
25541         memcoll, xmemcoll: Clarify size vs. length.
25542         * modules/memcoll.c (memcoll0): Clarify specification.
25543         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25544         passed to collate_error.
25545
25546 2010-09-22  Bruno Haible  <bruno@clisp.org>
25547
25548         Tests for module 'memcasecmp'.
25549         * modules/memcasecmp-tests: New file.
25550         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25551
25552 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25553
25554         * lib/pthread.in.h: Add split double-inclusion guard, and include
25555         system <pthread.h> if there is one.  Use @@-style as in other
25556         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25557         pthread.h doesn't.
25558         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25559         (pthread_mutexattr_settype, pthread_mutex_trylock):
25560         New static inline functions, if there's no system <pthread.h>.
25561         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25562         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25563         Approximate with mutexes if the system lacks spinlocks, as in
25564         MacOS.
25565         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25566         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25567         @@-style.  Check for spinlocks separately.
25568         (gl_PTHREAD_DEFAULTS): New macro.
25569         * modules/pthread: Redo to use a more typical style for in.h files.
25570
25571 2010-09-21  Eric Blake  <eblake@redhat.com>
25572
25573         net_if: enhance tests
25574         * tests/test-net_if.c (main): Move signature checks earlier.
25575         Print failures to stderr.
25576         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25577         Document the bug that we do not yet fix.
25578
25579 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25580
25581         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25582         about gnulib, not GSS.
25583
25584 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25585
25586         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25587         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25588         for Emacs.
25589         * build-aux/pmccabe2html: Make Makefile.am example code more
25590         cut-and-paste friendly.
25591
25592 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25593
25594         * tests/test-net_if.c: New file.
25595         * modules/net_if-tests: New file.
25596
25597 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25598
25599         pthread: add pthread_spin_destroy
25600         * lib/pthread.in.h (pthread_spin_destroy): New function.
25601
25602 2010-09-19  Bruno Haible  <bruno@clisp.org>
25603
25604         gnulib-tool: Fix --help output.
25605         * gnulib-tool (func_usage): Fix help message.
25606         Reported by Reuben Thomas <rrt@sc3d.org>.
25607
25608 2010-09-18  Jim Meyering  <meyering@redhat.com>
25609
25610         maint.mk: avoid unexpanded \n in two diagnostics
25611         * top/maint.mk (sc_prohibit_always_true_header_tests):
25612         Don't use a literal \n in a halt=... assignment.  It would not be
25613         expanded, and the two \n bytes would appear in the diagnostic output
25614         rather than the desired newline.  Use halt=$$(printf ... instead.
25615         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25616
25617 2010-09-18  Bruno Haible  <bruno@clisp.org>
25618
25619         netinet_in: Doc tweak.
25620         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25621         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25622
25623 2010-09-18  Jim Meyering  <meyering@redhat.com>
25624
25625         init.sh: correct an outdated comment
25626         * tests/init.sh (create_exe_shims_):  s/function/alias/
25627
25628         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25629         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25630         a file named "*.exe" is removed between the glob expansion and the
25631         processing of that oddly named file.
25632
25633 2010-09-17  Eric Blake  <eblake@redhat.com>
25634
25635         mirbsd: add some more support
25636         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25637         in BSD family.
25638         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25639         devices as OpenBSD.
25640         * m4/host-os.m4 (mirbsd): Add MirBSD.
25641
25642         tests: fix unportable assumption on sys/wait.h
25643         * tests/test-sys_wait.c (main): Relax test.
25644         * tests/test-stdlib.c (main): Likewise.
25645
25646         init.sh: accomodate directory with no .exes
25647         * tests/init.sh: Accomodate directory containing only scripts.
25648
25649         tests: avoid compiler warning
25650         * tests/test-stdlib.c (main): Use the variable.
25651
25652         fdutimens, fdutimensat: update signature, again
25653         * lib/utimens.h (gl_futimens): Delete, and move signature...
25654         (fdutimens): ...here.
25655         (fdutimensat): Rearrange signature.
25656         (lutimensat): Rename variable for clarity.
25657         * lib/fdutimensat.c (fdutimensat): Update signature.
25658         * lib/utimens.c (fdutimens): Likewise.
25659         (gl_futimens): Delete.
25660         (utimens, lutimens): Update callers.
25661         * lib/futimens.c (futimens): Likewise.
25662         * tests/test-fdutimensat.c: Likewise.
25663         * tests/test-utimens.c: Likewise.
25664         * tests/test-futimens.h: Update comment.
25665         * NEWS: Mention this.
25666         Suggested by Paul Eggert.
25667
25668 2010-09-17  Bruno Haible  <bruno@clisp.org>
25669
25670         Take over the maintenance of some older macros from Autoconf.
25671         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25672         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25673         GNU Autoconf.
25674         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25675         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25676
25677 2010-09-17  Eric Blake  <eblake@redhat.com>
25678
25679         fdutimensat: drop atflag validation
25680         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25681         with valid fd, to close a race scenario where futimens is
25682         unsupported and FILE was replaced by a symlink.
25683         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25684         accordingly.
25685         Suggested by Paul Eggert.
25686
25687 2010-09-16  Bruno Haible  <bruno@clisp.org>
25688
25689         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25690         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25691
25692 2010-09-16  Bruno Haible  <bruno@clisp.org>
25693
25694         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25695         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25696         login_tty exists.
25697         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25698
25699 2010-09-16  Bruno Haible  <bruno@clisp.org>
25700
25701         login_tty: Make the replacement code work on BSD systems.
25702         * lib/login_tty.c: Include <sys/ioctl.h>.
25703         (login_tty): Use ioctl TIOCSCTTY when available.
25704         * modules/login_tty (Depends-on): Add sys_ioctl.
25705         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25706
25707 2010-09-16  Bruno Haible  <bruno@clisp.org>
25708
25709         login_tty: Stricter unit test.
25710         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25711         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25712         and tcgetsid() after login_tty.
25713         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25714
25715 2010-09-16  Bruno Haible  <bruno@clisp.org>
25716
25717         New module 'tcgetsid'.
25718         * lib/tcgetsid.c: New file.
25719         * m4/tcgetsid.m4: New file.
25720         * modules/tcgetsid: New file.
25721         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25722         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25723         GNULIB_TCGETSID, HAVE_TCGETSID.
25724         * lib/termios.in.h: Include <sys/types.h>.
25725         (tcgetsid): New declaration.
25726         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25727         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25728         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25729         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25730
25731 2010-09-16  Bruno Haible  <bruno@clisp.org>
25732
25733         Tests for module 'termios'.
25734         * modules/termios-c++-tests: New file.
25735         * modules/termios-tests: New file.
25736         * tests/test-termios-c++.cc: New file.
25737         * tests/test-termios.c: New file.
25738
25739         New module 'termios'.
25740         * modules/termios: New file.
25741         * lib/termios.in.h: New file.
25742         * m4/termios_h.m4: New file.
25743         * doc/posix-headers/termios.texi: Mention the new module.
25744
25745 2010-09-16  Eric Blake  <eblake@redhat.com>
25746
25747         fdutimensat: add an atflag parameter
25748         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25749         * lib/utimens.h (fdutimensat): Update prototype.
25750         * tests/test-fdutimensat.c: Adjust test to match.
25751         * NEWS: Document the change.
25752         Suggested by Paul Eggert.
25753
25754 2010-09-16  Bruno Haible  <bruno@clisp.org>
25755
25756         Fix typos in comments.
25757         * lib/striconveh.h: Fix typo in comment.
25758         * lib/login_tty.c (login_tty): Likewise.
25759
25760 2010-09-15  Bruno Haible  <bruno@clisp.org>
25761
25762         stdlib: clarify MirBSD WEXITSTATUS bug
25763         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25764         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25765
25766 2010-09-15  Eric Blake  <eblake@redhat.com>
25767
25768         stdlib: work around MirBSD WEXITSTATUS bug
25769         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25770         * modules/stdlib (Depends-on): Add sys_wait.
25771         * tests/test-sys_wait.c (main): Enhance test.
25772         * tests/test-stdlib.c (main): Likewise.
25773         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25774
25775         docs: mention MacOS issue with WEXITSTATUS(constant)
25776         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25777         issue.
25778         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25779
25780         strnlen: add tests
25781         * modules/strnlen-tests: New file.
25782         * tests/test-strnlen.c: Likewise.
25783
25784 2010-09-14  Bruno Haible  <bruno@clisp.org>
25785
25786         unistr/base: Avoid link errors when module 'libunistring' is also used.
25787         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25788         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25789         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25790         Declare also when HAVE_LIBUNISTRING is set.
25791         Reported by Pádraig Brady <P@draigbrady.com>.
25792
25793 2010-09-14  Eric Blake  <eblake@redhat.com>
25794
25795         test-rawmemchr: make more robust
25796         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25797         (Depends-on, configure.ac): Add needed prerequisites to use it.
25798         * modules/memchr-tests (Files, Depends-on, configure.ac):
25799         Likewise, to avoid implicit reliance on memchr module prereqs.
25800         * tests/test-memchr.c (main): Ensure proper masking.
25801         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25802         reads.
25803
25804         memchr: detect glibc Alpha bug
25805         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25806         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25807         Alpha.
25808         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25809         * tests/test-memchr.c (main): Enhance test.
25810         Reported by Nelson H. F. Beebe.
25811
25812 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25813
25814         fts, getcwd, glob: audit for dirfd returning -1
25815         * lib/fts.c (opendir): Remove #define; no longer used.
25816         (opendirat): New arg PDIR_FD.  All callers changed.
25817         (fts_build, _opendir2): Use new opendirat to avoid the need for
25818         dirfd, or for checking whether dirfd returns a negative value.
25819         Don't use opendir; always use openat followed by fdopendir.
25820         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25821         it.
25822         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25823         returns -1 here.
25824         * modules/fts (Depends-on): Remove dirfd.
25825         * modules/getcwd (Depends-on): Likewise.
25826
25827 2010-09-13  Eric Blake  <eblake@redhat.com>
25828
25829         float: fix broken MirBSD header
25830         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25831         * doc/posix-headers/float.texi (float.h): Document it.
25832
25833 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25834
25835         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25836         * lib/fts.c (opendirat): New arg extra_flags.
25837         (__opendir2): Use it to avoid following symlinks when opening
25838         a directory, if symlinks are not supposed to be followed.  See
25839         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25840
25841         fdopendir: preserve argument fd before returning
25842         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25843         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25844         (fdopendir): Use them, arranging for FD to be open to the same
25845         directory that it was when it started.  (It might be temporarily
25846         closed while fdopendir is running, so this not thread- or
25847         signal-safe.)  Be careful to do the right thing even when file
25848         descriptors are scarce and dup fails with errno == EMFILE.  See
25849         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25850
25851 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25852
25853         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25854         * NEWS: Document change.
25855         * m4/regex.m4: Disable test for regoff_t size.
25856
25857 2010-09-13  Jim Meyering  <meyering@redhat.com>
25858
25859         fts: don't operate on an invalid file descriptor after failed dup
25860         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25861         negative file descriptor.
25862
25863 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25864
25865         savedir: add streamsavedir, deprecate fdsavedir
25866         * NEWS: Mention deprecation of fdsavedir.
25867         * lib/savedir.c (streamsavedir): New extern function, whose name
25868         ends in "savedir" to be consistent with the others.  This differs
25869         from savedirstream in that it doesn't close its argument.  The
25870         next version of GNU tar will use this instead of fdsavedir, to
25871         avoid some race conditions and conserve file descriptors.
25872         (savedirstream): Reimplement as a wrapper around streamsavedir.
25873         (fdsavedir): Add a comment deprecating this function.  As far as
25874         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25875         * lib/savedir.h (streamsavedir): New decl.
25876         (fdsavedir): Add a comment deprecating this.
25877
25878 2010-09-10  Bruno Haible  <bruno@clisp.org>
25879
25880         langinfo: Fix last commit.
25881         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25882         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25883         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25884
25885 2010-09-10  Bruno Haible  <bruno@clisp.org>
25886
25887         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25888         * lib/progreloc.c (O_EXEC): Define fallback.
25889
25890 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25891
25892         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25893         * NEWS: Document recent changes to fcntl-h.
25894         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25895         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25896         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25897         Similarly for O_SEARCH; this last was already true, but not documented.
25898         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25899         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25900         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25901         Likewise.
25902         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25903         is zero, not whether it is defined.
25904         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25905         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25906         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25907
25908 2010-09-10  Bruno Haible  <bruno@clisp.org>
25909
25910         langinfo, nl_langinfo: Fix for IRIX 5.3.
25911         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25912         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25913         HAVE_LANGINFO_YESEXPR.
25914         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25915         HAVE_LANGINFO_YESEXPR.
25916         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25917         HAVE_LANGINFO_T_FMT_AMPM is 0.
25918         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25919         HAVE_LANGINFO_YESEXPR is 0.
25920         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25921         NOEXPR.
25922         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25923         * doc/posix-functions/nl_langinfo.texi: Likewise.
25924         Reported by Eric Blake.
25925
25926 2010-09-10  Bruno Haible  <bruno@clisp.org>
25927
25928         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25929         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25930         on FreeBSD 8.0 and OpenBSD 4.6.
25931         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25932         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25933         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25934         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25935         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25936         ac_includes_default.
25937         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25938
25939 2010-09-09  Eric Blake  <eblake@redhat.com>
25940
25941         strsignal: work around NetBSD bug
25942         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25943         * lib/string.in.h (includes): Likewise.
25944         * doc/posix-functions/strsignal.texi (strsignal): Document the
25945         bug.
25946         Reported by Nelson H. F. Beebe.
25947
25948         gnulib-tool: work with NetBSD /bin/sh
25949         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25950         (func_get_description, func_get_comment, func_get_status)
25951         (func_get_notice, func_get_applicability, func_get_filelist)
25952         (func_get_dependencies, func_get_autoconf_early_snippet)
25953         (func_get_autoconf_snippet, func_get_automake_snippet)
25954         (func_get_include_directive, func_get_link_directive)
25955         (func_get_license, func_get_maintainer, func_import): Avoid
25956         shell syntax errors from parsing syntax extensions.
25957
25958 2010-09-09  Bruno Haible  <bruno@clisp.org>
25959
25960         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25961         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25962         a reliable way to determine whether the 'alias' command works.
25963
25964 2010-09-08  Jim Meyering  <meyering@redhat.com>
25965
25966         init.sh: penalize a set-x-impaired shell; don't disqualify it
25967         * tests/init.sh: Too many shells corrupt application stderr when
25968         you set -x, so we can't afford to disqualify them, since at least
25969         on Irix-6.5, that would disqualify all bourne shells.
25970         Instead, use a two-pass approach.
25971         On the first pass, try to find a shell that meets the stricter
25972         condition that set -x does not corrupt stderr.
25973         If no shell meets the stricter condition, retest each candidate
25974         shell, but without that extra condition.  Finally, when
25975         VERBOSE=yes is requested and set -x might cause trouble, simply
25976         issue a warning and refrain from enabling debug output.
25977
25978 2010-09-08  Eric Blake  <eblake@redhat.com>
25979
25980         unsetenv: fix OpenBSD bug
25981         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25982         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25983         documentation.
25984         Reported by Jim Meyering.
25985
25986         strtod: work around IRIX 6.5 bug
25987         * lib/strtod.c (strtod): Reparse number on shorter string if
25988         exponent parse was invalid.
25989         * tests/test-strtod.c (main): Add check for "0x1p 2".
25990         Reported by Tom G. Christensen.
25991
25992         getopt: optimize previous patch
25993         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25994         empty variable.  Speed up awk script.
25995         Reported by Paolo Bonzini.
25996
25997 2010-09-08  Jim Meyering  <meyering@redhat.com>
25998
25999         test.sh: disqualify shells for which set -x corrupts stderr
26000         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26001         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26002         appear in stderr output.  For example, this command:
26003             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26004         prints "P=1" on those two systems:
26005
26006 2010-09-08  Bruno Haible  <bruno@clisp.org>
26007
26008         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26009         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26010         commands, because some shells ignore redirections when there is an
26011         error in the command lookup.
26012         Reported by Eric Blake.
26013
26014 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26015
26016         * lib/regex.h: Fix a mention of `regex_compile' (should be
26017         `re_compile_pattern').
26018         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26019         (re_set_registers): Correct name of parameter in comment.
26020
26021         * doc/regex.texi: Add documentation for missing syntax flags.
26022         Remove commented-out documentation of defunct syntax option
26023         RE_NO_EMPTY_ALTS.
26024         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26025         Add documentation of re_set_registers.
26026         Document trick to re-use a pattern buffer by setting fastmap manually.
26027         Update documentation of struct re_pattern_buffer per public members.
26028         Uncomment documentation of equivalence class operators and
26029         collating symbol operators, since they are now implemented,
26030         Explain leftmost-longest matching in relation to alternatives.
26031         Tidy documentation of substring matching.
26032         Remove POSIX documentation, which is done better in
26033         glibc, and refer the reader there. Keep BSD API documentation, as
26034         that is not readily available elsewhere.
26035
26036 2010-09-07  Eric Blake  <eblake@redhat.com>
26037
26038         getopt: handle POSIXLY_CORRECT set but not exported
26039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26040         export state of POSIXLY_CORRECT, due to bash set -o posix.
26041         Reported by Dustin J. Mitchell.
26042
26043 2010-09-05  Bruno Haible  <bruno@clisp.org>
26044
26045         gnulib-tool: Highlight the changed options.
26046         * gnulib-tool (func_usage): Display the --import, --add-import,
26047         --remove-import explanations in bold font.
26048
26049 2010-09-06  Karl Berry  <karl@gnu.org>
26050
26051         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26052
26053 2010-09-05  Bruno Haible  <bruno@clisp.org>
26054
26055         uniwidth/width: Update comment.
26056         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26057         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26058
26059 2010-09-05  Bruno Haible  <bruno@clisp.org>
26060
26061         isinf, isnan: Relax license.
26062         * modules/isinf (License): Change from GPL to LGPL, with consent from
26063         Ben Pfaff.
26064         * modules/isnan (License): Likewise.
26065         Requested by Ludovic Courtès.
26066
26067 2010-09-04  Bruno Haible  <bruno@clisp.org>
26068
26069         gnulib-tool: Help migration from --import to --add-import or --update.
26070         * gnulib-tool: Emit a verbose error message when --import is used
26071         without any module name.
26072
26073 2010-09-04  Bruno Haible  <bruno@clisp.org>
26074
26075         Update doc about gnulib-tool.
26076         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26077         'gnulib-tool --update' in more detail.
26078         Reported by Eric Blake.
26079
26080 2010-09-04  Bruno Haible  <bruno@clisp.org>
26081
26082         gnulib-tool: Change --import. New options --add/remove-import.
26083         * gnulib-tool: New options --add-import, --remove-import.
26084         (func_usage): Document them.
26085         (have_associative): Define always.
26086         (func_import): In import mode, don't merge the specified settings with
26087         the cached settings. Implement remove-import mode.
26088         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26089         Explain when to use them versus --import.
26090         (Simple update): Use --add-import instead of --import.
26091         * NEWS: Mention the change.
26092
26093 2010-09-04  Bruno Haible  <bruno@clisp.org>
26094
26095         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26096         separate gnulib.mk.
26097
26098 2010-09-04  Bruno Haible  <bruno@clisp.org>
26099
26100         gnulib-tool: Don't talk about CVS any more.
26101         * gnulib-tool (func_usage, func_import): Write "version control"
26102         instead of CVS.
26103
26104 2010-09-04  Jim Meyering  <meyering@redhat.com>
26105
26106         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26107         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26108         false positives (whose names may be ill-chosen) when searching
26109         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26110         would cause a false-positive.
26111
26112         avoid coreutils "make distcheck" failure
26113         Coreutils tests with an absolute build directory name that contains
26114         a space.  Not quoting this directory name caused a failure.
26115         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26116         * tests/test-vc-list-files-cvs.sh: Likewise.
26117
26118 2010-09-04  Bruno Haible  <bruno@clisp.org>
26119
26120         gnulib-tool: Avoid error when run in a package without Makefile.am.
26121         * gnulib-tool: When collecting the m4dirs in a package that does not
26122         have a Makefile.am, eliminate those directories that contain no
26123         gnulib-cache.m4. Fix expression that counts these directories.
26124
26125 2010-09-04  Bruno Haible  <bruno@clisp.org>
26126
26127         update-copyright test: Improve output when perl is missing or too old.
26128         * tests/test-update-copyright.sh: Move test of Perl version down after
26129         the test whether Perl exists. Provide an explanation relating Perl's
26130         error message to Automake's SKIP: message.
26131
26132 2010-09-04  Bruno Haible  <bruno@clisp.org>
26133
26134         Don't augment PATH in TESTS_ENVIRONMENT.
26135         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26136         set abs_aux_dir instead of augmenting PATH.
26137         * modules/vc-list-files-tests (Makefile.am): Likewise.
26138         * tests/test-update-copyright.sh: Augment PATH here.
26139         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26140         path_prepend_.
26141         * tests/test-vc-list-files-git.sh: Likewise.
26142
26143 2010-09-04  Jim Meyering  <meyering@redhat.com>
26144
26145         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26146         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26147
26148 2010-09-04  Bruno Haible  <bruno@clisp.org>
26149
26150         strdup: Fix compilation error in C++ mode.
26151         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26152         the macro.
26153
26154 2010-09-04  Bruno Haible  <bruno@clisp.org>
26155
26156         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26157         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26158         macro into a function.
26159         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26160
26161 2010-09-04  Bruno Haible  <bruno@clisp.org>
26162
26163         Set PATH_SEPARATOR the same way autoconf does.
26164         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26165         the value of PATH_SEPARATOR the same way autoconf-generated configure
26166         scripts do.
26167         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26168         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26169
26170 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26171
26172         Set PATH_SEPARATOR the same way autoconf does.
26173         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26174         the same way autoconf-generated configure scripts do.
26175         * posix-modules: Likewise.
26176
26177 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26178
26179         hash: fix safe_hasher const typo
26180         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26181         const; otherwise, there is a type error later.
26182
26183 2010-09-02  Jim Meyering  <meyering@redhat.com>
26184
26185         test-update-copyright.sh: require perl 5.8.0
26186         * tests/test-update-copyright.sh: Require 5.8.0,
26187         which Tom G. Christensen has confirmed is adequate,
26188         while 5.6.1 is not.
26189
26190 2010-09-02  Eric Blake  <eblake@redhat.com>
26191
26192         tests: init.sh improvements for re-exec'ing with zsh
26193         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26194         -vx through shell re-exec.
26195         Reported by Tom G. Christensen.
26196
26197         wctype: fix typo in previous commit
26198         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26199         Reported by Ludovic Courtès.
26200
26201 2010-09-02  Jim Meyering  <meyering@redhat.com>
26202
26203         test-update-copyright.sh: skip test if Perl is too old
26204         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26205         Reported by Tom G. Christensen.
26206
26207 2010-09-02  Bruno Haible  <bruno@clisp.org>
26208
26209         wctype: Avoid compilation error on IRIX 6.5.30.
26210         * lib/wctype.in.h (iswblank): Declare with a replacement if
26211         REPLACE_ISWBLANK is set.
26212         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26213         declared. Set REPLACE_ISWBLANK.
26214         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26215         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26216         * doc/posix-headers/wctype.texi: Likewise.
26217         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26218
26219 2010-09-01  Bruno Haible  <bruno@clisp.org>
26220
26221         New module 'socketlib'.
26222         * modules/socketlib: New file.
26223         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26224         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26225         * modules/sockets (Depends-on): Add socketlib.
26226         Suggested by Sam Steingold <sds@gnu.org>.
26227
26228 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26229
26230         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26231
26232         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26233         when one needs search access to a directory but not read access.
26234         On systems where it is available, it works in some cases where
26235         O_RDONLY does not, namely on directories that are searchable but
26236         not readable, and which need only to be searchable.  If O_SEARCH
26237         is not available, fall back to the traditional method of using
26238         O_RDONLY.
26239
26240         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26241         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26242         when opening a directory that needs only to be searchable.
26243         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26244         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26245         * lib/openat-proc.c (openat_proc_name): Likewise.
26246         * lib/openat.c (openat_needs_fchdir): Likewise.
26247         * lib/save-cwd.c (save_cwd): Likewise.
26248         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26249
26250 2010-08-28  Bruno Haible  <bruno@clisp.org>
26251
26252         New module 'host-cpu-c-abi'.
26253         * modules/host-cpu-c-abi: New file.
26254         * m4/host-cpu-c-abi.m4: New file, based on part of
26255         clisp/src/m4/general.m4.
26256         Requested by Sam Steingold <sds@gnu.org>.
26257
26258 2010-08-31  Eric Blake  <eblake@redhat.com>
26259         and Jim Meyering  <meyering@redhat.com>
26260
26261         hash: factor, and guard against misbehaving hasher function
26262         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26263         of table->hasher's return value.  Also protect against a hash value
26264         so large that adding it to table->bucket results in a NULL pointer.
26265         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26266         Use it in place of open-coded check-and-abort.
26267
26268 2010-08-30  Bruno Haible  <bruno@clisp.org>
26269
26270         hash: silence spurious clang warning
26271         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26272         Reported by Eric Blake.
26273
26274 2010-08-30  Eric Blake  <eblake@redhat.com>
26275
26276         strstr, memmem, strcasestr: avoid leaked shell message
26277         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26278         FreeBSD.
26279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26280         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26281
26282         tests: silence clang warning
26283         * tests/test-malloca.c (do_allocation): Avoid dead store.
26284
26285 2010-08-29  Bruno Haible  <bruno@clisp.org>
26286
26287         gettext: Fix recent mistake.
26288         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26289
26290 2010-08-29  Bruno Haible  <bruno@clisp.org>
26291
26292         selinux-h: Offer a --without-selinux option.
26293         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26294         --without-selinux was specified, skip all tests and define
26295         HAVE_SELINUX_SELINUX_H to 0.
26296         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26297         set LIB_SELINUX to empty.
26298         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26299         gl_LIBSELINUX. If --without-selinux was specified, replace
26300         selinux/context.h.
26301         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26302
26303 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26304             Bruno Haible  <bruno@clisp.org>
26305
26306         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26307         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26308         of HAVE_REALLOC.
26309         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26310         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26311         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26312         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26313
26314 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26315             Bruno Haible  <bruno@clisp.org>
26316
26317         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26318         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26319         HAVE_CALLOC.
26320         * lib/xmalloc.c: Update accordingly.
26321         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26322         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26323         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26324
26325 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26326             Bruno Haible  <bruno@clisp.org>
26327
26328         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26329         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26330         HAVE_MALLOC.
26331         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26332         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26333         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26334
26335 2010-08-29  Bruno Haible  <bruno@clisp.org>
26336
26337         Update modules list.
26338         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26339         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26340         (String handling <string.h>): Add astrxfrm.
26341         (File system functions): Add readlinkat.
26342
26343 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26344
26345         Tests for module 'realloc-gnu'.
26346         * modules/realloc-gnu-tests: New file.
26347         * tests/test-realloc-gnu.c: New file.
26348
26349         Tests for module 'calloc-gnu'.
26350         * modules/calloc-gnu-tests: New file.
26351         * tests/test-calloc-gnu.c: New file.
26352
26353         Tests for module 'malloc-gnu'.
26354         * modules/malloc-gnu-tests: New file.
26355         * tests/test-malloc-gnu.c: New file.
26356
26357 2010-08-28  Bruno Haible  <bruno@clisp.org>
26358
26359         Rename module 'realloc' -> 'realloc-gnu'.
26360         * modules/realloc-gnu: New file, copied from modules/realloc.
26361         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26362         obsolete.
26363         * modules/mgetgroups (Depends-on): Update.
26364         * doc/posix-functions/realloc.texi: Update.
26365         * NEWS: Mention the change.
26366
26367         Rename module 'calloc' -> 'calloc-gnu'.
26368         * modules/calloc-gnu: New file, copied from modules/calloc.
26369         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26370         obsolete.
26371         * doc/posix-functions/calloc.texi: Update.
26372         * NEWS: Mention the change.
26373
26374         Rename module 'malloc' -> 'malloc-gnu'.
26375         * modules/malloc-gnu: New file, copied from modules/malloc.
26376         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26377         obsolete.
26378         * modules/argp (Depends-on): Update.
26379         * modules/regex (Depends-on): Update.
26380         * doc/posix-functions/malloc.texi: Update.
26381         * NEWS: Mention the change.
26382
26383 2010-08-28  Eric Blake  <eblake@redhat.com>
26384
26385         pread, pwrite: add missing dependency
26386         * modules/pread (Depends-on): Add extensions.
26387         * modules/pwrite (Depends-on): Likewise.
26388
26389 2010-08-28  Bruno Haible  <bruno@clisp.org>
26390
26391         unistr/u*-strchr: Fix tests dependencies.
26392         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26393         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26394         Reported by Ian Beckwith <ianb@erislabs.net>.
26395
26396 2010-08-28  Bruno Haible  <bruno@clisp.org>
26397
26398         read-file: Don't occupy too much unused memory.
26399         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26400
26401 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26402             Eric Blake  <eblake@redhat.com>
26403             Bruno Haible  <bruno@clisp.org>
26404
26405         read-file: Avoid memory reallocations with regular files.
26406         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26407         (fread_file): With regular files, use the remaining length as the
26408         initial buffer size.  Check against overflow.
26409         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26410         sys_stat.
26411
26412 2010-08-28  Bruno Haible  <bruno@clisp.org>
26413
26414         ftello: Relax license.
26415         * modules/ftello (License): Relax to LGPLv2+.
26416         Reported by Eric Blake.
26417
26418 2010-08-28  Bruno Haible  <bruno@clisp.org>
26419
26420         Avoid relocwrapper link errors due to gnulib replacement functions.
26421         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26422         function.
26423         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26424
26425 2010-08-28  Bruno Haible  <bruno@clisp.org>
26426
26427         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26428         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26429         defined.
26430         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26431         Suggested by Eric Blake.
26432
26433 2010-08-28  Bruno Haible  <bruno@clisp.org>
26434
26435         sys_socket, netdb: Ensure socklen_t gets defined.
26436         * modules/sys_socket (Depends-on): Add socklen.
26437         * modules/netdb (Depends-on): Likewise.
26438         * modules/getaddrinfo (Depends-on): Remove socklen.
26439         * modules/getsockopt (Depends-on): Likewise.
26440         * modules/setsockopt (Depends-on): Likewise.
26441         * tests/test-sys_socket.c: Check that socklen_t is defined.
26442         * tests/test-netdb.c: Likewise.
26443         * m4/socklen.m4: Update comments.
26444         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26445
26446 2010-08-27  Eric Blake  <eblake@redhat.com>
26447
26448         login_tty: add missing dependency
26449         * modules/login_tty (Depends-on): Add pty.
26450
26451 2010-08-26  Eric Blake  <eblake@redhat.com>
26452
26453         lib-symbol-versions: fix m4 quoting
26454         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26455         format for AC_LINK_IFELSE.
26456
26457         glob: fix compile test
26458         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26459
26460         btowc: fix missing file
26461         * modules/btowc (Files): Also ship locale-fr.m4.
26462
26463         lseek: fix link test
26464         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26465         AC_LINK_IFELSE.
26466
26467         include_next: silence autoconf 2.68 warning
26468         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26469         AC_COMPILE_IFELSE as special.
26470         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26471         autoconf < 2.68.
26472
26473         acl: fix compilation test
26474         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26475         AC_COMPILE_IFELSE.
26476
26477 2010-08-26  Bruno Haible  <bruno@clisp.org>
26478
26479         Modernize AC_TRY_RUN invocations.
26480         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26481         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26482         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26483         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26484         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26485         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26486         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26487         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26488         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26489         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26490         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26491         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26492         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26493         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26494         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26495         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26496         gl_MBRLEN_NUL_RETVAL): Likewise.
26497         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26498         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26499         Likewise.
26500         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26501         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26502         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26503         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26504         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26505         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26506         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26507         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26508         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26509         Likewise.
26510         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26511         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26512         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26513         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26514         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26515         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26516         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26517         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26518         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26519         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26520
26521 2010-08-26  Bruno Haible  <bruno@clisp.org>
26522
26523         Modernize AC_TRY_LINK invocations.
26524         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26525         AC_TRY_LINK.
26526         * m4/argp.m4 (gl_ARGP): Likewise.
26527         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26528         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26529         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26530         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26531         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26532         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26533         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26534         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26535         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26536         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26537         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26538         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26539         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26540         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26541         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26542         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26543         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26544         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26545         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26546         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26547         Likewise.
26548         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26549         Likewise.
26550         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26551         Likewise.
26552         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26553         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26554         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26555         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26556         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26557         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26558         * m4/servent.m4 (gl_SERVENT): Likewise.
26559         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26560         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26561         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26562         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26563         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26564         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26565         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26566         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26567         * modules/tsearch-tests (configure.ac): Likewise.
26568
26569 2010-08-26  Bruno Haible  <bruno@clisp.org>
26570
26571         Modernize AC_TRY_COMPILE invocations.
26572         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26573         AC_TRY_COMPILE.
26574         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26575         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26576         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26577         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26578         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26579         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26580         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26581         * m4/lock.m4 (gl_LOCK): Likewise.
26582         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26583         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26584         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26585         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26586         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26587         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26588         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26589         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26590         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26591         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26592         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26593         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26594         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26595         extraneous semicolon.
26596
26597 2010-08-26  Jim Meyering  <meyering@redhat.com>
26598
26599         stat-time: relax license LGPL
26600         * modules/stat-time (License): Change from GPL to LGPL,
26601         with consent from all contributors, for use in libguile.
26602         Requested by Ludovic Courtès.
26603
26604 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26605
26606         poll: return immediately on POLLHUP.
26607         * lib/poll.c (poll): Always set timeout before wait_timeout is
26608         computed.
26609
26610 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26611
26612         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26613         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26614         rmdir ("dir/.//"), unlinkat.
26615
26616 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26617
26618         stdbool: avoid spurious failure with modern xlc
26619         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26620
26621 2010-08-24  Bruno Haible  <bruno@clisp.org>
26622
26623         getloadavg: simplify code
26624         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26625         gl_have_func. Update comments.
26626
26627 2010-08-24  Eric Blake  <eblake@redhat.com>
26628
26629         getloadavg: don't define SVR4 on cygwin
26630         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26631         only define SVR4 when -lkvm is required.
26632         Reported by Yaakov Selkowitz.
26633
26634 2010-08-24  Bruno Haible  <bruno@clisp.org>
26635
26636         priv-set: fix comment
26637         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26638
26639 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26640
26641         priv-set: fix comments
26642         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26643         to match code, as suggested by David Bartley in:
26644         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26645
26646 2010-08-23  Eric Blake  <eblake@redhat.com>
26647
26648         stdbool: avoid rejecting clang
26649         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26650         * tests/test-stdbool.c: Enable more tests if using the system
26651         <stdbool.h> instead of the gnulib replacement.
26652         (main): Move xlc bug test to a runtime test for all compilers.
26653         Reported by Anders Kaseorg.
26654
26655         argz: fix shell quoting issue
26656         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26657         Reported by Charles Wilson.
26658
26659 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26660             Erik Faye-Lund <kusmabite@gmail.com>
26661
26662         poll, select: handle ERROR_BROKEN_PIPE.
26663         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26664         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26665         * lib/select.c (win32_compute_revents): Do not mark a pipe
26666         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26667
26668 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26669
26670         fts: allow compilation with C++
26671         * lib/fts_.h: Specify extern "C" linkage with C++.
26672
26673 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26674
26675         Fix gnulib-tool sed script de-commentation for AIX sed.
26676         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26677         sed.
26678
26679 2010-08-17  Eric Blake  <eblake@redhat.com>
26680
26681         test-stddef: test for (some) offsetof bugs
26682         * tests/test-stddef.c: Enhance test to ensure correct type of
26683         offsetof.
26684         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26685         that we are not fixing at this time.
26686
26687 2010-08-15  Bruno Haible  <bruno@clisp.org>
26688
26689         stpncpy: Allow stpncpy to be defined as a macro.
26690         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26691         if it's already correctly declared.
26692         * lib/string.in.h (stpncpy): Undefine before redefining.
26693         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26694
26695 2010-08-14  Bruno Haible  <bruno@clisp.org>
26696
26697         Rename module 'memxfrm' to 'amemxfrm'.
26698         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26699         (amemxfrm): Renamed from memxfrm.
26700         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26701         (amemxfrm): Renamed from memxfrm.
26702         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26703         * NEWS: Mention the change.
26704         * MODULES.html.sh (String handling <string.h>): Update.
26705         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26706         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26707         * lib/unicase/u16-casexfrm.c: Likewise.
26708         * lib/unicase/u32-casexfrm.c: Likewise.
26709         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26710         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26711         * lib/uninorm/u16-normxfrm.c: Likewise.
26712         * lib/uninorm/u32-normxfrm.c: Likewise.
26713         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26714         memxfrm.
26715         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26716         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26717         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26718         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26719         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26720         Suggested by Paul Eggert.
26721
26722 2010-08-14  Bruno Haible  <bruno@clisp.org>
26723
26724         Tests for module 'astrxfrm'.
26725         * modules/astrxfrm-tests: New file.
26726         * tests/test-astrxfrm.c: New file.
26727
26728         New module 'astrxfrm'.
26729         * lib/astrxfrm.h: New file.
26730         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26731         * modules/astrxfrm: New file.
26732
26733 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26734
26735         regex: Tweak doc.
26736         * doc/regex.texi (Overview): Don't mention regex.c.
26737         (GNU Regular Expression Compiling): Likewise.
26738         (Match-end-of-line Operator): Mention 'not_eol'.
26739
26740 2010-08-14  Brian Gough  <bjg@gnu.org>
26741             Bruno Haible  <bruno@clisp.org>
26742
26743         git-merge-changelog: add doc relating to use with bzr and hg.
26744         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26745
26746 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26747
26748         pthread: fix pthread.h creation for srcdir != builddir
26749         * modules/pthread (Makefile.am): Fix the rule to work also in a
26750         non-srcdir build.
26751
26752 2010-08-13  Karl Berry  <karl@gnu.org>
26753
26754         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26755         * doc/posix-*/*: force line break before @url of POSIX
26756         specifications.
26757         Suggested by Werner Lemberg.
26758
26759 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26760
26761         strtod: fix const diagnostic
26762         * lib/strtod.c (strtod): Don't assign const char * to char *,
26763         as this elicits a warning from GCC when warnings are enabled.
26764
26765 2010-08-10  Pádraig Brady <P@draigbrady.com>
26766         and Eric Blake  <eblake@redhat.com>
26767
26768         copy-acl: ignore ENOTSUP on HP-UX
26769         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26770         so that it is available for HP-UX.
26771         * lib/copy-acl.c (qcopy_acl): Use it.
26772         Reported by Patrick M. Callahan.
26773
26774 2010-08-10  Eric Blake  <eblake@redhat.com>
26775
26776         open, chown: relax license
26777         * modules/open (License): Change to LGPLv2+, with consent by all
26778         authors, for use in augeas.
26779         * modules/chown (License): Likewise.
26780         * modules/lchown (Likewise): Likewise.
26781         Requested by Adam Stokes.
26782
26783 2010-08-09  Karl Berry  <karl@gnu.org>
26784
26785         * build-aux/ar-lib: new file, import from Automake.
26786         * config/srclist.txt: autocheck for updates.
26787
26788 2010-08-09  Eric Blake  <eblake@redhat.com>
26789
26790         readlinkat: adjust client modules
26791         * modules/areadlinkat (Depends-on): Use readlinkat, not
26792         symlinkat.
26793         * modules/areadlinkat-with-size (Depends-on): Likewise.
26794
26795         mknod: be more vocal about danger of running tests as root
26796         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26797         root, since that is just asking for problems.
26798         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26799
26800         readlinkat: split into its own module
26801         * modules/symlinkat: Split readlinkat...
26802         * modules/readlinkat: ...into separate module.
26803         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26804         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26805         * lib/symlinkat.c (readlinkat): Move...
26806         * lib/readlinkat.c: ...into new file.
26807         * modules/symlinkat-tests: Split readlinkat test...
26808         * modules/readlinkat-tests: ...into separate module.
26809         * tests/test-symlinkat.c: Split...
26810         * tests/test-readlinkat.c: ...into new file.
26811         * NEWS: Document the split.
26812         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26813         * lib/unistd.in.h (readlinkat): Likewise.
26814         Suggested by Bruno Haible.
26815
26816 2010-08-08  Bruno Haible  <bruno@clisp.org>
26817
26818         memxfrm: Speed up.
26819         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26820         that usually only one call to strxfrm is necessary for each string
26821         part.
26822         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26823
26824 2010-08-07  Karl Berry  <karl@gnu.org>
26825
26826         * doc/posix-headers/limits.texi,
26827         * doc/posix-functions/malloc.texi,
26828         * doc/posix-functions/strsignal.texi: missing @item.
26829         * doc/ld-version-script.texi: spurious leading i.
26830         * doc/regex.texi (Interval Operators): no commas inside @var.
26831
26832 2010-08-01  Bruno Haible  <bruno@clisp.org>
26833
26834         Integrate the regex documentation.
26835         * doc/gnulib.texi: Define 'cn' index.
26836         (Regular expressions): New a chapter that includes regex.texi and
26837         regexprops-generic.texi.
26838         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26839         syntax.
26840
26841         Whitespace cleanup.
26842         * doc/regex.texi: Remove trailing spaces.
26843
26844         Add regex documentation.
26845         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26846         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26847         Written by Kathy A. Hargreaves and Karl Berry.
26848
26849 2010-08-01  Bruno Haible  <bruno@clisp.org>
26850
26851         link: Update documentation.
26852         * doc/posix-functions/link.texi: Update regarding Solaris.
26853
26854 2010-07-31  Bruno Haible  <bruno@clisp.org>
26855
26856         Update modules list.
26857         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26858         (String handling <string.h>): Add memcmp2, memxfrm.
26859         (Container data structures): Add xlist, xsublist, xoset.
26860         (Core language properties): Add alignof, unused-parameter.
26861         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26862         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26863         (Unibyte characters <ctype.h>): New section.
26864         (String handling <string.h>): New section.
26865         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26866         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26867         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26868         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26869         tan, tanh, tanl, y0, y1, yn.
26870         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26871         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26872         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26873         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26874         unlockpt, vdprintf, vdprintf-posix.
26875         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26876         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26877         xconcat-filename.
26878         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26879         getdtablesize, pipe2, pipe2-safer.
26880         (Security): New section.
26881         (Networking functions): Add accept4.
26882         (Signal handling): Add sigpipe.
26883         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26884         mbmemcasecoll.
26885         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26886         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26887         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26888         pipe-filter-ii.
26889         (Misc): Add argp-version-etc, login_tty, parse-duration.
26890
26891 2010-07-31  Bruno Haible  <bruno@clisp.org>
26892
26893         Improve doc in MODULES.html.
26894         * modules/linkat (Description): Add the word "function".
26895         * modules/mkfifo (Description): Likewise.
26896         * modules/mknod (Description): Likewise.
26897         * modules/remove (Description): Likewise.
26898         * modules/renameat (Description): Likewise.
26899         * modules/stat (Description): Likewise.
26900         * modules/symlink (Description): Likewise.
26901         * modules/unlink (Description): Likewise.
26902
26903 2010-07-31  Bruno Haible  <bruno@clisp.org>
26904
26905         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26906         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26907         option --enable/disable-c++ instead of --enable/disable-cxx.
26908         * NEWS: Mention the change.
26909
26910 2010-07-31  Bruno Haible  <bruno@clisp.org>
26911
26912         readlink, areadlink: Relax test a bit.
26913         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26914         alternative to ENOTDIR.
26915         * tests/test-areadlink.h (test_areadlink): Likewise.
26916         Reported by Rainer Tammer.
26917
26918 2010-07-31  Bruno Haible  <bruno@clisp.org>
26919
26920         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26921         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26922         character, perform the search using U_STRCHR.
26923         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26924         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26925         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26926         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26927         Suggested by Paolo Bonzini.
26928
26929 2010-07-31  Bruno Haible  <bruno@clisp.org>
26930
26931         unistr/u*-strstr: Fix dependencies.
26932         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26933         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26934         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26935
26936 2010-07-31  Bruno Haible  <bruno@clisp.org>
26937
26938         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26939         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26940         the beginning of the loop.
26941         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26942         cases in 'switch' statement.
26943
26944         unistr/u8-strchr: Fix several bugs.
26945         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26946         the string. When not found, return NULL, not a pointer near the end.
26947
26948         More tests for unistr/u8-strchr.
26949         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26950         that the function does not read past the first occurrence of the byte
26951         being searched.
26952         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26953         * tests/unistr/test-u16-strchr.c (main): New function.
26954         * tests/unistr/test-u32-strchr.c (main): New function.
26955
26956 2010-07-31  Bruno Haible  <bruno@clisp.org>
26957
26958         posix-modules: Ignore backup files of documentation files.
26959         * posix-modules: grep only through files named *.texi.
26960
26961 2010-07-31  Bruno Haible  <bruno@clisp.org>
26962
26963         symlinkat: Fix documentation.
26964         * doc/posix-functions/readlinkat.texi: Fix module name.
26965
26966 2010-07-31  Bruno Haible  <bruno@clisp.org>
26967
26968         fchownat: Replace also when chown has the trailing slash bug.
26969         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26970         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26971         introduced on 2010-04-10.
26972         Reported by Rainer Tammer.
26973
26974 2010-07-31  Bruno Haible  <bruno@clisp.org>
26975
26976         linkat: Work around AIX 7.1 bug.
26977         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26978         whether linkat handles trailing slash correctly. If not, replace linkat
26979         and define LINKAT_TRAILING_SLASH_BUG.
26980         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26981         check whether (fd1,file1) points to a directory if file1 or file2 ends
26982         in a slash. Code taken from lib/link.c.
26983         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26984         Reported by Rainer Tammer.
26985
26986 2010-07-31  Bruno Haible  <bruno@clisp.org>
26987
26988         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26989         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26990         This disables an xlc optimization that was causing wrong test results.
26991         Reported by Rainer Tammer.
26992
26993 2010-07-31  Bruno Haible  <bruno@clisp.org>
26994
26995         iconv: Work around AIX 6.1..7.1 bug.
26996         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26997         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26998         cross-compiling, guess no on all versions of AIX.
26999         Reported by Rainer Tammer.
27000
27001 2010-07-31  Bruno Haible  <bruno@clisp.org>
27002
27003         readlink: Relax test a bit.
27004         * tests/test-readlink.h (test_readlink): Allow different errno value
27005         when readlink is called with a file name that ends in / and refers to
27006         a file.
27007         Suggested by Eric Blake.
27008         Reported by Rainer Tammer.
27009
27010 2010-07-31  Bruno Haible  <bruno@clisp.org>
27011
27012         copysign: Does not require -lm on glibc systems.
27013         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27014         gl_COMMON_DOUBLE_MATHFUNC.
27015         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27016
27017 2010-07-31  Bruno Haible  <bruno@clisp.org>
27018
27019         duplocale: Work around AIX 7.1 bug.
27020         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27021         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27022         * lib/duplocale.c (rpl_duplocale): Update comment.
27023         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27024         Reported by Rainer Tammer.
27025
27026 2010-07-30  Bruno Haible  <bruno@clisp.org>
27027
27028         dirfd: Avoid link error on AIX 7.1.
27029         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27030         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27031         exist, set REPLACE_DIRFD.
27032         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27033         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27034         * doc/posix-functions/dirfd.texi: Update.
27035         Reported by Rainer Tammer.
27036
27037 2010-07-30  Eric Blake  <eblake@redhat.com>
27038
27039         strtod: next round of AIX fixes
27040         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27041         exponent.
27042         * tests/test-strtod.c (main): Enhance tests.
27043         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27044         Reported by Rainer Tammer.
27045
27046         futimens: fix configure check
27047         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27048         Reported by Bruno Haible.
27049
27050 2010-07-30  Bruno Haible  <bruno@clisp.org>
27051
27052         getline: Update regarding AIX.
27053         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27054         Reported by Rainer Tammer.
27055
27056 2010-07-30  Bruno Haible  <bruno@clisp.org>
27057
27058         wcwidth: Drop replacement on AIX 7.
27059         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27060         AIX 7.
27061         Reported by Rainer Tammer.
27062
27063 2010-07-30  Bruno Haible  <bruno@clisp.org>
27064
27065         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27066         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27067         a 'char *'.
27068         Reported by Rainer Tammer.
27069
27070 2010-07-30  Bruno Haible  <bruno@clisp.org>
27071
27072         unlink: Update regarding AIX.
27073         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27074         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27075         Reported by Rainer Tammer.
27076
27077 2010-07-30  Bruno Haible  <bruno@clisp.org>
27078
27079         symlink: Update regarding AIX.
27080         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27081         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27082         Reported by Rainer Tammer.
27083
27084 2010-07-30  Bruno Haible  <bruno@clisp.org>
27085
27086         strndup: Update regarding AIX.
27087         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27088         AIX 7.
27089         Reported by Rainer Tammer.
27090
27091 2010-07-30  Bruno Haible  <bruno@clisp.org>
27092
27093         stat: Update regarding AIX.
27094         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27095         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27096         Reported by Rainer Tammer.
27097
27098 2010-07-30  Bruno Haible  <bruno@clisp.org>
27099
27100         truncl: Fix autoconf test.
27101         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27102         whether truncl works.
27103         Reported by Rainer Tammer.
27104
27105 2010-07-30  Bruno Haible  <bruno@clisp.org>
27106
27107         round: Update regarding AIX.
27108         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27109         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27110         Reported by Rainer Tammer.
27111
27112 2010-07-30  Bruno Haible  <bruno@clisp.org>
27113
27114         rename: Update regarding AIX.
27115         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27116         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27117         Reported by Rainer Tammer.
27118
27119 2010-07-30  Bruno Haible  <bruno@clisp.org>
27120
27121         printf.m4: Update regarding AIX.
27122         * m4/printf.m4: Update comments regarding AIX.
27123         Reported by Rainer Tammer.
27124
27125 2010-07-30  Bruno Haible  <bruno@clisp.org>
27126
27127         iconv: Update regarding AIX.
27128         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27129         AIX 7.
27130         Reported by Rainer Tammer.
27131
27132 2010-07-30  Bruno Haible  <bruno@clisp.org>
27133
27134         getopt: Update regarding AIX.
27135         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27136         no on AIX.
27137         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27138         Reported by Rainer Tammer.
27139
27140 2010-07-30  Bruno Haible  <bruno@clisp.org>
27141
27142         ldexpl; Update regarding AIX.
27143         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27144         on AIX 7.
27145         Reported by Rainer Tammer.
27146
27147 2010-07-30  Bruno Haible  <bruno@clisp.org>
27148
27149         frexpl: Update regarding AIX.
27150         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27151         on AIX 7.
27152         Reported by Rainer Tammer.
27153
27154 2010-07-30  Bruno Haible  <bruno@clisp.org>
27155
27156         open, fopen: Update regarding AIX.
27157         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27158         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27159         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27160         * doc/posix-functions/fopen.texi: Likewise.
27161         Reported by Rainer Tammer.
27162
27163 2010-07-30  Bruno Haible  <bruno@clisp.org>
27164
27165         chown: Update doc regarding AIX.
27166         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27167         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27168         Reported by Rainer Tammer.
27169
27170 2010-07-30  Eric Blake  <eblake@redhat.com>
27171
27172         strtod: fix bug in replacement function on AIX
27173         * lib/strtod.c (strtod): Special case broken "0x" parse in
27174         underlying strtod.
27175         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27176         * doc/posix-functions/strtod.texi (strtod): Likewise.
27177         Reported by Rainer Tammer.
27178
27179 2010-07-30  Bruno Haible  <bruno@clisp.org>
27180
27181         mbrlen: Fix cross-compilation guess for AIX.
27182         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27183         guess. Leftover from 2008-12-22.
27184
27185 2010-07-30  Bruno Haible  <bruno@clisp.org>
27186
27187         mbrtowc: Fix cross-compilation guess for AIX.
27188         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27189         guess. Leftover from 2008-12-21.
27190
27191 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27192
27193         init.sh: work around trap limitation of some shells
27194         * tests/init.sh (setup_): Move exit trap outside of shell function.
27195
27196 2010-07-29  Eric Blake  <eblake@redhat.com>
27197
27198         strtod: aid debugging
27199         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27200         understanding why strtod is rejected.
27201
27202 2010-07-28  Bruno Haible  <bruno@clisp.org>
27203
27204         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27205         * lib/unistr/u8-chr.c: Include <string.h>.
27206         * tests/unistr/test-u8-chr.c: Likewise.
27207         * tests/unistr/test-u16-chr.c: Likewise.
27208         * tests/unistr/test-u32-chr.c: Likewise.
27209         * tests/unistr/test-u8-strchr.c: Likewise.
27210         * tests/unistr/test-u16-strchr.c: Likewise.
27211         * tests/unistr/test-u32-strchr.c: Likewise.
27212         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27213         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27214         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27215         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27216
27217 2010-07-28  Bruno Haible  <bruno@clisp.org>
27218
27219         Use spaces for indentation, not tabs.
27220         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27221
27222 2010-07-27  Bruno Haible  <bruno@clisp.org>
27223
27224         mbspcasecmp: Fix function specification.
27225         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27226         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27227         Reported by Eric Blake <eblake@redhat.com>.
27228
27229 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27230
27231         timespec: use cast and not conditional, as truncation isn't possible
27232         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27233         instead of a conditional.  Comment about the situation in more detail.
27234         This undoes most of the 2009-10-29 patch.
27235
27236 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27237
27238         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27239         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27240         * lib/unistr/u8-strchr.c: Likewise.
27241         * modules/unistr/u8-chr: Depend on memchr.
27242
27243         unistr/u*-strchr: add tests
27244         * modules/unistr/u8-strchr-tests: New file.
27245         * modules/unistr/u16-strchr-tests: New file.
27246         * modules/unistr/u32-strchr-tests: New file.
27247         * tests/unistr/test-strchr.h: New file.
27248         * tests/unistr/test-u8-strchr.c: New file.
27249         * tests/unistr/test-u16-strchr.c: New file.
27250         * tests/unistr/test-u32-strchr.c: New file.
27251
27252         unistr/u*-chr: test multibyte sequences more
27253         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27254         test vector.
27255         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27256         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27257         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27258
27259         unistr/u*-chr: test multibyte sequences
27260         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27261
27262         unistr/u*-chr: prepare for multibyte tests
27263         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27264         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27265         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27266         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27267         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27268         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27269
27270 2010-07-18  Bruno Haible  <bruno@clisp.org>
27271
27272         unistr/u8-strchr: Optimize non-ASCII argument case.
27273         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27274         because the first byte often matches anyway.
27275         Reported by Pádraig Brady <P@draigbrady.com>.
27276
27277 2010-07-15  Karl Berry  <karl@gnu.org>
27278
27279         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27280
27281 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27282
27283         getcwd: on Solaris, work better if ancestors are inaccessible
27284         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27285         buffer and size, try again with a large buffer.  This works better
27286         on Solaris, since its getcwd succeeds even if the path to the root
27287         is inaccessible, and this is helpful in common cases such as .zfs
27288         hidden directories.  Problem reported by J Chapman Flack in
27289         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27290         Use system getcwd if it's declared, not merely if it's partly
27291         working; use the partly-working test only to avoid needless effort
27292         if the system getcwd fails.
27293         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27294         comment that was already obsolete and is now even more obsolete.
27295         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27296         now might call strdup.
27297
27298 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27299
27300         pthread: Add enough so that coreutils/src/sort.c compiles.
27301         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27302         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27303         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27304         Include <sys/types.h>, in case it defines pthread_t.
27305         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27306         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27307         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27308         (pthread_rwlockattr_t, pthread_spinlock_t):
27309         New typedefs, if HAVE_PTHREAD_T is not defined.
27310         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27311         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27312         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27313         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27314         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27315         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27316         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27317         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27318         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27319         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27320         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27321         New macros.
27322         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27323         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27324         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27325         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27326         (pthread_spin_unlock): New dummy functions.
27327         (pthread_create): Return EAGAIN; don't set errno.
27328         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27329         require AC_C_INLINE.
27330         * modules/pthread (Depends-on): Add sched, time.
27331         (pthread.h): Use AM_V_GEN.
27332
27333 2010-07-13  Bruno Haible  <bruno@clisp.org>
27334
27335         striconveh: Don't malloc memory if the result buffer is sufficient.
27336         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27337         buffer if its size is sufficient.
27338         Reported by Ludovic Courtès <ludo@gnu.org>.
27339
27340 2010-07-13  Bruno Haible  <bruno@clisp.org>
27341
27342         strtod: Add safety check.
27343         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27344
27345 2010-07-12  Bruno Haible  <bruno@clisp.org>
27346
27347         Unify tests that set gl_cv_func_ldexpl_no_libm.
27348         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27349         gl_FUNC_LDEXPL.
27350         (gl_FUNC_LDEXPL): Invoke it.
27351         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27352
27353 2010-07-12  Bruno Haible  <bruno@clisp.org>
27354
27355         Unify tests that set gl_cv_func_ldexp_no_libm.
27356         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27357         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27358         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27359         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27360         * modules/strtod (Files): Add m4/ldexp.m4.
27361
27362 2010-07-12  Bruno Haible  <bruno@clisp.org>
27363
27364         Unify tests that set gl_cv_func_frexpl_no_libm.
27365         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27366         gl_FUNC_FREXPL_NO_LIBM.
27367         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27368         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27369
27370 2010-07-12  Bruno Haible  <bruno@clisp.org>
27371
27372         Unify tests that set gl_cv_func_frexp_no_libm.
27373         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27374         gl_FUNC_FREXP_NO_LIBM.
27375         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27376         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27377
27378 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27379
27380         memcoll: clarify sizes versus lengths, document better, and tweak perf
27381         * lib/memcoll.c (strcoll_loop, memcoll0):
27382         Improve quality of descriptive comments.  Name variables
27383         consistently as to whether they are lengths (which do not include
27384         terminating null) versus sizes (which do).
27385         * lib/xmemcoll.c (xmemcoll0): Likewise.
27386         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27387         returned when s1size == 0; this is easier to compile and saves
27388         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27389
27390 2010-07-12  Bruno Haible  <bruno@clisp.org>
27391
27392         Tests for module '_Exit'.
27393         * modules/_Exit-tests: New file.
27394         * tests/test-_Exit.sh: New file.
27395         * tests/test-_Exit.c: New file.
27396
27397         New module '_Exit'.
27398         * lib/stdlib.in.h (__attribute__): New macro.
27399         (_Exit): New declaration.
27400         * lib/_Exit.c: New file.
27401         * m4/_Exit.m4: New file.
27402         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27403         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27404         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27405         * modules/_Exit: New file.
27406         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27407         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27408
27409 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27410
27411         strtod: make it more-accurate typically, and don't require libm
27412         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27413         Include limits.h.  Don't include string.h.
27414         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27415         (locale_isspace): New function, so that no casts are needed to
27416         check whether *s is a space.
27417         (ldexp): Provide an unused dummy if not available.
27418         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27419         (strtod): Use them.  This implementation prefers to use the
27420         underlying strtod if available, falling back on our own code
27421         only to fix known bugs.  This is more likely to produce an
27422         accurate result.  Also, it avoids the use of libm functions.
27423         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27424         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27425         was absent, but it caused a test failure with coreutils.
27426         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27427         with libm.
27428         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27429         * modules/strtod-tests (Makefile.am): Likewise.
27430
27431 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27432             Bruno Haible  <bruno@clisp.org>
27433
27434         unistr/u8-strchr: Optimize ASCII argument case.
27435         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27436
27437 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27438
27439         (x)memcoll: minor tweaks
27440         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27441         is after the type that it qualifies.
27442         (memcoll0): Likewise.
27443         * lib/memcoll.h (memcoll0): Likewise.
27444         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27445         * lib/xmemcoll.h (xmemcoll0): Likewise.
27446         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27447         differs from memcoll in that the NUL byte is part of the argument.
27448         Omit the abort-checks, as performance is a real issue here.  Plus,
27449         the checks were wrong anyway (an off-by-one error).  Omit local
27450         variable 'diff', as it's a bit clearer that way.
27451         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27452         no longer needed.
27453
27454 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27455
27456         (x)memcoll: speedup when input is known to be NUL delimited
27457         * lib/memcoll.c: Include stdlib.
27458         (memcoll0): New function.
27459         (strcoll_loop): New function, refactored for use in both memcoll
27460         and memcoll0.
27461         * lib/memcoll.h (memcoll0): Add prototype.
27462         * lib/xmemcoll.c (xmemcoll0): New function.
27463         (collate_error): New function, refactored for use in both xmemcoll
27464         and xmemcoll0.
27465         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27466         * m4/memcoll.m4: add inline invocation.
27467
27468 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27469
27470         * build-aux/bootstrap: Remove any local translations
27471         from the translation project synchronization directory,
27472         so that local only translations are not distributed.
27473
27474 2010-07-04  Bruno Haible  <bruno@clisp.org>
27475
27476         fsusage: Clarify which code applies to which platforms.
27477         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27478         platform.
27479         * lib/fsusage.c (get_fs_usage): Likewise.
27480
27481 2010-07-04  Bruno Haible  <bruno@clisp.org>
27482
27483         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27484         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27485         Reported by Martin Lambers <marlam@marlam.de>.
27486
27487 2010-07-04  Jim Meyering  <meyering@redhat.com>
27488
27489         hash: once again explicitly disallow insertion of NULL
27490         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27491         inserting a NULL pointer cannot work with these functions.
27492         Add a comment with details.
27493         This reverts part of the 2010-07-01 commit, 5bef1a35
27494         "hash: extend module to deal with non-pointer keys".
27495
27496 2010-07-01  Bruno Haible  <bruno@clisp.org>
27497
27498         stdbool: Update doc.
27499         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27500         Info from Christian Weisgerber <naddy@mips.inka.de>.
27501
27502 2010-07-01  Jim Meyering  <meyering@redhat.com>
27503
27504         hash: extend module to deal with non-pointer keys
27505         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27506         but that allows insertion of non-pointer entries.
27507         Do not disallow an ENTRY value of NULL.
27508         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27509         * lib/hash.h (hash_insert0): Declare.
27510
27511 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27512
27513         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27514         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27515         not present (i.e. with autoconf 2.59 and when using gettextize, not
27516         gnulib), require AC_GNU_SOURCE instead.
27517
27518 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27519
27520         idpriv-drop: Fix tests.
27521         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27522         not to the test-idpriv-droptemp program.
27523
27524 2010-06-29  Bruno Haible  <bruno@clisp.org>
27525
27526         string: Fix syntax error with g++ 2.96.
27527         * lib/string.in.h (__pure__): Remove definition.
27528         (_GL_ATTRIBUTE_PURE): New macro.
27529         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27530         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27531         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27532
27533 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27534
27535         unitypes: Fix bug introduced on 2010-05-18.
27536         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27537
27538 2010-06-22  Eric Blake  <eblake@redhat.com>
27539
27540         memmem: slight optimization
27541         * lib/str-two-way.h (critical_factorization): Update comments.
27542         Reduce work during factorization phase.
27543         Reported by Carlos Bueno <carlos@bueno.org>.
27544
27545 2010-06-21  Bruno Haible  <bruno@clisp.org>
27546
27547         Fix HAVE_CALLOC_POSIX misnomer.
27548         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27549         !HAVE_CALLOC_POSIX.
27550         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27551         HAVE_CALLOC_POSIX.
27552         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27553         instead of HAVE_CALLOC_POSIX.
27554         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27555         HAVE_CALLOC_POSIX.
27556
27557         Use modern idiom for calloc() replacement.
27558         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27559         AC_FUNC_CALLOC.
27560         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27561         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27562         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27563         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27564         (gl_REPLACE_CALLOC): New macro.
27565
27566 2010-06-21  Bruno Haible  <bruno@clisp.org>
27567
27568         Fix HAVE_REALLOC_POSIX misnomer.
27569         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27570         !HAVE_REALLOC_POSIX.
27571         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27572         HAVE_REALLOC_POSIX.
27573         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27574         instead of HAVE_REALLOC_POSIX.
27575         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27576         HAVE_REALLOC_POSIX.
27577
27578         Use modern idiom for realloc() replacement.
27579         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27580         AC_FUNC_REALLOC.
27581         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27582         Autoconf's AC_FUNC_REALLOC.
27583         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27584         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27585         (gl_REPLACE_REALLOC): New macro.
27586         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27587
27588 2010-06-21  Bruno Haible  <bruno@clisp.org>
27589
27590         Fix HAVE_MALLOC_POSIX misnomer.
27591         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27592         !HAVE_MALLOC_POSIX.
27593         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27594         HAVE_MALLOC_POSIX.
27595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27596         instead of HAVE_MALLOC_POSIX.
27597         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27598         HAVE_MALLOC_POSIX.
27599
27600         Use modern idiom for malloc() replacement.
27601         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27602         AC_FUNC_MALLOC.
27603         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27604         Autoconf's AC_FUNC_MALLOC.
27605         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27606         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27607         (gl_REPLACE_MALLOC): New macro.
27608         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27609
27610 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27611
27612         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27613         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27614         This macro takes 3 arguments, not 4.
27615
27616 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27617
27618         ipv6: fix detection under mingw
27619         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27620         in6_addr.
27621
27622 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27623
27624         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27625         that strtod() works when cross-compiling to a glibc version known
27626         to work.
27627
27628 2010-06-15  Bruno Haible  <bruno@clisp.org>
27629
27630         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27631
27632 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27633
27634         select: Correct timeout.
27635         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27636
27637 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27638
27639         git-version-gen: init shell var to avoid env var influence
27640         * build-aux/git-version-gen (v): Init shell var to empty.
27641
27642 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27643
27644         priv-set: Don't assume that priv.h exists merely because getppriv does.
27645         See Jan Andersen's bug report about AIX 5L in
27646         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27647         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27648         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27649         * lib/priv-set.h: Likewise.
27650         * tests/test-priv-set.c: Likewise.
27651
27652 2010-06-13  Bruno Haible  <bruno@clisp.org>
27653
27654         relocatable: Make it easier to test whether to install wrappers.
27655         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27656         RELOCATABLE_VIA_WRAPPER.
27657
27658 2010-06-13  Bruno Haible  <bruno@clisp.org>
27659
27660         gnulib-tool: Display specified modules and dependencies differently.
27661         * gnulib-tool (func_show_module_list): New function.
27662         (func_import, func_create_testdir): Invoke it.
27663         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27664
27665 2010-06-13  Bruno Haible  <bruno@clisp.org>
27666
27667         gnulib-tool: Align code of func_import and func_create_testdir.
27668         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27669         specified_modules.
27670
27671 2010-06-12  Jim Meyering  <meyering@redhat.com>
27672
27673         test-inttostr: avoid spurious failure on Solaris 9
27674         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27675         to accept "%ju".  Reported by Bruno Haible.
27676
27677 2010-06-11  Jim Meyering  <meyering@redhat.com>
27678
27679         test-sys_socket: mark variables as used more readably
27680         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27681         as "used" explicitly via (void) statement casts.  This is more
27682         readable than using them in an artificial return expression.
27683         Suggestion from Bruno Haible.
27684
27685 2010-06-11  Bruno Haible  <bruno@clisp.org>
27686
27687         Avoid some more warnings from "gcc -Wwrite-strings".
27688         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27689         to 'const char *'.
27690         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27691         * tests/test-c-strcasestr.c (main): Likewise.
27692         * tests/test-mbscasestr1.c (main): Likewise.
27693         * tests/test-mbscasestr2.c (main): Likewise.
27694         * tests/test-memmem.c (main): Likewise.
27695         * tests/test-strstr.c (main): Likewise.
27696         * tests/test-strcasestr.c (main): Likewise.
27697
27698 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27699
27700         init.sh: change framework_failure_ to fail with status 99, not 1
27701         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27702         automake's parallel-tests rule that this is an unexpected failure,
27703         even if the test is listed in XFAIL_TESTS.
27704
27705 2010-06-11  Jim Meyering  <meyering@redhat.com>
27706
27707         test-inttostr: avoid warnings about 4-6KB literal strings
27708         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27709         Include "macros.h", for its definition of ASSERT.
27710         (CK): s/assert/ASSERT/
27711         * modules/inttostr-tests (Files): Add macros.h.
27712
27713         init.sh: don't use $ME_ or skip_ before they are defined
27714         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27715         their first uses.  Also hoist their companions: warn_, fail_,
27716         framework_failure_, $stderr_fileno.  Prompted by a patch from
27717         Stefano Lattarini.
27718
27719         test-sys_socket: avoid set-but-not-used warnings from gcc
27720         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27721         avoid warning about set-but-not-used variables.
27722
27723         test-xvasprintf: avoid 'const' discard warnings
27724         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27725         "const" when assigning from literal strings.
27726         (test_xasprintf): Add "void" in function argument list to placate
27727         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27728
27729         tests: avoid compilation warnings in argmatch and exclude tests...
27730         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27731         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27732         Since it always exits, declare with the "noreturn" attribute.
27733         * tests/test-argmatch.c: Likewise.
27734
27735         tests: avoid 'const' discard warnings in mbsstr tests
27736         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27737         * tests/test-mbsstr2.c (main): Likewise.
27738
27739         test-verify: avoid warning from gcc's -Wmissing-declarations
27740         * tests/test-verify.c (function): Declare to be static.
27741
27742         test-inttostr.c: include <string.h> for use of strcmp
27743         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27744
27745         test-linkat: avoid failed assertion on "other" architectures
27746         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27747         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27748         sparc: https://bugs.launchpad.net/bugs/591968
27749
27750 2010-06-11  Jim Meyering  <meyering@redhat.com>
27751
27752         printf.m4: avoid autoconf's "Expanded Before Required" warning
27753         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27754         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27755         autoconf warning.
27756
27757 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27758
27759         Replacement header templates are now named with ".in", not "_".
27760         * doc/gnulib-intro.texi: Correct.
27761
27762 2010-06-10  Jim Meyering  <meyering@redhat.com>
27763
27764         inttostr-tests: depend on snprintf, not snprintf-posix
27765         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27766         snprintf-posix, to avoid this aclocal failure:
27767           missing file gnulib-tests/vasnprintf.c
27768           configure.ac:45: error: expected source file, required through \
27769           AC_LIBSOURCES, not found
27770
27771 2010-06-10  Jim Meyering  <meyering@redhat.com>
27772
27773         inttostr: add a new function, inttostr, and tests
27774         The namesake function was not available.  The existence of the
27775         template file, inttostr.c makes its addition nontrivial.
27776         * lib/anytostr.c: Rename from inttostr.c.
27777         (anytostr): Rename from inttostr.
27778         * lib/inttostr.c: New file.
27779         * modules/inttostr (Files): Add anytostr.c.
27780         (Makefile.am): Set lib_SOURCES instead of ...
27781         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27782         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27783         * lib/offtostr.c: Likewise.
27784         * lib/uinttostr.c: Likewise.
27785         * lib/umaxtostr.c: Likewise.
27786         * modules/inttostr-tests: New file.
27787         * tests/test-inttostr.c: New file.  Test these functions.
27788
27789 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27790             Bruno Haible  <bruno@clisp.org>
27791
27792         Add "Extending Gnulib" chapter to manual.
27793         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27794         chapter.
27795         (Extending Gnulib): New chapter.
27796         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27797         chapter.
27798
27799 2010-06-09  Bruno Haible  <bruno@clisp.org>
27800
27801         Avoid relocwrapper link errors due to gnulib replacement functions.
27802         * lib/areadlink.c: Use the system's malloc, realloc functions.
27803         (areadlink): Set errno to ENOMEM explicitly.
27804         * modules/areadlink (Depends-on): Remove malloc-posix.
27805         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27806
27807 2010-06-09  Bruno Haible  <bruno@clisp.org>
27808
27809         Avoid relocwrapper link errors due to gnulib replacement functions.
27810         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27811         * lib/malloca.c: Likewise.
27812         * lib/relocatable.c: Likewise.
27813         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27814         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27815         * lib/setenv.c: Use the system's malloc, realloc functions.
27816         * lib/strerror.c: Use the system's sprintf function.
27817         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27818
27819 2010-06-04  Bruno Haible  <bruno@clisp.org>
27820
27821         Prefer documented low-level autoconf macro names.
27822         * m4/lib-link.m4: Use m4_translit instead of translit.
27823         * m4/environ.m4: Likewise.
27824         * m4/mathfunc.m4: Likewise.
27825         * m4/onceonly.m4: Likewise.
27826         * m4/stdint.m4: Likewise.
27827         Suggested by Eric Blake.
27828
27829 2010-06-04  Martin Lambers  <marlam@marlam.de>
27830             Bruno Haible  <bruno@clisp.org>
27831
27832         havelib: Allow library names with '+' characters.
27833         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27834         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27835
27836 2010-06-09  Bruno Haible  <bruno@clisp.org>
27837
27838         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27839         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27840         realloc failed.
27841
27842 2010-06-08  Peter Simons  <simons@cryp.to>
27843
27844         maint.mk: make the news-check rule more configurable
27845         * top/maint.mk (news-check-lines-spec): New variable.
27846         (news-check): Use "sed -n 1,10p" in place of "head".
27847
27848 2010-06-07  Jim Meyering  <meyering@redhat.com>
27849
27850         do-release-commit-and-tag: fix typo in --help
27851         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27852
27853         regex: avoid new dead-code warning with gcc-4.6.0
27854         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27855         if-block containing a while-loop.  It's been unused for at least
27856         5 years.
27857
27858 2010-06-05  Bruno Haible  <bruno@clisp.org>
27859
27860         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27861         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27862
27863 2010-06-04  Bruno Haible  <bruno@clisp.org>
27864
27865         Update to GNU gettext 0.18.1.
27866         * modules/gettext (configure.ac): Require gettext infrastructure from
27867         version 0.18.1.
27868
27869 2010-06-03  Bruno Haible  <bruno@clisp.org>
27870
27871         Don't use AC_LIBOBJ with file names in subdirectories.
27872         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27873         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27874         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27875         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27876         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27877         gl_LIBUNISTRING_LIBSOURCE.
27878         (Makefile.am): Augment lib_SOURCES here, conditionally.
27879         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27880
27881 2010-06-03  Bruno Haible  <bruno@clisp.org>
27882
27883         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27884         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27885         expansion does not end with a newline.
27886         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27887         unnecessary newline.
27888
27889 2010-06-03  Bruno Haible  <bruno@clisp.org>
27890
27891         Reduce dependencies.
27892         * tests/test-quotearg.h: New file, extracted from
27893         tests/test-quotearg.c.
27894         * tests/test-quotearg-simple.c: New file, extracted from
27895         tests/test-quotearg.c.
27896         * tests/test-quotearg.c: Don't include <ctype.h>.
27897         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27898         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27899         use_quote_double_quotes, use_quotearg_colon): Moved to
27900         tests/test-quotearg.h.
27901         (results_g, flag_results, custom_quotes, custom_results): Moved
27902         to tests/test-quotearg-simple.c.
27903         (main): Moved the part that does not depend on gettext to
27904         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27905         performed.
27906         * modules/quotearg-simple: New file.
27907         * modules/quotearg-simple-tests: New file.
27908         * modules/quotearg (Depends-on): Add quotearg-simple.
27909         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27910         (Files): Add tests/test-quotearg.h.
27911         Reported by Paolo Bonzini.
27912
27913 2010-06-03  Bruno Haible  <bruno@clisp.org>
27914
27915         Reduce dependencies.
27916         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27917
27918 2010-06-03  Bruno Haible  <bruno@clisp.org>
27919
27920         time: Undefine more broken macros.
27921         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27922         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27923         Reported by Eric Blake.
27924
27925 2010-06-03  Bruno Haible  <bruno@clisp.org>
27926
27927         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27928         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27929         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27930         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27931         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27932         Reported by Ludovic Courtès <ludo@gnu.org>.
27933
27934 2010-06-02  Eric Blake  <eblake@redhat.com>
27935
27936         time: work with mingw + pthreads-win32 library
27937         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27938         if timespec is defined only in pthread.h.
27939         * modules/time (Makefile.am): Substitute it.
27940         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27941         <pthread.h>, when needed.
27942         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27943         from the library.
27944
27945 2010-05-31  Bruno Haible  <bruno@clisp.org>
27946
27947         Avoid expanding two macros in the wrong order.
27948         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27949         gl_LIBUNISTRING if it is defined.
27950         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27951         autoconf >= 2.64.
27952         Reported by Ludovic Courtès <ludo@gnu.org>.
27953
27954 2010-05-27  Jim Meyering  <meyering@redhat.com>
27955
27956         maint.mk: also prohibit "#undef" of always-defined symbols
27957         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27958         Allow more than one space before the symbol name.
27959         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27960         the regexp uses alternation.
27961
27962 2010-05-26  Eric Blake  <eblake@redhat.com>
27963
27964         maint.mk: avoid echo -e
27965         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27966         Convert all uses of echo -* to printf.
27967         Reported by Matthias Bolte.
27968
27969 2010-05-25  Bruno Haible  <bruno@clisp.org>
27970
27971         Update to GNU gettext 0.18, part 2.
27972         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27973         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27974
27975 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27976
27977         Add missing include in test-pwrite.c.
27978         * tests/test-pwrite.c: Include string.h, for strcmp.
27979
27980 2010-05-24  Bruno Haible  <bruno@clisp.org>
27981
27982         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27983
27984 2010-05-24  Bruno Haible  <bruno@clisp.org>
27985
27986         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27987         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27988         iconveh_error argument.
27989         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27990         U_STRCONV_TO_LOCALE.
27991         * lib/unistr/u16-strcoll.c: Likewise.
27992         * lib/unistr/u32-strcoll.c: Likewise.
27993         * modules/unistr/u8-strcoll (Depends-on): Add
27994         uniconv/u8-strconv-to-enc, localcharset. Remove
27995         uniconv/u8-strconv-to-locale.
27996         (configure.ac): Bump version number.
27997         * modules/unistr/u16-strcoll (Depends-on): Add
27998         uniconv/u16-strconv-to-enc, localcharset. Remove
27999         uniconv/u16-strconv-to-locale.
28000         (configure.ac): Bump version number.
28001         * modules/unistr/u32-strcoll (Depends-on): Add
28002         uniconv/u32-strconv-to-enc, localcharset. Remove
28003         uniconv/u32-strconv-to-locale.
28004         (configure.ac): Bump version number.
28005
28006 2010-05-24  Bruno Haible  <bruno@clisp.org>
28007
28008         Avoid a test failure on NetBSD 5.0.
28009         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28010         an iconv() bug.
28011
28012 2010-05-24  Bruno Haible  <bruno@clisp.org>
28013
28014         Adjust #include directive style.
28015         * modules/regex (Includes): Recommend to write <regex.h>.
28016
28017 2010-05-24  Bruno Haible  <bruno@clisp.org>
28018
28019         regex: Don't require alloca.
28020         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28021         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28022         only inside if (0).
28023
28024 2010-05-23  Jim Meyering  <meyering@redhat.com>
28025
28026         test-renameat.c: include <sys/stat.h>
28027         * tests/test-renameat.c: Include <sys/stat.h>; required for
28028         definition of S_IS* macros.
28029
28030 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28031
28032         Update maintainer documentation for 'relocatable-prog' module.
28033         * doc/relocatable-maint.texi: Update.
28034         Comments by Bruno Haible.
28035
28036 2010-05-23  Bruno Haible  <bruno@clisp.org>
28037
28038         git-merge-changelog: Enable --split-merged-entry by default.
28039         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28040         (usage): Don't mention this option any more.
28041         Reported by Ralf Wildenhues.
28042
28043 2010-05-23  Jim Meyering  <meyering@redhat.com>
28044
28045         test-pwrite: do not leave behind a test file named "out"
28046         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28047         The trivial-looking use of init.sh is really necessary.
28048         It ensures that the temporary file, "out", is created in
28049         a temporary directory, and removed upon termination.
28050         * tests/test-pwrite.sh: Re-add file.
28051         * modules/pwrite-tests: Reference it.
28052
28053 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28054
28055         Fix output redirection buglet in init.sh.
28056         * tests/init.sh: Fix redirection of stderr.
28057
28058 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28059
28060         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28061
28062 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28063
28064         * modules/valgrind-tests: New file.
28065         * m4/valgrind-tests.m4: New file.
28066         * doc/valgrind-tests.texi: New file.
28067         * doc/gnulib.texi (Running self-tests under valgrind): New
28068         section.
28069
28070 2010-05-19  Bruno Haible  <bruno@clisp.org>
28071
28072         Clean up dead code in recent commit.
28073         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28074         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28075         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28076         Suggested by Paolo Bonzini.
28077
28078 2010-05-19  Bruno Haible  <bruno@clisp.org>
28079
28080         Avoid valgrind error reports from libunistring.
28081         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28082         * modules/libunistring (Files): Add it.
28083         * modules/libunistring-optional (Files): Likewise.
28084
28085 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28086             Bruno Haible  <bruno@clisp.org>
28087
28088         New module 'libunistring-optional'.
28089         * modules/libunistring-optional: New file.
28090         * m4/libunistring-base.m4: New file.
28091         * m4/libunistring-optional.m4: New file.
28092         * lib/unicase.in.h: Renamed from lib/unicase.h.
28093         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28094         * lib/unictype.in.h: Renamed from lib/unictype.h.
28095         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28096         * lib/uniname.in.h: Renamed from lib/uniname.h.
28097         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28098         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28099         * lib/unistr.in.h: Renamed from lib/unistr.h.
28100         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28101         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28102         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28103         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28104         gl_LIBUNISTRING. If the library was found, determine the installed
28105         version and set LIBUNISTRING_VERSION.
28106         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28107         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28108         handle a configuration option --with-included-libunistring.
28109         * modules/libunistring (Files): Add m4/absolute-header.m4.
28110         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28111         Add m4/libunistring-base.m4.
28112         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28113         (Makefile.am): Build unicase.h from unicase.in.h.
28114         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28115         Add m4/libunistring-base.m4.
28116         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28117         (Makefile.am): Build uniconv.h from uniconv.in.h.
28118         * modules/unictype/base (Files): Use unictype.in.h instead of
28119         unictype.h. Add m4/libunistring-base.m4.
28120         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28121         (Makefile.am): Build unictype.h from unictype.in.h.
28122         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28123         Add m4/libunistring-base.m4.
28124         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28125         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28126         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28127         Add m4/libunistring-base.m4.
28128         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28129         (Makefile.am): Build uniname.h from uniname.in.h.
28130         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28131         Add m4/libunistring-base.m4.
28132         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28133         (Makefile.am): Build uninorm.h from uninorm.in.h.
28134         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28135         unistdio.h. Add m4/libunistring-base.m4.
28136         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28137         (Makefile.am): Build unistdio.h from unistdio.in.h.
28138         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28139         Add m4/libunistring-base.m4.
28140         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28141         (Makefile.am): Build unistr.h from unistr.in.h.
28142         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28143         Add m4/libunistring-base.m4.
28144         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28145         (Makefile.am): Build unitypes.h from unitypes.in.h.
28146         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28147         Add m4/libunistring-base.m4.
28148         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28149         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28150         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28151         uniwidth.h. Add m4/libunistring-base.m4.
28152         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28153         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28154         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28155         instead of augmenting lib_SOURCES.
28156         * modules/unicase/empty-suffix-context: Likewise.
28157         * modules/unicase/locale-language: Likewise.
28158         * modules/unicase/tolower: Likewise.
28159         * modules/unicase/totitle: Likewise.
28160         * modules/unicase/toupper: Likewise.
28161         * modules/unicase/u8-casecmp: Likewise.
28162         * modules/unicase/u8-casecoll: Likewise.
28163         * modules/unicase/u8-casefold: Likewise.
28164         * modules/unicase/u8-casexfrm: Likewise.
28165         * modules/unicase/u8-ct-casefold: Likewise.
28166         * modules/unicase/u8-ct-tolower: Likewise.
28167         * modules/unicase/u8-ct-totitle: Likewise.
28168         * modules/unicase/u8-ct-toupper: Likewise.
28169         * modules/unicase/u8-is-cased: Likewise.
28170         * modules/unicase/u8-is-casefolded: Likewise.
28171         * modules/unicase/u8-is-lowercase: Likewise.
28172         * modules/unicase/u8-is-titlecase: Likewise.
28173         * modules/unicase/u8-is-uppercase: Likewise.
28174         * modules/unicase/u8-prefix-context: Likewise.
28175         * modules/unicase/u8-suffix-context: Likewise.
28176         * modules/unicase/u8-tolower: Likewise.
28177         * modules/unicase/u8-totitle: Likewise.
28178         * modules/unicase/u8-toupper: Likewise.
28179         * modules/unicase/u16-casecmp: Likewise.
28180         * modules/unicase/u16-casecoll: Likewise.
28181         * modules/unicase/u16-casefold: Likewise.
28182         * modules/unicase/u16-casexfrm: Likewise.
28183         * modules/unicase/u16-ct-casefold: Likewise.
28184         * modules/unicase/u16-ct-tolower: Likewise.
28185         * modules/unicase/u16-ct-totitle: Likewise.
28186         * modules/unicase/u16-ct-toupper: Likewise.
28187         * modules/unicase/u16-is-cased: Likewise.
28188         * modules/unicase/u16-is-casefolded: Likewise.
28189         * modules/unicase/u16-is-lowercase: Likewise.
28190         * modules/unicase/u16-is-titlecase: Likewise.
28191         * modules/unicase/u16-is-uppercase: Likewise.
28192         * modules/unicase/u16-prefix-context: Likewise.
28193         * modules/unicase/u16-suffix-context: Likewise.
28194         * modules/unicase/u16-tolower: Likewise.
28195         * modules/unicase/u16-totitle: Likewise.
28196         * modules/unicase/u16-toupper: Likewise.
28197         * modules/unicase/u32-casecmp: Likewise.
28198         * modules/unicase/u32-casecoll: Likewise.
28199         * modules/unicase/u32-casefold: Likewise.
28200         * modules/unicase/u32-casexfrm: Likewise.
28201         * modules/unicase/u32-ct-casefold: Likewise.
28202         * modules/unicase/u32-ct-tolower: Likewise.
28203         * modules/unicase/u32-ct-totitle: Likewise.
28204         * modules/unicase/u32-ct-toupper: Likewise.
28205         * modules/unicase/u32-is-cased: Likewise.
28206         * modules/unicase/u32-is-casefolded: Likewise.
28207         * modules/unicase/u32-is-lowercase: Likewise.
28208         * modules/unicase/u32-is-titlecase: Likewise.
28209         * modules/unicase/u32-is-uppercase: Likewise.
28210         * modules/unicase/u32-prefix-context: Likewise.
28211         * modules/unicase/u32-suffix-context: Likewise.
28212         * modules/unicase/u32-tolower: Likewise.
28213         * modules/unicase/u32-totitle: Likewise.
28214         * modules/unicase/u32-toupper: Likewise.
28215         * modules/unicase/ulc-casecmp: Likewise.
28216         * modules/unicase/ulc-casecoll: Likewise.
28217         * modules/unicase/ulc-casexfrm: Likewise.
28218         * modules/uniconv/u8-conv-from-enc: Likewise.
28219         * modules/uniconv/u8-conv-to-enc: Likewise.
28220         * modules/uniconv/u8-strconv-from-enc: Likewise.
28221         * modules/uniconv/u8-strconv-from-locale: Likewise.
28222         * modules/uniconv/u8-strconv-to-enc: Likewise.
28223         * modules/uniconv/u8-strconv-to-locale: Likewise.
28224         * modules/uniconv/u16-conv-from-enc: Likewise.
28225         * modules/uniconv/u16-conv-to-enc: Likewise.
28226         * modules/uniconv/u16-strconv-from-enc: Likewise.
28227         * modules/uniconv/u16-strconv-from-locale: Likewise.
28228         * modules/uniconv/u16-strconv-to-enc: Likewise.
28229         * modules/uniconv/u16-strconv-to-locale: Likewise.
28230         * modules/uniconv/u32-conv-from-enc: Likewise.
28231         * modules/uniconv/u32-conv-to-enc: Likewise.
28232         * modules/uniconv/u32-strconv-from-enc: Likewise.
28233         * modules/uniconv/u32-strconv-from-locale: Likewise.
28234         * modules/uniconv/u32-strconv-to-enc: Likewise.
28235         * modules/uniconv/u32-strconv-to-locale: Likewise.
28236         * modules/unictype/bidicategory-byname: Likewise.
28237         * modules/unictype/bidicategory-name: Likewise.
28238         * modules/unictype/bidicategory-of: Likewise.
28239         * modules/unictype/bidicategory-test: Likewise.
28240         * modules/unictype/block-list: Likewise.
28241         * modules/unictype/block-test: Likewise.
28242         * modules/unictype/category-C: Likewise.
28243         * modules/unictype/category-Cc: Likewise.
28244         * modules/unictype/category-Cf: Likewise.
28245         * modules/unictype/category-Cn: Likewise.
28246         * modules/unictype/category-Co: Likewise.
28247         * modules/unictype/category-Cs: Likewise.
28248         * modules/unictype/category-L: Likewise.
28249         * modules/unictype/category-Ll: Likewise.
28250         * modules/unictype/category-Lm: Likewise.
28251         * modules/unictype/category-Lo: Likewise.
28252         * modules/unictype/category-Lt: Likewise.
28253         * modules/unictype/category-Lu: Likewise.
28254         * modules/unictype/category-M: Likewise.
28255         * modules/unictype/category-Mc: Likewise.
28256         * modules/unictype/category-Me: Likewise.
28257         * modules/unictype/category-Mn: Likewise.
28258         * modules/unictype/category-N: Likewise.
28259         * modules/unictype/category-Nd: Likewise.
28260         * modules/unictype/category-Nl: Likewise.
28261         * modules/unictype/category-No: Likewise.
28262         * modules/unictype/category-P: Likewise.
28263         * modules/unictype/category-Pc: Likewise.
28264         * modules/unictype/category-Pd: Likewise.
28265         * modules/unictype/category-Pe: Likewise.
28266         * modules/unictype/category-Pf: Likewise.
28267         * modules/unictype/category-Pi: Likewise.
28268         * modules/unictype/category-Po: Likewise.
28269         * modules/unictype/category-Ps: Likewise.
28270         * modules/unictype/category-S: Likewise.
28271         * modules/unictype/category-Sc: Likewise.
28272         * modules/unictype/category-Sk: Likewise.
28273         * modules/unictype/category-Sm: Likewise.
28274         * modules/unictype/category-So: Likewise.
28275         * modules/unictype/category-Z: Likewise.
28276         * modules/unictype/category-Zl: Likewise.
28277         * modules/unictype/category-Zp: Likewise.
28278         * modules/unictype/category-Zs: Likewise.
28279         * modules/unictype/category-and: Likewise.
28280         * modules/unictype/category-and-not: Likewise.
28281         * modules/unictype/category-byname: Likewise.
28282         * modules/unictype/category-name: Likewise.
28283         * modules/unictype/category-none: Likewise.
28284         * modules/unictype/category-of: Likewise.
28285         * modules/unictype/category-or: Likewise.
28286         * modules/unictype/category-test: Likewise.
28287         * modules/unictype/combining-class: Likewise.
28288         * modules/unictype/ctype-alnum: Likewise.
28289         * modules/unictype/ctype-alpha: Likewise.
28290         * modules/unictype/ctype-blank: Likewise.
28291         * modules/unictype/ctype-cntrl: Likewise.
28292         * modules/unictype/ctype-digit: Likewise.
28293         * modules/unictype/ctype-graph: Likewise.
28294         * modules/unictype/ctype-lower: Likewise.
28295         * modules/unictype/ctype-print: Likewise.
28296         * modules/unictype/ctype-punct: Likewise.
28297         * modules/unictype/ctype-space: Likewise.
28298         * modules/unictype/ctype-upper: Likewise.
28299         * modules/unictype/ctype-xdigit: Likewise.
28300         * modules/unictype/decimal-digit: Likewise.
28301         * modules/unictype/digit: Likewise.
28302         * modules/unictype/mirror: Likewise.
28303         * modules/unictype/numeric: Likewise.
28304         * modules/unictype/property-alphabetic: Likewise.
28305         * modules/unictype/property-ascii-hex-digit: Likewise.
28306         * modules/unictype/property-bidi-arabic-digit: Likewise.
28307         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28308         * modules/unictype/property-bidi-block-separator: Likewise.
28309         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28310         * modules/unictype/property-bidi-common-separator: Likewise.
28311         * modules/unictype/property-bidi-control: Likewise.
28312         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28313         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28314         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28315         * modules/unictype/property-bidi-european-digit: Likewise.
28316         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28317         * modules/unictype/property-bidi-left-to-right: Likewise.
28318         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28319         * modules/unictype/property-bidi-other-neutral: Likewise.
28320         * modules/unictype/property-bidi-pdf: Likewise.
28321         * modules/unictype/property-bidi-segment-separator: Likewise.
28322         * modules/unictype/property-bidi-whitespace: Likewise.
28323         * modules/unictype/property-byname: Likewise.
28324         * modules/unictype/property-combining: Likewise.
28325         * modules/unictype/property-composite: Likewise.
28326         * modules/unictype/property-currency-symbol: Likewise.
28327         * modules/unictype/property-dash: Likewise.
28328         * modules/unictype/property-decimal-digit: Likewise.
28329         * modules/unictype/property-default-ignorable-code-point: Likewise.
28330         * modules/unictype/property-deprecated: Likewise.
28331         * modules/unictype/property-diacritic: Likewise.
28332         * modules/unictype/property-extender: Likewise.
28333         * modules/unictype/property-format-control: Likewise.
28334         * modules/unictype/property-grapheme-base: Likewise.
28335         * modules/unictype/property-grapheme-extend: Likewise.
28336         * modules/unictype/property-grapheme-link: Likewise.
28337         * modules/unictype/property-hex-digit: Likewise.
28338         * modules/unictype/property-hyphen: Likewise.
28339         * modules/unictype/property-id-continue: Likewise.
28340         * modules/unictype/property-id-start: Likewise.
28341         * modules/unictype/property-ideographic: Likewise.
28342         * modules/unictype/property-ids-binary-operator: Likewise.
28343         * modules/unictype/property-ids-trinary-operator: Likewise.
28344         * modules/unictype/property-ignorable-control: Likewise.
28345         * modules/unictype/property-iso-control: Likewise.
28346         * modules/unictype/property-join-control: Likewise.
28347         * modules/unictype/property-left-of-pair: Likewise.
28348         * modules/unictype/property-line-separator: Likewise.
28349         * modules/unictype/property-logical-order-exception: Likewise.
28350         * modules/unictype/property-lowercase: Likewise.
28351         * modules/unictype/property-math: Likewise.
28352         * modules/unictype/property-non-break: Likewise.
28353         * modules/unictype/property-not-a-character: Likewise.
28354         * modules/unictype/property-numeric: Likewise.
28355         * modules/unictype/property-other-alphabetic: Likewise.
28356         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28357         * modules/unictype/property-other-grapheme-extend: Likewise.
28358         * modules/unictype/property-other-id-continue: Likewise.
28359         * modules/unictype/property-other-id-start: Likewise.
28360         * modules/unictype/property-other-lowercase: Likewise.
28361         * modules/unictype/property-other-math: Likewise.
28362         * modules/unictype/property-other-uppercase: Likewise.
28363         * modules/unictype/property-paired-punctuation: Likewise.
28364         * modules/unictype/property-paragraph-separator: Likewise.
28365         * modules/unictype/property-pattern-syntax: Likewise.
28366         * modules/unictype/property-pattern-white-space: Likewise.
28367         * modules/unictype/property-private-use: Likewise.
28368         * modules/unictype/property-punctuation: Likewise.
28369         * modules/unictype/property-quotation-mark: Likewise.
28370         * modules/unictype/property-radical: Likewise.
28371         * modules/unictype/property-sentence-terminal: Likewise.
28372         * modules/unictype/property-soft-dotted: Likewise.
28373         * modules/unictype/property-space: Likewise.
28374         * modules/unictype/property-terminal-punctuation: Likewise.
28375         * modules/unictype/property-test: Likewise.
28376         * modules/unictype/property-titlecase: Likewise.
28377         * modules/unictype/property-unassigned-code-value: Likewise.
28378         * modules/unictype/property-unified-ideograph: Likewise.
28379         * modules/unictype/property-uppercase: Likewise.
28380         * modules/unictype/property-variation-selector: Likewise.
28381         * modules/unictype/property-white-space: Likewise.
28382         * modules/unictype/property-xid-continue: Likewise.
28383         * modules/unictype/property-xid-start: Likewise.
28384         * modules/unictype/property-zero-width: Likewise.
28385         * modules/unictype/scripts: Likewise.
28386         * modules/unictype/syntax-c-ident: Likewise.
28387         * modules/unictype/syntax-c-whitespace: Likewise.
28388         * modules/unictype/syntax-java-ident: Likewise.
28389         * modules/unictype/syntax-java-whitespace: Likewise.
28390         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28391         * modules/unilbrk/u8-width-linebreaks: Likewise.
28392         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28393         * modules/unilbrk/u16-width-linebreaks: Likewise.
28394         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28395         * modules/unilbrk/u32-width-linebreaks: Likewise.
28396         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28397         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28398         * modules/uniname/uniname: Likewise.
28399         * modules/uninorm/canonical-decomposition: Likewise.
28400         * modules/uninorm/composition: Likewise.
28401         * modules/uninorm/decomposing-form: Likewise.
28402         * modules/uninorm/decomposition: Likewise.
28403         * modules/uninorm/filter: Likewise.
28404         * modules/uninorm/nfc: Likewise.
28405         * modules/uninorm/nfd: Likewise.
28406         * modules/uninorm/nfkc: Likewise.
28407         * modules/uninorm/nfkd: Likewise.
28408         * modules/uninorm/u8-normalize: Likewise.
28409         * modules/uninorm/u8-normcmp: Likewise.
28410         * modules/uninorm/u8-normcoll: Likewise.
28411         * modules/uninorm/u8-normxfrm: Likewise.
28412         * modules/uninorm/u16-normalize: Likewise.
28413         * modules/uninorm/u16-normcmp: Likewise.
28414         * modules/uninorm/u16-normcoll: Likewise.
28415         * modules/uninorm/u16-normxfrm: Likewise.
28416         * modules/uninorm/u32-normalize: Likewise.
28417         * modules/uninorm/u32-normcmp: Likewise.
28418         * modules/uninorm/u32-normcoll: Likewise.
28419         * modules/uninorm/u32-normxfrm: Likewise.
28420         * modules/unistdio/u8-asnprintf: Likewise.
28421         * modules/unistdio/u8-asprintf: Likewise.
28422         * modules/unistdio/u8-snprintf: Likewise.
28423         * modules/unistdio/u8-sprintf: Likewise.
28424         * modules/unistdio/u8-u8-asnprintf: Likewise.
28425         * modules/unistdio/u8-u8-asprintf: Likewise.
28426         * modules/unistdio/u8-u8-snprintf: Likewise.
28427         * modules/unistdio/u8-u8-sprintf: Likewise.
28428         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28429         * modules/unistdio/u8-u8-vasprintf: Likewise.
28430         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28431         * modules/unistdio/u8-u8-vsprintf: Likewise.
28432         * modules/unistdio/u8-vasnprintf: Likewise.
28433         * modules/unistdio/u8-vasprintf: Likewise.
28434         * modules/unistdio/u8-vsnprintf: Likewise.
28435         * modules/unistdio/u8-vsprintf: Likewise.
28436         * modules/unistdio/u16-asnprintf: Likewise.
28437         * modules/unistdio/u16-asprintf: Likewise.
28438         * modules/unistdio/u16-snprintf: Likewise.
28439         * modules/unistdio/u16-sprintf: Likewise.
28440         * modules/unistdio/u16-u16-asnprintf: Likewise.
28441         * modules/unistdio/u16-u16-asprintf: Likewise.
28442         * modules/unistdio/u16-u16-snprintf: Likewise.
28443         * modules/unistdio/u16-u16-sprintf: Likewise.
28444         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28445         * modules/unistdio/u16-u16-vasprintf: Likewise.
28446         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28447         * modules/unistdio/u16-u16-vsprintf: Likewise.
28448         * modules/unistdio/u16-vasnprintf: Likewise.
28449         * modules/unistdio/u16-vasprintf: Likewise.
28450         * modules/unistdio/u16-vsnprintf: Likewise.
28451         * modules/unistdio/u16-vsprintf: Likewise.
28452         * modules/unistdio/u32-asnprintf: Likewise.
28453         * modules/unistdio/u32-asprintf: Likewise.
28454         * modules/unistdio/u32-snprintf: Likewise.
28455         * modules/unistdio/u32-sprintf: Likewise.
28456         * modules/unistdio/u32-u32-asnprintf: Likewise.
28457         * modules/unistdio/u32-u32-asprintf: Likewise.
28458         * modules/unistdio/u32-u32-snprintf: Likewise.
28459         * modules/unistdio/u32-u32-sprintf: Likewise.
28460         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28461         * modules/unistdio/u32-u32-vasprintf: Likewise.
28462         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28463         * modules/unistdio/u32-u32-vsprintf: Likewise.
28464         * modules/unistdio/u32-vasnprintf: Likewise.
28465         * modules/unistdio/u32-vasprintf: Likewise.
28466         * modules/unistdio/u32-vsnprintf: Likewise.
28467         * modules/unistdio/u32-vsprintf: Likewise.
28468         * modules/unistdio/ulc-asnprintf: Likewise.
28469         * modules/unistdio/ulc-asprintf: Likewise.
28470         * modules/unistdio/ulc-fprintf: Likewise.
28471         * modules/unistdio/ulc-snprintf: Likewise.
28472         * modules/unistdio/ulc-sprintf: Likewise.
28473         * modules/unistdio/ulc-vasnprintf: Likewise.
28474         * modules/unistdio/ulc-vasprintf: Likewise.
28475         * modules/unistdio/ulc-vfprintf: Likewise.
28476         * modules/unistdio/ulc-vsnprintf: Likewise.
28477         * modules/unistdio/ulc-vsprintf: Likewise.
28478         * modules/unistr/u8-check: Likewise.
28479         * modules/unistr/u8-chr: Likewise.
28480         * modules/unistr/u8-cmp: Likewise.
28481         * modules/unistr/u8-cmp2: Likewise.
28482         * modules/unistr/u8-cpy: Likewise.
28483         * modules/unistr/u8-cpy-alloc: Likewise.
28484         * modules/unistr/u8-endswith: Likewise.
28485         * modules/unistr/u8-mblen: Likewise.
28486         * modules/unistr/u8-mbsnlen: Likewise.
28487         * modules/unistr/u8-mbtouc: Likewise.
28488         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28489         * modules/unistr/u8-mbtoucr: Likewise.
28490         * modules/unistr/u8-move: Likewise.
28491         * modules/unistr/u8-next: Likewise.
28492         * modules/unistr/u8-prev: Likewise.
28493         * modules/unistr/u8-set: Likewise.
28494         * modules/unistr/u8-startswith: Likewise.
28495         * modules/unistr/u8-stpcpy: Likewise.
28496         * modules/unistr/u8-stpncpy: Likewise.
28497         * modules/unistr/u8-strcat: Likewise.
28498         * modules/unistr/u8-strchr: Likewise.
28499         * modules/unistr/u8-strcmp: Likewise.
28500         * modules/unistr/u8-strcoll: Likewise.
28501         * modules/unistr/u8-strcpy: Likewise.
28502         * modules/unistr/u8-strcspn: Likewise.
28503         * modules/unistr/u8-strdup: Likewise.
28504         * modules/unistr/u8-strlen: Likewise.
28505         * modules/unistr/u8-strmblen: Likewise.
28506         * modules/unistr/u8-strmbtouc: Likewise.
28507         * modules/unistr/u8-strncat: Likewise.
28508         * modules/unistr/u8-strncmp: Likewise.
28509         * modules/unistr/u8-strncpy: Likewise.
28510         * modules/unistr/u8-strnlen: Likewise.
28511         * modules/unistr/u8-strpbrk: Likewise.
28512         * modules/unistr/u8-strrchr: Likewise.
28513         * modules/unistr/u8-strspn: Likewise.
28514         * modules/unistr/u8-strstr: Likewise.
28515         * modules/unistr/u8-strtok: Likewise.
28516         * modules/unistr/u8-to-u16: Likewise.
28517         * modules/unistr/u8-to-u32: Likewise.
28518         * modules/unistr/u8-uctomb: Likewise.
28519         * modules/unistr/u16-check: Likewise.
28520         * modules/unistr/u16-chr: Likewise.
28521         * modules/unistr/u16-cmp: Likewise.
28522         * modules/unistr/u16-cmp2: Likewise.
28523         * modules/unistr/u16-cpy: Likewise.
28524         * modules/unistr/u16-cpy-alloc: Likewise.
28525         * modules/unistr/u16-endswith: Likewise.
28526         * modules/unistr/u16-mblen: Likewise.
28527         * modules/unistr/u16-mbsnlen: Likewise.
28528         * modules/unistr/u16-mbtouc: Likewise.
28529         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28530         * modules/unistr/u16-mbtoucr: Likewise.
28531         * modules/unistr/u16-move: Likewise.
28532         * modules/unistr/u16-next: Likewise.
28533         * modules/unistr/u16-prev: Likewise.
28534         * modules/unistr/u16-set: Likewise.
28535         * modules/unistr/u16-startswith: Likewise.
28536         * modules/unistr/u16-stpcpy: Likewise.
28537         * modules/unistr/u16-stpncpy: Likewise.
28538         * modules/unistr/u16-strcat: Likewise.
28539         * modules/unistr/u16-strchr: Likewise.
28540         * modules/unistr/u16-strcmp: Likewise.
28541         * modules/unistr/u16-strcoll: Likewise.
28542         * modules/unistr/u16-strcpy: Likewise.
28543         * modules/unistr/u16-strcspn: Likewise.
28544         * modules/unistr/u16-strdup: Likewise.
28545         * modules/unistr/u16-strlen: Likewise.
28546         * modules/unistr/u16-strmblen: Likewise.
28547         * modules/unistr/u16-strmbtouc: Likewise.
28548         * modules/unistr/u16-strncat: Likewise.
28549         * modules/unistr/u16-strncmp: Likewise.
28550         * modules/unistr/u16-strncpy: Likewise.
28551         * modules/unistr/u16-strnlen: Likewise.
28552         * modules/unistr/u16-strpbrk: Likewise.
28553         * modules/unistr/u16-strrchr: Likewise.
28554         * modules/unistr/u16-strspn: Likewise.
28555         * modules/unistr/u16-strstr: Likewise.
28556         * modules/unistr/u16-strtok: Likewise.
28557         * modules/unistr/u16-to-u32: Likewise.
28558         * modules/unistr/u16-to-u8: Likewise.
28559         * modules/unistr/u16-uctomb: Likewise.
28560         * modules/unistr/u32-check: Likewise.
28561         * modules/unistr/u32-chr: Likewise.
28562         * modules/unistr/u32-cmp: Likewise.
28563         * modules/unistr/u32-cmp2: Likewise.
28564         * modules/unistr/u32-cpy: Likewise.
28565         * modules/unistr/u32-cpy-alloc: Likewise.
28566         * modules/unistr/u32-endswith: Likewise.
28567         * modules/unistr/u32-mblen: Likewise.
28568         * modules/unistr/u32-mbsnlen: Likewise.
28569         * modules/unistr/u32-mbtouc: Likewise.
28570         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28571         * modules/unistr/u32-mbtoucr: Likewise.
28572         * modules/unistr/u32-move: Likewise.
28573         * modules/unistr/u32-next: Likewise.
28574         * modules/unistr/u32-prev: Likewise.
28575         * modules/unistr/u32-set: Likewise.
28576         * modules/unistr/u32-startswith: Likewise.
28577         * modules/unistr/u32-stpcpy: Likewise.
28578         * modules/unistr/u32-stpncpy: Likewise.
28579         * modules/unistr/u32-strcat: Likewise.
28580         * modules/unistr/u32-strchr: Likewise.
28581         * modules/unistr/u32-strcmp: Likewise.
28582         * modules/unistr/u32-strcoll: Likewise.
28583         * modules/unistr/u32-strcpy: Likewise.
28584         * modules/unistr/u32-strcspn: Likewise.
28585         * modules/unistr/u32-strdup: Likewise.
28586         * modules/unistr/u32-strlen: Likewise.
28587         * modules/unistr/u32-strmblen: Likewise.
28588         * modules/unistr/u32-strmbtouc: Likewise.
28589         * modules/unistr/u32-strncat: Likewise.
28590         * modules/unistr/u32-strncmp: Likewise.
28591         * modules/unistr/u32-strncpy: Likewise.
28592         * modules/unistr/u32-strnlen: Likewise.
28593         * modules/unistr/u32-strpbrk: Likewise.
28594         * modules/unistr/u32-strrchr: Likewise.
28595         * modules/unistr/u32-strspn: Likewise.
28596         * modules/unistr/u32-strstr: Likewise.
28597         * modules/unistr/u32-strtok: Likewise.
28598         * modules/unistr/u32-to-u16: Likewise.
28599         * modules/unistr/u32-to-u8: Likewise.
28600         * modules/unistr/u32-uctomb: Likewise.
28601         * modules/uniwbrk/u8-wordbreaks: Likewise.
28602         * modules/uniwbrk/u16-wordbreaks: Likewise.
28603         * modules/uniwbrk/u32-wordbreaks: Likewise.
28604         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28605         * modules/uniwbrk/wordbreak-property: Likewise.
28606         * modules/uniwidth/u8-strwidth: Likewise.
28607         * modules/uniwidth/u8-width: Likewise.
28608         * modules/uniwidth/u16-strwidth: Likewise.
28609         * modules/uniwidth/u16-width: Likewise.
28610         * modules/uniwidth/u32-strwidth: Likewise.
28611         * modules/uniwidth/u32-width: Likewise.
28612         * modules/uniwidth/width: Likewise.
28613         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28614         with $(LIBUNISTRING).
28615         * modules/unicase/ignorable-tests: Likewise.
28616         * modules/unicase/locale-language-tests: Likewise.
28617         * modules/unicase/tolower-tests: Likewise.
28618         * modules/unicase/totitle-tests: Likewise.
28619         * modules/unicase/toupper-tests: Likewise.
28620         * modules/unicase/u8-casecmp-tests: Likewise.
28621         * modules/unicase/u8-casecoll-tests: Likewise.
28622         * modules/unicase/u8-casefold-tests: Likewise.
28623         * modules/unicase/u8-is-cased-tests: Likewise.
28624         * modules/unicase/u8-is-casefolded-tests: Likewise.
28625         * modules/unicase/u8-is-lowercase-tests: Likewise.
28626         * modules/unicase/u8-is-titlecase-tests: Likewise.
28627         * modules/unicase/u8-is-uppercase-tests: Likewise.
28628         * modules/unicase/u8-tolower-tests: Likewise.
28629         * modules/unicase/u8-totitle-tests: Likewise.
28630         * modules/unicase/u8-toupper-tests: Likewise.
28631         * modules/unicase/u16-casecmp-tests: Likewise.
28632         * modules/unicase/u16-casecoll-tests: Likewise.
28633         * modules/unicase/u16-casefold-tests: Likewise.
28634         * modules/unicase/u16-is-cased-tests: Likewise.
28635         * modules/unicase/u16-is-casefolded-tests: Likewise.
28636         * modules/unicase/u16-is-lowercase-tests: Likewise.
28637         * modules/unicase/u16-is-titlecase-tests: Likewise.
28638         * modules/unicase/u16-is-uppercase-tests: Likewise.
28639         * modules/unicase/u16-tolower-tests: Likewise.
28640         * modules/unicase/u16-totitle-tests: Likewise.
28641         * modules/unicase/u16-toupper-tests: Likewise.
28642         * modules/unicase/u32-casecmp-tests: Likewise.
28643         * modules/unicase/u32-casecoll-tests: Likewise.
28644         * modules/unicase/u32-casefold-tests: Likewise.
28645         * modules/unicase/u32-is-cased-tests: Likewise.
28646         * modules/unicase/u32-is-casefolded-tests: Likewise.
28647         * modules/unicase/u32-is-lowercase-tests: Likewise.
28648         * modules/unicase/u32-is-titlecase-tests: Likewise.
28649         * modules/unicase/u32-is-uppercase-tests: Likewise.
28650         * modules/unicase/u32-tolower-tests: Likewise.
28651         * modules/unicase/u32-totitle-tests: Likewise.
28652         * modules/unicase/u32-toupper-tests: Likewise.
28653         * modules/unicase/ulc-casecmp-tests: Likewise.
28654         * modules/unicase/ulc-casecoll-tests: Likewise.
28655         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28656         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28657         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28658         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28659         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28660         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28661         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28662         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28663         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28664         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28665         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28666         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28667         * modules/unictype/bidicategory-byname-tests: Likewise.
28668         * modules/unictype/bidicategory-name-tests: Likewise.
28669         * modules/unictype/bidicategory-of-tests: Likewise.
28670         * modules/unictype/bidicategory-test-tests: Likewise.
28671         * modules/unictype/block-list-tests: Likewise.
28672         * modules/unictype/block-of-tests: Likewise.
28673         * modules/unictype/block-test-tests: Likewise.
28674         * modules/unictype/category-C-tests: Likewise.
28675         * modules/unictype/category-Cc-tests: Likewise.
28676         * modules/unictype/category-Cf-tests: Likewise.
28677         * modules/unictype/category-Cn-tests: Likewise.
28678         * modules/unictype/category-Co-tests: Likewise.
28679         * modules/unictype/category-Cs-tests: Likewise.
28680         * modules/unictype/category-L-tests: Likewise.
28681         * modules/unictype/category-Ll-tests: Likewise.
28682         * modules/unictype/category-Lm-tests: Likewise.
28683         * modules/unictype/category-Lo-tests: Likewise.
28684         * modules/unictype/category-Lt-tests: Likewise.
28685         * modules/unictype/category-Lu-tests: Likewise.
28686         * modules/unictype/category-M-tests: Likewise.
28687         * modules/unictype/category-Mc-tests: Likewise.
28688         * modules/unictype/category-Me-tests: Likewise.
28689         * modules/unictype/category-Mn-tests: Likewise.
28690         * modules/unictype/category-N-tests: Likewise.
28691         * modules/unictype/category-Nd-tests: Likewise.
28692         * modules/unictype/category-Nl-tests: Likewise.
28693         * modules/unictype/category-No-tests: Likewise.
28694         * modules/unictype/category-P-tests: Likewise.
28695         * modules/unictype/category-Pc-tests: Likewise.
28696         * modules/unictype/category-Pd-tests: Likewise.
28697         * modules/unictype/category-Pe-tests: Likewise.
28698         * modules/unictype/category-Pf-tests: Likewise.
28699         * modules/unictype/category-Pi-tests: Likewise.
28700         * modules/unictype/category-Po-tests: Likewise.
28701         * modules/unictype/category-Ps-tests: Likewise.
28702         * modules/unictype/category-S-tests: Likewise.
28703         * modules/unictype/category-Sc-tests: Likewise.
28704         * modules/unictype/category-Sk-tests: Likewise.
28705         * modules/unictype/category-Sm-tests: Likewise.
28706         * modules/unictype/category-So-tests: Likewise.
28707         * modules/unictype/category-Z-tests: Likewise.
28708         * modules/unictype/category-Zl-tests: Likewise.
28709         * modules/unictype/category-Zp-tests: Likewise.
28710         * modules/unictype/category-Zs-tests: Likewise.
28711         * modules/unictype/category-and-not-tests: Likewise.
28712         * modules/unictype/category-and-tests: Likewise.
28713         * modules/unictype/category-byname-tests: Likewise.
28714         * modules/unictype/category-name-tests: Likewise.
28715         * modules/unictype/category-none-tests: Likewise.
28716         * modules/unictype/category-of-tests: Likewise.
28717         * modules/unictype/category-or-tests: Likewise.
28718         * modules/unictype/category-test-withtable-tests: Likewise.
28719         * modules/unictype/combining-class-tests: Likewise.
28720         * modules/unictype/ctype-alnum-tests: Likewise.
28721         * modules/unictype/ctype-alpha-tests: Likewise.
28722         * modules/unictype/ctype-blank-tests: Likewise.
28723         * modules/unictype/ctype-cntrl-tests: Likewise.
28724         * modules/unictype/ctype-digit-tests: Likewise.
28725         * modules/unictype/ctype-graph-tests: Likewise.
28726         * modules/unictype/ctype-lower-tests: Likewise.
28727         * modules/unictype/ctype-print-tests: Likewise.
28728         * modules/unictype/ctype-punct-tests: Likewise.
28729         * modules/unictype/ctype-space-tests: Likewise.
28730         * modules/unictype/ctype-upper-tests: Likewise.
28731         * modules/unictype/ctype-xdigit-tests: Likewise.
28732         * modules/unictype/decimal-digit-tests: Likewise.
28733         * modules/unictype/digit-tests: Likewise.
28734         * modules/unictype/mirror-tests: Likewise.
28735         * modules/unictype/numeric-tests: Likewise.
28736         * modules/unictype/property-alphabetic-tests: Likewise.
28737         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28738         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28739         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28740         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28741         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28742         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28743         * modules/unictype/property-bidi-control-tests: Likewise.
28744         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28745         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28746         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28747         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28748         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28749         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28750         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28751         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28752         * modules/unictype/property-bidi-pdf-tests: Likewise.
28753         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28754         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28755         * modules/unictype/property-byname-tests: Likewise.
28756         * modules/unictype/property-combining-tests: Likewise.
28757         * modules/unictype/property-composite-tests: Likewise.
28758         * modules/unictype/property-currency-symbol-tests: Likewise.
28759         * modules/unictype/property-dash-tests: Likewise.
28760         * modules/unictype/property-decimal-digit-tests: Likewise.
28761         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28762         * modules/unictype/property-deprecated-tests: Likewise.
28763         * modules/unictype/property-diacritic-tests: Likewise.
28764         * modules/unictype/property-extender-tests: Likewise.
28765         * modules/unictype/property-format-control-tests: Likewise.
28766         * modules/unictype/property-grapheme-base-tests: Likewise.
28767         * modules/unictype/property-grapheme-extend-tests: Likewise.
28768         * modules/unictype/property-grapheme-link-tests: Likewise.
28769         * modules/unictype/property-hex-digit-tests: Likewise.
28770         * modules/unictype/property-hyphen-tests: Likewise.
28771         * modules/unictype/property-id-continue-tests: Likewise.
28772         * modules/unictype/property-id-start-tests: Likewise.
28773         * modules/unictype/property-ideographic-tests: Likewise.
28774         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28775         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28776         * modules/unictype/property-ignorable-control-tests: Likewise.
28777         * modules/unictype/property-iso-control-tests: Likewise.
28778         * modules/unictype/property-join-control-tests: Likewise.
28779         * modules/unictype/property-left-of-pair-tests: Likewise.
28780         * modules/unictype/property-line-separator-tests: Likewise.
28781         * modules/unictype/property-logical-order-exception-tests: Likewise.
28782         * modules/unictype/property-lowercase-tests: Likewise.
28783         * modules/unictype/property-math-tests: Likewise.
28784         * modules/unictype/property-non-break-tests: Likewise.
28785         * modules/unictype/property-not-a-character-tests: Likewise.
28786         * modules/unictype/property-numeric-tests: Likewise.
28787         * modules/unictype/property-other-alphabetic-tests: Likewise.
28788         * modules/unictype/property-other-default-ignorable-code-point-tests:
28789         Likewise.
28790         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28791         * modules/unictype/property-other-id-continue-tests: Likewise.
28792         * modules/unictype/property-other-id-start-tests: Likewise.
28793         * modules/unictype/property-other-lowercase-tests: Likewise.
28794         * modules/unictype/property-other-math-tests: Likewise.
28795         * modules/unictype/property-other-uppercase-tests: Likewise.
28796         * modules/unictype/property-paired-punctuation-tests: Likewise.
28797         * modules/unictype/property-paragraph-separator-tests: Likewise.
28798         * modules/unictype/property-pattern-syntax-tests: Likewise.
28799         * modules/unictype/property-pattern-white-space-tests: Likewise.
28800         * modules/unictype/property-private-use-tests: Likewise.
28801         * modules/unictype/property-punctuation-tests: Likewise.
28802         * modules/unictype/property-quotation-mark-tests: Likewise.
28803         * modules/unictype/property-radical-tests: Likewise.
28804         * modules/unictype/property-sentence-terminal-tests: Likewise.
28805         * modules/unictype/property-soft-dotted-tests: Likewise.
28806         * modules/unictype/property-space-tests: Likewise.
28807         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28808         * modules/unictype/property-test-tests: Likewise.
28809         * modules/unictype/property-titlecase-tests: Likewise.
28810         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28811         * modules/unictype/property-unified-ideograph-tests: Likewise.
28812         * modules/unictype/property-uppercase-tests: Likewise.
28813         * modules/unictype/property-variation-selector-tests: Likewise.
28814         * modules/unictype/property-white-space-tests: Likewise.
28815         * modules/unictype/property-xid-continue-tests: Likewise.
28816         * modules/unictype/property-xid-start-tests: Likewise.
28817         * modules/unictype/property-zero-width-tests: Likewise.
28818         * modules/unictype/scripts-tests: Likewise.
28819         * modules/unictype/syntax-c-ident-tests: Likewise.
28820         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28821         * modules/unictype/syntax-java-ident-tests: Likewise.
28822         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28823         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28824         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28825         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28826         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28827         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28828         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28829         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28830         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28831         * modules/uniname/uniname-tests: Likewise.
28832         * modules/uninorm/canonical-decomposition-tests: Likewise.
28833         * modules/uninorm/compat-decomposition-tests: Likewise.
28834         * modules/uninorm/composition-tests: Likewise.
28835         * modules/uninorm/decomposing-form-tests: Likewise.
28836         * modules/uninorm/decomposition-tests: Likewise.
28837         * modules/uninorm/filter-tests: Likewise.
28838         * modules/uninorm/nfc-tests: Likewise.
28839         * modules/uninorm/nfd-tests: Likewise.
28840         * modules/uninorm/nfkc-tests: Likewise.
28841         * modules/uninorm/nfkd-tests: Likewise.
28842         * modules/uninorm/u8-normcmp-tests: Likewise.
28843         * modules/uninorm/u8-normcoll-tests: Likewise.
28844         * modules/uninorm/u16-normcmp-tests: Likewise.
28845         * modules/uninorm/u16-normcoll-tests: Likewise.
28846         * modules/uninorm/u32-normcmp-tests: Likewise.
28847         * modules/uninorm/u32-normcoll-tests: Likewise.
28848         * modules/unistdio/u8-asnprintf-tests: Likewise.
28849         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28850         * modules/unistdio/u8-vasprintf-tests: Likewise.
28851         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28852         * modules/unistdio/u8-vsprintf-tests: Likewise.
28853         * modules/unistdio/u16-asnprintf-tests: Likewise.
28854         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28855         * modules/unistdio/u16-vasprintf-tests: Likewise.
28856         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28857         * modules/unistdio/u16-vsprintf-tests: Likewise.
28858         * modules/unistdio/u32-asnprintf-tests: Likewise.
28859         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28860         * modules/unistdio/u32-vasprintf-tests: Likewise.
28861         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28862         * modules/unistdio/u32-vsprintf-tests: Likewise.
28863         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28864         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28865         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28866         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28867         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28868         * modules/unistr/u8-check-tests: Likewise.
28869         * modules/unistr/u8-chr-tests: Likewise.
28870         * modules/unistr/u8-cmp-tests: Likewise.
28871         * modules/unistr/u8-cmp2-tests: Likewise.
28872         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28873         * modules/unistr/u8-cpy-tests: Likewise.
28874         * modules/unistr/u8-mblen-tests: Likewise.
28875         * modules/unistr/u8-mbsnlen-tests: Likewise.
28876         * modules/unistr/u8-mbtouc-tests: Likewise.
28877         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28878         * modules/unistr/u8-mbtoucr-tests: Likewise.
28879         * modules/unistr/u8-move-tests: Likewise.
28880         * modules/unistr/u8-next-tests: Likewise.
28881         * modules/unistr/u8-prev-tests: Likewise.
28882         * modules/unistr/u8-set-tests: Likewise.
28883         * modules/unistr/u8-stpcpy-tests: Likewise.
28884         * modules/unistr/u8-stpncpy-tests: Likewise.
28885         * modules/unistr/u8-strcat-tests: Likewise.
28886         * modules/unistr/u8-strcmp-tests: Likewise.
28887         * modules/unistr/u8-strcoll-tests: Likewise.
28888         * modules/unistr/u8-strcpy-tests: Likewise.
28889         * modules/unistr/u8-strdup-tests: Likewise.
28890         * modules/unistr/u8-strlen-tests: Likewise.
28891         * modules/unistr/u8-strmblen-tests: Likewise.
28892         * modules/unistr/u8-strmbtouc-tests: Likewise.
28893         * modules/unistr/u8-strncat-tests: Likewise.
28894         * modules/unistr/u8-strncmp-tests: Likewise.
28895         * modules/unistr/u8-strncpy-tests: Likewise.
28896         * modules/unistr/u8-strnlen-tests: Likewise.
28897         * modules/unistr/u8-to-u16-tests: Likewise.
28898         * modules/unistr/u8-to-u32-tests: Likewise.
28899         * modules/unistr/u8-uctomb-tests: Likewise.
28900         * modules/unistr/u16-check-tests: Likewise.
28901         * modules/unistr/u16-chr-tests: Likewise.
28902         * modules/unistr/u16-cmp-tests: Likewise.
28903         * modules/unistr/u16-cmp2-tests: Likewise.
28904         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28905         * modules/unistr/u16-cpy-tests: Likewise.
28906         * modules/unistr/u16-mblen-tests: Likewise.
28907         * modules/unistr/u16-mbsnlen-tests: Likewise.
28908         * modules/unistr/u16-mbtouc-tests: Likewise.
28909         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28910         * modules/unistr/u16-mbtoucr-tests: Likewise.
28911         * modules/unistr/u16-move-tests: Likewise.
28912         * modules/unistr/u16-next-tests: Likewise.
28913         * modules/unistr/u16-prev-tests: Likewise.
28914         * modules/unistr/u16-set-tests: Likewise.
28915         * modules/unistr/u16-stpcpy-tests: Likewise.
28916         * modules/unistr/u16-stpncpy-tests: Likewise.
28917         * modules/unistr/u16-strcat-tests: Likewise.
28918         * modules/unistr/u16-strcmp-tests: Likewise.
28919         * modules/unistr/u16-strcoll-tests: Likewise.
28920         * modules/unistr/u16-strcpy-tests: Likewise.
28921         * modules/unistr/u16-strdup-tests: Likewise.
28922         * modules/unistr/u16-strlen-tests: Likewise.
28923         * modules/unistr/u16-strmblen-tests: Likewise.
28924         * modules/unistr/u16-strmbtouc-tests: Likewise.
28925         * modules/unistr/u16-strncat-tests: Likewise.
28926         * modules/unistr/u16-strncmp-tests: Likewise.
28927         * modules/unistr/u16-strncpy-tests: Likewise.
28928         * modules/unistr/u16-strnlen-tests: Likewise.
28929         * modules/unistr/u16-to-u32-tests: Likewise.
28930         * modules/unistr/u16-to-u8-tests: Likewise.
28931         * modules/unistr/u16-uctomb-tests: Likewise.
28932         * modules/unistr/u32-check-tests: Likewise.
28933         * modules/unistr/u32-chr-tests: Likewise.
28934         * modules/unistr/u32-cmp-tests: Likewise.
28935         * modules/unistr/u32-cmp2-tests: Likewise.
28936         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28937         * modules/unistr/u32-cpy-tests: Likewise.
28938         * modules/unistr/u32-mblen-tests: Likewise.
28939         * modules/unistr/u32-mbsnlen-tests: Likewise.
28940         * modules/unistr/u32-mbtouc-tests: Likewise.
28941         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28942         * modules/unistr/u32-mbtoucr-tests: Likewise.
28943         * modules/unistr/u32-move-tests: Likewise.
28944         * modules/unistr/u32-next-tests: Likewise.
28945         * modules/unistr/u32-prev-tests: Likewise.
28946         * modules/unistr/u32-set-tests: Likewise.
28947         * modules/unistr/u32-stpcpy-tests: Likewise.
28948         * modules/unistr/u32-stpncpy-tests: Likewise.
28949         * modules/unistr/u32-strcat-tests: Likewise.
28950         * modules/unistr/u32-strcmp-tests: Likewise.
28951         * modules/unistr/u32-strcoll-tests: Likewise.
28952         * modules/unistr/u32-strcpy-tests: Likewise.
28953         * modules/unistr/u32-strdup-tests: Likewise.
28954         * modules/unistr/u32-strlen-tests: Likewise.
28955         * modules/unistr/u32-strmblen-tests: Likewise.
28956         * modules/unistr/u32-strmbtouc-tests: Likewise.
28957         * modules/unistr/u32-strncat-tests: Likewise.
28958         * modules/unistr/u32-strncmp-tests: Likewise.
28959         * modules/unistr/u32-strncpy-tests: Likewise.
28960         * modules/unistr/u32-strnlen-tests: Likewise.
28961         * modules/unistr/u32-to-u16-tests: Likewise.
28962         * modules/unistr/u32-to-u8-tests: Likewise.
28963         * modules/unistr/u32-uctomb-tests: Likewise.
28964         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28965         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28966         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28967         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28968         * modules/uniwidth/u8-strwidth-tests: Likewise.
28969         * modules/uniwidth/u8-width-tests: Likewise.
28970         * modules/uniwidth/u16-strwidth-tests: Likewise.
28971         * modules/uniwidth/u16-width-tests: Likewise.
28972         * modules/uniwidth/u32-strwidth-tests: Likewise.
28973         * modules/uniwidth/u32-width-tests: Likewise.
28974         * modules/uniwidth/width-tests: Likewise.
28975
28976 2010-05-18  Richard Jones  <rjones@redhat.com>
28977
28978         doc: users.txt: list hivex
28979         * users.txt: Add hivex.
28980
28981 2010-05-18  Richard Jones  <rjones@redhat.com>
28982
28983         doc: users.txt: list febootstrap
28984         * users.txt: Add febootstrap.
28985
28986 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28987
28988         bootstrap: fix an error when gnulib is not used as a git submodule
28989         * build-aux/bootstrap (gnulib_path): If its length is zero then
28990         assign "gnulib" to it.
28991         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28992
28993 2010-05-16  Bruno Haible  <bruno@clisp.org>
28994
28995         Avoid autoconf warnings about AM_ICONV.
28996         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28997         2.64.
28998
28999 2010-05-16  Bruno Haible  <bruno@clisp.org>
29000
29001         absolute-header: Make the macro usable in more situations.
29002         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29003         from gl_ABSOLUTE_HEADER.
29004         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29005
29006 2010-05-16  James Youngman  <jay@gnu.org>
29007
29008         doc: update users.txt
29009         * users.txt: Add CSSC.
29010
29011 2010-05-16  Jim Meyering  <meyering@redhat.com>
29012
29013         init.sh: fix an error in the previous change; add more comments
29014         * tests/init.sh: Compare exit code in loop against 9, not 2.
29015         Patch by Bruno Haible.
29016         Make the two tests more similar by adding an empty "then" clause.
29017         Add comments.
29018
29019         init.sh: avoid unnecessary shell re-exec
29020         * tests/init.sh: Improve the re-exec-required check to first test the
29021         current shell.  If it passes the test, do not search for a shell that
29022         does pass, and do not re-exec.  This test is particularly contorted to
29023         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29024         of $(...) evokes a syntax error and causes immediate shell exit with
29025         status 2.  Bruno Haible reported that the re-exec made it impossible
29026         to single-step through any init.sh-using script.
29027
29028 2010-05-16  Bruno Haible  <bruno@clisp.org>
29029
29030         Fix collision between gnulib's and libintl's printf replacements.
29031         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29032         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29033         (printf): When using GNU C, map the __printf__ function to rpl_printf
29034         via __asm__. When not using GNU C, define rpl_printf instead of
29035         __printf__.
29036         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29037         commit.
29038         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29039         commit.
29040         * m4/asm-underscore.m4: New file.
29041         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29042         * modules/stdio (Files): Add m4/asm-underscore.m4.
29043         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29044         Reported by Ben Pfaff.
29045
29046 2010-05-16  Bruno Haible  <bruno@clisp.org>
29047
29048         verify: Avoid skipping the test on openSUSE 11.0.
29049         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29050
29051 2010-05-13  Bruno Haible  <bruno@clisp.org>
29052
29053         Avoid useless warnings from G++.
29054         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29055         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29056         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29057
29058 2010-05-11  Jim Meyering  <meyering@redhat.com>
29059
29060         maint.mk: tweak preceding change
29061         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29062         regexps tighter by anchoring at EOL, and make the new group "shy"
29063         for slightly decreased overhead.
29064
29065 2010-05-11  Eric Blake  <eblake@redhat.com>
29066
29067         maint.mk: gnulib doesn't guarantee NSIG
29068         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29069
29070 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29071
29072         test-pwrite.c: Remove unused variable declaration.
29073         * tests/test-pwrite.c (main): Remove read_buf declaration.
29074
29075         Remove useless test-pwrite.sh file.
29076         * tests/test-pwrite.sh: Delete file.
29077         * modules/pwrite-tests: Remove references.
29078         Reported by Bruno Haible.
29079
29080 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29081
29082         init.sh: fix a typo
29083         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29084
29085 2010-05-10  Jim Meyering  <meyering@redhat.com>
29086
29087         maint.mk: avoid using a temporary file in the always-defined-macros check
29088         * top/maint.mk (.re-defmac): Remove rule.
29089         (gl_trap_): Remove definition.
29090         (sc_prohibit_always-defined_macros): Rewrite not to create and
29091         depend on a temporary file.  Instead, depend on GNU grep's ability
29092         to read a list of regular expressions from stdin when given "-f -".
29093
29094 2010-05-09  Bruno Haible  <bruno@clisp.org>
29095
29096         Update to GNU gettext 0.18, part 1.
29097         * m4/gettext.m4: Update to GNU gettext 0.18.
29098         * m4/intl.m4: Likewise.
29099         * m4/po.m4: Likewise.
29100         * modules/gettext (Files): Add m4/fcntl-o.m4.
29101         (configure.ac): Require gettext infrastructure from version 0.18.
29102
29103 2010-05-09  Jim Meyering  <meyering@redhat.com>
29104
29105         init.sh: enable MALLOC_PERTURB_
29106         * tests/init.sh: Enable glibc's malloc-perturbing option.
29107
29108         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29109         With my recent change in init.sh from the two-line form:
29110             -#   : ${srcdir=.}
29111             -#   . "$srcdir/init.sh"; path_prepend_ .
29112             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29113         I noticed that using the one-line form would cause this test
29114         to fail with a false-positive, or to stop working altogether,
29115         depending on whether help-version changed or all the tests did.
29116         * top/maint.mk (_hv_regex): Remove this definition.
29117         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29118         (_hv_regex_strong): Use a stronger regex to check for conformance.
29119         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29120         Give a separate diagnostic for lack of conforming use.
29121
29122         maint.mk: prohibit definition of symbols defined by gnulib
29123         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29124         definition of symbols defined by gnulib.
29125
29126 2010-05-09  Bruno Haible  <bruno@clisp.org>
29127
29128         acl: Avoid test failure on Cygwin-hosted mingw.
29129         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29130
29131 2010-05-09  Bruno Haible  <bruno@clisp.org>
29132
29133         error: Use system's fcntl function.
29134         * lib/error.c (fcntl): Undefine.
29135
29136 2010-05-09  Jim Meyering  <meyering@redhat.com>
29137
29138         verify: adjust formatting to be more consistent
29139         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29140         argument-list '('s, and after one comma.
29141
29142 2010-05-09  Bruno Haible  <bruno@clisp.org>
29143
29144         error: More reliable output on mingw.
29145         * lib/error.c: Include <windows.h>.
29146         (is_open): New function.
29147         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29148         defined.
29149
29150 2010-05-09  Bruno Haible  <bruno@clisp.org>
29151
29152         vasnprintf: Fix syntax errors in libintl build on mingw.
29153         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29154         pad_ourselves and prec_ourselves after use.
29155
29156 2010-05-08  Bruno Haible  <bruno@clisp.org>
29157
29158         * lib/config.charset: Update comments for Cygwin 1.7.
29159         * lib/localcharset.c: Likewise.
29160
29161 2010-05-07  Jim Meyering  <meyering@redhat.com>
29162
29163         init.sh: improve comments
29164         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29165         . "${srcdir=.}/init.sh"; path_prepend_ .
29166         Add a note about path_prepend_ and the alternative of using
29167         TESTS_ENVIRONMENT.
29168
29169 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29170
29171         exclude: Unescape hashed patterns in wildcard mode.
29172         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29173         to the hash list.
29174         * tests/test-exclude8.sh: New test case.
29175         * modules/exclude-tests: Add new test.
29176
29177 2010-05-05  Eric Blake  <eblake@redhat.com>
29178
29179         verify: automate tests
29180         * modules/verify-tests: New module.
29181         * tests/test-verify.sh: New file.
29182         * tests/test-verify.c: Guard each negative test with a unique id.
29183         Also avoid warning about unused left hand of comma expressions.
29184
29185 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29186
29187         Further improvements to verify.h, suggested by Eric Blake.
29188         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29189         the GL_* versions, to avoid collision with OpenGL.
29190         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29191         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29192         than testing merely whether it's defined.
29193
29194         Modify verify.h to pacify gcc -Wredundant_decls.
29195         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29196         These use the prefix "GL_" since they're likely to be useful elsewhere.
29197         We may need to break them out into a different .h file.
29198         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29199         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29200         of verify_function__.
29201
29202 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29203
29204         Tests for module pwrite.
29205         * modules/pwrite-tests: New file.
29206         * tests/test-pwrite.sh: New file.
29207         * tests/test-pwrite.c: New file.
29208
29209         New module pwrite.
29210         * lib/unistd.in.h (pwrite): New declaration.
29211         * lib/pwrite.c: New file, from glibc with modifications.
29212         * m4/pwrite.m4: New file.
29213         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29214         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29215         REPLACE_PWRITE.
29216         * modules/pwrite: New file.
29217         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29218         REPLACE_PWRITE.
29219         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29220         * doc/posix-functions/pwrite.texi: Mention the new module.
29221
29222 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29223
29224         pread: Update documentation.
29225         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29226
29227 2010-05-04  Eric Blake  <eblake@redhat.com>
29228
29229         docs: update cygwin progress
29230         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29231         this bug.
29232         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29233         Added in cygwin 1.7.2.
29234         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29235         Likewise.
29236         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29237         Likewise.
29238         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29239         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29240         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29241         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29242         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29243         Mention nproc module.
29244         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29245         bug in cygwin 1.7.5 addition.
29246         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29247         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29248         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29249         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29250         1.7.5.
29251         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29252         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29253         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29254         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29255         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29256         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29257         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29258         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29259         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29260         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29261         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29262         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29263         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29264         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29265         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29266         Likewise.
29267         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29268         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29269         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29270         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29271         Likewise.
29272         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29273         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29274         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29275         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29276         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29277         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29278         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29279         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29280         Likewise.
29281         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29282         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29283         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29284         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29285         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29286         Likewise.
29287         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29288         Likewise.
29289         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29290         Likewise.
29291         * doc/glibc-functions/xdrrec_endofrecord.texi
29292         (xdrrec_endofrecord): Likewise.
29293         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29294         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29295         Likewise.
29296         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29297         Likewise.
29298
29299 2010-05-04  Jim Meyering  <meyering@redhat.com>
29300
29301         gendocs.sh: make its "-s FILE" option more useful
29302         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29303         $PACKAGE to reflect the probably-different basename of "FILE".
29304
29305 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29306
29307         bootstrap: don't ignore download_po_files failure
29308         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29309         failure.
29310
29311 2010-05-03  Jim Meyering  <meyering@redhat.com>
29312
29313         maint.mk: allow to pass options to gendocs.sh
29314         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29315         (gendocs_options_): New overridable variable.
29316
29317         gnu-web-doc-update: don't ignore configure or build failure
29318         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29319
29320         announce-gen: backslash-escape '@'s in --help output
29321         * build-aux/announce-gen: Fix syntax errors.
29322
29323         maint.mk, announce-gen: allow project-specific announcement mail headers
29324         * top/maint.mk (translation_project_): Define default.
29325         (announcement_Cc_, announcement_mail_headers_): Likewise.
29326         (announcement): Invoke announce-gen with new --mail-headers option.
29327         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29328
29329         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29330         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29331         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29332         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29333         line in the "err2" output file when running "make check" in verbose
29334         mode (i.e., with set -x enabled).
29335
29336 2010-05-03  Bruno Haible  <bruno@clisp.org>
29337
29338         wctob: Fix for weird platforms.
29339         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29340         argument value.
29341
29342 2010-05-03  Jim Meyering  <meyering@redhat.com>
29343
29344         maint.mk: prohibit unwarranted use of <strings.h>
29345         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29346         strings.h in a file that does not also use strcasecmp, strncasecmp,
29347         ffs or ffsll.
29348
29349         maint.mk: remove obsolete comments
29350         * top/maint.mk: Remove stale, commented-out rules.
29351
29352 2010-05-02  Bruno Haible  <bruno@clisp.org>
29353
29354         wcwidth: Declare also when it's aliased.
29355         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29356         macro.
29357
29358 2010-05-02  Bruno Haible  <bruno@clisp.org>
29359
29360         Fix regression from 2010-04-25.
29361         * gnulib-tool (func_modules_transitive_closure): Check the status of
29362         all modules, not only of the tests that are of the form foo-tests where
29363         foo is a module.
29364
29365 2010-05-02  Bruno Haible  <bruno@clisp.org>
29366
29367         wctob: Work around nasty Cygwin 1.7.2 bug.
29368         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29369         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29370
29371 2010-05-01  Bruno Haible  <bruno@clisp.org>
29372
29373         fpurge: Sharper test.
29374         * tests/test-fpurge.c (main): Add one more ftell check.
29375         * modules/fpurge-tests (Depends-on): Add ftell.
29376         Suggested by Eric Blake.
29377
29378 2010-05-01  Bruno Haible  <bruno@clisp.org>
29379
29380         ftello: Another test.
29381         * tests/test-ftello3.c: New file.
29382         * modules/ftello-tests (Files): Add it.
29383         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29384         MOSTLYCLEANFILES.
29385
29386         ftell: Another test.
29387         * tests/test-ftell3.c: New file.
29388         * modules/ftell-tests (Files): Add it.
29389         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29390         MOSTLYCLEANFILES.
29391
29392 2010-05-01  Bruno Haible  <bruno@clisp.org>
29393
29394         ftell, ftello: Work around Solaris bug.
29395         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29396         * lib/ftello.c: Include stdio-impl.h.
29397         (ftello): On Solaris, when _IOWRT is set, compute the result without
29398         looking at _IOREAD.
29399         * modules/ftello (Files): Add lib/stdio-impl.h.
29400         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29401         * doc/posix-functions/ftello.texi: Likewise.
29402         Reported by Eric Blake.
29403
29404 2010-05-01  Bruno Haible  <bruno@clisp.org>
29405
29406         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29407         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29408         the _IOWRT flag is also set.
29409
29410 2010-05-01  Bruno Haible  <bruno@clisp.org>
29411
29412         Fix doc about a HP-UX stdio bug.
29413         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29414         * doc/posix-functions/ftello.texi: Likewise.
29415
29416 2010-05-01  Bruno Haible  <bruno@clisp.org>
29417
29418         lseek test: Fix failure on Solaris.
29419         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29420         output.
29421
29422 2010-04-30  Jim Meyering  <meyering@redhat.com>
29423
29424         bootstrap: don't ignore failure to generate po*/Makevars
29425         * build-aux/bootstrap (with_gettext): Don't ignore failure
29426         to create po/Makevars or runtime-po/Makevars.
29427
29428 2010-04-29  Eric Blake  <eblake@redhat.com>
29429
29430         headers: relax license to LGPLv2+
29431         * modules/fcntl-h (License): Relax license.
29432         * modules/getopt-posix (License): Likewise.
29433         * modules/locale (License): Likewise.
29434         * modules/math (License): Likewise.
29435         * modules/pty (License): Likewise.
29436         * modules/sched (License): Likewise.
29437         * modules/search (License): Likewise.
29438         * modules/spawn (License): Likewise.
29439         * modules/stdarg (License): Likewise.
29440         * modules/sysexits (License): Likewise.
29441
29442 2010-04-29  Jim Meyering  <meyering@redhat.com>
29443
29444         inttypes: relax license to LGPLv2+
29445         * modules/inttypes (License): Relax license.
29446
29447 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29448
29449         * top/maint.mk (indent): Run twice to produce idempotent results.
29450
29451 2010-04-28  Bruno Haible  <bruno@clisp.org>
29452
29453         getdate: Generate getdate.c in the source directory.
29454         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29455         MOSTLYCLEANFILES.
29456         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29457
29458 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29459
29460         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29461         is not declared as a const *; avoid warnings in that case.
29462
29463 2010-04-28  Eric Blake  <eblake@redhat.com>
29464
29465         canonicalize-lgpl: avoid compiler warning
29466         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29467         declaration' / 'extraneous semicolon' warning with some compilers.
29468         Reported by Andreas Gruenbacher.
29469
29470 2010-04-28  Jim Meyering  <meyering@redhat.com>
29471
29472         init.sh: ensure a more reliable exit status when exiting via trap
29473         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29474         Inspired by patches from Dmitry V. Levin.
29475         Also trap on signal 3 (SIGQUIT).
29476
29477 2010-04-27  Bruno Haible  <bruno@clisp.org>
29478
29479         Update doc about utimes().
29480         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29481         'utimens' module.
29482         Reported by Andreas Gruenbacher <agruen@suse.de>.
29483
29484 2010-04-27  Eric Blake  <eblake@redhat.com>
29485
29486         full-read, full-write: relax license
29487         * modules/full-read (License): Drop to LGPLv2+.
29488         * modules/full-write (License): Likewise.
29489         * modules/safe-read (License): Likewise.
29490         * modules/safe-write (License): Likewise.
29491
29492         pthread: mention library for linking
29493         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29494
29495 2010-04-27  Jim Meyering  <meyering@redhat.com>
29496
29497         maint.mk: fix a bug introduced in last change
29498         * top/maint.mk (gl_assured_headers_): Now that all names are on
29499         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29500         is not anchored to end of word, it should be adequate.
29501
29502         maint.mk: avoid side-effect in latest syntax-check
29503         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29504         to run commands via $(shell...), and hence to incur cost only when
29505         the new rule is actually run.
29506
29507         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29508         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29509         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29510         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29511         (gl_assured_headers_, az_, AZ_): Define.
29512         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29513
29514 2010-04-26  Jim Meyering  <jim@meyering.net>
29515             Bruno Haible  <bruno@clisp.org>
29516
29517         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29518         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29519         Prompted by an exchange with Gilles Espinasse.
29520
29521 2010-04-26  Jim Meyering  <meyering@redhat.com>
29522
29523         git-version-gen: aesthetic tweak
29524         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29525         so that the command remains on a single line.
29526
29527 2010-04-26  Eric Blake  <eblake@redhat.com>
29528
29529         git-version-gen: allow use on EBCDIC hosts
29530         * build-aux/git-version-gen (dirty): Use literal rather than tying
29531         ourselves to ascii.
29532         Reported by Steve Goetze.
29533
29534 2010-04-25  Bruno Haible  <bruno@clisp.org>
29535
29536         netdb: Add support for GNULIB_POSIXCHECK.
29537         * lib/netdb.in.h: Include warn-on-use.h.
29538         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29539         functions are used when GNULIB_POSIXCHECK is defined and the
29540         getaddrinfo module is not in use.
29541         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29542         freeaddrinfo, gai_strerror, getnameinfo are declared.
29543         * modules/netdb (Depends-on): Add warn-on-use.
29544         (Makefile.am): Include warn-on-use.h in netdb.h.
29545
29546 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29547
29548         build: avoid "make check" failure without .git/ directory
29549         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29550         there is no .git/ directory.
29551
29552 2010-04-25  Bruno Haible  <bruno@clisp.org>
29553
29554         ptsname: Fix misuse of ttyname_r.
29555         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29556         of errno.
29557
29558 2010-04-25  Bruno Haible  <bruno@clisp.org>
29559
29560         ttyname_r: Make it work on Solaris 10.
29561         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29562         if the system function has the POSIX declaration. Test whether the
29563         function fails if the buffer is less than 128 bytes large.
29564         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29565         system's ttyname_r function. Provide a reasonably large buffer.
29566         * modules/ttyname_r (Depends-on): Add extensions.
29567         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29568
29569 2010-04-25  Bruno Haible  <bruno@clisp.org>
29570
29571         Use the 'extensions' module for some more functions on Solaris.
29572         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29573         module.
29574         * doc/posix-functions/ctime_r.texi: Likewise.
29575         * doc/posix-functions/getgrgid_r.texi: Likewise.
29576         * doc/posix-functions/getgrnam_r.texi: Likewise.
29577         * doc/posix-functions/getpwnam_r.texi: Likewise.
29578         * doc/posix-functions/getpwuid_r.texi: Likewise.
29579         * doc/posix-functions/readdir_r.texi: Likewise.
29580         * doc/posix-functions/sigwait.texi: Likewise.
29581         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29582         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29583
29584 2010-04-25  Bruno Haible  <bruno@clisp.org>
29585
29586         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29587         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29588         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29589         * lib/ttyname_r.c: Include <limits.h>.
29590         (ttyname_r): Define using the system's ttyname_r function, if it exists
29591         and not on Solaris.
29592         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29593         set.
29594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29595         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29596         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29597         Reported by Simon Josefsson.
29598
29599 2010-04-25  Bruno Haible  <bruno@clisp.org>
29600
29601         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29602         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29603         * doc/posix-functions/ctime_r.texi: Likewise.
29604         * doc/posix-functions/getgrgid_r.texi: Likewise.
29605         * doc/posix-functions/getgrnam_r.texi: Likewise.
29606         * doc/posix-functions/getlogin_r.texi: Likewise.
29607         * doc/posix-functions/getpwnam_r.texi: Likewise.
29608         * doc/posix-functions/getpwuid_r.texi: Likewise.
29609         * doc/posix-functions/readdir_r.texi: Likewise.
29610         * doc/posix-functions/sigwait.texi: Likewise.
29611         * doc/posix-functions/ttyname_r.texi: Likewise.
29612         Reported by Simon Josefsson.
29613
29614 2010-04-25  Bruno Haible  <bruno@clisp.org>
29615
29616         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29617         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29618         also to --create-testdir.
29619         (func_acceptable): Don't consider the status of *-tests modules here.
29620         (func_modules_transitive_closure): Consider it here, before including a
29621         test module.
29622         (func_import, func_create_testdir): Set inc_all_direct_tests,
29623         inc_all_indirect_tests.
29624         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29625         --create-testdir and --create-megatestdir.
29626
29627 2010-04-25  Bruno Haible  <bruno@clisp.org>
29628
29629         gnulib-tool: Add --without-*-tests options.
29630         * gnulib-tool (func_usage): Document the --without-*-tests options.
29631         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29632         excl_unportable_tests): New variables.
29633         Fail if they are specified with --import or --update.
29634         (func_acceptable): Respect the excl_*_tests variables.
29635         (func_import): Set the excl_*_tests variables to empty.
29636
29637 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29638             Bruno Haible  <bruno@clisp.org>
29639
29640         Work around a MacOS X 10.4 bug with openpty.
29641         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29642         * tests/test-openpty.c (main): Close the master side explicitly.
29643
29644 2010-04-25  Bruno Haible  <bruno@clisp.org>
29645
29646         strnlen: Fix a C++ test error on MacOS X and Solaris.
29647         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29648         the function is not declared.
29649         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29650         Simon Josefsson.
29651
29652 2010-04-24  Bruno Haible  <bruno@clisp.org>
29653
29654         Avoid a gcc warning.
29655         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29656         of correct type for %08lx directive.
29657         Reported by Eric Blake.
29658
29659 2010-04-24  Bruno Haible  <bruno@clisp.org>
29660
29661         vasnprintf: Correct errno value in case of out-of-memory.
29662         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29663         or sprintf. Use the errno value from SNPRINTF or sprintf.
29664         Reported by Ian Beckwith <ianb@erislabs.net>.
29665
29666 2010-04-24  Bruno Haible  <bruno@clisp.org>
29667
29668         ansi-c++-opt: Find correct compiler when cross-compiling.
29669         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29670         AC_CHECK_PROGS.
29671         Reported by Simon Josefsson.
29672
29673 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29674
29675         vc-list-files: Add support for subversion
29676         * build-aux/vc-list-files: Use "svn list" to generate the list of
29677         files controlled by subversion.
29678
29679 2010-04-23  Jim Meyering  <meyering@redhat.com>
29680
29681         vc-list-files tests: convert to use init.sh
29682         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29683         path_prepend_.
29684         Use Exit, not exit.
29685         Use skip_ rather than open coding it.
29686         Remove trap set-up and compare definitions.
29687         * tests/test-vc-list-files-git.sh: Likewise.
29688         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29689
29690 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29691
29692         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29693         backup files.
29694
29695 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29696
29697         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29698
29699 2010-04-20  Eric Blake  <eblake@redhat.com>
29700
29701         tests: be robust to ignored SIGPIPE
29702         * tests/test-select-in.sh: Consume all output.
29703         * tests/test-lseek.sh: Check correct exit status, while avoiding
29704         EPIPE.
29705
29706 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29707             Bruno Haible  <bruno@clisp.org>
29708
29709         visibility: Don't use -fvisibility if it leads to a warning.
29710         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29711         yes, don't pretend that visibility works if it leads to a warning.
29712         Reported by Mike Gran <spk121@yahoo.com>.
29713
29714 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29715
29716         * build-aux/bootstrap: Use "git -h" for testing for supported options
29717         instead of "git --help".  The short-form option only shows a summary,
29718         and doesn't layout the full man page.  Grep for the full option name
29719         in the summary, too.
29720
29721 2010-04-19  Bruno Haible  <bruno@clisp.org>
29722
29723         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29724         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29725         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29726         mention of RELOCATABLE_STRIP.
29727         Reported by Sylvain Beucler <beuc@beuc.net>.
29728
29729 2010-04-19  Bruno Haible  <bruno@clisp.org>
29730
29731         * lib/diffseq.h: Fix typo in comment.
29732         Reported by Eric Blake.
29733
29734 2010-04-19  Bruno Haible  <bruno@clisp.org>
29735
29736         ioctl: Move autoconf macro to a .m4 file.
29737         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29738         * modules/ioctl (Files): Add it.
29739         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29740         Reported by Ian Beckwith <ianb@erislabs.net>.
29741
29742 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29743             Bruno Haible  <bruno@clisp.org>
29744
29745         diffseq: Accommodate use-case with abstract arrays.
29746         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29747         is not defined.
29748         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29749         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29750
29751 2010-04-18  Bruno Haible  <bruno@clisp.org>
29752
29753         * doc/posix-headers/stdbool.texi: More precise wording.
29754
29755 2010-04-17  Jim Meyering  <meyering@redhat.com>
29756
29757         maint.mk: use gnu-style indentation in an embedded perl script
29758         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29759         Rename variable: s/two/last_two_bytes/
29760
29761 2010-04-16  Eric Blake  <eblake@redhat.com>
29762
29763         test-stdbool: skip test that fails with Solaris CC
29764         * tests/test-stdbool.c (f): Skip test that causes compilation
29765         error under buggy C++ compiler.
29766         * lib/stdbool.in.h: Document the limitation.
29767         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29768
29769         setenv: allow compilation with C++
29770         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29771         register keyword.
29772
29773         stdint: allow test to pass with C++
29774         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29775
29776         getopt: allow compilation with C++
29777         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29778         struct.
29779         * lib/getopt.c (_getopt_internal_r): Use correct type.
29780         Reported by Dagobert Michelson, via Joel E. Denny.
29781
29782 2010-04-16  Bruno Haible  <bruno@clisp.org>
29783
29784         Override netdb.h always.
29785         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29786         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29787         Reported by Ludovic Courtès <ludo@gnu.org>.
29788
29789 2010-04-15  Bruno Haible  <bruno@clisp.org>
29790
29791         openpty: Fix mistake from 2010-03-21.
29792         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29793         Reported by Simon Josefsson.
29794
29795 2010-04-15  Eric Blake  <eblake@redhat.com>
29796
29797         test-forkpty: fix expected signature
29798         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29799         Reported by Simon Josefsson.
29800
29801 2010-04-15  Jim Meyering  <meyering@redhat.com>
29802
29803         maint.mk: texinfo_suffix_re_: correct the default regexp
29804         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29805
29806         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29807         make it configurable via texinfo_suffix_re_.
29808
29809 2010-04-14  Eric Blake  <eblake@redhat.com>
29810
29811         strtok_r: relax license to LGPLv2+
29812         * modules/strtok_r (License): Relax license.
29813         Reported by Matthias Bolte.
29814
29815 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29816
29817         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29818         version 1.4.4 by default instead of requiring the libgcrypt
29819         version used during build.  This makes it possible to use the
29820         application with older but still binary compatible libgcrypt
29821         versions.
29822
29823 2010-04-13  Eric Blake  <eblake@redhat.com>
29824
29825         getopt-gnu: match recent glibc fixes and posix ruling
29826         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29827         '+' handling, when requesting extensions.
29828         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29829         'W;' handling.
29830         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29831         * doc/posix-functions/getopt.texi (getopt): Document this.
29832         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29833         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29834         Likewise.
29835
29836         getopt: merge bug fixes from glibc
29837         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29838         diagnostics.  Honor '+:' correctly.  Reject ';'.
29839
29840         getopt-posix: detect MacOS bug
29841         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29842         optind when missing a required argument.
29843         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29844         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29845         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29846         Likewise.
29847
29848         getopt-posix: avoid spurious failure on Solaris
29849         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29850         an indicator that setting optind=1 is sufficient for reset.
29851
29852         getopt-posix: avoid spurious failure on FreeBSD
29853         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29854         in POSIX mode, since the m4 test uses it.
29855
29856         gnulib-tool: silence warning on BSD sh
29857         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29858
29859 2010-04-13  Jim Meyering  <meyering@redhat.com>
29860
29861         doc: users.txt: GNU patch now uses gnulib
29862         * users.txt: Add patch.
29863
29864 2010-04-12  Jim Meyering  <meyering@redhat.com>
29865
29866         maint.mk: generate more concise timing data for syntax-check rules
29867         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29868         " done" from each line that reports a syntax-check test duration.
29869
29870 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29871
29872         git-version-gen: use "git update-index..." rather than "git status"
29873         * build-aux/git-version-gen: Use git update-index --refresh, not
29874         "git status".  With some versions of git, "git status" would fail
29875         to update the index and result in an unwarranted "-dirty" suffix.
29876
29877 2010-04-11  Jim Meyering  <meyering@redhat.com>
29878
29879         openat: correct formatting (no semantic change)
29880         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29881         Suggested by Bruno Haible.
29882
29883 2010-04-11  Bruno Haible  <bruno@clisp.org>
29884
29885         Stricter declaration checking in testdirs.
29886         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29887         If for_tests is true, augment AM_CPPFLAGS to define
29888         GNULIB_STRICT_CHECKING.
29889         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29890         GNULIB_STRICT_CHECKING is defined, verify that the function is
29891         declared.
29892
29893 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29894             Bruno Haible  <bruno@clisp.org>
29895
29896         libunistring: Improve configure output.
29897         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29898         Don't say "consider installing GNU libunistring" when checking again
29899         with libiconv.
29900
29901 2010-04-11  Bruno Haible  <bruno@clisp.org>
29902
29903         libunistring: Correct value of $LTLIBUNISTRING.
29904         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29905         correct the value of $LTLIBUNISTRING.
29906
29907 2010-04-11  Bruno Haible  <bruno@clisp.org>
29908
29909         havelib: Add static libraries to LIBS in the right order.
29910         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29911         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29912
29913 2010-04-11  Bruno Haible  <bruno@clisp.org>
29914
29915         libunistring: Detect libunistring also when it depends on libiconv.
29916         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29917         the second AC_LIB_HAVE_LINKFLAGS invocation.
29918
29919 2010-04-11  James Youngman  <jay@gnu.org>
29920
29921         close-stream: declare local scalars to be "const"
29922         * lib/close-stream.c (close_stream): Make boolean variables const
29923         to document the fact that we set but do not change them.
29924
29925 2010-04-11  Bruno Haible  <bruno@clisp.org>
29926
29927         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29928
29929 2010-04-11  Jim Meyering  <meyering@redhat.com>
29930
29931         maint.mk: don't include dist-check.mk
29932         * top/maint.mk: Remove bogus include directive.
29933
29934         maint.mk: improve empty-line-at-EOF check
29935         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29936         solution, rather than tail+Perl-based one.  The latter would read
29937         a few kilobytes from the end of each file, and did not handle empty
29938         files properly.
29939
29940         maint.mk: print the elapsed time for each syntax-check rule
29941         * top/maint.mk (sc_m_rules_): Save start time in a file.
29942         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29943         (local-check): Interpose the .z rules
29944
29945 2010-04-11  Jim Meyering  <meyering@redhat.com>
29946
29947         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29948         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29949         empty file with one that ends in an empty line.
29950
29951 2010-04-10  Bruno Haible  <bruno@clisp.org>
29952
29953         mkdir: Make it work on mingw64.
29954         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29955         * lib/mkdir.c: Update comment.
29956         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29957
29958 2010-04-10  Bruno Haible  <bruno@clisp.org>
29959
29960         Don't override improved macro from newer autoconf.
29961         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29962         autoconf >= 2.62.
29963         Reported by Joel E. Denny <jdenny@clemson.edu>.
29964
29965 2010-04-10  Jim Meyering  <meyering@redhat.com>
29966
29967         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29968         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29969
29970         maint.mk: correct a diagnostic
29971         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29972         in diagnostic; now use $prohibit.
29973
29974 2010-04-10  Bruno Haible  <address@hidden>
29975
29976         fchownat: Fix a C++ test error on Solaris 8.
29977         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29978         the function does not exist.
29979
29980 2010-04-10  Bruno Haible  <bruno@clisp.org>
29981
29982         vasnprintf: Add more tests.
29983         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29984         (test_function): Test converting an invalid wide string.
29985
29986         vasnprintf: Correct handling of unconvertible wide string arguments.
29987         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29988         VASNPRINTF.
29989         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29990         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29991         smaller than the expected maximum need for the directive. Set errno to
29992         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29993         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29994         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29995         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29996         * modules/vasnprintf (Files): Add m4/printf.m4.
29997         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29998
29999 2010-04-10  Bruno Haible  <bruno@clisp.org>
30000
30001         vasnprintf: Fix crash in %ls directive.
30002         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30003         string is passed as argument to %ls, with no precision and no width.
30004         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30005
30006 2010-04-10  Bruno Haible  <bruno@clisp.org>
30007
30008         vasnprintf: Fix multiple test failures on mingw.
30009         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30010         _snprintf, or snwprintf, not _snwprintf.
30011
30012 2010-04-10  Bruno Haible  <bruno@clisp.org>
30013
30014         write: Fix a C++ test error on mingw.
30015         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30016
30017 2010-04-10  Bruno Haible  <bruno@clisp.org>
30018
30019         vasnprintf test: Reduce code duplication.
30020         * tests/test-vasnprintf.c (test_function): New function, extracted from
30021         test_vasnprintf.
30022         (test_vasnprintf, test_asnprintf): Invoke it.
30023
30024 2010-04-10  Bruno Haible  <bruno@clisp.org>
30025
30026         strnlen: Fix warning in C++ mode on MacOS X.
30027         * lib/string.in.h (strnlen): Use the modern idiom.
30028         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30029         defining strnlen as a macro already in <config.h>.
30030         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30031         REPLACE_STRNLEN.
30032         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30033         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30034
30035 2010-04-08  James Youngman  <jay@gnu.org>
30036
30037         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30038         the example.
30039
30040 2010-04-09  Jim Meyering  <meyering@redhat.com>
30041
30042         maint.mk: print better diagnostic when there is no $(_hv_file)
30043         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30044         announce that when $(_hv_file) (aka help-version) does not exist.
30045
30046         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30047         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30048         not try to interpret its random input bytes.  Jarno Rajahalme reported
30049         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30050         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30051         (mktempd_): Likewise, just in case.
30052
30053         ftruncate: add two years to projected module removal date: 2012
30054         * m4/ftruncate.m4: Adjust comments.
30055
30056         ftruncate: mark module as obsolete; even MinGW provides it, now
30057         * modules/ftruncate (Status): Obsolete.
30058         (Notice): Say that.
30059         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30060         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30061
30062 2010-04-08  Bruno Haible  <bruno@clisp.org>
30063
30064         Fix side effects from tests-related modules.
30065         * modules/dprintf-posix (Comment): New section.
30066         * modules/fprintf-posix (Comment): Likewise.
30067         * modules/obstack-printf-posix (Comment): Likewise.
30068         * modules/printf-posix (Comment): Likewise.
30069         * modules/snprintf-posix (Comment): Likewise.
30070         * modules/sprintf-posix (Comment): Likewise.
30071         * modules/vasnprintf-posix (Comment): Likewise.
30072         * modules/vasprintf-posix (Comment): Likewise.
30073         * modules/vdprintf-posix (Comment): Likewise.
30074         * modules/vfprintf-posix (Comment): Likewise.
30075         * modules/vprintf-posix (Comment): Likewise.
30076         * modules/vsnprintf-posix (Comment): Likewise.
30077         * modules/vsprintf-posix (Comment): Likewise.
30078         * modules/xprintf-posix (Comment): Likewise.
30079         * modules/xvasprintf-posix (Comment): Likewise.
30080         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30081         * modules/floorf-tests (Depends-on): Likewise.
30082         * modules/round-tests (Depends-on): Likewise.
30083         * modules/roundf-tests (Depends-on): Likewise.
30084         * modules/trunc-tests (Depends-on): Likewise.
30085         * modules/truncf-tests (Depends-on): Likewise.
30086         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30087         'fprintf-posix' module is not present.
30088         * tests/test-floorf2.c (check): Likewise.
30089         * tests/test-trunc2.c (check): Likewise.
30090         * tests/test-truncf2.c (check): Likewise.
30091         * tests/test-round2.c (equal): Likewise.
30092         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30093
30094 2010-04-07  Karl Berry  <karl@gnu.org>
30095
30096         * config/srclist.txt,
30097         * config/srclistvars.sh,
30098         * config/srclist-update: doc fixes.
30099
30100 2010-04-07  Jim Meyering  <meyering@redhat.com>
30101
30102         maint.mk: add a PATH crosschecking syntax-check rule
30103         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30104         Useful if you use a test like the one in help-version (coreutils,
30105         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30106         printed by prog --version.
30107
30108 2010-04-06  Bruno Haible  <bruno@clisp.org>
30109
30110         Fix link error on mingw.
30111         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30112         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30113
30114 2010-04-06  Bruno Haible  <bruno@clisp.org>
30115
30116         Assume rmdir exists.
30117         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30118
30119 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30120
30121         doc: update users.txt
30122         * users.txt: Add gcal.
30123
30124 2010-04-06  Jim Meyering  <meyering@redhat.com>
30125
30126         init.sh: simply unset TMPDIR rather than risking env -i
30127         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30128         although it probably works fine on all Unix-based systems, some
30129         systems (Cygwin?) cannot tolerate a totally cleared environment.
30130         Suggestion from Eric Blake.
30131
30132 2010-04-06  Jim Meyering  <meyering@redhat.com>
30133
30134         init.sh: portability fix: use env's POSIX-specified -i option not -u
30135         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30136         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30137
30138 2010-04-05  Bruno Haible  <bruno@clisp.org>
30139
30140         btowc: Work around Cygwin 1.7.2 bug.
30141         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30142         does not map NUL to 0.
30143         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30144
30145 2010-04-05  Bruno Haible  <bruno@clisp.org>
30146
30147         Make the multithread modules work on Cygwin 1.7.2.
30148         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30149         imported symbols can be declared weak, so that it returns "no" on
30150         Cygwin 1.7.2.
30151
30152 2010-04-05  Bruno Haible  <bruno@clisp.org>
30153
30154         Use the module 'strncat'.
30155         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30156
30157         Tests for module 'strncat'.
30158         * modules/strncat-tests: New file.
30159         * tests/test-strncat.c: New file.
30160
30161         New module 'strncat'.
30162         * lib/string.in.h (strncat): New declaration.
30163         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30164         * m4/strncat.m4: New file, based on m4/memchr.m4.
30165         * modules/strncat: New file.
30166         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30167         is declared.
30168         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30169         REPLACE_STRNCAT.
30170         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30171         REPLACE_STRNCAT.
30172         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30173         module.
30174         * tests/test-string-c++.cc: Check signature of strncat.
30175
30176 2010-04-05  Jim Meyering  <meyering@redhat.com>
30177
30178         xstrtoumax-tests: convert to use init.sh
30179         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30180         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30181         Use Exit, not exit.
30182         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30183
30184         xstrtoimax-tests: convert to use init.sh
30185         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30186         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30187         Use Exit, not exit.
30188         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30189
30190 2010-04-05  Bruno Haible  <bruno@clisp.org>
30191
30192         sys_socket: Avoid #define replacements in C++ mode.
30193         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30194         warning to the function if possible, rather than #defining the symbol
30195         to a dysfunctional alias.
30196
30197 2010-04-05  Bruno Haible  <bruno@clisp.org>
30198
30199         fseeko: Fix C++ test error on mingw.
30200         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30201         gl_FUNC_FSEEKO.
30202         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30203         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30204         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30205         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30206
30207 2010-04-05  Bruno Haible  <bruno@clisp.org>
30208
30209         duplocale: Improve test output.
30210         * tests/test-duplocale.c (main): Print reason for skipped test.
30211
30212 2010-04-05  Bruno Haible  <bruno@clisp.org>
30213
30214         Assume rmdir exists.
30215         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30216         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30217
30218 2010-04-05  Bruno Haible  <bruno@clisp.org>
30219
30220         Fix link error on Solaris 8 with cc.
30221         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30222
30223 2010-04-05  Bruno Haible  <bruno@clisp.org>
30224
30225         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30226         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30227
30228 2010-04-05  Bruno Haible  <bruno@clisp.org>
30229
30230         vasprintf: Update documentation.
30231         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30232
30233 2010-04-05  Bruno Haible  <bruno@clisp.org>
30234
30235         ptsname: Improve test.
30236         * tests/test-ptsname.c (main): Also try the various master names of BSD
30237         systems.
30238
30239 2010-04-05  Bruno Haible  <bruno@clisp.org>
30240
30241         memchr: Avoid a possible C++ test error.
30242         * lib/string.in.h (memchr): Provide declaration if function is missing.
30243         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30244         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30245         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30246         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30247
30248 2010-04-05  Bruno Haible  <bruno@clisp.org>
30249
30250         strtok_r: Improve idiom.
30251         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30252         AC_LIBOBJ is used.
30253
30254 2010-04-05  Bruno Haible  <bruno@clisp.org>
30255
30256         strdup: Improve idiom.
30257         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30258         AC_LIBOBJ is used.
30259         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30260         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30261         when AC_LIBOBJ is used.
30262
30263 2010-04-05  Bruno Haible  <bruno@clisp.org>
30264
30265         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30266         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30267         don't set REPLACE_MBSINIT to 1.
30268         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30269         don't set REPLACE_MBRTOWC to 1.
30270         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30271         exist, don't set REPLACE_MBSRTOWCS to 1.
30272         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30273         exist, don't set REPLACE_MBSNRTOWCS to 1.
30274         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30275         don't set REPLACE_WCRTOMB to 1.
30276         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30277         exist, don't set REPLACE_WCSRTOMBS to 1.
30278         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30279         exist, don't set REPLACE_WCSNRTOMBS to 1.
30280
30281 2010-04-05  Bruno Haible  <bruno@clisp.org>
30282
30283         ldexpl: Improve idiom.
30284         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30285         make sure to set HAVE_DECL_LDEXPL to 0.
30286
30287 2010-04-05  Jim Meyering  <meyering@redhat.com>
30288
30289         xstrtol-tests: convert to use init.sh
30290         * modules/xstrtol-tests (Files): Add tests/init.sh.
30291         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30292         Use Exit, not exit.
30293         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30294
30295         atexit-tests: convert to use init.sh
30296         * modules/atexit-tests (Files): Add tests/init.sh.
30297         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30298         Use Exit, not exit.
30299         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30300
30301         init.sh: fix typo
30302         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30303
30304         init.sh: make it easier for a test script to write to the tty, ...
30305         when using automake's parallel-tests mode.
30306         * tests/init.sh (stderr_fileno_): Define overridable variable.
30307         (warn_): New function, to use it.
30308         (fail_, skip_, framework_failure_): Use warn_.
30309
30310 2010-04-04  Bruno Haible  <bruno@clisp.org>
30311
30312         btowc: Avoid warning.
30313         * lib/btowc.c: Include <stdlib.h>.
30314         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30315
30316 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30317             Bruno Haible  <bruno@clisp.org>
30318
30319         wchar: Port to NetBSD 1.5.
30320         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30321         * lib/wctype.in.h (WEOF): Likewise.
30322
30323 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30324             Bruno Haible  <bruno@clisp.org>
30325
30326         Port extended stdio to NetBSD 1.5.
30327         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30328         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30329         older.
30330
30331 2010-04-04  Bruno Haible  <bruno@clisp.org>
30332
30333         string: Remove unused substitution.
30334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30335         HAVE_DECL_STRERROR.
30336         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30337
30338 2010-04-04  Bruno Haible  <bruno@clisp.org>
30339
30340         strtod: Avoid a possible C++ test error.
30341         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30342         set REPLACE_STRTOD.
30343
30344 2010-04-04  Bruno Haible  <bruno@clisp.org>
30345
30346         strerror: Update documentation.
30347         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30348
30349 2010-04-04  Bruno Haible  <bruno@clisp.org>
30350
30351         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30352         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30353         _GL_CXXALIAS_SYS_CAST.
30354
30355 2010-04-04  Bruno Haible  <bruno@clisp.org>
30356
30357         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30358         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30359         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30360         REPLACE_FREXPL to 1.
30361         * doc/posix-functions/frexpl.texi: Update documentation.
30362
30363 2010-04-04  Bruno Haible  <bruno@clisp.org>
30364
30365         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30366         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30367
30368 2010-04-04  Bruno Haible  <bruno@clisp.org>
30369
30370         Implement nanosleep for native Windows.
30371         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30372
30373 2010-04-04  Bruno Haible  <bruno@clisp.org>
30374
30375         math: Fix some C++ test errors on Solaris 8.
30376         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30377
30378 2010-04-04  Bruno Haible  <bruno@clisp.org>
30379
30380         math: Fix some C++ test errors on Cygwin.
30381         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30382         truncl): Provide declaration if the system does not have it.
30383         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30384         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30385         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30386         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30387         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30388         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30389         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30390         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30391         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30392         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30393         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30394         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30395         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30396         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30397         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30398         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30400         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30401         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30402         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30403         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30404         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30405
30406 2010-04-04  Bruno Haible  <bruno@clisp.org>
30407
30408         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30409         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30410         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30411         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30412         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30413         * m4/isinf.m4 (gl_ISINF): Likewise.
30414         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30415
30416 2010-04-04  Bruno Haible  <bruno@clisp.org>
30417
30418         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30419         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30420
30421 2010-04-04  Bruno Haible  <bruno@clisp.org>
30422
30423         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30424         * modules/tmpfile (configure.ac): Update.
30425
30426         tmpfile: Fix C++ test error on mingw.
30427         * lib/stdio.in.h (tmpfile): New declaration.
30428         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30429         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30430         * modules/tmpfile (Depends-on): Add stdio.
30431         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30432         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30433         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30434         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30435         REPLACE_TMPFILE.
30436         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30437
30438 2010-04-04  Bruno Haible  <bruno@clisp.org>
30439
30440         ioctl: Fix C++ test error on mingw.
30441         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30442         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30443         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30444
30445 2010-04-03  Bruno Haible  <bruno@clisp.org>
30446
30447         wcwidth: Fix C++ test error on mingw.
30448         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30449         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30450         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30451
30452 2010-04-03  Bruno Haible  <bruno@clisp.org>
30453
30454         nanosleep: Fix C++ test error on mingw.
30455         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30456         * lib/time.in.h (nanosleep): Use modern idiom.
30457         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30458         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30459         REPLACE_NANOSLEEP to 1.
30460         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30461         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30462
30463 2010-04-03  Bruno Haible  <bruno@clisp.org>
30464
30465         strptime: Fix C++ test error on mingw.
30466         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30467         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30468         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30469         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30470         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30471         not REPLACE_STRPTIME.
30472         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30473         REPLACE_STRPTIME.
30474
30475 2010-04-03  Bruno Haible  <bruno@clisp.org>
30476
30477         timegm: Fix C++ test error on mingw.
30478         * lib/time.in.h (timegm): Use modern idiom.
30479         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30480         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30481         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30482         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30483
30484 2010-04-03  Bruno Haible  <bruno@clisp.org>
30485
30486         timegm: Assume declaration if function exists.
30487         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30488         if it exists. Don't clobber ac_cv_func_timegm.
30489
30490 2010-04-03  Bruno Haible  <bruno@clisp.org>
30491
30492         time_r: Fix C++ test error on mingw.
30493         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30494         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30495         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30496         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30497         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30498
30499 2010-04-03  Bruno Haible  <bruno@clisp.org>
30500
30501         time_r: Minor updates.
30502         * modules/time_r (Description): Mention the provided functions.
30503         * lib/time_r.c: Don't include <string.h>.
30504         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30505         * doc/posix-functions/localtime_r.texi: Likewise.
30506
30507 2010-04-03  Bruno Haible  <bruno@clisp.org>
30508
30509         time: Fix regression introduced on 2010-03-08.
30510         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30511         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30512
30513 2010-04-03  Jim Meyering  <meyering@redhat.com>
30514
30515         maint.mk: don't silently disable project-specific syntax-check rules
30516         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30517         that they need to convert their project-specific syntax-check rules
30518         to use the new _sc_search_regexp.
30519
30520 2010-04-03  Bruno Haible  <bruno@clisp.org>
30521
30522         fchdir: Fix regression introduced on 2010-03-08.
30523         * lib/unistd.in.h (fchdir): Fix declaration.
30524         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30526         REPLACE_FCHDIR.
30527         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30528         REPLACE_FCHDIR.
30529
30530 2010-04-03  Bruno Haible  <bruno@clisp.org>
30531
30532         getpagesize: Fix C++ test error on mingw.
30533         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30534         system does not declare the function.
30535         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30536         declared.
30537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30538         HAVE_DECL_GETPAGESIZE.
30539         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30540
30541 2010-04-03  Bruno Haible  <bruno@clisp.org>
30542
30543         stdio: Make C++ tests work on mingw.
30544         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30545         does not declare the function.
30546
30547 2010-04-03  Bruno Haible  <bruno@clisp.org>
30548
30549         ftello: Fix C++ test error on mingw.
30550         * lib/stdio.in.h (ftello): Use modern idiom.
30551         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30552         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30553         is missing and that it needs to be replaced.
30554         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30556         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30557
30558 2010-04-03  Bruno Haible  <bruno@clisp.org>
30559
30560         fseeko: Fix C++ test error on mingw.
30561         * lib/stdio.in.h (fseeko): Use modern idiom.
30562         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30563         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30564         is missing and that it needs to be replaced.
30565         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30567         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30568
30569 2010-04-03  Bruno Haible  <bruno@clisp.org>
30570
30571         mkstemp: Fix C++ test error on mingw.
30572         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30573         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30574         function is missing and that it needs to be replaced.
30575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30576         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30577
30578 2010-04-03  Bruno Haible  <bruno@clisp.org>
30579
30580         stpncpy: Fix C++ test error on mingw.
30581         * lib/string.in.h (stpncpy): Use modern idiom.
30582         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30583         function is missing and that it needs to be replaced.
30584         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30585         REPLACE_STPNCPY.
30586         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30587
30588 2010-04-03  Bruno Haible  <bruno@clisp.org>
30589
30590         sys_stat: Fix C++ test error on mingw.
30591         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30592         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30593
30594 2010-04-03  Bruno Haible  <bruno@clisp.org>
30595
30596         pty: Update doc.
30597         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30598
30599 2010-04-03  Bruno Haible  <bruno@clisp.org>
30600
30601         unistd: Fix C++ test error on mingw.
30602         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30603
30604 2010-04-03  Bruno Haible  <bruno@clisp.org>
30605
30606         Update doc regarding mingw.
30607         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30608         * doc/glibc-functions/login_tty.texi: Likewise.
30609         * doc/glibc-functions/forkpty.texi: Likewise.
30610
30611 2010-04-03  Bruno Haible  <bruno@clisp.org>
30612
30613         stdlib: Avoid compilation failure of c-strtold on mingw.
30614         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30615
30616 2010-04-03  Bruno Haible  <bruno@clisp.org>
30617
30618         locale: Make C++ tests work on Cygwin and mingw.
30619         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30620         cannot provide the function.
30621         Reported by Simon Josefsson.
30622
30623 2010-04-03  Bruno Haible  <bruno@clisp.org>
30624
30625         localename: Port to MacOS X 10.6.
30626         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30627         memory layout of the locales in MacOS X 10.6 as well.
30628         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30629
30630 2010-04-02  Bruno Haible  <bruno@clisp.org>
30631
30632         gnulib-tool: Ensure that long-running tests are executed last.
30633         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30634         running tests after the one for the other tests.
30635
30636 2010-04-02  Bruno Haible  <bruno@clisp.org>
30637
30638         gnulib-tool: Ensure the tests in the main directory are executed first.
30639         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30640         start with the current directory.
30641
30642 2010-04-02  Bruno Haible  <bruno@clisp.org>
30643
30644         Tests for module 'havelib', moved here from GNU gettext.
30645         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30646         modifications.
30647         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30648         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30649         with modifications.
30650         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30651         modifications.
30652         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30653         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30654         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30655         with modifications.
30656         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30657         with modifications.
30658         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30659         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30660         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30661         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30662         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30663         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30664         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30665         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30666         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30667         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30668         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30669         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30670         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30671         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30672         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30673         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30674         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30675         with modifications.
30676         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30677         with modifications.
30678         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30679         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30680         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30681         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30682         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30683         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30684         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30685         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30686         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30687         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30688         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30689         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30690         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30691         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30692         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30693         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30694         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30695         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30696         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30697         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30698         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30699         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30700         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30701         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30702         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30703         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30704         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30705         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30706         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30707         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30708         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30709         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30710         * tests/havelib/rpathx/rpathx.c: New file, from
30711         gettext/autoconf-lib-link.
30712         * tests/havelib/rpathx/Makefile.am: New file, from
30713         gettext/autoconf-lib-link.
30714         * tests/havelib/rpathx/configure.ac: New file, from
30715         gettext/autoconf-lib-link with modifications.
30716         * tests/havelib/rpathy/rpathy.c: New file, from
30717         gettext/autoconf-lib-link.
30718         * tests/havelib/rpathy/Makefile.am: New file, from
30719         gettext/autoconf-lib-link.
30720         * tests/havelib/rpathy/configure.ac: New file, from
30721         gettext/autoconf-lib-link with modifications.
30722         * tests/havelib/rpathz/rpathz.c: New file, from
30723         gettext/autoconf-lib-link.
30724         * tests/havelib/rpathz/Makefile.am: New file, from
30725         gettext/autoconf-lib-link.
30726         * tests/havelib/rpathz/configure.ac: New file, from
30727         gettext/autoconf-lib-link with modifications.
30728         * tests/havelib/rpathlx/usex.c: New file, from
30729         gettext/autoconf-lib-link.
30730         * tests/havelib/rpathlx/Makefile.am: New file, from
30731         gettext/autoconf-lib-link.
30732         * tests/havelib/rpathlx/configure.ac: New file, from
30733         gettext/autoconf-lib-link with modifications.
30734         * tests/havelib/rpathly/usey.c: New file, from
30735         gettext/autoconf-lib-link.
30736         * tests/havelib/rpathly/Makefile.am: New file, from
30737         gettext/autoconf-lib-link.
30738         * tests/havelib/rpathly/configure.ac: New file, from
30739         gettext/autoconf-lib-link with modifications.
30740         * tests/havelib/rpathlz/usez.c: New file, from
30741         gettext/autoconf-lib-link.
30742         * tests/havelib/rpathlz/Makefile.am: New file, from
30743         gettext/autoconf-lib-link.
30744         * tests/havelib/rpathlz/configure.ac: New file, from
30745         gettext/autoconf-lib-link with modifications.
30746         * tests/havelib/rpathlyx/usey.c: New file, from
30747         gettext/autoconf-lib-link.
30748         * tests/havelib/rpathlyx/Makefile.am: New file, from
30749         gettext/autoconf-lib-link.
30750         * tests/havelib/rpathlyx/configure.ac: New file, from
30751         gettext/autoconf-lib-link with modifications.
30752         * tests/havelib/rpathlzyx/usez.c: New file, from
30753         gettext/autoconf-lib-link.
30754         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30755         gettext/autoconf-lib-link.
30756         * tests/havelib/rpathlzyx/configure.ac: New file, from
30757         gettext/autoconf-lib-link with modifications.
30758         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30759         with modifications.
30760
30761 2010-04-02  Bruno Haible  <bruno@clisp.org>
30762
30763         gnulib-tool: Create distributed built sources also for the tests.
30764         * gnulib-tool (func_create_testdir): Also generate distributed built
30765         sources in the tests directory.
30766
30767 2010-04-02  Bruno Haible  <bruno@clisp.org>
30768
30769         gnulib-tool: Obey user's environment variables.
30770         * gnulib-tool (func_create_testdir): When creating built sources,
30771         respect the environment variables for autoconf, automake, etc. given by
30772         the user.
30773
30774 2010-04-02  Bruno Haible  <bruno@clisp.org>
30775
30776         gnulib-tool: Provide the value of --m4-base to modules.
30777         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30778         of gl_m4_base.
30779
30780 2010-04-02  Eric Blake  <eblake@redhat.com>
30781
30782         maint.mk: fix some fallout
30783         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30784         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30785
30786 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30787
30788         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30789         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30790         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30791         (sc_cast_of_x_alloc_return_value): Likewise.
30792         (sc_cast_of_alloca_return_value): Likewise.
30793         (sc_space_tab): Likewise.
30794         (sc_prohibit_atoi_atof): Likewise.
30795         (sc_prohibit_magic_number_exit): Likewise.
30796         (sc_error_exit_success): Likewise.
30797         (sc_file_system): Likewise.
30798         (sc_prohibit_have_config_h): Likewise.
30799         (sc_require_config_h): Likewise.
30800         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30801         (sc_obsolete_symbols): Likewise.
30802         (sc_changelog): Likewise.
30803         (sc_program_name): Likewise.
30804         (sc_the_the): Likewise.
30805         (sc_trailing_blank): Likewise.
30806         (sc_two_space_separator_in_usage): Likewise.
30807         (sc_useless_cpp_parens): Likewise.
30808         (sc_GPL_version): Likewise.
30809         (sc_GFDL_version): Likewise.
30810         (sc_texinfo_acronym): Likewise.
30811         (sc_prohibit_cvs_keyword): Likewise.
30812         (sc_prohibit_stat_st_blocks): Likewise.
30813         (sc_prohibit_S_IS_definition): Likewise.
30814         (sc_redundant_const): Likewise.
30815         (sc_makefile_TAB_only_indentation): Likewise.
30816         (sc_m4_quote_check): Likewise.
30817         (sc_makefile_path_separator_check): Likewise.
30818         (sc_copyright_check): Likewise.
30819         (sc_Wundef_boolean): Likewise.
30820         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30821
30822         maint.mk: match 0 or more whitespace-before-function-call '('
30823         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30824         that have zero or two-and-more spaces between the function name
30825         and the open parenthesis.
30826         (sc_error_message_warn_fatal): Likewise.
30827         (sc_error_message_uppercase): Likewise.
30828         (sc_error_message_period): Likewise.
30829
30830 2010-03-31  Eric Blake  <eblake@redhat.com>
30831
30832         maint.mk: check for [ as well as test
30833         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30834         Based on a libvirt report by Matthias Bolte.
30835
30836         gnumakefile: don't squelch _version output
30837         * top/GNUmakefile (_version): Create one-shot dependency rather
30838         than using $(shell) when version must be regenerated.
30839         (_autoreconf): Run verbosely, by default.
30840
30841         sys_time: avoid compiler warnings
30842         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30843         unconditional, fixing regression from 2010-03-29.
30844         Reported by Simon Josefsson.
30845
30846 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30847
30848         maint.mk: s/_header_without_use/_sc_header_without_use/
30849         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30850         (sc_prohibit_assert_without_use): Use the new name.
30851         (sc_prohibit_close_stream_without_use): Likewise.
30852         (sc_prohibit_getopt_without_use): Likewise.
30853         (sc_prohibit_quotearg_without_use): Likewise.
30854         (sc_prohibit_quote_without_use): Likewise.
30855         (sc_prohibit_long_options_without_use): Likewise.
30856         (sc_prohibit_inttostr_without_use): Likewise.
30857         (sc_prohibit_ignore_value_without_use): Likewise.
30858         (sc_prohibit_error_without_use): Likewise.
30859         (sc_prohibit_xalloc_without_use): Likewise.
30860         (sc_prohibit_hash_without_use): Likewise.
30861         (sc_prohibit_hash_pjw_without_use): Likewise.
30862         (sc_prohibit_safe_read_without_use): Likewise.
30863         (sc_prohibit_argmatch_without_use): Likewise.
30864         (sc_prohibit_canonicalize_without_use): Likewise.
30865         (sc_prohibit_root_dev_ino_without_use): Likewise.
30866         (sc_prohibit_openat_without_use): Likewise.
30867         (sc_prohibit_c_ctype_without_use): Likewise.
30868         (sc_prohibit_signal_without_use): Likewise.
30869         (sc_prohibit_intprops_without_use): Likewise.
30870
30871 2010-03-30  Eric Blake  <eblake@redhat.com>
30872
30873         maint: improve module indicators
30874         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30875         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30876         columns, and avoid extra macro expansion.
30877
30878         fdopendir: work around FreeBSD bug
30879         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30880         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30881         * modules/dirent (Makefile.am): Substitute it.
30882         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30883         declaration.
30884         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30885         fix.
30886         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30887
30888 2010-03-29  Bruno Haible  <bruno@clisp.org>
30889
30890         Emit #pragma system_header after the inclusion guard, not before.
30891         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30892         guard that spans the entire file, not before. This enables an
30893         optimization in GCC's preprocessor.
30894         * lib/ctype.in.h: Likewise.
30895         * lib/dirent.in.h: Likewise.
30896         * lib/errno.in.h: Likewise.
30897         * lib/float.in.h: Likewise.
30898         * lib/getopt.in.h: Likewise.
30899         * lib/iconv.in.h: Likewise.
30900         * lib/langinfo.in.h: Likewise.
30901         * lib/locale.in.h: Likewise.
30902         * lib/math.in.h: Likewise.
30903         * lib/netdb.in.h: Likewise.
30904         * lib/netinet_in.in.h: Likewise.
30905         * lib/pty.in.h: Likewise.
30906         * lib/sched.in.h: Likewise.
30907         * lib/se-selinux.in.h: Likewise.
30908         * lib/search.in.h: Likewise.
30909         * lib/spawn.in.h: Likewise.
30910         * lib/stdarg.in.h: Likewise.
30911         * lib/stdint.in.h: Likewise.
30912         * lib/string.in.h: Likewise.
30913         * lib/strings.in.h: Likewise.
30914         * lib/sys_file.in.h: Likewise.
30915         * lib/sys_ioctl.in.h: Likewise.
30916         * lib/sys_time.in.h: Likewise.
30917         * lib/sys_times.in.h: Likewise.
30918         * lib/sys_utsname.in.h: Likewise.
30919         * lib/sys_wait.in.h: Likewise.
30920         * lib/sysexits.in.h: Likewise.
30921         * lib/wctype.in.h: Likewise.
30922
30923 2010-03-28  James Youngman  <jay@gnu.org>
30924
30925         save-cwd: don't leak a file descriptor when the caller execs.
30926         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30927         saved file descriptor.
30928         * modules/save-cwd (Depends-on): Depend on cloexec.
30929
30930 2010-03-29  Bruno Haible  <bruno@clisp.org>
30931
30932         Remove vestiges of fts-lgpl module.
30933         * lib/fts_.h: Assume GNULIB_FTS is 1.
30934         * lib/fts.c: Likewise.
30935         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30936
30937 2010-03-28  Bruno Haible  <bruno@clisp.org>
30938
30939         Fix definition of tests witness macro.
30940         * gnulib-tool (func_import): Fix definition of witness macro.
30941
30942 2010-03-28  Bruno Haible  <bruno@clisp.org>
30943
30944         Fix ioctl's protoype on glibc systems.
30945         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30946         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30947         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30948         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30949         signature. If not, arrange to replace the ioctl function.
30950         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30951         REPLACE_IOCTL.
30952         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30953         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30954         Reported by Ludovic Courtès <ludo@gnu.org>.
30955
30956 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30957
30958         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30959         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30960         made it so grep -r --include=GLOB* ... did not work.
30961
30962 2010-03-26  Jim Meyering  <meyering@redhat.com>
30963             Eric Blake  <eblake@redhat.com>
30964
30965         maint.mk: prohibit use of test's -o and -a operators
30966         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30967
30968 2010-03-28  Bruno Haible  <bruno@clisp.org>
30969
30970         Remove unused GNULIB_XYZ macro definitions.
30971         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30972         invocation.
30973
30974 2010-03-28  Bruno Haible  <bruno@clisp.org>
30975
30976         Mark privileged tests modules.
30977         * modules/idpriv-drop-tests (Status): New section.
30978         * modules/idpriv-droptemp-tests (Status): New section.
30979
30980 2010-03-28  Bruno Haible  <bruno@clisp.org>
30981
30982         Split C++ tests into separate tests modules.
30983         * modules/dirent-c++-tests: New file, extracted from
30984         modules/dirent-tests.
30985         * modules/dirent-tests: Depend on it.
30986         * modules/fcntl-h-c++-tests: New file, extracted from
30987         modules/fcntl-h-tests.
30988         * modules/fcntl-h-tests: Depend on it.
30989         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30990         * modules/glob-tests: Depend on it.
30991         * modules/iconv-h-c++-tests: New file, extracted from
30992         modules/iconv-h-tests.
30993         * modules/iconv-h-tests: Depend on it.
30994         * modules/langinfo-c++-tests: New file, extracted from
30995         modules/langinfo-tests.
30996         * modules/langinfo-tests: Depend on it.
30997         * modules/locale-c++-tests: New file, extracted from
30998         modules/locale-tests.
30999         * modules/locale-tests: Depend on it.
31000         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31001         * modules/math-tests: Depend on it.
31002         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31003         * modules/pty-tests: Depend on it.
31004         * modules/search-c++-tests: New file, extracted from
31005         modules/search-tests.
31006         * modules/search-tests: Depend on it.
31007         * modules/signal-c++-tests: New file, extracted from
31008         modules/signal-tests.
31009         * modules/signal-tests: Depend on it.
31010         * modules/spawn-c++-tests: New file, extracted from
31011         modules/spawn-tests.
31012         * modules/spawn-tests: Depend on it.
31013         * modules/stdio-c++-tests: New file, extracted from
31014         modules/stdio-tests.
31015         * modules/stdio-tests: Depend on it.
31016         * modules/stdlib-c++-tests: New file, extracted from
31017         modules/stdlib-tests.
31018         * modules/stdlib-tests: Depend on it.
31019         * modules/string-c++-tests: New file, extracted from
31020         modules/string-tests.
31021         * modules/string-tests: Depend on it.
31022         * modules/sys_ioctl-c++-tests: New file, extracted from
31023         modules/sys_ioctl-tests.
31024         * modules/sys_ioctl-tests: Depend on it.
31025         * modules/sys_select-c++-tests: New file, extracted from
31026         modules/sys_select-tests.
31027         * modules/sys_select-tests: Depend on it.
31028         * modules/sys_socket-c++-tests: New file, extracted from
31029         modules/sys_socket-tests.
31030         * modules/sys_socket-tests: Depend on it.
31031         * modules/sys_stat-c++-tests: New file, extracted from
31032         modules/sys_stat-tests.
31033         * modules/sys_stat-tests: Depend on it.
31034         * modules/sys_time-c++-tests: New file, extracted from
31035         modules/sys_time-tests.
31036         * modules/sys_time-tests: Depend on it.
31037         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31038         * modules/time-tests: Depend on it.
31039         * modules/unistd-c++-tests: New file, extracted from
31040         modules/unistd-tests.
31041         * modules/unistd-tests: Depend on it.
31042         * modules/wchar-c++-tests: New file, extracted from
31043         modules/wchar-tests.
31044         * modules/wchar-tests: Depend on it.
31045         * modules/wctype-c++-tests: New file, extracted from
31046         modules/wctype-tests.
31047         * modules/wctype-tests: Depend on it.
31048         Reported by Simon Josefsson.
31049
31050 2010-03-28  Bruno Haible  <bruno@clisp.org>
31051
31052         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31053         * gnulib-tool (func_exists_module): New function, extracted from
31054         func_verify_module.
31055         (func_verify_module): Use it.
31056         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31057         'foo' only if 'foo' exists.
31058         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31059         module.
31060
31061 2010-03-28  Bruno Haible  <bruno@clisp.org>
31062
31063         gnulib-tool: Add support for special categories of tests.
31064         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31065         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31066         (func_usage): Document them.
31067         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31068         inc_unportable_tests, inc_all_tests): New variables.
31069         (func_acceptable): Consider these variables.
31070         (func_modules_transitive_closure): Make it work when the 'Status' field
31071         consists of multiple words.
31072         (func_import): Store and restore the values of inc_cxx_tests,
31073         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31074         inc_all_tests in gnulib-comp.m4.
31075         (func_create_testdir): Set inc_all_tests to true.
31076         * doc/gnulib.texi (Extra tests modules): New section.
31077         Suggested by Jim Meyering.
31078
31079 2010-03-28  Bruno Haible  <bruno@clisp.org>
31080
31081         ansi-c++-opt: Allow turning off the C++ build by default.
31082         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31083         gl_CXX_CHOICE_DEFAULT_NO is defined.
31084         Requested by Eric Blake.
31085
31086 2010-03-28  Bruno Haible  <bruno@clisp.org>
31087
31088         unistd: Avoid #define replacements in C++ mode.
31089         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31090         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31091         setsockopt, shutdown, select): In C++, attach a warning to the function
31092         if possible, rather than #defining the symbol to a dysfunctional alias.
31093         Reported by John W. Eaton <jwe@gnu.org>.
31094
31095 2010-03-28  Bruno Haible  <bruno@clisp.org>
31096
31097         Fix link errors on mingw.
31098         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31099         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31100         $(LIBSOCKET).
31101         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31102         $(LIBSOCKET).
31103
31104 2010-03-28  Bruno Haible  <bruno@clisp.org>
31105             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31106
31107         lib-ignore: Determine different options for different compilers.
31108         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31109         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31110         Add comments.
31111         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31112         * NEWS: Mention the change.
31113
31114 2010-03-27  Bruno Haible  <bruno@clisp.org>
31115
31116         Remove unused GNULIB_XYZ macro definitions.
31117         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31118         * modules/fseek (configure.ac): Likewise.
31119         * modules/ioctl (configure.ac): Likewise.
31120         * modules/open (configure.ac): Likewise.
31121         * modules/stdlib-safer (configure.ac): Likewise.
31122
31123 2010-03-27  Bruno Haible  <bruno@clisp.org>
31124
31125         Add a remark about certain modules.
31126         * modules/malloc (Comment): New section.
31127         * modules/realloc (Comment): Likewise.
31128         * modules/sigpipe (Comment): Likewise.
31129
31130 2010-03-27  Bruno Haible  <bruno@clisp.org>
31131
31132         Resolve conflict between the two kinds of module indicators.
31133         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31134         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31135         * modules/canonicalize (configure.ac): Invoke
31136         gl_MODULE_INDICATOR_FOR_TESTS.
31137         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31138         GNULIB_XYZ.
31139         * tests/test-dirent-c++.cc: Likewise.
31140         * tests/test-dirent-safer.c: Likewise.
31141         * tests/test-dup2.c: Likewise.
31142         * tests/test-fchdir.c: Likewise.
31143         * tests/test-fcntl-h-c++.cc: Likewise.
31144         * tests/test-getopt.c: Likewise.
31145         * tests/test-getopt.h: Likewise.
31146         * tests/test-langinfo-c++.cc: Likewise.
31147         * tests/test-locale-c++.cc: Likewise.
31148         * tests/test-math-c++.cc: Likewise.
31149         * tests/test-pty-c++.cc: Likewise.
31150         * tests/test-search-c++.cc: Likewise.
31151         * tests/test-signal-c++.cc: Likewise.
31152         * tests/test-spawn-c++.cc: Likewise.
31153         * tests/test-stdio-c++.cc: Likewise.
31154         * tests/test-stdlib-c++.cc: Likewise.
31155         * tests/test-string-c++.cc: Likewise.
31156         * tests/test-sys_ioctl-c++.cc: Likewise.
31157         * tests/test-sys_select-c++.cc: Likewise.
31158         * tests/test-sys_socket-c++.cc: Likewise.
31159         * tests/test-sys_stat-c++.cc: Likewise.
31160         * tests/test-sys_time-c++.cc: Likewise.
31161         * tests/test-time-c++.cc: Likewise.
31162         * tests/test-unistd-c++.cc: Likewise.
31163         * tests/test-wchar-c++.cc: Likewise.
31164         * tests/uninorm/test-u8-nfc.c: Likewise.
31165         * tests/uninorm/test-u8-nfd.c: Likewise.
31166         * tests/uninorm/test-u8-nfkc.c: Likewise.
31167         * tests/uninorm/test-u8-nfkd.c: Likewise.
31168         * tests/uninorm/test-u16-nfc.c: Likewise.
31169         * tests/uninorm/test-u16-nfd.c: Likewise.
31170         * tests/uninorm/test-u16-nfkc.c: Likewise.
31171         * tests/uninorm/test-u16-nfkd.c: Likewise.
31172         * tests/uninorm/test-u32-nfc.c: Likewise.
31173         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31174         * tests/uninorm/test-u32-nfd.c: Likewise.
31175         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31176         * tests/uninorm/test-u32-nfkc.c: Likewise.
31177         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31178         * tests/uninorm/test-u32-nfkd.c: Likewise.
31179         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31180         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31181
31182 2010-03-27  Bruno Haible  <bruno@clisp.org>
31183
31184         Distinguish two kinds of module indicators.
31185         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31186         gl_MODULE_INDICATOR.
31187         (gl_MODULE_INDICATOR): New macro.
31188         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31189         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31190         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31191         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31192         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31193         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31194         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31195         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31196         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31197         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31198         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31199         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31200         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31201         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31202         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31203         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31204         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31205         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31206         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31207         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31208         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31209         * modules/cloexec (configure.ac): Likewise.
31210         * modules/getopt-gnu (configure.ac): Likewise.
31211         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31212         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31213         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31214         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31215
31216 2010-03-27  Bruno Haible  <bruno@clisp.org>
31217
31218         New module description field 'Comment'.
31219         * gnulib-tool: New option --extract-comment.
31220         (func_usage): Document it.
31221         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31222         (func_get_comment): New function.
31223         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31224
31225 2010-03-27  Bruno Haible  <bruno@clisp.org>
31226
31227         Addendum to 2010-02-07 commit.
31228         * gnulib-tool (func_usage): Document --extract-applicability option.
31229
31230 2010-03-27  Bruno Haible  <bruno@clisp.org>
31231
31232         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31233         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31234         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31235         rather than link errors.
31236
31237 2010-03-27  Bruno Haible  <bruno@clisp.org>
31238
31239         Avoid side effects from tests-related modules on the compilation of lib.
31240         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31241         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31242         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31243         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31244         macro.
31245         (func_import): Define a witness macro. Assign it a value that depends
31246         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31247         tests-related modules.
31248         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31249         Reported by Jim Meyering.
31250
31251 2010-03-27  Bruno Haible  <bruno@clisp.org>
31252
31253         Factorize common .m4 code.
31254         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31255         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31256         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31257         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31258         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31259         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31260         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31261         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31262         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31263         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31264         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31265         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31266         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31267         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31268         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31269         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31270         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31271         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31272         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31273         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31274         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31275         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31276         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31277         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31278         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31279         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31280         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31281         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31282         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31283         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31284         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31285         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31286
31287 2010-03-27  Bruno Haible  <bruno@clisp.org>
31288
31289         Fix a compilation error on Cygwin with g++ >= 4.3.
31290         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31291         if it is undefined or if we alias it to chmod.
31292         (lstat): Don't warn about the use of this function if it is undefined
31293         or if we alias it to stat.
31294         Reported by Simon Josefsson.
31295
31296 2010-03-27  Bruno Haible  <bruno@clisp.org>
31297
31298         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31299         * modules/getlogin (configure.ac): Update.
31300
31301         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31302         * modules/getlogin_r (configure.ac): Update.
31303
31304         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31305         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31306         * modules/inet_ntop (configure.ac): Update.
31307
31308         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31309         * modules/inet_pton (configure.ac): Update.
31310
31311         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31312         * modules/mbslen (configure.ac): Update.
31313
31314         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31315         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31316         * modules/forkpty (configure.ac): Update.
31317         * modules/openpty (configure.ac): Update.
31318
31319 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31320
31321         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31322         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31323
31324 2010-03-25  Eric Blake  <eblake@redhat.com>
31325
31326         maint: use pragma consistently across replacement headers
31327         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31328         * lib/dirent.in.h (system_header): Likewise.
31329         * lib/errno.in.h (system_header): Likewise.
31330         * lib/float.in.h (system_header): Likewise.
31331         * lib/getopt.in.h (system_header): Likewise.
31332         * lib/iconv.in.h (system_header): Likewise.
31333         * lib/inttypes.in.h (system_header): Likewise.
31334         * lib/langinfo.in.h (system_header): Likewise.
31335         * lib/locale.in.h (system_header): Likewise.
31336         * lib/math.in.h (system_header): Likewise.
31337         * lib/netdb.in.h (system_header): Likewise.
31338         * lib/netinet_in.in.h (system_header): Likewise.
31339         * lib/pty.in.h (system_header): Likewise.
31340         * lib/sched.in.h (system_header): Likewise.
31341         * lib/se-selinux.in.h (system_header): Likewise.
31342         * lib/search.in.h (system_header): Likewise.
31343         * lib/spawn.in.h (system_header): Likewise.
31344         * lib/stdarg.in.h (system_header): Likewise.
31345         * lib/stdint.in.h (system_header): Likewise.
31346         * lib/string.in.h (system_header): Likewise.
31347         * lib/strings.in.h (system_header): Likewise.
31348         * lib/sys_file.in.h (system_header): Likewise.
31349         * lib/sys_ioctl.in.h (system_header): Likewise.
31350         * lib/sys_socket.in.h (system_header): Likewise.
31351         * lib/sys_times.in.h (system_header): Likewise.
31352         * lib/sys_utsname.in.h (system_header): Likewise.
31353         * lib/sys_wait.in.h (system_header): Likewise.
31354         * lib/sysexits.in.h (system_header): Likewise.
31355         * lib/unistd.in.h (system_header): Likewise.
31356         * lib/wctype.in.h (system_header): Likewise.
31357
31358         arpa/inet: fix mingw compilation warning
31359         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31360         Reported by Matthew Bolte.
31361
31362 2010-03-25  Bruno Haible  <bruno@clisp.org>
31363
31364         Avoid collision between gnulib wrapper and libintl wrapper.
31365         * lib/printf.c (printf): Don't define if a printf wrapper is already
31366         defined in intl/printf.c.
31367         Reported by Michel Boaventura <michel@michelboaventura.com>.
31368
31369 2010-03-25  Bruno Haible  <bruno@clisp.org>
31370
31371         Use ANSI C.
31372         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31373
31374 2010-03-25  Bruno Haible  <bruno@clisp.org>
31375
31376         Minor formatting changes.
31377         * lib/acosl.c: Insert space before function argument list.
31378         * lib/argz.c: Likewise.
31379         * lib/asinl.c: Likewise.
31380         * lib/expl.c: Likewise.
31381         * lib/gen-uni-tables.c: Likewise.
31382         * lib/gettext.h: Likewise.
31383         * lib/glthread/lock.h: Likewise.
31384         * lib/tanl.c: Likewise.
31385         * lib/uniname/uniname.c: Likewise.
31386         * tests/test-idpriv-drop.c: Likewise.
31387         * tests/test-idpriv-droptemp.c: Likewise.
31388         * tests/test-lock.c: Likewise.
31389         * tests/test-tls.c: Likewise.
31390         * lib/argp-help.c: Insert space before function-like macro argument
31391         list.
31392         * lib/memcmp.c: Likewise.
31393         * tests/test-base64.c: Likewise.
31394         * lib/localename.c: Insert space before sizeof's argument list.
31395         * lib/safe-alloc.h: Likewise.
31396         * lib/file-set.h: Insert space before macro argument list.
31397         * tests/test-argp.c: Likewise.
31398         * lib/argp-namefrob.h: Insert space before function parameter list.
31399         * lib/getaddrinfo.c: Likewise.
31400         * lib/netdb.in.h: Likewise.
31401         * lib/parse-duration.h: Likewise.
31402         * lib/parse-duration.c: Likewise.
31403         * lib/poll.c: Likewise.
31404         * lib/select.c: Likewise.
31405         * lib/trim.h: Likewise.
31406         * tests/test-usleep.c: Likewise.
31407         * lib/ldexpl.c: Insert space before function parameter list and before
31408         function argument list.
31409         * lib/logl.c: Likewise.
31410         * lib/sqrtl.c: Likewise.
31411         * lib/trim.c: Likewise.
31412         * lib/cosl.c: Use GNU style indentation. Insert space before function
31413         argument list.
31414         * lib/sinl.c: Likewise.
31415         * lib/tsearch.c: Insert space after 'for'.
31416         Reported by Jim Meyering.
31417
31418 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31419
31420         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31421         config header before grepping, as it's not present before
31422         autoreconf/configure are run.  Reported by Simon Josefsson.
31423
31424 2010-03-23  Bruno Haible  <bruno@clisp.org>
31425
31426         pt_chown: Make it work with automake < 1.11.
31427         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31428         Reported by Simon Josefsson.
31429
31430 2010-03-23  Bruno Haible  <bruno@clisp.org>
31431
31432         pt_chown: Don't depend on GPLed modules.
31433         * lib/pt_chown.c: Don't include idpriv.h.
31434         (main): Don't drop privileges.
31435         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31436         Reported by Simon Josefsson.
31437
31438 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31439
31440         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31441         suggestions from karl@freefriends.org (Karl Berry).
31442
31443 2010-03-22  Eric Blake  <eblake@redhat.com>
31444
31445         gethostname: further tweaks
31446         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31447         are overriding gethostname.
31448         Suggested by Bruno Haible.
31449
31450 2010-03-21  Bruno Haible  <bruno@clisp.org>
31451
31452         Fix comments.
31453         * lib/forkpty.c (rpl_forkpty): Fix comment.
31454         * lib/openpty.c (rpl_openpty): Likewise.
31455         Reported by Eric Blake.
31456
31457 2010-03-22  Eric Blake  <eblake@redhat.com>
31458
31459         gethostname: fix build on mingw
31460         * lib/unistd.in.h (includes): Work around fact that mingw
31461         <winsock2.h> re-includes <unistd.h>, by avoiding any
31462         redeclarations if we are being included by <winsock2.h>.
31463         Reported by Matthias Bolte.
31464
31465 2010-03-21  Bruno Haible  <bruno@clisp.org>
31466
31467         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31468         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31469         modifications.
31470         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31471         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31472         provide the replacement.
31473         * modules/forkpty (Depends-on): Add openpty, login_tty.
31474         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31475         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31476         * doc/glibc-functions/forkpty.texi: More supported platforms.
31477         * config/srclist.txt: Add forkpty.c (commented).
31478
31479 2010-03-21  Bruno Haible  <bruno@clisp.org>
31480
31481         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31482         (Makefile.am): Verify that PTY_LIB is defined.
31483
31484         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31485
31486 2010-03-21  Bruno Haible  <bruno@clisp.org>
31487
31488         Tests for module 'login_tty'.
31489         * modules/login_tty-tests: New file.
31490         * tests/test-login_tty.c: New file.
31491
31492         New module 'login_tty'.
31493         * lib/login_tty.c: New file.
31494         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31495         * modules/login_tty: New file.
31496         * doc/glibc-functions/login_tty.texi: Mention the new module.
31497
31498 2010-03-21  Bruno Haible  <bruno@clisp.org>
31499
31500         login_tty: Documentation.
31501         * doc/glibc-functions/login_tty.texi: New file.
31502         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31503
31504 2010-03-21  Bruno Haible  <bruno@clisp.org>
31505
31506         pty: Consistent macro naming.
31507         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31508         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31509         * modules/pty (configure.ac): Update.
31510
31511 2010-03-21  Bruno Haible  <bruno@clisp.org>
31512
31513         Tests for openpty: Make stricter.
31514         * tests/test-openpty.c (main): Add test of canonical processing and
31515         erase.
31516         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31517
31518         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31519         * lib/openpty.c (openpty): New replacement function.
31520         * lib/pty.in.h: Include <termios.h>.
31521         (openpty): Update declaration. Add comments.
31522         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31523         is not declared, arrange to provide the replacement. Check for _getpty
31524         and posix_openpt.
31525         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31526         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31527         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31528         * modules/pty-tests (test_pty_c___LDADD): New variable.
31529         * doc/glibc-functions/openpty.texi: More supported platforms.
31530
31531 2010-03-21  Bruno Haible  <bruno@clisp.org>
31532
31533         setenv: Tweaks.
31534         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31535         the test program.
31536         * doc/posix-functions/setenv.texi: Update platforms list.
31537
31538 2010-03-21  Bruno Haible  <bruno@clisp.org>
31539
31540         New module 'unlockpt'.
31541         * lib/unlockpt.c: New file, from glibc with modifications.
31542         * m4/unlockpt.m4: New file.
31543         * modules/unlockpt: New file.
31544         * lib/stdlib.in.h (unlockpt): New declaration.
31545         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31546         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31547         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31548         HAVE_UNLOCKPT.
31549         * doc/posix-functions/unlockpt.texi: Mention the new module.
31550         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31551         * config/srclist.txt: Add unlockpt.c (commented).
31552
31553 2010-03-21  Jim Meyering  <meyering@redhat.com>
31554
31555         maint.mk: prohibit inclusion of "intprops.h" without use
31556         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31557
31558 2010-03-21  Bruno Haible  <bruno@clisp.org>
31559
31560         New module 'grantpt'.
31561         * lib/grantpt.c: New file, from glibc with modifications.
31562         * m4/grantpt.m4: New file.
31563         * modules/grantpt: New file.
31564         * lib/stdlib.in.h (grantpt): New declaration.
31565         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31566         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31567         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31568         HAVE_GRANTPT.
31569         * doc/posix-functions/grantpt.texi: Mention the new module.
31570         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31571         * config/srclist.txt: Add grantpt.c (commented).
31572
31573 2010-03-21  Bruno Haible  <bruno@clisp.org>
31574
31575         New module 'pt_chown'.
31576         * lib/pt_chown.c: New file, from glibc with modifications.
31577         * lib/pty-private.h: New file, from glibc with modifications.
31578         * modules/pt_chown: New file.
31579         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31580
31581 2010-03-21  Bruno Haible  <bruno@clisp.org>
31582
31583         Tests for module 'ptsname'.
31584         * modules/ptsname-tests: New file.
31585         * tests/test-ptsname.c: New file.
31586
31587         New module 'ptsname'.
31588         * lib/ptsname.c: New file, from glibc with modifications.
31589         * m4/ptsname.m4: New file.
31590         * modules/ptsname: New file.
31591         * lib/stdlib.in.h (ptsname): New declaration.
31592         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31593         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31594         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31595         HAVE_PTSNAME.
31596         * doc/posix-functions/ptsname.texi: Mention the new module.
31597         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31598         * config/srclist.txt: Add ptsname.c (commented).
31599
31600 2010-03-21  Bruno Haible  <bruno@clisp.org>
31601
31602         Tests for module 'ttyname_r'.
31603         * modules/ttyname_r-tests: New file.
31604         * tests/test-ttyname_r.c: New file.
31605
31606         New module 'ttyname_r'.
31607         * lib/ttyname_r.c: New file.
31608         * m4/ttyname_r.m4: New file.
31609         * modules/ttyname_r: New file.
31610         * lib/unistd.in.h (ttyname_r): New declaration.
31611         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31612         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31613         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31614         HAVE_TTYNAME_R.
31615         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31616         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31617
31618 2010-03-20  Bruno Haible  <bruno@clisp.org>
31619
31620         signal: Undefine macro definitions in C++ mode.
31621         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31622         sigfillset): Undefine macro definitions from the system header in C++
31623         mode.
31624         Reported by John W. Eaton <jwe@gnu.org>.
31625
31626 2010-03-20  Bruno Haible  <bruno@clisp.org>
31627
31628         Ensure no #include statements inside extern "C" { ... }.
31629         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31630         contain #include statements.
31631         * lib/time.in.h: Likewise.
31632
31633 2010-03-20  Bruno Haible  <bruno@clisp.org>
31634
31635         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31636         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31637         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31638         Reported by John W. Eaton <jwe@gnu.org>.
31639
31640 2010-03-20  Bruno Haible  <bruno@clisp.org>
31641
31642         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31643         Reported by Jim Meyering.
31644
31645 2010-03-20  Bruno Haible  <bruno@clisp.org>
31646
31647         pipe: Set errno upon failure.
31648         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31649         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31650         errno value in error message.
31651
31652 2010-03-20  Bruno Haible  <bruno@clisp.org>
31653             Jim Meyering  <meyering@redhat.com>
31654
31655         lchown: Avoid "unused variable" warning.
31656         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31657
31658 2010-03-20  Bruno Haible  <bruno@clisp.org>
31659
31660         Work around unlink() bug on MacOS X 10.5.6.
31661         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31662         attempting to unlink a parent directory.
31663         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31664         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31665         activate for the replacement function.
31666         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31667
31668 2010-03-20  Bruno Haible  <bruno@clisp.org>
31669
31670         Fix link errors on Solaris 8.
31671         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31672         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31673
31674 2010-03-19  Jim Meyering  <meyering@redhat.com>
31675
31676         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31677         The _LIBC implementation of build_range_exp correctly honors the
31678         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31679         However, the non-_LIBC implementation would ignore that syntax-bit
31680         flag and return REG_ERANGE unconditionally.
31681         This change makes it honor that flag.
31682         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31683         Make two pointer parameters "const".
31684         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31685         (parse_bracket_exp): Update caller.
31686
31687         regex.m4: correct the reversed range endpoint ([b-a]) test
31688         * m4/regex.m4: When requiring that [b-a] evoke failure,
31689         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31690         test pass once again for x86-based systems.
31691
31692 2010-03-19  Bruno Haible  <bruno@clisp.org>
31693
31694         scandir: Fix link error on Solaris 8.
31695         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31696         macros.
31697
31698 2010-03-19  Bruno Haible  <bruno@clisp.org>
31699
31700         getusershell: Fix documentation.
31701         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31702         module.
31703         * doc/glibc-functions/setusershell.texi: Likewise.
31704
31705         getusershell: Provide declaration, missing on Solaris 9.
31706         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31707         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31708         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31709         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31711         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31712         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31713         HAVE_GETUSERSHELL.
31714         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31715
31716 2010-03-19  Bruno Haible  <bruno@clisp.org>
31717
31718         wctype: Provide iswblank function.
31719         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31720         exists and is fine.
31721         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31722         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31723         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31724         * doc/posix-functions/iswblank.texi: Update.
31725
31726 2010-03-19  Bruno Haible  <bruno@clisp.org>
31727
31728         Tests of module 'pty' in C++ mode.
31729         * modules/pty-tests: New file.
31730         * tests/test-pty-c++.cc: New file.
31731         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31732
31733 2010-03-19  Eric Blake  <eblake@redhat.com>
31734
31735         logb: fix documentation
31736         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31737         1.5 declaration bug.
31738
31739         forkpty, openpty: prefer glibc's const-safe prototype
31740         * lib/forkpty.c (rpl_forkpty): New file.
31741         * lib/openpty.c (rpl_openpty): Likewise.
31742         * modules/forkpty (Files): Distribute it.
31743         * modules/openpty (Files): Likewise.
31744         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31745         check...
31746         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31747         replacement for for non-const BSD signature.
31748         * modules/pty (Makefile.am): Substitute witnesses.
31749         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31750         * tests/test-forkpty.c: Update signature check.
31751         * tests/test-openpty.c: Likewise.
31752         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31753         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31754
31755         forkpty, openpty: split functions into new modules
31756         * modules/pty (Makefile.am): Substitute new witnesses.
31757         (Libraries): Move library detection...
31758         * modules/forkpty: ...into new module.
31759         * modules/openpty: Another new module.
31760         * modules/pty-tests: Rename and split...
31761         * modules/forkpty-tests: ...to this...
31762         * modules/openpty-tests: ...and this.
31763         * tests/test-pty.c: Rename and split...
31764         * tests/test-forkpty.c: ...to this...
31765         * tests/test-openpty.c: ...and this.
31766         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31767         (gl_PTY): Split library searching...
31768         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31769         (gl_FORKPTY, gl_OPENPTY): New macros.
31770         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31771         * NEWS: Mention the split.
31772         * MODULES.html.sh (Misc): Document the modules.
31773         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31774         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31775
31776         pty: improve replacement header
31777         * lib/pty.in.h: New file.
31778         * modules/pty (Files): Ship it.
31779         (Makefile.am): Always build replacement.
31780         * m4/pty.m4: Rename...
31781         * m4/pty_h.m4: ...to this.
31782         (gl_PTY): Modernize setting of witness macros; update check of
31783         forkpty to take proper advantage of cache.
31784         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31785
31786         getopt: avoid compiler warning
31787         * lib/getopt.c (attribute_hidden): Remove unused macro.
31788
31789 2010-03-18  Bruno Haible  <bruno@clisp.org>
31790
31791         Fix link errors on Solaris 8.
31792         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31793         * modules/search-tests (test_search_c___LDADD): Likewise.
31794         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31795         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31796         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31797         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31798         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31799         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31800         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31801
31802 2010-03-18  Bruno Haible  <bruno@clisp.org>
31803
31804         Fix bug introduced on 2010-03-14.
31805         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31806         (gl_SPAWN_H): Require it.
31807         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31808         Reported by Simon Josefsson.
31809
31810 2010-03-18  Bruno Haible  <bruno@clisp.org>
31811
31812         Fix typo introduced on 2009-12-31.
31813         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31814         posix_spawn_file_actions_adddup2.
31815
31816 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31817         and Eric Blake  <eblake@redhat.com>
31818
31819         test-vc-list-files-git: make more robust
31820         * tests/test-vc-list-files-git.sh: Unset problematic environment
31821         variables.  Chain commands together.
31822
31823 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31824
31825         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31826         `AC_CHECK_DECL' invocation.
31827
31828 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31829
31830         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31831         appears before executable statements. Suggested by Petr Sumbera
31832         <Petr.Sumbera@Sun.COM>.
31833
31834 2010-03-14  Bruno Haible  <bruno@clisp.org>
31835
31836         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31837         portability problems. Instead use a simpler test.
31838         (main): Check that invalid arguments are rejected only on Linux.
31839
31840 2010-03-14  Bruno Haible  <bruno@clisp.org>
31841
31842         Fix bug introduced on 2009-12-31.
31843         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31844         gl_PREREQ_SYS_H_WINSOCK2 always.
31845         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31846         SYS_SOCKET_H variable.
31847         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31848         Update comments.
31849         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31850         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31851         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31852         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31853         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31854
31855 2010-03-14  Bruno Haible  <bruno@clisp.org>
31856
31857         Fix values returned by sinl, cosl.
31858         * lib/trigl.h: Add specification comments.
31859         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31860         that combines the values from the precomputed table with the values of
31861         the Chebyshev polynomials.
31862
31863 2010-03-14  Bruno Haible  <bruno@clisp.org>
31864
31865         Fix compilation error when modules 'posix_spawn[p]' are not used.
31866         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31867         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31868
31869 2010-03-14  Bruno Haible  <bruno@clisp.org>
31870
31871         Fix compilation error on mingw when module 'time_r' is not used.
31872         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31873         is 1.
31874         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31875         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31876         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31877         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31878
31879 2010-03-14  Bruno Haible  <bruno@clisp.org>
31880
31881         Fix compilation error with Sun C.
31882         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31883         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31884         instead of GCC specific ULONG_LONG_MAX.
31885         * lib/xstrtoll.c: Likewise.
31886         * lib/xstrtoull.c: Likewise.
31887
31888 2010-03-13  Bruno Haible  <bruno@clisp.org>
31889
31890         Allow the user to disable C++ code and tests.
31891         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31892         (gl_PROG_ANSI_CXX): Require it.
31893
31894 2010-03-13  Bruno Haible  <bruno@clisp.org>
31895
31896         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31897         cases.
31898
31899 2010-03-13  Bruno Haible  <bruno@clisp.org>
31900
31901         Test that gnulib does not break the standard C++ headers.
31902         * tests/test-locale-c++2.cc: New file.
31903         * modules/locale-tests (Files): Add it.
31904         (Makefile.am): Compile it for test-locale-c++.
31905         * tests/test-math-c++2.cc: New file.
31906         * modules/math-tests (Files): Add it.
31907         (Makefile.am): Compile it for test-math-c++.
31908         * tests/test-signal-c++2.cc: New file.
31909         * modules/signal-tests (Files): Add it.
31910         (Makefile.am): Compile it for test-signal-c++.
31911         * tests/test-stdio-c++2.cc: New file.
31912         * modules/stdio-tests (Files): Add it.
31913         (Makefile.am): Compile it for test-stdio-c++.
31914         * tests/test-stdlib-c++2.cc: New file.
31915         * modules/stdlib-tests (Files): Add it.
31916         (Makefile.am): Compile it for test-stdlib-c++.
31917         * tests/test-string-c++2.cc: New file.
31918         * modules/string-tests (Files): Add it.
31919         (Makefile.am): Compile it for test-string-c++.
31920         * tests/test-time-c++2.cc: New file.
31921         * modules/time-tests (Files): Add it.
31922         (Makefile.am): Compile it for test-time-c++.
31923         Reported by John W. Eaton <jwe@gnu.org>.
31924
31925 2010-03-13  Bruno Haible  <bruno@clisp.org>
31926
31927         * gnulib-tool (func_usage): Clarify which options are available for
31928         --create-testdir and --create-megatestdir.
31929
31930 2010-03-13  Bruno Haible  <bruno@clisp.org>
31931
31932         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31933         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31934         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31935         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31936         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31937         when appropriate.
31938         Reported by Jim Meyering.
31939
31940 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31941
31942         * gnulib-tool (func_import): Explain origin of code.
31943
31944 2010-03-12  Bruno Haible  <bruno@clisp.org>
31945
31946         Fix problem with automake's definition of CXXLINK.
31947         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31948         Reported by Simon Josefsson and Ludovic Courtès.
31949
31950 2010-03-12  Bruno Haible  <bruno@clisp.org>
31951
31952         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31953         stable releases.
31954
31955 2010-03-11  Bruno Haible  <bruno@clisp.org>
31956
31957         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31958         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31959         whether the system provides one variant or multiple variants of the
31960         function.
31961         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31962         C++ compilers.
31963         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31964         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31965         Reported by Jim Meyering.
31966
31967 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31968
31969         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31970
31971 2010-03-08  Bruno Haible  <bruno@clisp.org>
31972
31973         gnulib-tool: Add support for --libtool in --create-testdir.
31974         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31975         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31976
31977 2010-03-08  Eric Blake  <eblake@redhat.com>
31978
31979         gnulib-tool.texi: mention possibility of git submodule
31980         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31981         submodules.
31982         * doc/.gitignore: Ignore another generated file.
31983
31984 2010-03-08  Karl Berry  <karl@gnu.org>
31985
31986         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31987         of committing gnulib files while skipping others.
31988
31989 2010-03-07  Bruno Haible  <bruno@clisp.org>
31990
31991         Tests of module 'wctype' in C++ mode.
31992         * tests/test-wctype-c++.cc: New file.
31993         * modules/wctype-tests (Files): Add it and tests/signature.h.
31994         (Depends-on): Add ansi-c++-opt.
31995         (Makefile.am): Arrange to compile and run test-wctype-c++.
31996
31997         Tests of module 'wchar' in C++ mode.
31998         * tests/test-wchar-c++.cc: New file.
31999         * modules/wchar-tests (Files): Add it and tests/signature.h.
32000         (Depends-on): Add ansi-c++-opt.
32001         (Makefile.am): Arrange to compile and run test-wchar-c++.
32002         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32003         gl_MODULE_INDICATOR.
32004
32005         Tests of module 'unistd' in C++ mode.
32006         * tests/test-unistd-c++.cc: New file.
32007         * modules/unistd-tests (Files): Add it and tests/signature.h.
32008         (Depends-on): Add ansi-c++-opt.
32009         (Makefile.am): Arrange to compile and run test-unistd-c++.
32010         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32011         gl_MODULE_INDICATOR.
32012
32013         Tests of module 'time' in C++ mode.
32014         * tests/test-time-c++.cc: New file.
32015         * modules/time-tests (Files): Add it and tests/signature.h.
32016         (Depends-on): Add ansi-c++-opt.
32017         (Makefile.am): Arrange to compile and run test-time-c++.
32018         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32019
32020         Tests of module 'sys_time' in C++ mode.
32021         * tests/test-sys_time-c++.cc: New file.
32022         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32023         (Depends-on): Add ansi-c++-opt.
32024         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32025         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32026         gl_MODULE_INDICATOR.
32027
32028         Tests of module 'sys_stat' in C++ mode.
32029         * tests/test-sys_stat-c++.cc: New file.
32030         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32031         (Depends-on): Add ansi-c++-opt.
32032         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32033         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32034         gl_MODULE_INDICATOR.
32035
32036         Tests of module 'sys_socket' in C++ mode.
32037         * tests/test-sys_socket-c++.cc: New file.
32038         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32039         (Depends-on): Add ansi-c++-opt.
32040         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32041         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32042         gl_MODULE_INDICATOR.
32043
32044         Tests of module 'sys_select' in C++ mode.
32045         * tests/test-sys_select-c++.cc: New file.
32046         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32047         (Depends-on): Add ansi-c++-opt.
32048         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32049         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32050         gl_MODULE_INDICATOR.
32051
32052         Tests of module 'sys_ioctl' in C++ mode.
32053         * tests/test-sys_ioctl-c++.cc: New file.
32054         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32055         (Depends-on): Add ansi-c++-opt.
32056         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32057         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32058         gl_MODULE_INDICATOR.
32059
32060         Tests of module 'string' in C++ mode.
32061         * tests/test-string-c++.cc: New file.
32062         * modules/string-tests (Files): Add it and tests/signature.h.
32063         (Depends-on): Add ansi-c++-opt.
32064         (Makefile.am): Arrange to compile and run test-string-c++.
32065         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32066         gl_MODULE_INDICATOR.
32067
32068         Tests of module 'stdlib' in C++ mode.
32069         * tests/test-stdlib-c++.cc: New file.
32070         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32071         (Depends-on): Add ansi-c++-opt.
32072         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32073         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32074         gl_MODULE_INDICATOR.
32075
32076         Tests of module 'stdio' in C++ mode.
32077         * tests/test-stdio-c++.cc: New file.
32078         * modules/stdio-tests (Files): Add it and tests/signature.h.
32079         (Depends-on): Add ansi-c++-opt.
32080         (Makefile.am): Arrange to compile and run test-stdio-c++.
32081         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32082         gl_MODULE_INDICATOR.
32083
32084         Tests of module 'spawn' in C++ mode.
32085         * tests/test-spawn-c++.cc: New file.
32086         * modules/spawn-tests (Files): Add it and tests/signature.h.
32087         (Depends-on): Add ansi-c++-opt.
32088         (Makefile.am): Arrange to compile and run test-spawn-c++.
32089         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32090         gl_MODULE_INDICATOR.
32091
32092         Tests of module 'signal' in C++ mode.
32093         * tests/test-signal-c++.cc: New file.
32094         * modules/signal-tests (Files): Add it and tests/signature.h.
32095         (Depends-on): Add ansi-c++-opt.
32096         (Makefile.am): Arrange to compile and run test-signal-c++.
32097         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32098         gl_MODULE_INDICATOR.
32099
32100         Tests of module 'search' in C++ mode.
32101         * tests/test-search-c++.cc: New file.
32102         * modules/search-tests (Files): Add it and tests/signature.h.
32103         (Depends-on): Add ansi-c++-opt.
32104         (Makefile.am): Arrange to compile and run test-search-c++.
32105         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32106         gl_MODULE_INDICATOR.
32107
32108         Tests of module 'math' in C++ mode.
32109         * tests/test-math-c++.cc: New file.
32110         * modules/math-tests (Files): Add it and tests/signature.h.
32111         (Depends-on): Add ansi-c++-opt.
32112         (Makefile.am): Arrange to compile and run test-math-c++.
32113         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32114
32115         Tests of module 'locale' in C++ mode.
32116         * tests/test-locale-c++.cc: New file.
32117         * modules/locale-tests (Files): Add it and tests/signature.h.
32118         (Depends-on): Add ansi-c++-opt.
32119         (Makefile.am): Arrange to compile and run test-locale-c++.
32120         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32121         gl_MODULE_INDICATOR.
32122
32123         Tests of module 'langinfo' in C++ mode.
32124         * tests/test-langinfo-c++.cc: New file.
32125         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32126         (Depends-on): Add ansi-c++-opt.
32127         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32128         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32129         gl_MODULE_INDICATOR.
32130
32131         Tests of module 'iconv-h' in C++ mode.
32132         * tests/test-iconv-h-c++.cc: New file.
32133         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32134         (Depends-on): Add ansi-c++-opt.
32135         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32136
32137         Tests of module 'glob' in C++ mode.
32138         * tests/test-glob-c++.cc: New file.
32139         * modules/glob-tests (Files): Add it.
32140         (Depends-on): Add ansi-c++-opt.
32141         (Makefile.am): Arrange to compile and run test-glob-c++.
32142
32143         Tests of module 'fcntl-h' in C++ mode.
32144         * tests/test-fcntl-h-c++.cc: New file.
32145         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32146         (Depends-on): Add ansi-c++-opt.
32147         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32148         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32149         gl_MODULE_INDICATOR.
32150
32151         Tests of module 'dirent' in C++ mode.
32152         * tests/test-dirent-c++.cc: New file.
32153         * modules/dirent-tests (Files): Add it and tests/signature.h.
32154         (Depends-on): Add ansi-c++-opt.
32155         (Makefile.am): Arrange to compile and run test-dirent-c++.
32156         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32157         gl_MODULE_INDICATOR.
32158
32159         New module 'ansi-c++-opt'.
32160         * modules/ansi-c++-opt: New file.
32161         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32162
32163         Document C++ namespace mode.
32164         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32165
32166         wctype: Avoid #define replacements in C++ mode.
32167         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32168         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32169         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32170         In C++, define a namespaced alias symbol.
32171         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32172         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32173         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32174         rule.
32175
32176         wchar: Avoid #define replacements in C++ mode.
32177         * lib/wchar.in.h: Include c++defs.h.
32178         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32179         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32180         symbol.
32181         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32182         * modules/wchar (Depends-on): Add c++defs.
32183         (Makefile.am): Update wchar.h rule.
32184
32185         unistd: Avoid #define replacements in C++ mode.
32186         * lib/unistd.in.h: Include c++defs.h.
32187         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32188         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32189         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32190         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32191         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32192         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32193         symbol.
32194         (environ): Update.
32195         * modules/unistd (Depends-on): Add c++defs.
32196         (Makefile.am): Update unistd.h rule.
32197
32198         time: Avoid #define replacements in C++ mode.
32199         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32200         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32201         define a namespaced alias symbol.
32202         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32203         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32204         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32205         * modules/time (Depends-on): Add c++defs, warn-on-use.
32206         (Makefile.am): Update time.h rule.
32207         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32208         * modules/nanosleep (configure.ac): Likewise.
32209         * modules/strptime (configure.ac): Likewise.
32210         * modules/timegm (configure.ac): Likewise.
32211
32212         sys_time: Avoid #define replacements in C++ mode.
32213         * lib/sys_time.in.h: Include c++defs.h.
32214         (gettimeofday): In C++, define a namespaced alias symbol.
32215         * modules/sys_time (Depends-on): Add c++defs.
32216         (Makefile.am): Update sys/time.h rule.
32217
32218         sys_stat: Avoid #define replacements in C++ mode.
32219         * lib/sys_stat.in.h: Include c++defs.h.
32220         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32221         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32222         namespaced alias symbol.
32223         In C++, define a namespaced alias symbol.
32224         * modules/sys_stat (Depends-on): Add c++defs.
32225         (Makefile.am): Update sys/stat.h rule.
32226
32227         sys_socket: Avoid #define replacements in C++ mode.
32228         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32229         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32230         definitions also when the system has a <sys/socket.h>.
32231         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32232         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32233         In C++, define a namespaced alias symbol.
32234         * modules/sys_socket (Depends-on): Add c++defs.
32235         (Makefile.am): Update sys/socket.h rule.
32236
32237         sys_select: Avoid #define replacements in C++ mode.
32238         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32239         definitions also when the system has a <sys/select.h>.
32240         (select): In C++, define a namespaced alias symbol.
32241         * modules/sys_select (Depends-on): Add c++defs.
32242         (Makefile.am): Update sys/select.h rule.
32243
32244         sys_ioctl: Avoid #define replacements in C++ mode.
32245         * lib/sys_ioctl.in.h: Include c++defs.h.
32246         (ioctl): In C++, define a namespaced alias symbol.
32247         * modules/sys_ioctl (Depends-on): Add c++defs.
32248         (Makefile.am): Update sys/ioctl.h rule.
32249
32250         string: Avoid #define replacements in C++ mode.
32251         * lib/string.in.h: Include c++defs.h.
32252         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32253         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32254         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32255         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32256         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32257         * modules/string (Depends-on): Add c++defs.
32258         (Makefile.am): Update string.h rule.
32259
32260         stdlib: Avoid #define replacements in C++ mode.
32261         * lib/stdlib.in.h: Include c++defs.h.
32262         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32263         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32264         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32265         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32266         symbol.
32267         * modules/stdlib (Depends-on): Add c++defs.
32268         (Makefile.am): Update stdlib.h rule.
32269
32270         stdio: Avoid #define replacements in C++ mode.
32271         * lib/stdio.in.h: Include c++defs.h.
32272         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32273         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32274         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32275         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32276         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32277         namespaced alias symbol.
32278         * modules/stdio (Depends-on): Add c++defs.
32279         (Makefile.am): Update stdio.h rule.
32280
32281         spawn: Avoid #define replacements in C++ mode.
32282         * lib/spawn.in.h: Include c++defs.h.
32283         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32284         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32285         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32286         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32287         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32288         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32289         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32290         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32291         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32292         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32293         In C++, define a namespaced alias symbol.
32294         * modules/spawn (Depends-on): Add c++defs.
32295         (Makefile.am): Update spawn.h rule.
32296
32297         signal: Avoid #define replacements in C++ mode.
32298         * lib/signal.in.h: Include c++defs.h.
32299         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32300         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32301         namespaced alias symbol.
32302         * modules/signal (Depends-on): Add c++defs.
32303         (Makefile.am): Update signal.h rule.
32304
32305         search: Avoid #define replacements in C++ mode.
32306         * lib/search.in.h: Include c++defs.h.
32307         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32308         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32309         symbol.
32310         * modules/search (Depends-on): Add c++defs.
32311         (Makefile.am): Update search.h rule.
32312
32313         math: Avoid #define replacements in C++ mode.
32314         * lib/math.in.h: Include c++defs.h.
32315         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32316         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32317         trunc, truncl): In C++, define a namespaced alias symbol.
32318         * modules/math (Depends-on): Add c++defs.
32319         (Makefile.am): Update math.h rule.
32320
32321         locale: Avoid #define replacements in C++ mode.
32322         * lib/locale.in.h: Include c++defs.h.
32323         (duplocale): In C++, define a namespaced alias symbol.
32324         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32325         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32326         * modules/locale (Depends-on): Add c++defs.
32327         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32328
32329         langinfo: Avoid #define replacements in C++ mode.
32330         * lib/langinfo.in.h: Include c++defs.h.
32331         (nl_langinfo): In C++, define a namespaced alias symbol.
32332         * modules/langinfo (Depends-on): Add c++defs.
32333         (Makefile.am): Update langinfo.h rule.
32334
32335         iconv-h: Avoid #define replacements in C++ mode.
32336         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32337         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32338         symbol.
32339         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32340         whenever iconv is present.
32341         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32342         (Makefile.am): Update iconv.h rule.
32343
32344         glob: Avoid #define replacements in C++ mode.
32345         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32346         (_gl_glob_errfunc_fn): New type.
32347         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32348         symbol.
32349         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32350         (Makefile.am): Update glob.h rule.
32351
32352         fcntl-h: Avoid #define replacements in C++ mode.
32353         * lib/fcntl.in.h: Include c++defs.h.
32354         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32355         * modules/fcntl-h (Depends-on): Add c++defs.
32356         (Makefile.am): Update fcntl.h rule.
32357
32358         dirent: Avoid #define replacements in C++ mode.
32359         * lib/dirent.in.h: Include c++defs.h.
32360         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32361         namespaced alias symbol.
32362         (dirfd): Update declaration.
32363         * modules/dirent (Depends-on): Add c++defs.
32364         (Makefile.am): Update dirent.h rule.
32365
32366         ctype: Make it usable in C++ code.
32367         * lib/ctype.in.h: Include c++defs.h.
32368         (isblank): Declare as extern "C".
32369         * modules/ctype (Depends-on): Add c++defs.
32370         (Makefile.am): Update ctype.h rule.
32371
32372         New module 'c++defs'.
32373         * modules/c++defs: New file.
32374         * build-aux/c++defs.h: New file.
32375         Reported by John W. Eaton <jwe@gnu.org>.
32376
32377 2010-03-07  Bruno Haible  <bruno@clisp.org>
32378
32379         logb: Provide missing declaration for Cygwin.
32380         * lib/math.in.h (logb): New declaration.
32381         * m4/logb.m4: New file.
32382         * modules/logb (Files): Add m4/logb.m4.
32383         (Depends-on): Add math.
32384         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32385         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32387         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32388         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32389
32390 2010-03-07  Bruno Haible  <bruno@clisp.org>
32391
32392         Fix test-cond link error.
32393         * tests/test-cond.c: Include <stdio.h>.
32394
32395 2010-03-07  Bruno Haible  <bruno@clisp.org>
32396
32397         Fix test-dirent-safer link error.
32398         * modules/dirent-safer-tests (Makefile.am): Define
32399         test_dirent_safer_LDADD.
32400
32401 2010-03-07  Bruno Haible  <bruno@clisp.org>
32402
32403         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32404         among default module list.
32405
32406 2010-03-07  Bruno Haible  <bruno@clisp.org>
32407
32408         Fix link error on platforms with GNU libiconv.
32409         * modules/unistr/u8-strcoll-tests (Makefile): Define
32410         test_u8_strcoll_LDADD.
32411         * modules/unistr/u16-strcoll-tests (Makefile): Define
32412         test_u16_strcoll_LDADD.
32413         * modules/unistr/u32-strcoll-tests (Makefile): Define
32414         test_u32_strcoll_LDADD.
32415
32416 2010-03-07  Bruno Haible  <bruno@clisp.org>
32417
32418         Use POSIX declarations for socket functions.
32419         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32420         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32421         rpl_sendto): Change declaration to match POSIX.
32422         * lib/connect.c (rpl_connect): Likewise.
32423         * lib/accept.c (rpl_accept): Likewise.
32424         * lib/bind.c (rpl_bind): Likewise.
32425         * lib/getpeername.c (rpl_getpeername): Likewise.
32426         * lib/getsockname.c (rpl_getsockname): Likewise.
32427         * lib/recv.c (rpl_recv): Likewise.
32428         * lib/send.c (rpl_send): Likewise.
32429         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32430         * lib/sendto.c (rpl_sendto): Likewise.
32431
32432 2010-03-06  Bruno Haible  <bruno@clisp.org>
32433
32434         Clarify access, euidaccess, faccessat.
32435         * doc/posix-functions/faccessat.texi: Mention security problem under
32436         "Other problems", not "Portability problems".
32437         * doc/posix-functions/access.texi: Likewise. Mention a related security
32438         problem.
32439         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32440         * lib/euidaccess.c: Add comments about platforms.
32441         * lib/unistd.in.h (access, euidaccess): Add warnings.
32442
32443 2010-03-07  Bruno Haible  <bruno@clisp.org>
32444
32445         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32446         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32447         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32448         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32449         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32450         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32451         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32452         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32453         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32454         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32455         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32456         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32457         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32458         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32459         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32460         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32461         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32462         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32463         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32464         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32465         Likewise.
32466         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32467         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32468         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32469         Likewise.
32470         * tests/test-spawn.c (main): Make it work when
32471         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32472
32473 2010-03-07  Bruno Haible  <bruno@clisp.org>
32474
32475         Fix incorrect Makefile.am generation in German locale.
32476         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32477         Execute sed command with character range in C locale.
32478
32479 2010-03-06  Bruno Haible  <bruno@clisp.org>
32480
32481         Tests for module 'iconv-h'.
32482         * modules/iconv-h-tests: New file.
32483         * tests/test-iconv-h.c: New file.
32484
32485         New module 'iconv-h'.
32486         * modules/iconv-h: New file.
32487         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32488         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32489         (configure.ac): Remove gl_ICONV_H.
32490         (Makefile.am): Remove rule for iconv.h.
32491
32492 2010-03-06  Bruno Haible  <bruno@clisp.org>
32493
32494         More consistent naming of *.m4 files.
32495         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32496         * modules/wctype (Files): Update.
32497
32498         More consistent naming of *.m4 files.
32499         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32500         * modules/wchar (Files): Update.
32501
32502 2010-03-06  Jim Meyering  <meyering@redhat.com>
32503
32504         euidaccess: relax license to LGPLv2+
32505         * modules/euidaccess (License): Relax to LGPLv2+.
32506
32507 2010-03-06  Bruno Haible  <bruno@clisp.org>
32508
32509         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32510         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32511         (Makefile.am): Augment lib_SOURCES instead.
32512
32513 2010-03-04  Jim Meyering  <meyering@redhat.com>
32514
32515         utime: remove obsolete module
32516         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32517         unnecessary for years, and has been marked as obsolete for 10 months.
32518         * modules/utime: Remove file.
32519         * lib/utime.c: Remove file.
32520         * m4/utime.m4: Remove file.
32521         * m4/utimes-null.m4: Remove file.
32522         * doc/posix-functions/utime.texi (utime): Remove reference to
32523         the module.  Move the sole "fixed by gnulib" item into the
32524         "problems not fixed by Gnulib" list.
32525         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32526
32527 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32528
32529         * modules/exit (License): Relax license to LGPLv2+.
32530         (Status): Mark as obsolete.
32531         * NEWS: Mention deprecated 'exit' module.
32532         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32533         of now obsolete 'exit'.
32534
32535 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32536
32537         fts-lgpl: remove unused module
32538         * modules/fts-lgpl: Remove.
32539         * MODULES.html.sh (func_all_modules): Adjust.
32540         * check-module (find_included_lib_files): Adjust.
32541         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32542
32543 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32544
32545         copy-acl: enhance Solaris ACL error handling
32546         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32547         * lib/set-mode-acl.c (qset_acl): Likewise.
32548
32549 2010-03-02  Bruno Haible  <bruno@clisp.org>
32550
32551         spawn: Don't override the system defined values on FreeBSD 8.
32552         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32553         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32554         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32555         if HAVE_POSIX_SPAWN is 1.
32556         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32557
32558 2010-03-01  Bruno Haible  <bruno@clisp.org>
32559
32560         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32561         regarding Automake.
32562
32563 2010-02-25  Bruno Haible  <bruno@clisp.org>
32564
32565         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32566         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32567         setting, not afterwards.
32568         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32569
32570 2010-02-24  Eric Blake  <eblake@redhat.com>
32571
32572         bootstrap, git-version-gen: use timestamp
32573         * build-aux/git-version-gen (scriptversion): Force UTC.
32574         * build-aux/bootstrap (scriptversion): New variable.
32575
32576         bootstrap: allow older git
32577         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32578         older than 1.6.4.  Requested by the libvirt project.
32579
32580 2010-02-23  Eric Blake  <eblake@redhat.com>
32581
32582         warn-on-use: work with old autoconf
32583         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32584         AS_VAR semantics of autoconf 2.60.
32585         Reported by Bruno Haible.
32586
32587         bootstrap: improve some comments
32588         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32589         clarification comments.
32590
32591         gettimeofday: provide correct function
32592         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32593         when replacement is declared, otherwise provide gettimeofday.
32594         Reported by Michael Goffioul.
32595
32596 2010-02-23  Jim Meyering  <meyering@redhat.com>
32597
32598         lib-ignore: relax license to "unlimited", not LGPLv2+
32599         * modules/lib-ignore (License): Relax to "unlimited".
32600
32601 2010-02-23  Jim Meyering  <meyering@redhat.com>
32602
32603         lib-ignore: relax license to LGPLv2+
32604         * modules/lib-ignore (License): Relax to LGPLv2+.
32605
32606 2010-02-22  Eric Blake  <eblake@redhat.com>
32607
32608         lseek: avoid bash 3.2 broken pipe bug
32609         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32610         warning from bash 3.2.
32611         Reported by Ben Pfaff, with analysis from Bruno Haible.
32612
32613         bootstrap: support non-FSF copyright holder
32614         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32615         bootstrap.conf override of COPYRIGHT_HOLDER.
32616         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32617
32618         bootstrap: interoperate with gettext 0.14.1
32619         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32620
32621         bootstrap: allow for alternate submodule location
32622         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32623         hardcoding submodule location.
32624         (gnulib_mk): Allow direct use of Makefile.am.
32625
32626         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32627         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32628         rather than reconfiguring where the submodule points.
32629
32630         gettimeofday: restore support for platforms that lack function
32631         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32632         replacement if function is missing.
32633         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32634         * modules/sys_time (Makefile.am): Substitute it.
32635         * lib/sys_time.in.h (gettimeofday): Check it.
32636         Reported by Michael Goffioul.
32637
32638 2010-02-21  Bruno Haible  <bruno@clisp.org>
32639
32640         * lib/stdio.in.h (obstack_printf): Fix typo.
32641
32642 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32643
32644         vc-list-files: use bzr ls's -R option
32645         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32646         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32647
32648 2010-02-21  Jim Meyering  <meyering@redhat.com>
32649
32650         init.sh: fix EXEEXT shims to work also for names like test-prog
32651         * tests/init.sh: Re-exec a better shell, when needed.
32652         If the current shell lacks support for posix $(...), an init.sh-using
32653         test will now try to find a shell that supports that.  If EXEEXT is
32654         nonempty, we also require support for hyphen-in-alias-name and shell
32655         substitutions like ${var#glob}.  Failure to find such a shell results
32656         in a skipped test.
32657
32658 2010-02-21  Bruno Haible  <bruno@clisp.org>
32659
32660         Really work around around "broken pipe" error message from bash 3.2.
32661         * gnulib-tool (func_reset_sigpipe): Remove function.
32662         (echo): In bash 3.2, define to a function that uses printf.
32663         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32664
32665 2010-02-20  Bruno Haible  <bruno@clisp.org>
32666
32667         Restore support for automake 1.9.6 with autoconf 2.61.
32668         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32669         Reported by James Youngman <jay@gnu.org>.
32670
32671 2010-02-20  Bruno Haible  <bruno@clisp.org>
32672
32673         Improve *printf warning condition.
32674         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32675         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32676         and the function is overridden due to SIGPIPE emulation.
32677
32678 2010-02-20  Bruno Haible  <bruno@clisp.org>
32679
32680         * lib/stdio.in.h: Tweak comments.
32681
32682 2010-02-19  Bruno Haible  <bruno@clisp.org>
32683
32684         Make it easier to find modules. New gnulib-tool option '--find'.
32685         * gnulib-tool: New option --find.
32686         (func_usage): Document it.
32687         (func_sanitize_modulelist): New function, extracted from
32688         func_all_modules.
32689         (func_all_modules): Invoke it.
32690         * doc/gnulib-tool.texi (Which modules?): New node.
32691
32692 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32693
32694         * lib/sys_select.in.h: Provide select replacement even if
32695         sys/select.h exists on a system, for Interix.
32696
32697 2010-02-18  Jim Meyering  <meyering@redhat.com>
32698
32699         init.sh: don't use $(...) just yet
32700         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32701         to accommodate e.g., Solaris' /bin/sh.
32702
32703 2010-02-17  Bruno Haible  <bruno@clisp.org>
32704
32705         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32706         Reported by Ludovic Courtès <ludo@gnu.org>.
32707
32708 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32709
32710         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32711         linking with -lintl.
32712
32713 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32714
32715         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32716         if not provided by the system's netdb.h.  Reported by
32717         ludo@gnu.org (Ludovic Courtès).
32718
32719 2010-02-15  Jim Meyering  <meyering@redhat.com>
32720
32721         init.sh: improve portability and efficiency
32722         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32723         "dummy" in a for loop.
32724         Use '!', not '^' to select the complement of a character set used
32725         in a "case" statement.
32726         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32727         Suggestions from Eric Blake.
32728
32729         init.sh: automatically accommodate programs with the .exe suffix
32730         Automatically arrange for an invocation of "prog" to execute the
32731         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32732         may use the simpler "prog", yet still work when built on a system
32733         that requires specifying the added suffix.
32734         Do this by constructing a function named "prog" that invokes
32735         "prog.exe" for each .exe file in selected directories.
32736         * tests/init.sh (find_exe_basenames_): New function.
32737         (create_exe_shim_functions_): New function.
32738         (path_prepend_): Use it.
32739
32740         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32741         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32742         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32743
32744 2010-02-14  Jim Meyering  <meyering@redhat.com>
32745
32746         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32747         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32748         (sc_prohibit_hash_pjw_without_use): New rule.
32749
32750         maint.mk: allow the default upload destination dir to be overridden
32751         * top/maint.mk (upload_dest_dir_): Define with a default that
32752         preserves the status quo.
32753         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32754         Reported by Peter Simons.
32755
32756         maint.mk: prohibit inclusion of "hash.h" without_use
32757         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32758
32759 2010-02-10  Jim Meyering  <meyering@redhat.com>
32760
32761         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32762         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32763
32764 2010-02-09  Eric Blake  <ebb9@byu.net>
32765         and Bruno Haible  <bruno@clisp.org>
32766
32767         obstack-printf-posix: ensure declaration
32768         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32769         extracted from gl_FUNC_OBSTACK_PRINTF.
32770         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32771         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32772         Likewise.
32773         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32774         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32775         0.
32776
32777 2010-02-08  Bruno Haible  <bruno@clisp.org>
32778
32779         gnulib-tool: Fix typo in 2010-02-07 commit.
32780         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32781         Reported by Eric Blake.
32782
32783 2010-02-07  Bruno Haible  <bruno@clisp.org>
32784
32785         gnulib-tool: Fix up caching patches.
32786         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32787         option --no-cache. Use associative arrays when supported by the shell.
32788         (sed_comments): New variable.
32789         (modcache): Renamed from do_cache.
32790         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32791         abbreviate unnecessarily.
32792         (have_associative): New variable.
32793         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32794         way also for ksh and zsh.
32795         (func_init_sed_convert_to_cache_statements): New function, extracted
32796         from func_cache_lookup_module. Add support for associative arrays.
32797         Don't set the c_MODULE_cached variable here. Ignore all lines before
32798         the first field header. Remove only the final newline, not all trailing
32799         newlines. Support empty fields correctly. Limit the use of 'eval' to
32800         assignments.
32801         (func_get_description, func_get_status, func_get_notice,
32802         func_get_applicability, func_get_filelist, func_get_dependencies,
32803         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32804         func_get_automake_snippet, func_get_include_directive,
32805         func_get_link_directive, func_get_license, func_get_maintainer):
32806         Update documentation. List the unoptimized code first. Add support for
32807         associative arrays. Limit the use of 'eval' to assignments.
32808         (func_get_applicability): Undo stylistic pessimisations.
32809         (func_get_automake_snippet, func_get_include_directive): Reduce code
32810         duplication.
32811         (func_modules_transitive_closure, func_modules_add_dummy,
32812         func_modules_notice, func_modules_to_filelist, func_add_file,
32813         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32814         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32815         func_create_testdir, func_create_megatestdir): Update documentation.
32816
32817 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32818
32819         * gnulib-tool (func_cache_lookup_module): Store the module name
32820         belonging to the cache variable; error out if two different
32821         module names map to the same cache variable name.
32822
32823 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32824
32825         gnulib-tool: Make caching optional.
32826         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32827         Update matching short versions of --no-changelog.
32828         (func_usage): Update.
32829         (sed_extract_cache_prog): Renamed from ...
32830         (sed_extract_prog): ... this; revert to old extraction script.
32831         (func_get_description, func_get_status)
32832         (func_get_notice, func_get_applicability, func_get_filelist)
32833         (func_get_dependencies, func_get_autoconf_early_snippet)
32834         (func_get_autoconf_snippet, func_get_automake_snippet)
32835         (func_get_include_directive, func_get_link_directive)
32836         (func_get_license, func_get_maintainer): If $do_cache is false,
32837         use old, non-caching extraction scripts.
32838         Suggestion by Bruno Haible.
32839
32840 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32841
32842         gnulib-tool: cache module metainformation.
32843         * gnulib-tool (sed_extract_prog): Match newline before each
32844         header, and rewrite header to a shell variable suffix.
32845         (func_cache_var, func_cache_lookup_module): New functions,
32846         to turn a module name into a cache variable prefix, and to
32847         look up and cache module metainformation.
32848         (func_get_description, func_get_status)
32849         (func_get_notice, func_get_applicability, func_get_filelist)
32850         (func_get_dependencies, func_get_autoconf_early_snippet)
32851         (func_get_autoconf_snippet, func_get_automake_snippet)
32852         (func_get_include_directive, func_get_link_directive)
32853         (func_get_license, func_get_maintainer): Use
32854         func_cache_lookup_module.
32855
32856 2010-02-07  Bruno Haible  <bruno@clisp.org>
32857
32858         fnctl: Fix missing dependency.
32859         * modules/fcntl (Depends-on): Add getdtablesize.
32860         Reported by John W. Eaton <jwe@gnu.org>.
32861
32862 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32863
32864         Argp: fix recognition of short alias options.
32865
32866         * lib/argp-parse.c (convert_options): Fix improper use of
32867         `|' between character values.
32868         * tests/test-argp.c (group1_option): New alias option
32869         --read (-r).
32870         (group1_parser): Special handling for 'r'.
32871         (test15): New test case.
32872         (test_fun): Add test15.
32873         * tests/test-argp-2.sh: Update expected --help and --usage
32874         outputs.
32875
32876 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32877
32878         * tests/test-argp.c: Fix indentation.
32879
32880 2010-02-04  Eric Blake  <ebb9@byu.net>
32881
32882         gettimeofday: expose type of second argument
32883         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32884         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32885         * tests/test-gettimeofday.c: Use it to silence warning.
32886         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32887         the issue.
32888
32889 2010-02-03  Jim Meyering  <meyering@redhat.com>
32890
32891         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32892         * lib/regcomp.c (TYPE_SIGNED): Define.
32893         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32894
32895         regcomp.c: avoid a new -Wshadow warning
32896         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32897
32898 2010-02-01  Jim Meyering  <meyering@redhat.com>
32899
32900         removing useless parentheses in cpp #define directives
32901         For motivation, see commit c0221df4, "define STREQ(a,b)
32902         consistently, removing useless parentheses"
32903         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32904         * lib/mountlist.c (MNT_IGNORE): Likewise.
32905         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32906
32907 2010-02-01  Eric Blake  <ebb9@byu.net>
32908
32909         sys_time: use link-warning
32910         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32911         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32912         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32913         * modules/sys_time (Depends-on): Add warn-on-use.
32914         (Makefile.am): Always build replacement.
32915         (configure.ac): Update substitutions.
32916         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32917         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32918         bother with SYS_TIME_H.
32919         * modules/gettimeofday (configure.ac): Declare indicator.
32920         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32921         in use.
32922
32923         closein-tests: silence compiler warning
32924         * tests/test-closein.c (main): Ignore fread result.
32925         * modules/closein-tests (Depends-on): Add ignore-value.
32926
32927         tests: silence warning about system return
32928         * tests/test-areadlink-with-size.c (main): Ignore system result.
32929         * tests/test-areadlink.c (main): Likewise.
32930         * tests/test-areadlinkat-with-size.c (main): Likewise.
32931         * tests/test-areadlinkat.c (main): Likewise.
32932         * tests/test-canonicalize-lgpl.c (main): Likewise.
32933         * tests/test-canonicalize.c (main): Likewise.
32934         * tests/test-chown.c (main): Likewise.
32935         * tests/test-fchownat.c (main): Likewise.
32936         * tests/test-fdutimensat.c (main): Likewise.
32937         * tests/test-fstatat.c (main): Likewise.
32938         * tests/test-futimens.c (main): Likewise.
32939         * tests/test-lchown.c (main): Likewise.
32940         * tests/test-link.c (main): Likewise.
32941         * tests/test-linkat.c (main): Likewise.
32942         * tests/test-lstat.c (main): Likewise.
32943         * tests/test-mkdir.c (main): Likewise.
32944         * tests/test-mkdirat.c (main): Likewise.
32945         * tests/test-mkfifo.c (main): Likewise.
32946         * tests/test-mkfifoat.c (main): Likewise.
32947         * tests/test-mknod.c (main): Likewise.
32948         * tests/test-readlink.c (main): Likewise.
32949         * tests/test-remove.c (main): Likewise.
32950         * tests/test-rename.c (main): Likewise.
32951         * tests/test-renameat.c (main): Likewise.
32952         * tests/test-rmdir.c (main): Likewise.
32953         * tests/test-symlink.c (main): Likewise.
32954         * tests/test-symlinkat.c (main): Likewise.
32955         * tests/test-unlink.c (main): Likewise.
32956         * tests/test-unlinkat.c (main): Likewise.
32957         * tests/test-utimens.c (main): Likewise.
32958         * tests/test-utimensat.c (main): Likewise.
32959         * modules/areadlink-tests (Depends-on): Add ignore-value.
32960         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32961         * modules/areadlinkat-tests (Depends-on): Likewise.
32962         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32963         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32964         * modules/canonicalize-tests (Depends-on): Likewise.
32965         * modules/chown-tests (Depends-on): Likewise.
32966         * modules/fdutimensat-tests (Depends-on): Likewise.
32967         * modules/futimens-tests (Depends-on): Likewise.
32968         * modules/lchown-tests (Depends-on): Likewise.
32969         * modules/link-tests (Depends-on): Likewise.
32970         * modules/linkat-tests (Depends-on): Likewise.
32971         * modules/lstat-tests (Depends-on): Likewise.
32972         * modules/mkdir-tests (Depends-on): Likewise.
32973         * modules/mkfifo-tests (Depends-on): Likewise.
32974         * modules/mkfifoat-tests (Depends-on): Likewise.
32975         * modules/mknod-tests (Depends-on): Likewise.
32976         * modules/openat-tests (Depends-on): Likewise.
32977         * modules/readlink-tests (Depends-on): Likewise.
32978         * modules/remove-tests (Depends-on): Likewise.
32979         * modules/rename-tests (Depends-on): Likewise.
32980         * modules/renameat-tests (Depends-on): Likewise.
32981         * modules/rmdir-tests (Depends-on): Likewise.
32982         * modules/symlink-tests (Depends-on): Likewise.
32983         * modules/symlinkat-tests (Depends-on): Likewise.
32984         * modules/unlink-tests (Depends-on): Likewise.
32985         * modules/utimens-tests (Depends-on): Likewise.
32986         * modules/utimensat-tests (Depends-on): Likewise.
32987
32988 2010-01-31  Bruno Haible  <bruno@clisp.org>
32989
32990         Perform the same test for many <math.h> functions.
32991         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32992         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32993         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32994         of gl_MATHFUNC.
32995         * modules/acos (configure.ac): Likewise.
32996         * modules/asin (configure.ac): Likewise.
32997         * modules/atan (configure.ac): Likewise.
32998         * modules/atan2 (configure.ac): Likewise.
32999         * modules/cbrt (configure.ac): Likewise.
33000         * modules/copysign (configure.ac): Likewise.
33001         * modules/cos (configure.ac): Likewise.
33002         * modules/cosh (configure.ac): Likewise.
33003         * modules/erf (configure.ac): Likewise.
33004         * modules/erfc (configure.ac): Likewise.
33005         * modules/exp (configure.ac): Likewise.
33006         * modules/fmod (configure.ac): Likewise.
33007         * modules/hypot (configure.ac): Likewise.
33008         * modules/j0 (configure.ac): Likewise.
33009         * modules/j1 (configure.ac): Likewise.
33010         * modules/jn (configure.ac): Likewise.
33011         * modules/lgamma (configure.ac): Likewise.
33012         * modules/log (configure.ac): Likewise.
33013         * modules/log10 (configure.ac): Likewise.
33014         * modules/log1p (configure.ac): Likewise.
33015         * modules/pow (configure.ac): Likewise.
33016         * modules/remainder (configure.ac): Likewise.
33017         * modules/sin (configure.ac): Likewise.
33018         * modules/sinh (configure.ac): Likewise.
33019         * modules/tan (configure.ac): Likewise.
33020         * modules/tanh (configure.ac): Likewise.
33021         * modules/y0 (configure.ac): Likewise.
33022         * modules/y1 (configure.ac): Likewise.
33023         * modules/yn (configure.ac): Likewise.
33024         Suggested by Paolo Bonzini.
33025
33026 2010-01-31  Bruno Haible  <bruno@clisp.org>
33027
33028         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33029
33030 2010-01-31  Bruno Haible  <bruno@clisp.org>
33031
33032         Work around getdelim() bug on FreeBSD 8.0.
33033         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33034         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33035         not work.
33036         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33037         is 1.
33038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33039         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33040         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33041         a non-zero size.
33042         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33043
33044 2010-01-31  Bruno Haible  <bruno@clisp.org>
33045
33046         Work around getline() bug on FreeBSD 8.0.
33047         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33048         and a non-zero size.
33049         * tests/test-getline.c (main): Likewise.
33050         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33051         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33052
33053 2010-01-28  Eric Blake  <ebb9@byu.net>
33054
33055         regex: fix build failure
33056         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33057         platforms.
33058
33059 2010-01-28  Jim Meyering  <meyering@redhat.com>
33060
33061         regex: do not ignore memory allocation failure
33062         * lib/regex_internal.c (create_cd_newstate): Detect
33063         re_node_set_init_copy failure.   Extracted from glibc commit
33064         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33065
33066         regex: sync more white-space changes from libc
33067         * lib/regex_internal.c: White-space only changes.
33068         * lib/regexec.c: Likewise.
33069
33070         regex: add many uses of __attribute_warn_unused_result__
33071         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33072         * lib/regexec.c: Likewise.
33073         Extracted from a messy glibc commit.
33074
33075         regcomp.c: spelling and merge-artifact from glibc
33076         * lib/regcomp.c: Merge remainder of glibc's
33077         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33078
33079         regcomp.c: sync white-space changes from glibc
33080         * lib/regcomp.c: Merge to accommodate white space
33081         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33082
33083         regcomp.c: do not ignore internal return values
33084         * lib/regcomp.c: Do not ignore internal return values.
33085         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33086         but without its white-space changes and spelling fixes.
33087
33088         regex_internal.h: define __attribute_warn_unused_result__
33089         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33090
33091         maint: add a syntax-check rule to check for vulnerable Makefile.in
33092         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33093
33094 2010-01-27  Jim Meyering  <meyering@redhat.com>
33095
33096         ncftpput-ftp: clean up spaces
33097         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33098         Remove trailing blanks.
33099
33100 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33101
33102         * build-aux/git-version-gen: Fix copyright statement.
33103         * build-aux/gnupload: Likewise.
33104         * tests/test-arcfour.c: Likewise.
33105         * tests/test-arctwo.c: Likewise.
33106         * tests/test-count-one-bits.c: Likewise.
33107         * tests/test-crc.c: Likewise.
33108         * tests/test-des.c: Likewise.
33109         * tests/test-gc-arcfour.c: Likewise.
33110         * tests/test-gc-arctwo.c: Likewise.
33111         * tests/test-gc-des.c: Likewise.
33112         * tests/test-gc-hmac-md5.c: Likewise.
33113         * tests/test-gc-hmac-sha1.c: Likewise.
33114         * tests/test-gc-md2.c: Likewise.
33115         * tests/test-gc-md4.c: Likewise.
33116         * tests/test-gc-md5.c: Likewise.
33117         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33118         * tests/test-gc-rijndael.c: Likewise.
33119         * tests/test-gc-sha1.c: Likewise.
33120         * tests/test-gc.c: Likewise.
33121         * tests/test-gethostname.c: Likewise.
33122         * tests/test-gettimeofday.c: Likewise.
33123         * tests/test-hash.c: Likewise.
33124         * tests/test-hmac-md5.c: Likewise.
33125         * tests/test-hmac-sha1.c: Likewise.
33126         * tests/test-md2.c: Likewise.
33127         * tests/test-md4.c: Likewise.
33128         * tests/test-md5.c: Likewise.
33129         * tests/test-memchr.c: Likewise.
33130         * tests/test-memchr2.c: Likewise.
33131         * tests/test-memcmp.c: Likewise.
33132         * tests/test-memmem.c: Likewise.
33133         * tests/test-memrchr.c: Likewise.
33134         * tests/test-rawmemchr.c: Likewise.
33135         * tests/test-read-file.c: Likewise.
33136         * tests/test-rijndael.c: Likewise.
33137         * tests/test-sockets.c: Likewise.
33138         * tests/test-strchrnul.c: Likewise.
33139         * tests/test-strstr.c: Likewise.
33140         * tests/test-strtod.c: Likewise.
33141         * build-aux/ncftpput-ftp: Likewise.
33142
33143 2010-01-26  Eric Blake  <ebb9@byu.net>
33144
33145         ignore-value: update recommended header name
33146         * modules/ignore-value (Include): Only use <> for headers that
33147         exist in glibc.
33148
33149 2010-01-26  Jim Meyering  <meyering@redhat.com>
33150
33151         test-userspec.c: avoid compiler warnings
33152         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33153         and "initialization discards qualifiers..." warnings.
33154         Put the first "uid" in its own scope, and make char* members "const".
33155
33156 2010-01-25  Bruno Haible  <bruno@clisp.org>
33157
33158         gnulib-tool: Make warning diagnostics consistent.
33159         * gnulib-tool (func_warning): New function.
33160         Use it everywhere where gnulib-tool produces output to stderr and it is
33161         not a fatal error.
33162
33163 2010-01-25  Bruno Haible  <bruno@clisp.org>
33164
33165         Fix test dependencies.
33166         * modules/xstrtol-tests (Depends-on): Add inttypes.
33167         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33168
33169 2010-01-25 Pádraig Brady <P@draigBrady.com>
33170
33171         syntax-check: detect incorrect boolean macro values in config.h
33172         * modules/maintainer-makefile (configure.ac): Parameterize the location
33173         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33174         The logic is from Eric Blake and the location indicated by Jim Meyering.
33175         Note the more natural CONFIG_HEADER name is prohibited by automake
33176         for backwards compatibility reasons.
33177         * top/maint.mk (sc_Wundef_boolean): New rule.
33178
33179 2010-01-25  Jim Meyering  <meyering@redhat.com>
33180
33181         bootstrap: detect MacOS 10.6's shasum, too
33182         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33183         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33184
33185 2010-01-23  Jim Meyering  <meyering@redhat.com>
33186
33187         xstrtoll: new module
33188         * modules/xstrtoll: New file.
33189         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33190         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33191         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33192         ./configure fails if you use this module and lack "long long".
33193         * modules/xstrtoll-tests: New module.
33194         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33195         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33196         new init.sh-based test framework.
33197
33198 2010-01-24  Bruno Haible  <bruno@clisp.org>
33199
33200         Tests for module 'yn'.
33201         * modules/yn-tests: New file.
33202         * tests/test-yn.c: New file.
33203
33204         Tests for module 'y1'.
33205         * modules/y1-tests: New file.
33206         * tests/test-y1.c: New file.
33207
33208         Tests for module 'y0'.
33209         * modules/y0-tests: New file.
33210         * tests/test-y0.c: New file.
33211
33212         Tests for module 'tanh'.
33213         * modules/tanh-tests: New file.
33214         * tests/test-tanh.c: New file.
33215
33216         Tests for module 'tan'.
33217         * modules/tan-tests: New file.
33218         * tests/test-tan.c: New file.
33219
33220         Tests for module 'sqrt'.
33221         * modules/sqrt-tests: New file.
33222         * tests/test-sqrt.c: New file.
33223
33224         Tests for module 'sinh'.
33225         * modules/sinh-tests: New file.
33226         * tests/test-sinh.c: New file.
33227
33228         Tests for module 'sin'.
33229         * modules/sin-tests: New file.
33230         * tests/test-sin.c: New file.
33231
33232         Tests for module 'rint'.
33233         * modules/rint-tests: New file.
33234         * tests/test-rint.c: New file.
33235
33236         Tests for module 'remainder'.
33237         * modules/remainder-tests: New file.
33238         * tests/test-remainder.c: New file.
33239
33240         Tests for module 'pow'.
33241         * modules/pow-tests: New file.
33242         * tests/test-pow.c: New file.
33243
33244         Tests for module 'nextafter'.
33245         * modules/nextafter-tests: New file.
33246         * tests/test-nextafter.c: New file.
33247
33248         Tests for module 'modf'.
33249         * modules/modf-tests: New file.
33250         * tests/test-modf.c: New file.
33251
33252         Tests for module 'logb'.
33253         * modules/logb-tests: New file.
33254         * tests/test-logb.c: New file.
33255
33256         Tests for module 'log1p'.
33257         * modules/log1p-tests: New file.
33258         * tests/test-log1p.c: New file.
33259
33260         Tests for module 'log10'.
33261         * modules/log10-tests: New file.
33262         * tests/test-log10.c: New file.
33263
33264         Tests for module 'log'.
33265         * modules/log-tests: New file.
33266         * tests/test-log.c: New file.
33267
33268         Tests for module 'lgamma'.
33269         * modules/lgamma-tests: New file.
33270         * tests/test-lgamma.c: New file.
33271
33272         Tests for module 'ldexp'.
33273         * modules/ldexp-tests: New file.
33274         * tests/test-ldexp.c: New file.
33275
33276         Tests for module 'jn'.
33277         * modules/jn-tests: New file.
33278         * tests/test-jn.c: New file.
33279
33280         Tests for module 'j1'.
33281         * modules/j1-tests: New file.
33282         * tests/test-j1.c: New file.
33283
33284         Tests for module 'j0'.
33285         * modules/j0-tests: New file.
33286         * tests/test-j0.c: New file.
33287
33288         Tests for module 'hypot'.
33289         * modules/hypot-tests: New file.
33290         * tests/test-hypot.c: New file.
33291
33292         Tests for module 'fmod'.
33293         * modules/fmod-tests: New file.
33294         * tests/test-fmod.c: New file.
33295
33296         Tests for module 'fabs'.
33297         * modules/fabs-tests: New file.
33298         * tests/test-fabs.c: New file.
33299
33300         Tests for module 'exp'.
33301         * modules/exp-tests: New file.
33302         * tests/test-exp.c: New file.
33303
33304         Tests for module 'erfc'.
33305         * modules/erfc-tests: New file.
33306         * tests/test-erfc.c: New file.
33307
33308         Tests for module 'erf'.
33309         * modules/erf-tests: New file.
33310         * tests/test-erf.c: New file.
33311
33312         Tests for module 'cosh'.
33313         * modules/cosh-tests: New file.
33314         * tests/test-cosh.c: New file.
33315
33316         Tests for module 'cos'.
33317         * modules/cos-tests: New file.
33318         * tests/test-cos.c: New file.
33319
33320         Tests for module 'copysign'.
33321         * modules/copysign-tests: New file.
33322         * tests/test-copysign.c: New file.
33323
33324         Tests for module 'cbrt'.
33325         * modules/cbrt-tests: New file.
33326         * tests/test-cbrt.c: New file.
33327
33328         Tests for module 'atan2'.
33329         * modules/atan2-tests: New file.
33330         * tests/test-atan2.c: New file.
33331
33332         Tests for module 'atan'.
33333         * modules/atan-tests: New file.
33334         * tests/test-atan.c: New file.
33335
33336         Tests for module 'asin'.
33337         * modules/asin-tests: New file.
33338         * tests/test-asin.c: New file.
33339
33340         Tests for module 'acos'.
33341         * modules/acos-tests: New file.
33342         * tests/test-acos.c: New file.
33343
33344 2010-01-24  Bruno Haible  <bruno@clisp.org>
33345
33346         Fix tests for common <math.h> functions.
33347         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33348         code snippet that references the function pointer, rather than merely
33349         calling the function. Substitute the FUNC_LIBM variable.
33350         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33351         * modules/acos (configure.ac): Likewise.
33352         * modules/asin (configure.ac): Likewise.
33353         * modules/atan (configure.ac): Likewise.
33354         * modules/atan2 (configure.ac): Likewise.
33355         * modules/cbrt (configure.ac): Likewise.
33356         * modules/copysign (configure.ac): Likewise.
33357         * modules/cos (configure.ac): Likewise.
33358         * modules/cosh (configure.ac): Likewise.
33359         * modules/erf (configure.ac): Likewise.
33360         * modules/erfc (configure.ac): Likewise.
33361         * modules/exp (configure.ac): Likewise.
33362         * modules/fabs (configure.ac): Likewise.
33363         * modules/fmod (configure.ac): Likewise.
33364         * modules/hypot (configure.ac): Likewise.
33365         * modules/j0 (configure.ac): Likewise.
33366         * modules/j1 (configure.ac): Likewise.
33367         * modules/jn (configure.ac): Likewise.
33368         * modules/ldexp (configure.ac): Likewise.
33369         * modules/lgamma (configure.ac): Likewise.
33370         * modules/log (configure.ac): Likewise.
33371         * modules/log10 (configure.ac): Likewise.
33372         * modules/log1p (configure.ac): Likewise.
33373         * modules/logb (configure.ac): Likewise.
33374         * modules/modf (configure.ac): Likewise.
33375         * modules/nextafter (configure.ac): Likewise.
33376         * modules/pow (configure.ac): Likewise.
33377         * modules/remainder (configure.ac): Likewise.
33378         * modules/rint (configure.ac): Likewise.
33379         * modules/sin (configure.ac): Likewise.
33380         * modules/sinh (configure.ac): Likewise.
33381         * modules/tan (configure.ac): Likewise.
33382         * modules/tanh (configure.ac): Likewise.
33383         * modules/y0 (configure.ac): Likewise.
33384         * modules/y1 (configure.ac): Likewise.
33385         * modules/yn (configure.ac): Likewise.
33386
33387 2010-01-24  Bruno Haible  <bruno@clisp.org>
33388
33389         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33390         * tests/test-acosl.c (x): New variable.
33391         (main): Store argument in x and fetch it from x.
33392         * tests/test-asinl.c (x): New variable.
33393         (main): Store argument in x and fetch it from x.
33394         * tests/test-atanl.c (x): New variable.
33395         (main): Store argument in x and fetch it from x.
33396         * tests/test-cosl.c (x): New variable.
33397         (main): Store argument in x and fetch it from x.
33398         * tests/test-expl.c (x): New variable.
33399         (main): Store argument in x and fetch it from x.
33400         * tests/test-logl.c (x): New variable.
33401         (main): Store argument in x and fetch it from x.
33402         * tests/test-sinl.c (x): New variable.
33403         (main): Store argument in x and fetch it from x.
33404         * tests/test-sqrtl.c (x): New variable.
33405         (main): Store argument in x and fetch it from x.
33406         * tests/test-tanl.c (x): New variable.
33407         (main): Store argument in x and fetch it from x.
33408
33409 2010-01-24  Bruno Haible  <bruno@clisp.org>
33410
33411         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33412         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33413         assignments to the initial TESTS_ENVIRONMENT.
33414         * doc/gnulib.texi (Unit test modules): Document it.
33415         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33416         TESTS_ENVIRONMENT.
33417         * modules/btowc-tests (Makefile.am): Likewise.
33418         * modules/c-stack-tests (Makefile.am): Likewise.
33419         * modules/c-strcase-tests (Makefile.am): Likewise.
33420         * modules/copy-file-tests (Makefile.am): Likewise.
33421         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33422         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33423         * modules/mbrtowc-tests (Makefile.am): Likewise.
33424         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33425         * modules/mbscasestr-tests (Makefile.am): Likewise.
33426         * modules/mbschr-tests (Makefile.am): Likewise.
33427         * modules/mbscspn-tests (Makefile.am): Likewise.
33428         * modules/mbsinit-tests (Makefile.am): Likewise.
33429         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33430         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33431         * modules/mbspbrk-tests (Makefile.am): Likewise.
33432         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33433         * modules/mbsrchr-tests (Makefile.am): Likewise.
33434         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33435         * modules/mbsspn-tests (Makefile.am): Likewise.
33436         * modules/mbsstr-tests (Makefile.am): Likewise.
33437         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33438         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33439         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33440         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33441         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33442         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33443         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33444         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33445         * modules/wcrtomb-tests (Makefile.am): Likewise.
33446         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33447         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33448         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33449         assignments from TESTS_ENVIRONMENT.
33450         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33451         augmentation.
33452         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33453         * modules/atexit-tests (Makefile.am): Likewise.
33454         * modules/binary-io-tests (Makefile.am): Likewise.
33455         * modules/closein-tests (Makefile.am): Likewise.
33456         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33457         * modules/exclude-tests (Makefile.am): Likewise.
33458         * modules/fflush-tests (Makefile.am): Likewise.
33459         * modules/fpending-tests (Makefile.am): Likewise.
33460         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33461         * modules/freadahead-tests (Makefile.am): Likewise.
33462         * modules/freadptr-tests (Makefile.am): Likewise.
33463         * modules/freadseek-tests (Makefile.am): Likewise.
33464         * modules/fseek-tests (Makefile.am): Likewise.
33465         * modules/fseeko-tests (Makefile.am): Likewise.
33466         * modules/ftell-tests (Makefile.am): Likewise.
33467         * modules/ftello-tests (Makefile.am): Likewise.
33468         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33469         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33470         * modules/lseek-tests (Makefile.am): Likewise.
33471         * modules/parse-duration-tests (Makefile.am): Likewise.
33472         * modules/perror-tests (Makefile.am): Likewise.
33473         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33474         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33475         * modules/pipe-tests (Makefile.am): Likewise.
33476         * modules/pread-tests (Makefile.am): Likewise.
33477         * modules/printf-posix-tests (Makefile.am): Likewise.
33478         * modules/select-tests (Makefile.am): Likewise.
33479         * modules/sigpipe-tests (Makefile.am): Likewise.
33480         * modules/tsearch-tests (Makefile.am): Likewise.
33481         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33482         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33483         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33484         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33485         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33486         * modules/version-etc-tests (Makefile.am): Likewise.
33487         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33488         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33489         * modules/xalloc-die-tests (Makefile.am): Likewise.
33490         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33491         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33492         * modules/xstrtol-tests (Makefile.am): Likewise.
33493         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33494         * modules/yesno-tests (Makefile.am): Likewise.
33495         Suggested by Jim Meyering.
33496
33497 2010-01-24  Bruno Haible  <bruno@clisp.org>
33498
33499         More documentation.
33500         * doc/gnulib.texi (Writing modules): New chapter.
33501         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33502         the new chapter.
33503
33504 2010-01-24  Jim Meyering  <meyering@redhat.com>
33505
33506         maint.mk: do not prepend "./" after filtering
33507         * top/maint.mk (_prepend_srcdir_prefix): New variable
33508         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33509         "./" when $(srcdir) is ".".
33510
33511         define STREQ(a,b) consistently, removing useless parentheses
33512         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33513         since the only risk is that "a" or "b" contains an unparenthesized
33514         comma, but if either did that, STREQ would have 3 or more arguments.
33515         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33516         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33517         * lib/hash-triple.c (STREQ): Likewise.
33518         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33519         * lib/getugroups.c (STREQ): Likewise.
33520
33521 2010-01-23  Jim Meyering  <meyering@redhat.com>
33522
33523         maint.mk: fix syntax-check in a non-srcdir build directory
33524         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33525         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33526
33527 2010-01-22  Jim Meyering  <meyering@redhat.com>
33528
33529         userspec: add unit tests
33530         * tests/test-userspec.c: New file.
33531         * modules/userspec-tests: Likewise.
33532
33533 2010-01-21  Jim Meyering  <meyering@redhat.com>
33534
33535         maint.mk: handle source file names containing "." robustly
33536         * top/maint.mk (_dot_escaped_srcdir): Define.
33537         (VC_LIST): Use it in LHS of sed substitution.
33538
33539 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33540
33541         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33542         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33543         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33544         from a non-srcdir build.
33545
33546 2010-01-20  Eric Blake  <ebb9@byu.net>
33547
33548         warn-on-use: use instead of link-warning
33549         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33550         * modules/unistd (Depends-on, Makefile.am): Likewise.
33551         * modules/arpa_inet (Depends-on): Replace link-warning with
33552         warn-on-use.
33553         (Makefile.am): Update rules accordingly.
33554         * modules/ctype (Depends-on, Makefile.am): Likewise.
33555         * modules/dirent (Depends-on, Makefile.am): Likewise.
33556         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33557         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33558         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33559         * modules/locale (Depends-on, Makefile.am): Likewise.
33560         * modules/math (Depends-on, Makefile.am): Likewise.
33561         * modules/search (Depends-on, Makefile.am): Likewise.
33562         * modules/signal (Depends-on, Makefile.am): Likewise.
33563         * modules/spawn (Depends-on, Makefile.am): Likewise.
33564         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33565         * modules/string (Depends-on, Makefile.am): Likewise.
33566         * modules/strings (Depends-on, Makefile.am): Likewise.
33567         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33568         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33569         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33570         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33571         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33572         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33573         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33574         * modules/wchar (Depends-on, Makefile.am): Likewise.
33575         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33576         should be poisoned.
33577         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33578         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33579         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33580         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33581         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33582         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33583         * m4/math_h.m4 (gl_MATH_H): Likewise.
33584         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33585         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33586         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33587         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33588         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33589         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33590         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33591         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33592         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33593         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33594         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33595         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33596         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33597         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33598         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33599         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33600         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33601         GL_LINK_WARNING.
33602         * lib/ctype.in.h: Likewise.
33603         * lib/dirent.in.h: Likewise.
33604         * lib/fcntl.in.h: Likewise.
33605         * lib/inttypes.in.h: Likewise.
33606         * lib/langinfo.in.h: Likewise.
33607         * lib/locale.in.h: Likewise.
33608         * lib/math.in.h: Likewise.
33609         * lib/search.in.h: Likewise.
33610         * lib/signal.in.h: Likewise.
33611         * lib/spawn.in.h: Likewise.
33612         * lib/stdio.in.h: Likewise.
33613         * lib/stdlib.in.h: Likewise.
33614         * lib/string.in.h: Likewise.
33615         * lib/strings.in.h: Likewise.
33616         * lib/sys_file.in.h: Likewise.
33617         * lib/sys_ioctl.in.h: Likewise.
33618         * lib/sys_select.in.h: Likewise.
33619         * lib/sys_socket.in.h: Likewise.
33620         * lib/sys_stat.in.h: Likewise.
33621         * lib/sys_times.in.h: Likewise.
33622         * lib/sys_utsname.in.h: Likewise.
33623         * lib/unistd.in.h: Likewise.
33624         * lib/wchar.in.h: Likewise.
33625
33626 2010-01-20  Bruno Haible  <bruno@clisp.org>
33627
33628         Avoid duplicate -lm.
33629         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33630         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33631         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33632         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33633         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33634         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33635         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33636         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33637         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33638         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33639         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33640         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33641         Reported by Paolo Bonzini.
33642
33643 2010-01-19  Bruno Haible  <bruno@clisp.org>
33644
33645         langinfo, nl_langinfo: Relicense under LGPLv2+.
33646         * modules/langinfo (License): Change to LGPLv2+.
33647         * modules/nl_langinfo (License): Likewise.
33648         Patch by David Lutterkort <lutter@redhat.com>.
33649
33650 2010-01-19  Bruno Haible  <bruno@clisp.org>
33651
33652         Avoid compilation error with cc on OSF/1 5.1.
33653         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33654         statement, not before.
33655         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33656
33657 2010-01-18  Bruno Haible  <bruno@clisp.org>
33658
33659         Avoid a link error due to the __printf__ symbol.
33660         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33661         and 2.6.x.
33662         (__format__, __printf__): Remove definitions.
33663         * lib/argp-fmtstream.h: Likewise.
33664         * lib/argp.h: Likewise.
33665         * lib/error.h: Likewise.
33666         * lib/vasnprintf.h: Likewise.
33667         * lib/xprintf.h: Likewise.
33668         * lib/xvasprintf.h: Likewise.
33669         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33670
33671 2010-01-18  Bruno Haible  <bruno@clisp.org>
33672
33673         Tests for module 'tanl'.
33674         * modules/tanl-tests: New file.
33675         * tests/test-tanl.c: New file.
33676
33677         Tests for module 'sqrtl'.
33678         * modules/sqrtl-tests: New file.
33679         * tests/test-sqrtl.c: New file.
33680
33681         Tests for module 'sinl'.
33682         * modules/sinl-tests: New file.
33683         * tests/test-sinl.c: New file.
33684
33685         Tests for module 'logl'.
33686         * modules/logl-tests: New file.
33687         * tests/test-logl.c: New file.
33688
33689         Tests for module 'expl'.
33690         * modules/expl-tests: New file.
33691         * tests/test-expl.c: New file.
33692
33693         Tests for module 'cosl'.
33694         * modules/cosl-tests: New file.
33695         * tests/test-cosl.c: New file.
33696
33697         Tests for module 'atanl'.
33698         * modules/atanl-tests: New file.
33699         * tests/test-atanl.c: New file.
33700
33701         Tests for module 'asinl'.
33702         * modules/asinl-tests: New file.
33703         * tests/test-asinl.c: New file.
33704
33705         Tests for module 'acosl'.
33706         * modules/acosl-tests: New file.
33707         * tests/test-acosl.c: New file.
33708
33709         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33710         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33711         tanl): Use the standard gnulib idiom.
33712         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33713         * lib/sinl.c: Likewise.
33714         * lib/tanl.c: Don't include trigl.c.
33715         (kernel_tanl): Make static.
33716         * lib/sincosl.c: Include trigl.h first.
33717         * lib/trigl.c: Likewise.
33718         * m4/acosl.m4: New file.
33719         * m4/asinl.m4: New file.
33720         * m4/atanl.m4: New file.
33721         * m4/cosl.m4: New file.
33722         * m4/expl.m4: New file.
33723         * m4/logl.m4: New file.
33724         * m4/sinl.m4: New file.
33725         * m4/sqrtl.m4: New file.
33726         * m4/tanl.m4: New file.
33727         * m4/mathl.m4: Remove file.
33728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33729         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33730         Don't initialize GNULIB_MATHL.
33731         * modules/acosl: New file.
33732         * modules/asinl: New file.
33733         * modules/atanl: New file.
33734         * modules/cosl: New file.
33735         * modules/expl: New file.
33736         * modules/logl: New file.
33737         * modules/sinl: New file.
33738         * modules/sqrtl: New file.
33739         * modules/tanl: New file.
33740         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33741         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33742         substitute GNULIB_MATHL.
33743         * modules/mathl: Rewritten.
33744         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33745         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33746         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33747         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33748         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33749         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33750         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33751         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33752         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33753
33754 2010-01-18  Bruno Haible  <bruno@clisp.org>
33755
33756         sqrt: Make gl_FUNC_SQRT requirable.
33757         * m4/sqrt.m4: New file.
33758         * modules/sqrt (Files): Add it.
33759         (configure.ac): Invoke gl_FUNC_SQRT.
33760
33761 2010-01-18  Bruno Haible  <bruno@clisp.org>
33762
33763         New modules for common <math.h> functions.
33764         * m4/mathfunc.m4: New file.
33765         * modules/acos: New file.
33766         * modules/asin: New file.
33767         * modules/atan: New file.
33768         * modules/atan2: New file.
33769         * modules/cbrt: New file.
33770         * modules/copysign: New file.
33771         * modules/cos: New file.
33772         * modules/cosh: New file.
33773         * modules/erf: New file.
33774         * modules/erfc: New file.
33775         * modules/exp: New file.
33776         * modules/fabs: New file.
33777         * modules/fmod: New file.
33778         * modules/hypot: New file.
33779         * modules/j0: New file.
33780         * modules/j1: New file.
33781         * modules/jn: New file.
33782         * modules/ldexp: New file.
33783         * modules/lgamma: New file.
33784         * modules/log: New file.
33785         * modules/log10: New file.
33786         * modules/log1p: New file.
33787         * modules/logb: New file.
33788         * modules/modf: New file.
33789         * modules/nextafter: New file.
33790         * modules/pow: New file.
33791         * modules/remainder: New file.
33792         * modules/rint: New file.
33793         * modules/sin: New file.
33794         * modules/sinh: New file.
33795         * modules/sqrt: New file.
33796         * modules/tan: New file.
33797         * modules/tanh: New file.
33798         * modules/y0: New file.
33799         * modules/y1: New file.
33800         * modules/yn: New file.
33801         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33802         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33803         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33804         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33805         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33806         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33807         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33808         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33809         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33810         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33811         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33812         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33813         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33814         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33815         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33816         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33817         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33818         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33819         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33820         * doc/posix-functions/log.texi: Mention the 'log' module.
33821         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33822         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33823         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33824         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33825         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33826         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33827         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33828         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33829         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33830         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33831         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33832         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33833         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33834         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33835         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33836         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33837
33838 2010-01-18  Jim Meyering  <meyering@redhat.com>
33839
33840         ignore-value: relax license to LGPLv2+
33841         * modules/ignore-value (License): Relax to LGPLv2+.
33842
33843         getdate: don't leak when TZ contains two or more '"'s
33844         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33845         double quote in TZ after the first one.
33846
33847         readtokens: do not leak internal token_lengths buffer
33848         * lib/readtokens.c (readtokens): Free the local, lengths,
33849         when the supplied "token_lengths" parameter is NULL.
33850
33851 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33852
33853         Fix a couple of missing LIBTHREAD link failures on AIX.
33854         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33855         $(LIBTHREAD).
33856         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33857
33858         Link test-poll against INET_PTON_LIB.
33859         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33860         for inet_pton on Solaris 10.
33861
33862 2010-01-17  Bruno Haible  <bruno@clisp.org>
33863
33864         unistdio/*-sprintf: Fix typo in module description.
33865         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33866         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33867         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33868         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33869         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33870         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33871         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33872         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33873
33874 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33875
33876         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33877         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33878         variables in shell case patterns, for AIX and HP-UX ksh.
33879
33880         Split large sed scripts, for HP-UX sed.
33881         * modules/stdio: Split sed scripts around 50 sed commands,
33882         to avoid HP-UX limit of 99 commands, in the near future.
33883         * modules/string: Likewise.
33884         * modules/unistd: Likewise.
33885
33886         gnulib-tool: avoid writing in the current directory.
33887         * gnulib-tool (func_emit_lib_Makefile_am)
33888         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33889         not in the current directory, so concurrent gnulib-tool
33890         instances do not interfere.
33891
33892 2010-01-16  Jim Meyering  <meyering@redhat.com>
33893
33894         doc: update users.txt
33895         * users.txt: Add grep.
33896         (diffutils, gzip): Update URLs.
33897
33898 2010-01-12  Bruno Haible  <bruno@clisp.org>
33899
33900         posix_spawn: Avoid test failure on Cygwin.
33901         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33902         characters.
33903         Reported by Simon Josefsson.
33904
33905 2010-01-12  Bruno Haible  <bruno@clisp.org>
33906
33907         * tests/test-cond.c (main): When skipping the test, show the reason.
33908
33909 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33910
33911         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33912
33913 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33914
33915         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33916         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33917
33918 2010-01-12  Eric Blake  <ebb9@byu.net>
33919
33920         build: guarantee AS_VAR_IF
33921         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33922         (gl_AS_VAR_IF): Move...
33923         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33924         Reported by Simon Josefsson.
33925
33926 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33927
33928         * lib/stdio.in.h: Fix typo.
33929
33930 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33931
33932         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33933         libgpg-error.
33934
33935 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33936
33937         * tests/test-xalloc-die.sh: Use $EXEEXT.
33938
33939 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33940             Bruno Haible  <bruno@clisp.org>
33941
33942         getlogin, getlogin_r: Avoid test failure.
33943         * tests/test-getlogin.c: Include <stdio.h>.
33944         (main): Skip the test when the function fails because stdin is not a
33945         tty.
33946         * tests/test-getlogin_r.c: Include <stdio.h>.
33947         (main): Skip the test when the function fails because stdin is not a
33948         tty.
33949
33950 2010-01-11  Eric Blake  <ebb9@byu.net>
33951
33952         tests: avoid more large file warnings
33953         * tests/test-fflush.c: Avoid warning about ftell use.
33954         * tests/test-fseek.c: Avoid warning about fseek use.
33955
33956 2010-01-10  Bruno Haible  <bruno@clisp.org>
33957
33958         nproc: Work better on Linux when /proc and /sys are not mounted.
33959         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33960         as lower bound when, on glibc/Linux systems,
33961         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33962         Suggested by Pádraig Brady <P@draigbrady.com>.
33963         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33964
33965         nproc: Refactor.
33966         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33967         extracted from num_processors.
33968         (num_processors): Call it.
33969
33970 2010-01-11  Jim Meyering  <meyering@redhat.com>
33971
33972         utimecmp: avoid new warning from upcoming gcc-4.5.0
33973         * lib/utimecmp.c (BILLION): Define using #define rather than an
33974         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33975
33976 2010-01-11  Eric Blake  <ebb9@byu.net>
33977
33978         math: add portability warnings for classification macros
33979         * modules/math (Depends-on): Add warn-on-use.
33980         (Makefile.am): Provide new substitutions.
33981         * m4/math_h.m4 (gl_MATH_H): Require inline.
33982         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33983         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33984         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33985         implement warnings.
33986
33987         unistd: warn on use of environ without module
33988         * modules/unistd (Depends-on): Add warn-on-use.
33989         (Makefile.am): Provide new substitutions.
33990         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33991         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33992
33993         stdio: warn on suspicious uses
33994         * modules/stdio (Depends-on): Add warn-on-use.
33995         (Makefile.am): Provide new substitutions.
33996         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33997         fseeko.
33998         * lib/stdio.in.h (gets): Always warn on use.
33999         (fseek, ftell): Adjust when warnings are issued, and honor
34000         _GL_NO_LARGE_FILES as a way to silence the warning.
34001         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34002         any warning about large file offsets.
34003         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34004         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34005         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34006         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34007         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34008         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34009         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34010         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34011
34012         warn-on-use: new module
34013         * modules/warn-on-use: New file.
34014         * build-aux/warn-on-use.h: Likewise.
34015         * m4/warn-on-use.m4: Likewise.
34016         * MODULES.html.sh (Support for building): Mention it.
34017
34018 2010-01-10  Bruno Haible  <bruno@clisp.org>
34019
34020         Tests for module 'unistr/u32-strdup'.
34021         * modules/unistr/u32-strdup-tests: New file.
34022         * tests/unistr/test-u32-strdup.c: New file.
34023
34024         Tests for module 'unistr/u16-strdup'.
34025         * modules/unistr/u16-strdup-tests: New file.
34026         * tests/unistr/test-u16-strdup.c: New file.
34027
34028         Tests for module 'unistr/u8-strdup'.
34029         * modules/unistr/u8-strdup-tests: New file.
34030         * tests/unistr/test-u8-strdup.c: New file.
34031         * tests/unistr/test-strdup.h: New file.
34032
34033         Tests for module 'unistr/u32-strncmp'.
34034         * modules/unistr/u32-strncmp-tests: New file.
34035         * tests/unistr/test-u32-strncmp.c: New file.
34036
34037         Tests for module 'unistr/u16-strncmp'.
34038         * modules/unistr/u16-strncmp-tests: New file.
34039         * tests/unistr/test-u16-strncmp.c: New file.
34040
34041         Tests for module 'unistr/u8-strncmp'.
34042         * modules/unistr/u8-strncmp-tests: New file.
34043         * tests/unistr/test-u8-strncmp.c: New file.
34044         * tests/unistr/test-strncmp.h: New file.
34045
34046         Tests for module 'unistr/u32-strcoll'.
34047         * modules/unistr/u32-strcoll-tests: New file.
34048         * tests/unistr/test-u32-strcoll.c: New file.
34049
34050         Tests for module 'unistr/u16-strcoll'.
34051         * modules/unistr/u16-strcoll-tests: New file.
34052         * tests/unistr/test-u16-strcoll.c: New file.
34053
34054         Tests for module 'unistr/u8-strcoll'.
34055         * modules/unistr/u8-strcoll-tests: New file.
34056         * tests/unistr/test-u8-strcoll.c: New file.
34057
34058         Tests for module 'unistr/u32-strcmp'.
34059         * modules/unistr/u32-strcmp-tests: New file.
34060         * tests/unistr/test-u32-strcmp.c: New file.
34061         * tests/unistr/test-u32-strcmp.h: New file.
34062
34063         Tests for module 'unistr/u16-strcmp'.
34064         * modules/unistr/u16-strcmp-tests: New file.
34065         * tests/unistr/test-u16-strcmp.c: New file.
34066         * tests/unistr/test-u16-strcmp.h: New file.
34067
34068         Tests for module 'unistr/u8-strcmp'.
34069         * modules/unistr/u8-strcmp-tests: New file.
34070         * tests/unistr/test-u8-strcmp.c: New file.
34071         * tests/unistr/test-u8-strcmp.h: New file.
34072         * tests/unistr/test-strcmp.h: New file.
34073
34074         Tests for module 'unistr/u32-strncat'.
34075         * modules/unistr/u32-strncat-tests: New file.
34076         * tests/unistr/test-u32-strncat.c: New file.
34077
34078         Tests for module 'unistr/u16-strncat'.
34079         * modules/unistr/u16-strncat-tests: New file.
34080         * tests/unistr/test-u16-strncat.c: New file.
34081
34082         Tests for module 'unistr/u8-strncat'.
34083         * modules/unistr/u8-strncat-tests: New file.
34084         * tests/unistr/test-u8-strncat.c: New file.
34085         * tests/unistr/test-strncat.h: New file.
34086
34087         Tests for module 'unistr/u32-strcat'.
34088         * modules/unistr/u32-strcat-tests: New file.
34089         * tests/unistr/test-u32-strcat.c: New file.
34090
34091         Tests for module 'unistr/u16-strcat'.
34092         * modules/unistr/u16-strcat-tests: New file.
34093         * tests/unistr/test-u16-strcat.c: New file.
34094
34095         Tests for module 'unistr/u8-strcat'.
34096         * modules/unistr/u8-strcat-tests: New file.
34097         * tests/unistr/test-u8-strcat.c: New file.
34098         * tests/unistr/test-strcat.h: New file.
34099
34100         Tests for module 'unistr/u32-stpncpy'.
34101         * modules/unistr/u32-stpncpy-tests: New file.
34102         * tests/unistr/test-u32-stpncpy.c: New file.
34103
34104         Tests for module 'unistr/u16-stpncpy'.
34105         * modules/unistr/u16-stpncpy-tests: New file.
34106         * tests/unistr/test-u16-stpncpy.c: New file.
34107
34108         Tests for module 'unistr/u8-stpncpy'.
34109         * modules/unistr/u8-stpncpy-tests: New file.
34110         * tests/unistr/test-u8-stpncpy.c: New file.
34111         * tests/unistr/test-stpncpy.h: New file.
34112
34113         Tests for module 'unistr/u32-strncpy'.
34114         * modules/unistr/u32-strncpy-tests: New file.
34115         * tests/unistr/test-u32-strncpy.c: New file.
34116
34117         Tests for module 'unistr/u16-strncpy'.
34118         * modules/unistr/u16-strncpy-tests: New file.
34119         * tests/unistr/test-u16-strncpy.c: New file.
34120
34121         Tests for module 'unistr/u8-strncpy'.
34122         * modules/unistr/u8-strncpy-tests: New file.
34123         * tests/unistr/test-u8-strncpy.c: New file.
34124         * tests/unistr/test-strncpy.h: New file.
34125
34126         Tests for module 'unistr/u32-stpcpy'.
34127         * modules/unistr/u32-stpcpy-tests: New file.
34128         * tests/unistr/test-u32-stpcpy.c: New file.
34129
34130         Tests for module 'unistr/u16-stpcpy'.
34131         * modules/unistr/u16-stpcpy-tests: New file.
34132         * tests/unistr/test-u16-stpcpy.c: New file.
34133
34134         Tests for module 'unistr/u8-stpcpy'.
34135         * modules/unistr/u8-stpcpy-tests: New file.
34136         * tests/unistr/test-u8-stpcpy.c: New file.
34137         * tests/unistr/test-stpcpy.h: New file.
34138
34139         Tests for module 'unistr/u32-strcpy'.
34140         * modules/unistr/u32-strcpy-tests: New file.
34141         * tests/unistr/test-u32-strcpy.c: New file.
34142
34143         Tests for module 'unistr/u16-strcpy'.
34144         * modules/unistr/u16-strcpy-tests: New file.
34145         * tests/unistr/test-u16-strcpy.c: New file.
34146
34147         Tests for module 'unistr/u8-strcpy'.
34148         * modules/unistr/u8-strcpy-tests: New file.
34149         * tests/unistr/test-u8-strcpy.c: New file.
34150         * tests/unistr/test-strcpy.h: New file.
34151
34152         Tests for module 'unistr/u32-strnlen'.
34153         * modules/unistr/u32-strnlen-tests: New file.
34154         * tests/unistr/test-u32-strnlen.c: New file.
34155
34156         Tests for module 'unistr/u16-strnlen'.
34157         * modules/unistr/u16-strnlen-tests: New file.
34158         * tests/unistr/test-u16-strnlen.c: New file.
34159
34160         Tests for module 'unistr/u8-strnlen'.
34161         * modules/unistr/u8-strnlen-tests: New file.
34162         * tests/unistr/test-u8-strnlen.c: New file.
34163         * tests/unistr/test-strnlen.h: New file.
34164
34165         Tests for module 'unistr/u32-strlen'.
34166         * modules/unistr/u32-strlen-tests: New file.
34167         * tests/unistr/test-u32-strlen.c: New file.
34168
34169         Tests for module 'unistr/u16-strlen'.
34170         * modules/unistr/u16-strlen-tests: New file.
34171         * tests/unistr/test-u16-strlen.c: New file.
34172
34173         Tests for module 'unistr/u8-strlen'.
34174         * modules/unistr/u8-strlen-tests: New file.
34175         * tests/unistr/test-u8-strlen.c: New file.
34176
34177         Tests for module 'unistr/u32-prev'.
34178         * modules/unistr/u32-prev-tests: New file.
34179         * tests/unistr/test-u32-prev.c: New file.
34180
34181         Tests for module 'unistr/u16-prev'.
34182         * modules/unistr/u16-prev-tests: New file.
34183         * tests/unistr/test-u16-prev.c: New file.
34184
34185         Tests for module 'unistr/u8-prev'.
34186         * modules/unistr/u8-prev-tests: New file.
34187         * tests/unistr/test-u8-prev.c: New file.
34188
34189         Tests for module 'unistr/u32-next'.
34190         * modules/unistr/u32-next-tests: New file.
34191         * tests/unistr/test-u32-next.c: New file.
34192
34193         Tests for module 'unistr/u16-next'.
34194         * modules/unistr/u16-next-tests: New file.
34195         * tests/unistr/test-u16-next.c: New file.
34196
34197         Tests for module 'unistr/u8-next'.
34198         * modules/unistr/u8-next-tests: New file.
34199         * tests/unistr/test-u8-next.c: New file.
34200
34201         Tests for module 'unistr/u32-strmbtouc'.
34202         * modules/unistr/u32-strmbtouc-tests: New file.
34203         * tests/unistr/test-u32-strmbtouc.c: New file.
34204
34205         Tests for module 'unistr/u16-strmbtouc'.
34206         * modules/unistr/u16-strmbtouc-tests: New file.
34207         * tests/unistr/test-u16-strmbtouc.c: New file.
34208
34209         Tests for module 'unistr/u8-strmbtouc'.
34210         * modules/unistr/u8-strmbtouc-tests: New file.
34211         * tests/unistr/test-u8-strmbtouc.c: New file.
34212
34213         Tests for module 'unistr/u32-strmblen'.
34214         * modules/unistr/u32-strmblen-tests: New file.
34215         * tests/unistr/test-u32-strmblen.c: New file.
34216
34217         Tests for module 'unistr/u16-strmblen'.
34218         * modules/unistr/u16-strmblen-tests: New file.
34219         * tests/unistr/test-u16-strmblen.c: New file.
34220
34221         Tests for module 'unistr/u8-strmblen'.
34222         * modules/unistr/u8-strmblen-tests: New file.
34223         * tests/unistr/test-u8-strmblen.c: New file.
34224
34225         Tests for module 'unistr/u32-cpy-alloc'.
34226         * modules/unistr/u32-cpy-alloc-tests: New file.
34227         * tests/unistr/test-u32-cpy-alloc.c: New file.
34228
34229         Tests for module 'unistr/u16-cpy-alloc'.
34230         * modules/unistr/u16-cpy-alloc-tests: New file.
34231         * tests/unistr/test-u16-cpy-alloc.c: New file.
34232
34233         Tests for module 'unistr/u8-cpy-alloc'.
34234         * modules/unistr/u8-cpy-alloc-tests: New file.
34235         * tests/unistr/test-u8-cpy-alloc.c: New file.
34236         * tests/unistr/test-cpy-alloc.h: New file.
34237
34238         Tests for module 'unistr/u32-mbsnlen'.
34239         * modules/unistr/u32-mbsnlen-tests: New file.
34240         * tests/unistr/test-u32-mbsnlen.c: New file.
34241
34242         Tests for module 'unistr/u16-mbsnlen'.
34243         * modules/unistr/u16-mbsnlen-tests: New file.
34244         * tests/unistr/test-u16-mbsnlen.c: New file.
34245
34246         Tests for module 'unistr/u8-mbsnlen'.
34247         * modules/unistr/u8-mbsnlen-tests: New file.
34248         * tests/unistr/test-u8-mbsnlen.c: New file.
34249
34250         Tests for module 'unistr/u32-chr'.
34251         * modules/unistr/u32-chr-tests: New file.
34252         * tests/unistr/test-u32-chr.c: New file.
34253
34254         Tests for module 'unistr/u16-chr'.
34255         * modules/unistr/u16-chr-tests: New file.
34256         * tests/unistr/test-u16-chr.c: New file.
34257
34258         Tests for module 'unistr/u8-chr'.
34259         * modules/unistr/u8-chr-tests: New file.
34260         * tests/unistr/test-u8-chr.c: New file.
34261         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34262
34263         Tests for module 'unistr/u32-cmp2'.
34264         * modules/unistr/u32-cmp2-tests: New file.
34265         * tests/unistr/test-u32-cmp2.c: New file.
34266
34267         Tests for module 'unistr/u16-cmp2'.
34268         * modules/unistr/u16-cmp2-tests: New file.
34269         * tests/unistr/test-u16-cmp2.c: New file.
34270
34271         Tests for module 'unistr/u8-cmp2'.
34272         * modules/unistr/u8-cmp2-tests: New file.
34273         * tests/unistr/test-u8-cmp2.c: New file.
34274         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34275
34276         Tests for module 'unistr/u32-cmp'.
34277         * modules/unistr/u32-cmp-tests: New file.
34278         * tests/unistr/test-u32-cmp.c: New file.
34279
34280         Tests for module 'unistr/u16-cmp'.
34281         * modules/unistr/u16-cmp-tests: New file.
34282         * tests/unistr/test-u16-cmp.c: New file.
34283
34284         Tests for module 'unistr/u8-cmp'.
34285         * modules/unistr/u8-cmp-tests: New file.
34286         * tests/unistr/test-u8-cmp.c: New file.
34287         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34288
34289         Tests for module 'unistr/u32-set'.
34290         * modules/unistr/u32-set-tests: New file.
34291         * tests/unistr/test-u32-set.c: New file.
34292
34293         Tests for module 'unistr/u16-set'.
34294         * modules/unistr/u16-set-tests: New file.
34295         * tests/unistr/test-u16-set.c: New file.
34296
34297         Tests for module 'unistr/u8-set'.
34298         * modules/unistr/u8-set-tests: New file.
34299         * tests/unistr/test-u8-set.c: New file.
34300         * tests/unistr/test-set.h: New file.
34301
34302         Tests for module 'unistr/u32-move'.
34303         * modules/unistr/u32-move-tests: New file.
34304         * tests/unistr/test-u32-move.c: New file.
34305
34306         Tests for module 'unistr/u16-move'.
34307         * modules/unistr/u16-move-tests: New file.
34308         * tests/unistr/test-u16-move.c: New file.
34309
34310         Tests for module 'unistr/u8-move'.
34311         * modules/unistr/u8-move-tests: New file.
34312         * tests/unistr/test-u8-move.c: New file.
34313         * tests/unistr/test-move.h: New file.
34314
34315         Tests for module 'unistr/u32-cpy'.
34316         * modules/unistr/u32-cpy-tests: New file.
34317         * tests/unistr/test-u32-cpy.c: New file.
34318
34319         Tests for module 'unistr/u16-cpy'.
34320         * modules/unistr/u16-cpy-tests: New file.
34321         * tests/unistr/test-u16-cpy.c: New file.
34322
34323         Tests for module 'unistr/u8-cpy'.
34324         * modules/unistr/u8-cpy-tests: New file.
34325         * tests/unistr/test-u8-cpy.c: New file.
34326         * tests/unistr/test-cpy.h: New file.
34327
34328 2010-01-09  Bruno Haible  <bruno@clisp.org>
34329
34330         Tests for module 'unistr/u32-uctomb'.
34331         * modules/unistr/u32-uctomb-tests: New file.
34332         * tests/unistr/test-u32-uctomb.c: New file.
34333
34334         Tests for module 'unistr/u16-uctomb'.
34335         * modules/unistr/u16-uctomb-tests: New file.
34336         * tests/unistr/test-u16-uctomb.c: New file.
34337
34338         Tests for module 'unistr/u8-uctomb'.
34339         * modules/unistr/u8-uctomb-tests: New file.
34340         * tests/unistr/test-u8-uctomb.c: New file.
34341
34342         Tests for module 'unistr/u32-mbtoucr'.
34343         * modules/unistr/u32-mbtoucr-tests: New file.
34344         * tests/unistr/test-u32-mbtoucr.c: New file.
34345
34346         Tests for module 'unistr/u16-mbtoucr'.
34347         * modules/unistr/u16-mbtoucr-tests: New file.
34348         * tests/unistr/test-u16-mbtoucr.c: New file.
34349
34350         Tests for module 'unistr/u8-mbtoucr'.
34351         * modules/unistr/u8-mbtoucr-tests: New file.
34352         * tests/unistr/test-u8-mbtoucr.c: New file.
34353
34354         Tests for module 'unistr/u32-mbtouc'.
34355         * modules/unistr/u32-mbtouc-tests: New file.
34356         * tests/unistr/test-u32-mbtouc.c: New file.
34357
34358         Tests for module 'unistr/u16-mbtouc'.
34359         * modules/unistr/u16-mbtouc-tests: New file.
34360         * tests/unistr/test-u16-mbtouc.c: New file.
34361
34362         Tests for module 'unistr/u8-mbtouc'.
34363         * modules/unistr/u8-mbtouc-tests: New file.
34364         * tests/unistr/test-u8-mbtouc.c: New file.
34365
34366         Tests for module 'unistr/u32-mbtouc-unsafe'.
34367         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34368         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34369         * tests/unistr/test-u32-mbtouc.h: New file.
34370
34371         Tests for module 'unistr/u16-mbtouc-unsafe'.
34372         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34373         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34374         * tests/unistr/test-u16-mbtouc.h: New file.
34375
34376         Tests for module 'unistr/u8-mbtouc-unsafe'.
34377         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34378         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34379         * tests/unistr/test-u8-mbtouc.h: New file.
34380
34381         Tests for module 'unistr/u32-mblen'.
34382         * modules/unistr/u32-mblen-tests: New file.
34383         * tests/unistr/test-u32-mblen.c: New file.
34384
34385         Tests for module 'unistr/u16-mblen'.
34386         * modules/unistr/u16-mblen-tests: New file.
34387         * tests/unistr/test-u16-mblen.c: New file.
34388
34389         Tests for module 'unistr/u8-mblen'.
34390         * modules/unistr/u8-mblen-tests: New file.
34391         * tests/unistr/test-u8-mblen.c: New file.
34392
34393         Tests for module 'unistr/u32-to-u16'.
34394         * modules/unistr/u32-to-u16-tests: New file.
34395         * tests/unistr/test-u32-to-u16.c: New file.
34396
34397         Tests for module 'unistr/u32-to-u8'.
34398         * modules/unistr/u32-to-u8-tests: New file.
34399         * tests/unistr/test-u32-to-u8.c: New file.
34400
34401         Tests for module 'unistr/u16-to-u32'.
34402         * modules/unistr/u16-to-u32-tests: New file.
34403         * tests/unistr/test-u16-to-u32.c: New file.
34404
34405         Tests for module 'unistr/u16-to-u8'.
34406         * modules/unistr/u16-to-u8-tests: New file.
34407         * tests/unistr/test-u16-to-u8.c: New file.
34408
34409         Tests for module 'unistr/u8-to-u32'.
34410         * modules/unistr/u8-to-u32-tests: New file.
34411         * tests/unistr/test-u8-to-u32.c: New file.
34412
34413         Tests for module 'unistr/u8-to-u16'.
34414         * modules/unistr/u8-to-u16-tests: New file.
34415         * tests/unistr/test-u8-to-u16.c: New file.
34416
34417         Tests for module 'unistr/u32-check'.
34418         * modules/unistr/u32-check-tests: New file.
34419         * tests/unistr/test-u32-check.c: New file.
34420
34421         Tests for module 'unistr/u16-check'.
34422         * modules/unistr/u16-check-tests: New file.
34423         * tests/unistr/test-u16-check.c: New file.
34424
34425         Tests for module 'unistr/u8-check'.
34426         * modules/unistr/u8-check-tests: New file.
34427         * tests/unistr/test-u8-check.c: New file.
34428
34429         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34430         (category_equals): New function.
34431         (main): Add more tests.
34432         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34433
34434         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34435
34436 2010-01-10  Bruno Haible  <bruno@clisp.org>
34437
34438         unistr/u*-strcoll: Try harder to distinguish different strings.
34439         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34440         compare s1 and s2 to see if they are different.
34441
34442 2010-01-10  Bruno Haible  <bruno@clisp.org>
34443
34444         unistr/u*-stpncpy: Fix the return value.
34445         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34446         description of the return value consistent with stpncpy in glibc.
34447         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34448         written non-NUL unit.
34449
34450 2010-01-10  Bruno Haible  <bruno@clisp.org>
34451
34452         unistr/u*-next: Add missing dependencies.
34453         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34454         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34455         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34456
34457 2010-01-10  Bruno Haible  <bruno@clisp.org>
34458
34459         unistr/u8-mbsnlen: Fix return value for incomplete character.
34460         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34461         u8_mblen.
34462         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34463         Remove unistr/u8-mblen.
34464         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34465         u16_mblen.
34466         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34467         Remove unistr/u16-mblen.
34468
34469 2010-01-10  Bruno Haible  <bruno@clisp.org>
34470
34471         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34472         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34473         Reported by Brian Gough <bjg@gnu.org> and
34474         Chris Clayton <chris2553@googlemail.com> via
34475         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34476
34477 2010-01-09  Bruno Haible  <bruno@clisp.org>
34478
34479         unistr/u16-to-u32: Reject invalid input.
34480         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34481         u16_mbtouc.
34482         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34483         Remove unistr/u16-mbtouc.
34484
34485         unistr/u16-to-u8: Reject invalid input.
34486         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34487         u16_mbtouc.
34488         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34489         Remove unistr/u16-mbtouc.
34490
34491         unistr/u8-to-u32: Reject invalid input.
34492         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34493         u8_mbtouc.
34494         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34495         Remove unistr/u8-mbtouc.
34496
34497         unistr/u8-to-u16: Reject invalid input.
34498         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34499         u8_mbtouc.
34500         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34501         Remove unistr/u8-mbtouc.
34502
34503 2010-01-09  Bruno Haible  <bruno@clisp.org>
34504
34505         Tests for module 'getlogin'.
34506         * modules/getlogin-tests: New file.
34507         * tests/test-getlogin.c: New file.
34508
34509         New module 'getlogin'.
34510         * lib/unistd.in.h (getlogin): New declaration.
34511         * lib/getlogin.c: New file.
34512         * m4/getlogin.m4: New file.
34513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34514         HAVE_GETLOGIN.
34515         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34516         HAVE_GETLOGIN.
34517         * modules/getlogin: New file.
34518         * doc/posix-functions/getlogin.texi: Mention the new module.
34519         Reported by John W. Eaton <jwe@gnu.org>.
34520
34521 2010-01-09  Bruno Haible  <bruno@clisp.org>
34522
34523         getlogin_r: Support for native Windows.
34524         * lib/getlogin_r.c: Include <windows.h>
34525         (getlogin_r): Implement for native Windows.
34526         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34527         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34528         via John W. Eaton <jwe@gnu.org>.
34529
34530 2010-01-09  Bruno Haible  <bruno@clisp.org>
34531
34532         getlogin_r: Small fixes.
34533         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34534         succeeds.
34535         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34536         before testing whether getlogin_r is declared. No need to set
34537         HAVE_DECL_GETLOGIN_R to 1.
34538         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34539
34540 2010-01-09  Bruno Haible  <bruno@clisp.org>
34541
34542         * lib/unistd.in.h (getlogin_r): Add comment.
34543
34544 2010-01-09  Bruno Haible  <bruno@clisp.org>
34545
34546         Tests for module 'getlogin_r'.
34547         * modules/getlogin_r-tests: New file.
34548         * tests/test-getlogin_r.c: New file.
34549
34550 2010-01-09  Jim Meyering  <meyering@redhat.com>
34551
34552         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34553         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34554         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34555
34556 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34557
34558         * lib/dup2.c (rpl_dup2): Improve comment.
34559
34560 2010-01-08  Eric Blake  <ebb9@byu.net>
34561
34562         maint.mk: allow packages to add makefile @@ exceptions
34563         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34564         (sc_makefile_check): Rename...
34565         (sc_makefile_at_at_check): ...to this, and use hook.
34566
34567         dup2: work around mingw bug
34568         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34569         Reported by Simon Josefsson.
34570
34571 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34572
34573         glob: Fix C++ compilation.
34574         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34575         C++.
34576
34577 2010-01-07  Bruno Haible  <bruno@clisp.org>
34578
34579         Fix indentation of wctype.in.h, broken since 2007-01-06.
34580         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34581
34582 2010-01-07  Bruno Haible  <bruno@clisp.org>
34583
34584         mbslen: Avoid collision with system function.
34585         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34586         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34587         * m4/mbslen.m4: New file.
34588         * modules/mbslen (Files): Add it.
34589         (configure.ac): Invoke gl_MBSLEN.
34590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34591         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34592         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34593         via Ian Beckwith <ianb@erislabs.net>.
34594
34595 2010-01-07  Bruno Haible  <bruno@clisp.org>
34596
34597         dirent: Document the last fix.
34598         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34599
34600 2010-01-07  Bruno Haible  <bruno@clisp.org>
34601
34602         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34603         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34604         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34605         va_list are defined.
34606         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34607         Reported by Eric Blake.
34608
34609 2010-01-07  Bruno Haible  <bruno@clisp.org>
34610
34611         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34612         * modules/xlist (Depends-on): Add 'list',
34613         * modules/xoset (Depends-on): Add 'oset'.
34614         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34615
34616 2010-01-07  Bruno Haible  <bruno@clisp.org>
34617
34618         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34619         * doc/posix-functions/strncasecmp.texi: Likewise.
34620
34621 2010-01-07  Bruno Haible  <bruno@clisp.org>
34622
34623         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34624
34625 2010-01-07  John W. Eaton  <jwe@octave.org>
34626
34627         wctype: allow C++ use
34628         * lib/wctype.in.h: Add extern "C" block for C++.
34629
34630 2010-01-06  Eric Blake  <ebb9@byu.net>
34631
34632         maint.mk: detect incorrect GFDL usage
34633         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34634
34635 2010-01-06  Jim Meyering  <meyering@redhat.com>
34636         and Eric Blake  <ebb9@byu.net>
34637
34638         maint.mk: ignore multi-line copyright in NEWS
34639         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34640
34641 2010-01-06  Eric Blake  <ebb9@byu.net>
34642
34643         select: add missing dependency
34644         * modules/select-tests (Depends-on): Move sockets dependency...
34645         * modules/select (Depends-on): ...here.
34646         Reported by Ian Beckwith.
34647
34648         doc: regenerate INSTALL
34649         * doc/INSTALL: Reflect recent autoconf update.
34650         * doc/INSTALL.ISO: Likewise.
34651         * doc/INSTALL.UTF-8: Likewise.
34652
34653         pread: fix compilation on glibc
34654         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34655         Reported by Ralf Wildenhues.
34656
34657         dirent: fix test failure
34658         * lib/dirent.in.h (includes): Guarantee ino_t.
34659         Reported by Ralf Wildenhues.
34660
34661 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34662
34663         linkat, renameat: avoid bad free
34664         * lib/at-func2.c (at_func2): Fix typo.
34665         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34666
34667 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34668
34669         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34670         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34671         to avoid failure of symlink test later.
34672
34673 2010-01-06  Eric Blake  <ebb9@byu.net>
34674
34675         stdio, unistd: guarantee ssize_t
34676         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34677         2008 are exposed when needed.
34678         * lib/stdio.in.h (includes): Likewise.
34679         Reported by Ralf Wildenhues.
34680
34681 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34682
34683         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34684         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34685         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34686
34687 2010-01-06  Jim Meyering  <meyering@redhat.com>
34688
34689         readtokens: this module *does* require xalloc.h
34690         It uses only functions that were omitted by the old syntax-check rule.
34691         * lib/readtokens.c: Include "xalloc.h" once again.
34692         * modules/readtokens (Depends-on): Add xalloc.
34693         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34694
34695 2010-01-05  Eric Blake  <ebb9@byu.net>
34696
34697         maint: support 'make announcement' from a VPATH build
34698         * top/maint.mk (announcement): Look for correct NEWS file.
34699
34700 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34701
34702         utimens (fdutimens): ignore a negative FD, per contract
34703         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34704         when we have a valid file descriptor.  Otherwise, using a brand
34705         new glibc (with just-patched futimens that now fails with EBADF)
34706         would cause this function to fail with ENOSYS.
34707         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34708         See also http://bugzilla.redhat.com/552320.
34709
34710 2010-01-05  Eric Blake  <ebb9@byu.net>
34711
34712         strcase: document what it provides
34713         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34714         gnulib module.
34715         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34716         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34717
34718 2010-01-05  Jim Meyering  <meyering@redhat.com>
34719
34720         maint: remove useless inclusions of "xalloc.h"
34721         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34722         * lib/readtokens.c: Likewise.
34723         * lib/same.c: Likewise.
34724         * modules/getloadavg (Depends-on): Remove xalloc.
34725         * modules/readtokens: Likewise.
34726         * modules/same: Likewise.
34727
34728         maint.mk: include 4 more function names in alloca.h-checking regexp
34729         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34730         regexp.  Before, we would give a false-positive (saying alloca.h
34731         is included unnecessarily) when the only uses involved omitted symbols.
34732
34733         xalloc.h: use consistent formatting
34734         * lib/xalloc.h: Move declarations to start in the first column.
34735
34736 2010-01-05  Eric Blake  <ebb9@byu.net>
34737
34738         mkdir: avoid xalloc
34739         * lib/mkdir.c (includes): Drop unused header.
34740         Reported by John W. Eaton.
34741
34742 2010-01-04  Jim Meyering  <meyering@redhat.com>
34743
34744         nl_langinfo: avoid configure-time syntax error
34745         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34746         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34747         the empty string.  Don't let that provoke a shell syntax error.
34748
34749         regcomp, regexec, fnmatch: avoid array bounds read error
34750         * lib/regcomp.c (build_equiv_class): From glibc:
34751         Use only the low 24 bits of a findidx return value as an index
34752         into the weights array.  Patch by Ulrich Drepper:
34753         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34754         * lib/regexec.c (check_node_accept_bytes): Likewise.
34755         * lib/fnmatch_loop.c (FCT): Likewise.
34756
34757         regcomp: skip collseq lookup when there are no rules
34758         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34759         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34760
34761         regcomp: recognize ill-formed { } expressions
34762         * lib/regcomp.c (parse_dup_op): From glibc:
34763         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34764
34765         regcomp: fix typo in comment
34766         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34767         s/satisfy/satisfies/.
34768
34769         regcomp: sync from glibc: remove dead store
34770         * lib/regcomp.c (duplicate_node_closure): Remove useless
34771         search_duplicated_node call and dead store.
34772
34773         regcomp: sync from glibc; always use nl_langinfo
34774         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34775         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34776         * modules/regex (Depends-on): Add nl_langinfo.
34777
34778 2010-01-04  Eric Blake  <ebb9@byu.net>
34779
34780         fdopendir: fix configure test
34781         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34782
34783 2010-01-01  Bruno Haible  <bruno@clisp.org>
34784
34785         wchar: Remove unused configure check.
34786         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34787
34788 2010-01-01  Eric Blake  <ebb9@byu.net>
34789
34790         headers: make check of system header explicit
34791         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34792         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34793         ourselves.
34794         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34795         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34796         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34797         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34798         internals.
34799         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34800         missing.
34801         Suggested by Bruno Haible.
34802
34803 2010-01-01  Jim Meyering  <meyering@redhat.com>
34804
34805         ChangeLog: tweak to eliminate unnecessary copyright line
34806         * ChangeLog: Remove a copyright line that was mistakenly updated
34807         by today's update-copyright run.  Reported by Eric Blake.
34808
34809         test-update-copyright: don't let envvar setting cause test failure
34810         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34811
34812 2010-01-01  Bruno Haible  <bruno@clisp.org>
34813
34814         localename: Avoid gcc warning.
34815         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34816         function if it is not used.
34817
34818 2010-01-01  Jim Meyering  <meyering@redhat.com>
34819
34820         update nearly all FSF copyright year lists to include 2010
34821         Use the same procedure as for 2009, outlined in
34822         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34823
34824         version-etc: set COPYRIGHT_YEAR to 2010
34825         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34826
34827 2009-12-31  Eric Blake  <ebb9@byu.net>
34828
34829         doc: correct availability of cygwin 1.5.x getopt
34830         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34831         variables.
34832         * doc/posix-functions/opterr.texi (opterr): Likewise.
34833         * doc/posix-functions/optind.texi (optind): Likewise.
34834         * doc/posix-functions/optopt.texi (optopt): Likewise.
34835         * doc/posix-functions/tzname.texi (tzname): Likewise.
34836
34837         openat: update maintainer
34838         * modules/openat (Maintainer): Add myself.
34839
34840         utimens: avoid shadowing warning
34841         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34842         buffers into one, to avoid shadowing, as well as avoiding a
34843         redundant stat.
34844         Reported by Jim Meyering.
34845
34846         test-dup2: avoid compiler warning
34847         * tests/test-dup2.c (is_inheritable): Only define if used.
34848
34849 2010-01-01  Bruno Haible  <bruno@clisp.org>
34850
34851         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34852         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34853         defined, use wctomb instead of wcrtomb.
34854
34855 2010-01-01  Bruno Haible  <bruno@clisp.org>
34856
34857         iconv: Reject native Solaris iconv.
34858         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34859         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34860
34861 2009-12-31  Bruno Haible  <bruno@clisp.org>
34862
34863         * tests/test-signal.c (main): Remove test of 'SIG'.
34864
34865 2009-12-31  Bruno Haible  <bruno@clisp.org>
34866
34867         spawn: Fix incomplete fix.
34868         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34869         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34870         warnings for GNULIB_POSIXCHECK again.
34871         Reported by Eric Blake.
34872
34873 2009-12-31  Bruno Haible  <bruno@clisp.org>
34874
34875         Avoid namespace pollution on glibc systems.
34876         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34877         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34878         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34879         glibc systems.
34880
34881 2009-12-31  Bruno Haible  <bruno@clisp.org>
34882
34883         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34884         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34885         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34886         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34887         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34888         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34889         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34890
34891 2009-12-31  Bruno Haible  <bruno@clisp.org>
34892
34893         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34894         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34895         afterwards.
34896
34897 2009-12-31  Bruno Haible  <bruno@clisp.org>
34898
34899         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34900         SYS_UTSNAME_H.
34901
34902 2009-12-31  Bruno Haible  <bruno@clisp.org>
34903
34904         spawn: Fix misapplied patch.
34905         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34906         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34907         warnings for GNULIB_POSIXCHECK.
34908
34909 2009-12-31  Bruno Haible  <bruno@clisp.org>
34910
34911         times: Update after sys_times changed.
34912         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34913         * modules/times (Files): Add it.
34914         (configure.ac): Invoke gl_FUNC_TIMES.
34915
34916 2009-12-31  Bruno Haible  <bruno@clisp.org>
34917
34918         Use AC_C_INLINE where necessary.
34919         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34920         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34921         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34922         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34923         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34924         * m4/mbiter.m4 (gl_MBITER): Likewise.
34925         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34926         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34927         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34928         * modules/u64 (configure.ac): Likewise.
34929
34930 2009-12-31  Bruno Haible  <bruno@clisp.org>
34931
34932         Use AC_C_INLINE instead of module 'inline' where possible.
34933         * modules/inline (Description): Clarify purpose.
34934         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34935         * modules/count-one-bits (Depends-on): Remove inline.
34936         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34937         * modules/openat (Depends-on): Remove inline.
34938         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34939         instead of depending on module 'inline'.
34940         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34941         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34942         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34943         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34944         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34945         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34946         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34947         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34948         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34949         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34950         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34951         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34952         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34953         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34954         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34955         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34956         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34957         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34958         Likewise.
34959         * modules/unictype/property-ascii-hex-digit (Depends-on,
34960         configure.ac): Likewise.
34961         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34962         configure.ac): Likewise.
34963         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34964         configure.ac): Likewise.
34965         * modules/unictype/property-bidi-block-separator (Depends-on,
34966         configure.ac): Likewise.
34967         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34968         configure.ac): Likewise.
34969         * modules/unictype/property-bidi-common-separator (Depends-on,
34970         configure.ac): Likewise.
34971         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34972         Likewise.
34973         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34974         configure.ac): Likewise.
34975         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34976         configure.ac): Likewise.
34977         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34978         configure.ac): Likewise.
34979         * modules/unictype/property-bidi-european-digit (Depends-on,
34980         configure.ac): Likewise.
34981         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34982         configure.ac): Likewise.
34983         * modules/unictype/property-bidi-left-to-right (Depends-on,
34984         configure.ac): Likewise.
34985         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34986         configure.ac): Likewise.
34987         * modules/unictype/property-bidi-other-neutral (Depends-on,
34988         configure.ac): Likewise.
34989         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34990         Likewise.
34991         * modules/unictype/property-bidi-segment-separator (Depends-on,
34992         configure.ac): Likewise.
34993         * modules/unictype/property-bidi-whitespace (Depends-on,
34994         configure.ac): Likewise.
34995         * modules/unictype/property-combining (Depends-on, configure.ac):
34996         Likewise.
34997         * modules/unictype/property-composite (Depends-on, configure.ac):
34998         Likewise.
34999         * modules/unictype/property-currency-symbol (Depends-on,
35000         configure.ac): Likewise.
35001         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35002         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35003         Likewise.
35004         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35005         configure.ac): Likewise.
35006         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35007         Likewise.
35008         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35009         Likewise.
35010         * modules/unictype/property-extender (Depends-on, configure.ac):
35011         Likewise.
35012         * modules/unictype/property-format-control (Depends-on, configure.ac):
35013         Likewise.
35014         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35015         Likewise.
35016         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35017         Likewise.
35018         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35019         Likewise.
35020         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35021         Likewise.
35022         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35023         Likewise.
35024         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35025         Likewise.
35026         * modules/unictype/property-id-start (Depends-on, configure.ac):
35027         Likewise.
35028         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35029         Likewise.
35030         * modules/unictype/property-ids-binary-operator (Depends-on,
35031         configure.ac): Likewise.
35032         * modules/unictype/property-ids-trinary-operator (Depends-on,
35033         configure.ac): Likewise.
35034         * modules/unictype/property-ignorable-control (Depends-on,
35035         configure.ac): Likewise.
35036         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35037         Likewise.
35038         * modules/unictype/property-join-control (Depends-on, configure.ac):
35039         Likewise.
35040         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35041         Likewise.
35042         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35043         Likewise.
35044         * modules/unictype/property-logical-order-exception (Depends-on,
35045         configure.ac): Likewise.
35046         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35047         Likewise.
35048         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35049         * modules/unictype/property-non-break (Depends-on, configure.ac):
35050         Likewise.
35051         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35052         Likewise.
35053         * modules/unictype/property-numeric (Depends-on, configure.ac):
35054         Likewise.
35055         * modules/unictype/property-other-alphabetic (Depends-on,
35056         configure.ac): Likewise.
35057         * modules/unictype/property-other-default-ignorable-code-point
35058         (Depends-on, configure.ac): Likewise.
35059         * modules/unictype/property-other-grapheme-extend (Depends-on,
35060         configure.ac): Likewise.
35061         * modules/unictype/property-other-id-continue (Depends-on,
35062         configure.ac): Likewise.
35063         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35064         Likewise.
35065         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35066         Likewise.
35067         * modules/unictype/property-other-math (Depends-on, configure.ac):
35068         Likewise.
35069         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35070         Likewise.
35071         * modules/unictype/property-paired-punctuation (Depends-on,
35072         configure.ac): Likewise.
35073         * modules/unictype/property-paragraph-separator (Depends-on,
35074         configure.ac): Likewise.
35075         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35076         Likewise.
35077         * modules/unictype/property-pattern-white-space (Depends-on,
35078         configure.ac): Likewise.
35079         * modules/unictype/property-private-use (Depends-on, configure.ac):
35080         Likewise.
35081         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35082         Likewise.
35083         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35084         Likewise.
35085         * modules/unictype/property-radical (Depends-on, configure.ac):
35086         Likewise.
35087         * modules/unictype/property-sentence-terminal (Depends-on,
35088         configure.ac): Likewise.
35089         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35090         Likewise.
35091         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35092         * modules/unictype/property-terminal-punctuation (Depends-on,
35093         configure.ac): Likewise.
35094         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35095         Likewise.
35096         * modules/unictype/property-unassigned-code-value (Depends-on,
35097         configure.ac): Likewise.
35098         * modules/unictype/property-unified-ideograph (Depends-on,
35099         configure.ac): Likewise.
35100         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35101         Likewise.
35102         * modules/unictype/property-variation-selector (Depends-on,
35103         configure.ac): Likewise.
35104         * modules/unictype/property-white-space (Depends-on, configure.ac):
35105         Likewise.
35106         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35107         Likewise.
35108         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35109         Likewise.
35110         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35111         Likewise.
35112         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35113         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35114         Likewise.
35115
35116 2009-12-31  Bruno Haible  <bruno@clisp.org>
35117
35118         Remove unnecessary AC_C_INLINE invocation.
35119         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35120         since 2009-08-21.
35121
35122 2009-12-31  Jim Meyering  <meyering@redhat.com>
35123
35124         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35125         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35126         With this change, we can all remove the gpg_key_ID = ... definition
35127         from our respective cfg.mk files.
35128
35129         maint.mk: create announcement template in ~/, not in /tmp
35130         * top/maint.mk (emit_upload_commands): Adjust.
35131         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35132         Remove temporary file, .ci-msg.
35133
35134 2009-12-31  Eric Blake  <ebb9@byu.net>
35135
35136         link-warning: always build headers with link warnings
35137         * modules/arpa_inet (Makefile.am): Always build replacement
35138         header.
35139         * modules/ctype (Makefile.am): Likewise.
35140         * modules/dirent (Makefile.am): Likewise.
35141         * modules/inttypes (Makefile.am): Likewise.
35142         * modules/langinfo (Makefile.am): Likewise.
35143         * modules/locale (Makefile.am): Likewise.
35144         * modules/spawn (Makefile.am): Likewise.
35145         * modules/sys_file (Makefile.am): Likewise.
35146         * modules/sys_ioctl (Makefile.am): Likewise.
35147         * modules/sys_select (Makefile.am): Likewise.
35148         * modules/sys_socket (Makefile.am): Likewise.
35149         * modules/sys_times (Makefile.am): Likewise.
35150         * modules/sys_utsname (Makefile.am): Likewise.
35151         * modules/sys_wait (Makefile.am): Likewise.
35152         * modules/wchar (Makefile.am): Likewise.
35153         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35154         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35155         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35156         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35157         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35158         Likewise.
35159         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35160         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35161         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35162         Likewise.
35163         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35164         Likewise.
35165         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35166         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35167         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35168         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35169         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35170         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35171         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35172         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35173         (gl_WCHAR_H_DEFAULTS): Likewise.
35174
35175 2009-12-31  Eric Blake  <ebb9@byu.net>
35176
35177         signal, spawn: use link warnings
35178         * lib/signal.in.h (sigset_t): Make unconditional.
35179         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35180         (sigpending, sigprocmask, sigaction): Add link warnings.
35181         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35182         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35183         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35184         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35185         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35186         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35187         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35188         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35189         (posix_spawn_file_actions_destroy)
35190         (posix_spawn_file_actions_addopen)
35191         (posix_spawn_file_actions_addclose)
35192         (posix_spawn_file_actions_adddup2): Likewise.
35193         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35194         * tests/test-signal.c (main): Enhance test.
35195
35196         spawn: improve wrapper support
35197         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35198         (gl_SPAWN_H_DEFAULTS): New defaults.
35199         * modules/spawn (Makefile.am): Substitute them.
35200         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35201         Only declare if missing or broken.
35202
35203         sys_times, sys_utsname: use include_next
35204         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35205         header.
35206         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35207         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35208         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35209         * modules/sys_times (Depends-on): Add include_next.
35210         (Makefile.am): Substitute additional values.
35211         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35212         * lib/sys_times.in.h (includes): Include native header, if
35213         available.
35214         * lib/sys_utsname.in.h (includes): Likewise.
35215         * tests/test-sys_times.c (main): Enhance test.
35216
35217         fdutimensat: revert prior patch
35218         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35219         utimens.h.
35220         Reported by Bruno Haible.
35221
35222 2009-12-30  Eric Blake  <ebb9@byu.net>
35223
35224         sys_wait: drop link-warning dependency
35225         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35226         link-warning efforts.
35227         * lib/sys_wait.in.h: Likewise.
35228
35229         fdutimensat: remove bogus dependency
35230         * modules/fdutimensat (Depends-on): Drop inline.
35231
35232         unistd: fix typo
35233         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35234
35235 2009-12-30  Bruno Haible  <bruno@clisp.org>
35236
35237         Fix compilation error with Solaris cc.
35238         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35239         * lib/unicase/u16-is-invariant.c: Likewise.
35240         * lib/unicase/u32-is-invariant.c: Likewise.
35241         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35242
35243 2009-12-30  Bruno Haible  <bruno@clisp.org>
35244
35245         Fix test crash.
35246         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35247         locales.
35248         Reported by Simon Josefsson <simon@josefsson.org>.
35249
35250 2009-12-30  Bruno Haible  <bruno@clisp.org>
35251
35252         Fix compilation error on most platforms.
35253         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35254         Reported by Simon Josefsson <simon@josefsson.org>
35255         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35256
35257 2009-12-30  Eric Blake  <ebb9@byu.net>
35258
35259         futimens, utimensat: work around ntfs-3g bug
35260         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35261         a ctime bug is present, and expand workaround to cover ntfs-3g.
35262         * lib/utimens.c (fdutimens, lutimens): Likewise.
35263         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35264         (validate_timespec): Adjust return value.
35265         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35266         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35267         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35268
35269 2009-12-29  Eric Blake  <ebb9@byu.net>
35270
35271         link-warning: make usage consistent
35272         * modules/ctype (Depends-on): Add link-warning.
35273         (Makefile.am): Update rules accordingly.
35274         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35275         * modules/locale (Depends-on, Makefile.am): Likewise.
35276         * modules/sys_file (Makefile.am): Likewise.
35277         * modules/getopt-posix (Makefile.am): Delete unused link warning
35278         efforts.
35279         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35280         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35281         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35282         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35283
35284         stdio: remove unused variables
35285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35286         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35287         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35288
35289         tests: test more substitute headers
35290         * modules/ctype-tests: New file.
35291         * modules/dirent-tests: Likewise.
35292         * modules/spawn-tests: Likewise.
35293         * modules/sys_file-tests: Likewise.
35294         * modules/sys_ioctl-tests: Likewise.
35295         * modules/sys_wait-tests: Likewise.
35296         * tests/test-ctype.c: Likewise.
35297         * tests/test-dirent.c: Likewise.
35298         * tests/test-spawn.c: Likewise.
35299         * tests/test-sys_file.c: Likewise.
35300         * tests/test-sys_ioctl.c: Likewise.
35301         * tests/test-sys_wait.c: Likewise.
35302         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35303         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35304         whether or not flock is in use.
35305
35306         tests: remove License section from module
35307         * modules/arpa_inet-tests: Remove unneeded section.
35308         * modules/byteswap-tests: Likewise.
35309         * modules/ceilf-tests: Likewise.
35310         * modules/ceill-tests: Likewise.
35311         * modules/crypto/des-tests: Likewise.
35312         * modules/crypto/gc-arcfour-tests: Likewise.
35313         * modules/crypto/gc-arctwo-tests: Likewise.
35314         * modules/crypto/gc-des-tests: Likewise.
35315         * modules/crypto/gc-hmac-md5-tests: Likewise.
35316         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35317         * modules/crypto/gc-md2-tests: Likewise.
35318         * modules/crypto/gc-md4-tests: Likewise.
35319         * modules/crypto/gc-md5-tests: Likewise.
35320         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35321         * modules/crypto/gc-rijndael-tests: Likewise.
35322         * modules/crypto/gc-sha1-tests: Likewise.
35323         * modules/crypto/gc-tests: Likewise.
35324         * modules/crypto/md2-tests: Likewise.
35325         * modules/crypto/md4-tests: Likewise.
35326         * modules/fcntl-h-tests: Likewise.
35327         * modules/floorf-tests: Likewise.
35328         * modules/floorl-tests: Likewise.
35329         * modules/frexp-nolibm-tests: Likewise.
35330         * modules/frexp-tests: Likewise.
35331         * modules/frexpl-nolibm-tests: Likewise.
35332         * modules/frexpl-tests: Likewise.
35333         * modules/getaddrinfo-tests: Likewise.
35334         * modules/inttypes-tests: Likewise.
35335         * modules/isfinite-tests: Likewise.
35336         * modules/isinf-tests: Likewise.
35337         * modules/ldexpl-tests: Likewise.
35338         * modules/locale-tests: Likewise.
35339         * modules/math-tests: Likewise.
35340         * modules/netdb-tests: Likewise.
35341         * modules/netinet_in-tests: Likewise.
35342         * modules/printf-frexp-tests: Likewise.
35343         * modules/printf-frexpl-tests: Likewise.
35344         * modules/priv-set-tests: Likewise.
35345         * modules/random_r-tests: Likewise.
35346         * modules/round-tests: Likewise.
35347         * modules/roundf-tests: Likewise.
35348         * modules/roundl-tests: Likewise.
35349         * modules/search-tests: Likewise.
35350         * modules/select-tests: Likewise.
35351         * modules/signal-tests: Likewise.
35352         * modules/stdbool-tests: Likewise.
35353         * modules/stddef-tests: Likewise.
35354         * modules/stdint-tests: Likewise.
35355         * modules/stdio-tests: Likewise.
35356         * modules/stdlib-tests: Likewise.
35357         * modules/string-tests: Likewise.
35358         * modules/strings-tests: Likewise.
35359         * modules/sys_select-tests: Likewise.
35360         * modules/sys_socket-tests: Likewise.
35361         * modules/sys_stat-tests: Likewise.
35362         * modules/sys_time-tests: Likewise.
35363         * modules/sys_utsname-tests: Likewise.
35364         * modules/sysexits-tests: Likewise.
35365         * modules/time-tests: Likewise.
35366         * modules/trunc-tests: Likewise.
35367         * modules/truncf-tests: Likewise.
35368         * modules/truncl-tests: Likewise.
35369         * modules/tsearch-tests: Likewise.
35370         * modules/unistd-tests: Likewise.
35371         * modules/wchar-tests: Likewise.
35372         * modules/wctype-tests: Likewise.
35373
35374         tests: fix license on several tests
35375         * tests/test-des.c: Update to GPLv3+.
35376         * tests/test-flock.c: Likewise.
35377         * tests/test-fsync.c: Likewise.
35378         * tests/test-futimens.h: Likewise.
35379         * tests/test-gc-arcfour.c: Likewise.
35380         * tests/test-gc-arctwo.c: Likewise.
35381         * tests/test-gc-des.c: Likewise.
35382         * tests/test-gc-hmac-md5.c: Likewise.
35383         * tests/test-gc-hmac-sha1.c: Likewise.
35384         * tests/test-gc-md2.c: Likewise.
35385         * tests/test-gc-md4.c: Likewise.
35386         * tests/test-gc-md5.c: Likewise.
35387         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35388         * tests/test-gc-rijndael.c: Likewise.
35389         * tests/test-gc-sha1.c: Likewise.
35390         * tests/test-gc.c: Likewise.
35391         * tests/test-getcwd.c: Likewise.
35392         * tests/test-link.c: Likewise.
35393         * tests/test-link.h: Likewise.
35394         * tests/test-lutimens.h: Likewise.
35395         * tests/test-md2.c: Likewise.
35396         * tests/test-md4.c: Likewise.
35397         * tests/test-mkdir.h: Likewise.
35398         * tests/test-rename.c: Likewise.
35399         * tests/test-rename.h: Likewise.
35400         * tests/test-safe-alloc.c: Likewise.
35401         * tests/test-utimens-common.h: Likewise.
35402         * tests/test-utimens.h: Likewise.
35403
35404         maint: sync license texts
35405         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35406         * doc/gpl-3.0.texi: Revert copyright year update.
35407         * doc/lgpl-3.0.texi: Likewise.
35408
35409 2009-12-29  Jim Meyering  <meyering@redhat.com>
35410
35411         update nearly all FSF copyright year lists to include 2009
35412         The files named by the following are exempted:
35413             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35414               test -f "$dst" && { echo "$dst"; continue; }
35415               test -d "$dst" || continue
35416               echo "$dst"/$(basename "$src")
35417             done > exempt
35418             git ls-files tests/unictype >> exempt
35419         In the remaining files, convert to all-interval notation if
35420         - there is already at least one year interval like 2000-2003
35421         - the file is maintained by me
35422         - the file is in lib/uni*/, where that style already prevails
35423         Otherwise, use update-copyright's default.
35424
35425 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35426         and Eric Blake  <ebb9@byu.net>
35427
35428         tests: don't require debug system() to pass
35429         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35430         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35431         * tests/test-unlink.h (test_unlink_func): Likewise.
35432         * tests/test-fstatat.c (main): ...into callers.
35433         * tests/test-lstat.c (main): Likewise.
35434         * tests/test-rmdir.c (main): Likewise.
35435         * tests/test-unlink.c (main): Likewise.
35436         * tests/test-unlinkat.c (main): Likewise.
35437         * tests/test-areadlink-with-size.c (main): Don't require a
35438         debug-only system call to pass, aiding cross-testing to mingw.
35439         * tests/test-areadlink.c (main): Likewise.
35440         * tests/test-areadlinkat-with-size.c (main): Likewise.
35441         * tests/test-areadlinkat.c (main): Likewise.
35442         * tests/test-canonicalize-lgpl.c (main): Likewise.
35443         * tests/test-canonicalize.c (main): Likewise.
35444         * tests/test-chown.c (main): Likewise.
35445         * tests/test-fchownat.c (main): Likewise.
35446         * tests/test-lchown.c (main): Likewise.
35447         * tests/test-fdutimensat.c (main): Likewise.
35448         * tests/test-futimens.c (main): Likewise.
35449         * tests/test-link.c (main): Likewise.
35450         * tests/test-linkat.c (main): Likewise.
35451         * tests/test-mkdir.c (main): Likewise.
35452         * tests/test-mkdirat.c (main): Likewise.
35453         * tests/test-mkfifo.c (main): Likewise.
35454         * tests/test-mkfifoat.c (main): Likewise.
35455         * tests/test-mknod.c (main): Likewise.
35456         * tests/test-readlink.c (main): Likewise.
35457         * tests/test-remove.c (main): Likewise.
35458         * tests/test-rename.c (main): Likewise.
35459         * tests/test-renameat.c (main): Likewise.
35460         * tests/test-symlink.c (main): Likewise.
35461         * tests/test-symlinkat.c (main): Likewise.
35462         * tests/test-utimens.c (main): Likewise.
35463         * tests/test-utimensat.c (main): Likewise.
35464
35465 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35466
35467         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35468         on $(UNUSED_PARAMETER_H) to avoid build failure.
35469
35470 2009-12-28  Jim Meyering  <meyering@redhat.com>
35471
35472         update-copyright: you may specify a max. line length other than 72
35473         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35474
35475         maint: use consistent FSF copyright line syntax
35476         * lib/posixtm.c: Add missing comma in FSF copyright line.
35477         * lib/posixtm.h: Likewise.
35478         * lib/getugroups.c: Add missing ", Inc.".
35479
35480         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35481         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35482         FSF copyright line.  Remove trailing blanks.
35483
35484 2009-12-28  Eric Blake  <ebb9@byu.net>
35485
35486         test-dup2: reduce dependencies
35487         * modules/cloexec (Configure.ac): Set witness.
35488         * modules/dup2-tests (Depends-on): Drop cloexec.
35489         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35490         not present.
35491         Suggested by Bruno Haible.
35492
35493 2009-12-26  Bruno Haible  <bruno@clisp.org>
35494
35495         Remove an unneeded dependency.
35496         * modules/fseterr (Depends-on): Remove dup2.
35497
35498 2009-12-26  Eric Blake  <ebb9@byu.net>
35499
35500         tests: use macros.h in more places
35501         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35502         (ASSERT_STREAM): Provide default of stderr.
35503         * tests/test-dirent-safer.c: Include macros.h, using alternate
35504         stream for assertions.
35505         * tests/test-dup-safer.c: Likewise.
35506         * tests/test-freopen-safer.c: Likewise.
35507         * tests/test-getopt.c: Likewise.
35508         * tests/test-openat-safer.c: Likewise.
35509         * tests/test-pipe.c: Likewise.
35510         * tests/test-popen-safer.c: Likewise.
35511         * modules/dirent-safer-tests (Files): Include macros.h.
35512         * modules/unistd-safer-tests (Files): Likewise.
35513         * modules/freopen-safer-tests (Files): Likewise.
35514         * modules/getopt-posix-tests (Files): Likewise.
35515         * modules/openat-safer-tests (Files): Likewise.
35516         * modules/pipe-tests (Files): Likewise.
35517
35518 2009-12-26  Bruno Haible  <bruno@clisp.org>
35519
35520         javacomp: Portability fix.
35521         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35522         that it also works on Solaris.
35523
35524 2009-12-26  Bruno Haible  <bruno@clisp.org>
35525
35526         localename: Fix storage allocation of gl_locale_name_thread's result.
35527         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35528         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35529         all platforms that have 'uselocale'.
35530         (gl_locale_name_thread_unsafe): New function, extracted from
35531         gl_locale_name_thread.
35532         (gl_locale_name_thread): Call struniq on all platforms that have
35533         'uselocale'.
35534         * tests/test-localename.c (test_locale_name_thread): Check that the
35535         resulting strings are permanently allocated.
35536         * modules/localename-tests (Depends-on): Add strdup.
35537
35538 2009-12-26  Bruno Haible  <bruno@clisp.org>
35539
35540         * tests/test-localename.c (categories): Fill in the strings.
35541
35542 2009-12-26  Jim Meyering  <meyering@redhat.com>
35543
35544         isdir: complete the removal of m4/isdir.m4
35545         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35546
35547         isdir: clean up, since at least grep still uses it
35548         * lib/isdir.c: Include "isdir.h".
35549         (S_ISDIR): Remove now-unneeded definition.
35550         * modules/isdir (Files): Add lib/isdir.h.
35551         * lib/isdir.h: New file, with declaration.
35552         * m4/isdir.m4: Remove file -- unneeded.
35553
35554 2009-12-25  Bruno Haible  <bruno@clisp.org>
35555
35556         selinux-h: Make generated .h files standalone.
35557         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35558         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35559         * lib/se-selinux.in.h: Likewise.
35560         * modules/selinux-h (Depends-on): Add unused-parameter.
35561         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35562         selinux/selinux.h and selinux/context.h.
35563         Suggested by Eric Blake.
35564
35565 2009-12-25  Bruno Haible  <bruno@clisp.org>
35566
35567         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35568         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35569         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35570         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35571         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35572
35573 2009-12-24  Bruno Haible  <bruno@clisp.org>
35574
35575         openat: Fix warning.
35576         * lib/openat-proc.c: Include <unistd.h>.
35577
35578 2009-12-24  Bruno Haible  <bruno@clisp.org>
35579
35580         New module 'unused-parameter'.
35581         * build-aux/unused-parameter.h: New file, extracted from earlier
35582         gnulib-common.m4.
35583         * modules/unused-parameter: New file.
35584         * lib/unistr.h: Include unused-parameter.h.
35585         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35586         _GL_UNUSED.
35587         * modules/unistr/base (Depends-on): Add unused-parameter.
35588
35589 2009-12-24  Bruno Haible  <bruno@clisp.org>
35590
35591         Add missing dependencies to 'extensions' module.
35592         * m4/extensions.m4: Add comment.
35593         * modules/accept4 (Depends-on): Add extensions.
35594         * modules/dup3 (Depends-on): Likewise.
35595         * modules/fcntl (Depends-on): Likewise.
35596         * modules/futimens (Depends-on): Likewise.
35597         * modules/mknod (Depends-on): Likewise.
35598         * modules/pipe2 (Depends-on): Likewise.
35599         * modules/stat-time (Depends-on): Likewise.
35600         * modules/strcasestr-simple (Depends-on): Likewise.
35601         * modules/strsignal (Depends-on): Likewise.
35602         * modules/utimensat (Depends-on): Likewise.
35603         * modules/localcharset (Depends-on): Likewise. Needed because of
35604         gl_FCNTL_O_FLAGS.
35605         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35606         AC_TYPE_MBSTATE_T.
35607         * modules/wcsnrtombs (Depends-on): Likewise.
35608         * modules/wcsrtombs (Depends-on): Likewise.
35609
35610 2009-12-24  Bruno Haible  <bruno@clisp.org>
35611
35612         binary-io: Avoid gcc warning due to SET_BINARY.
35613         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35614         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35615
35616 2009-12-24  Bruno Haible  <bruno@clisp.org>
35617
35618         Avoid future namespace pollution on glibc systems.
35619         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35620         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35621         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35622         glibc systems.
35623
35624 2009-12-24  Bruno Haible  <bruno@clisp.org>
35625
35626         Refactor common macros used in tests.
35627         * tests/macros.h: New file.
35628         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35629         and/or <stdlib.h>, if appropriate.
35630         (ASSERT, SIZEOF): Remove macros.
35631         * tests/test-areadlink-with-size.c: Likewise.
35632         * tests/test-areadlinkat.c: Likewise.
35633         * tests/test-areadlinkat-with-size.c: Likewise.
35634         * tests/test-argmatch.c: Likewise.
35635         * tests/test-argv-iter.c: Likewise.
35636         * tests/test-array-mergesort.c: Likewise.
35637         * tests/test-array_list.c: Likewise.
35638         * tests/test-array_oset.c: Likewise.
35639         * tests/test-avltree_list.c: Likewise.
35640         * tests/test-avltree_oset.c: Likewise.
35641         * tests/test-avltreehash_list.c: Likewise.
35642         * tests/test-base64.c: Likewise.
35643         * tests/test-binary-io.c: Likewise.
35644         * tests/test-bitrotate.c: Likewise.
35645         * tests/test-btowc.c: Likewise.
35646         * tests/test-byteswap.c: Likewise.
35647         * tests/test-c-ctype.c: Likewise.
35648         * tests/test-c-stack.c: Likewise.
35649         * tests/test-c-strcasecmp.c: Likewise.
35650         * tests/test-c-strcasestr.c: Likewise.
35651         * tests/test-c-strncasecmp.c: Likewise.
35652         * tests/test-c-strstr.c: Likewise.
35653         * tests/test-canonicalize-lgpl.c: Likewise.
35654         * tests/test-canonicalize.c: Likewise.
35655         * tests/test-carray_list.c: Likewise.
35656         * tests/test-ceilf1.c: Likewise.
35657         * tests/test-ceilf2.c: Likewise.
35658         * tests/test-ceill.c: Likewise.
35659         * tests/test-chown.c: Likewise.
35660         * tests/test-cloexec.c: Likewise.
35661         * tests/test-copy-acl.c: Likewise.
35662         * tests/test-copy-file.c: Likewise.
35663         * tests/test-count-one-bits.c: Likewise.
35664         * tests/test-dprintf-posix.c: Likewise.
35665         * tests/test-dup2.c: Likewise.
35666         * tests/test-dup3.c: Likewise.
35667         * tests/test-duplocale.c: Likewise.
35668         * tests/test-fbufmode.c: Likewise.
35669         * tests/test-fchdir.c: Likewise.
35670         * tests/test-fchownat.c: Likewise.
35671         * tests/test-fcntl-safer.c: Likewise.
35672         * tests/test-fcntl.c: Likewise.
35673         * tests/test-fdopendir.c: Likewise.
35674         * tests/test-fdutimensat.c: Likewise.
35675         * tests/test-fflush2.c: Likewise.
35676         * tests/test-file-has-acl.c: Likewise.
35677         * tests/test-filevercmp.c: Likewise.
35678         * tests/test-flock.c: Likewise.
35679         * tests/test-floorf1.c: Likewise.
35680         * tests/test-floorf2.c: Likewise.
35681         * tests/test-floorl.c: Likewise.
35682         * tests/test-fnmatch.c: Likewise.
35683         * tests/test-fopen.h: Likewise.
35684         * tests/test-fpending.c: Likewise.
35685         * tests/test-fprintf-posix.c: Likewise.
35686         * tests/test-fpurge.c: Likewise.
35687         * tests/test-freadable.c: Likewise.
35688         * tests/test-freadahead.c: Likewise.
35689         * tests/test-freading.c: Likewise.
35690         * tests/test-freadptr.c: Likewise.
35691         * tests/test-freadptr2.c: Likewise.
35692         * tests/test-freadseek.c: Likewise.
35693         * tests/test-freopen.c: Likewise.
35694         * tests/test-frexp.c: Likewise.
35695         * tests/test-frexpl.c: Likewise.
35696         * tests/test-fseek.c: Likewise.
35697         * tests/test-fseeko.c: Likewise.
35698         * tests/test-fstatat.c: Likewise.
35699         * tests/test-fstrcmp.c: Likewise.
35700         * tests/test-fsync.c: Likewise.
35701         * tests/test-ftell.c: Likewise.
35702         * tests/test-ftello.c: Likewise.
35703         * tests/test-func.c: Likewise.
35704         * tests/test-futimens.c: Likewise.
35705         * tests/test-fwritable.c: Likewise.
35706         * tests/test-fwriting.c: Likewise.
35707         * tests/test-getcwd.c: Likewise.
35708         * tests/test-getdate.c: Likewise.
35709         * tests/test-getdelim.c: Likewise.
35710         * tests/test-getdtablesize.c: Likewise.
35711         * tests/test-getgroups.c: Likewise.
35712         * tests/test-getline.c: Likewise.
35713         * tests/test-getndelim2.c: Likewise.
35714         * tests/test-glob.c: Likewise.
35715         * tests/test-hash.c: Likewise.
35716         * tests/test-i-ring.c: Likewise.
35717         * tests/test-iconv-utf.c: Likewise.
35718         * tests/test-iconv.c: Likewise.
35719         * tests/test-idpriv-drop.c: Likewise.
35720         * tests/test-idpriv-droptemp.c: Likewise.
35721         * tests/test-inet_ntop.c: Likewise.
35722         * tests/test-inet_pton.c: Likewise.
35723         * tests/test-isblank.c: Likewise.
35724         * tests/test-isfinite.c: Likewise.
35725         * tests/test-isinf.c: Likewise.
35726         * tests/test-isnan.c: Likewise.
35727         * tests/test-isnand.h: Likewise.
35728         * tests/test-isnanf.h: Likewise.
35729         * tests/test-isnanl.h: Likewise.
35730         * tests/test-lchown.c: Likewise.
35731         * tests/test-ldexpl.c: Likewise.
35732         * tests/test-link.c: Likewise.
35733         * tests/test-linkat.c: Likewise.
35734         * tests/test-linked_list.c: Likewise.
35735         * tests/test-linkedhash_list.c: Likewise.
35736         * tests/test-localename.c: Likewise.
35737         * tests/test-lseek.c: Likewise.
35738         * tests/test-lstat.c: Likewise.
35739         * tests/test-mbmemcasecmp.c: Likewise.
35740         * tests/test-mbmemcasecoll.c: Likewise.
35741         * tests/test-mbrtowc.c: Likewise.
35742         * tests/test-mbscasecmp.c: Likewise.
35743         * tests/test-mbscasestr1.c: Likewise.
35744         * tests/test-mbscasestr2.c: Likewise.
35745         * tests/test-mbscasestr3.c: Likewise.
35746         * tests/test-mbscasestr4.c: Likewise.
35747         * tests/test-mbschr.c: Likewise.
35748         * tests/test-mbscspn.c: Likewise.
35749         * tests/test-mbsinit.c: Likewise.
35750         * tests/test-mbsncasecmp.c: Likewise.
35751         * tests/test-mbsnrtowcs.c: Likewise.
35752         * tests/test-mbspbrk.c: Likewise.
35753         * tests/test-mbspcasecmp.c: Likewise.
35754         * tests/test-mbsrchr.c: Likewise.
35755         * tests/test-mbsrtowcs.c: Likewise.
35756         * tests/test-mbsspn.c: Likewise.
35757         * tests/test-mbsstr1.c: Likewise.
35758         * tests/test-mbsstr2.c: Likewise.
35759         * tests/test-mbsstr3.c: Likewise.
35760         * tests/test-memchr.c: Likewise.
35761         * tests/test-memchr2.c: Likewise.
35762         * tests/test-memcmp.c: Likewise.
35763         * tests/test-memmem.c: Likewise.
35764         * tests/test-memrchr.c: Likewise.
35765         * tests/test-mkdir.c: Likewise.
35766         * tests/test-mkdirat.c: Likewise.
35767         * tests/test-mkfifo.c: Likewise.
35768         * tests/test-mkfifoat.c: Likewise.
35769         * tests/test-mknod.c: Likewise.
35770         * tests/test-nanosleep.c: Likewise.
35771         * tests/test-nl_langinfo.c: Likewise.
35772         * tests/test-obstack-printf.c: Likewise.
35773         * tests/test-open.c: Likewise.
35774         * tests/test-openat.c: Likewise.
35775         * tests/test-pipe-filter-gi1.c: Likewise.
35776         * tests/test-pipe-filter-gi2-main.c: Likewise.
35777         * tests/test-pipe-filter-ii1.c: Likewise.
35778         * tests/test-pipe-filter-ii2-main.c: Likewise.
35779         * tests/test-pipe2.c: Likewise.
35780         * tests/test-popen.h: Likewise.
35781         * tests/test-posixtm.c: Likewise.
35782         * tests/test-pread.c: Likewise.
35783         * tests/test-printf-frexp.c: Likewise.
35784         * tests/test-printf-frexpl.c: Likewise.
35785         * tests/test-printf-posix.c: Likewise.
35786         * tests/test-priv-set.c: Likewise.
35787         * tests/test-quotearg.c: Likewise.
35788         * tests/test-random_r.c: Likewise.
35789         * tests/test-rawmemchr.c: Likewise.
35790         * tests/test-rbtree_list.c: Likewise.
35791         * tests/test-rbtree_oset.c: Likewise.
35792         * tests/test-rbtreehash_list.c: Likewise.
35793         * tests/test-readlink.c: Likewise.
35794         * tests/test-remove.c: Likewise.
35795         * tests/test-rename.c: Likewise.
35796         * tests/test-renameat.c: Likewise.
35797         * tests/test-rmdir.c: Likewise.
35798         * tests/test-round1.c: Likewise.
35799         * tests/test-roundf1.c: Likewise.
35800         * tests/test-roundl.c: Likewise.
35801         * tests/test-safe-alloc.c: Likewise.
35802         * tests/test-sameacls.c: Likewise.
35803         * tests/test-set-mode-acl.c: Likewise.
35804         * tests/test-setenv.c: Likewise.
35805         * tests/test-sigaction.c: Likewise.
35806         * tests/test-signbit.c: Likewise.
35807         * tests/test-sleep.c: Likewise.
35808         * tests/test-snprintf-posix.c: Likewise.
35809         * tests/test-snprintf.c: Likewise.
35810         * tests/test-sprintf-posix.c: Likewise.
35811         * tests/test-stat-time.c: Likewise.
35812         * tests/test-stat.c: Likewise.
35813         * tests/test-strcasestr.c: Likewise.
35814         * tests/test-strchrnul.c: Likewise.
35815         * tests/test-strerror.c: Likewise.
35816         * tests/test-striconv.c: Likewise.
35817         * tests/test-striconveh.c: Likewise.
35818         * tests/test-striconveha.c: Likewise.
35819         * tests/test-strsignal.c: Likewise.
35820         * tests/test-strstr.c: Likewise.
35821         * tests/test-strtod.c: Likewise.
35822         * tests/test-strverscmp.c: Likewise.
35823         * tests/test-symlink.c: Likewise.
35824         * tests/test-symlinkat.c: Likewise.
35825         * tests/test-trunc1.c: Likewise.
35826         * tests/test-trunc2.c: Likewise.
35827         * tests/test-truncf1.c: Likewise.
35828         * tests/test-truncf2.c: Likewise.
35829         * tests/test-truncl.c: Likewise.
35830         * tests/test-uname.c: Likewise.
35831         * tests/test-unlink.c: Likewise.
35832         * tests/test-unlinkat.c: Likewise.
35833         * tests/test-unsetenv.c: Likewise.
35834         * tests/test-usleep.c: Likewise.
35835         * tests/test-utimens.c: Likewise.
35836         * tests/test-utimensat.c: Likewise.
35837         * tests/test-vasnprintf-posix.c: Likewise.
35838         * tests/test-vasnprintf-posix2.c: Likewise.
35839         * tests/test-vasnprintf.c: Likewise.
35840         * tests/test-vasprintf-posix.c: Likewise.
35841         * tests/test-vasprintf.c: Likewise.
35842         * tests/test-vdprintf-posix.c: Likewise.
35843         * tests/test-vfprintf-posix.c: Likewise.
35844         * tests/test-vprintf-posix.c: Likewise.
35845         * tests/test-vsnprintf-posix.c: Likewise.
35846         * tests/test-vsnprintf.c: Likewise.
35847         * tests/test-vsprintf-posix.c: Likewise.
35848         * tests/test-wcrtomb.c: Likewise.
35849         * tests/test-wcsnrtombs.c: Likewise.
35850         * tests/test-wcsrtombs.c: Likewise.
35851         * tests/test-wctype.c: Likewise.
35852         * tests/test-wcwidth.c: Likewise.
35853         * tests/test-xfprintf-posix.c: Likewise.
35854         * tests/test-xmemdup0.c: Likewise.
35855         * tests/test-xprintf-posix.c: Likewise.
35856         * tests/test-xvasprintf.c: Likewise.
35857         * tests/unicase/test-locale-language.c: Likewise.
35858         * tests/unicase/test-mapping-part1.h: Likewise.
35859         * tests/unicase/test-predicate-part1.h: Likewise.
35860         * tests/unicase/test-u8-casecmp.c: Likewise.
35861         * tests/unicase/test-u8-casecoll.c: Likewise.
35862         * tests/unicase/test-u8-casefold.c: Likewise.
35863         * tests/unicase/test-u8-is-cased.c: Likewise.
35864         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35865         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35866         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35867         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35868         * tests/unicase/test-u8-tolower.c: Likewise.
35869         * tests/unicase/test-u8-totitle.c: Likewise.
35870         * tests/unicase/test-u8-toupper.c: Likewise.
35871         * tests/unicase/test-u16-casecmp.c: Likewise.
35872         * tests/unicase/test-u16-casecoll.c: Likewise.
35873         * tests/unicase/test-u16-casefold.c: Likewise.
35874         * tests/unicase/test-u16-is-cased.c: Likewise.
35875         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35876         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35877         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35878         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35879         * tests/unicase/test-u16-tolower.c: Likewise.
35880         * tests/unicase/test-u16-totitle.c: Likewise.
35881         * tests/unicase/test-u16-toupper.c: Likewise.
35882         * tests/unicase/test-u32-casecmp.c: Likewise.
35883         * tests/unicase/test-u32-casecoll.c: Likewise.
35884         * tests/unicase/test-u32-casefold.c: Likewise.
35885         * tests/unicase/test-u32-is-cased.c: Likewise.
35886         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35887         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35888         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35889         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35890         * tests/unicase/test-u32-tolower.c: Likewise.
35891         * tests/unicase/test-u32-totitle.c: Likewise.
35892         * tests/unicase/test-u32-toupper.c: Likewise.
35893         * tests/unicase/test-ulc-casecmp.c: Likewise.
35894         * tests/unicase/test-ulc-casecoll.c: Likewise.
35895         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35896         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35897         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35898         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35899         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35900         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35901         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35902         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35903         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35904         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35905         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35906         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35907         * tests/unictype/test-bidi_byname.c: Likewise.
35908         * tests/unictype/test-bidi_name.c: Likewise.
35909         * tests/unictype/test-bidi_of.c: Likewise.
35910         * tests/unictype/test-bidi_test.c: Likewise.
35911         * tests/unictype/test-block_list.c: Likewise.
35912         * tests/unictype/test-block_of.c: Likewise.
35913         * tests/unictype/test-block_test.c: Likewise.
35914         * tests/unictype/test-categ_and.c: Likewise.
35915         * tests/unictype/test-categ_and_not.c: Likewise.
35916         * tests/unictype/test-categ_byname.c: Likewise.
35917         * tests/unictype/test-categ_name.c: Likewise.
35918         * tests/unictype/test-categ_none.c: Likewise.
35919         * tests/unictype/test-categ_of.c: Likewise.
35920         * tests/unictype/test-categ_or.c: Likewise.
35921         * tests/unictype/test-categ_test_withtable.c: Likewise.
35922         * tests/unictype/test-combining.c: Likewise.
35923         * tests/unictype/test-decdigit.c: Likewise.
35924         * tests/unictype/test-digit.c: Likewise.
35925         * tests/unictype/test-mirror.c: Likewise.
35926         * tests/unictype/test-numeric.c: Likewise.
35927         * tests/unictype/test-pr_byname.c: Likewise.
35928         * tests/unictype/test-pr_test.c: Likewise.
35929         * tests/unictype/test-predicate-part1.h: Likewise.
35930         * tests/unictype/test-scripts.c: Likewise.
35931         * tests/unictype/test-sy_c_ident.c: Likewise.
35932         * tests/unictype/test-sy_java_ident.c: Likewise.
35933         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35934         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35935         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35936         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35937         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35938         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35939         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35940         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35941         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35942         * tests/uninorm/test-compat-decomposition.c: Likewise.
35943         * tests/uninorm/test-composition.c: Likewise.
35944         * tests/uninorm/test-decomposing-form.c: Likewise.
35945         * tests/uninorm/test-decomposition.c: Likewise.
35946         * tests/uninorm/test-u8-nfc.c: Likewise.
35947         * tests/uninorm/test-u8-nfd.c: Likewise.
35948         * tests/uninorm/test-u8-nfkc.c: Likewise.
35949         * tests/uninorm/test-u8-nfkd.c: Likewise.
35950         * tests/uninorm/test-u8-normcmp.c: Likewise.
35951         * tests/uninorm/test-u8-normcoll.c: Likewise.
35952         * tests/uninorm/test-u16-nfc.c: Likewise.
35953         * tests/uninorm/test-u16-nfd.c: Likewise.
35954         * tests/uninorm/test-u16-nfkc.c: Likewise.
35955         * tests/uninorm/test-u16-nfkd.c: Likewise.
35956         * tests/uninorm/test-u16-normcmp.c: Likewise.
35957         * tests/uninorm/test-u16-normcoll.c: Likewise.
35958         * tests/uninorm/test-u32-nfc.c: Likewise.
35959         * tests/uninorm/test-u32-nfd.c: Likewise.
35960         * tests/uninorm/test-u32-nfkc.c: Likewise.
35961         * tests/uninorm/test-u32-nfkd.c: Likewise.
35962         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35963         * tests/uninorm/test-u32-normcmp.c: Likewise.
35964         * tests/uninorm/test-u32-normcoll.c: Likewise.
35965         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35966         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35967         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35968         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35969         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35970         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35971         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35972         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35973         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35974         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35975         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35976         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35977         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35978         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35979         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35980         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35981         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35982         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35983         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35984         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35985         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35986         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35987         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35988         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35989         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35990         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35991         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35992         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35993         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35994         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35995         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35996         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35997         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35998         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35999         * tests/uniwidth/test-u8-width.c: Likewise.
36000         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36001         * tests/uniwidth/test-u16-width.c: Likewise.
36002         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36003         * tests/uniwidth/test-u32-width.c: Likewise.
36004         * tests/uniwidth/test-uc_width.c: Likewise.
36005         * tests/uniwidth/test-uc_width2.c: Likewise.
36006         * modules/acl-tests (Files): Add tests/macros.h.
36007         * modules/areadlink-tests (Files): Likewise.
36008         * modules/areadlink-with-size-tests (Files): Likewise.
36009         * modules/areadlinkat-tests (Files): Likewise.
36010         * modules/areadlinkat-with-size-tests (Files): Likewise.
36011         * modules/argmatch-tests (Files): Likewise.
36012         * modules/argv-iter-tests (Files): Likewise.
36013         * modules/array-list-tests (Files): Likewise.
36014         * modules/array-mergesort-tests (Files): Likewise.
36015         * modules/array-oset-tests (Files): Likewise.
36016         * modules/avltree-list-tests (Files): Likewise.
36017         * modules/avltree-oset-tests (Files): Likewise.
36018         * modules/avltreehash-list-tests (Files): Likewise.
36019         * modules/base64-tests (Files): Likewise.
36020         * modules/binary-io-tests (Files): Likewise.
36021         * modules/bitrotate-tests (Files): Likewise.
36022         * modules/btowc-tests (Files): Likewise.
36023         * modules/byteswap-tests (Files): Likewise.
36024         * modules/c-ctype-tests (Files): Likewise.
36025         * modules/c-stack-tests (Files): Likewise.
36026         * modules/c-strcase-tests (Files): Likewise.
36027         * modules/c-strcasestr-tests (Files): Likewise.
36028         * modules/c-strstr-tests (Files): Likewise.
36029         * modules/canonicalize-lgpl-tests (Files): Likewise.
36030         * modules/canonicalize-tests (Files): Likewise.
36031         * modules/carray-list-tests (Files): Likewise.
36032         * modules/ceilf-tests (Files): Likewise.
36033         * modules/ceill-tests (Files): Likewise.
36034         * modules/chown-tests (Files): Likewise.
36035         * modules/cloexec-tests (Files): Likewise.
36036         * modules/copy-file-tests (Files): Likewise.
36037         * modules/count-one-bits-tests (Files): Likewise.
36038         * modules/dprintf-posix-tests (Files): Likewise.
36039         * modules/dup2-tests (Files): Likewise.
36040         * modules/dup3-tests (Files): Likewise.
36041         * modules/duplocale-tests (Files): Likewise.
36042         * modules/fbufmode-tests (Files): Likewise.
36043         * modules/fchdir-tests (Files): Likewise.
36044         * modules/fcntl-safer-tests (Files): Likewise.
36045         * modules/fcntl-tests (Files): Likewise.
36046         * modules/fdopendir-tests (Files): Likewise.
36047         * modules/fdutimensat-tests (Files): Likewise.
36048         * modules/fflush-tests (Files): Likewise.
36049         * modules/filevercmp-tests (Files): Likewise.
36050         * modules/flock-tests (Files): Likewise.
36051         * modules/floorf-tests (Files): Likewise.
36052         * modules/floorl-tests (Files): Likewise.
36053         * modules/fnmatch-tests (Files): Likewise.
36054         * modules/fopen-safer-tests (Files): Likewise.
36055         * modules/fopen-tests (Files): Likewise.
36056         * modules/fpending-tests (Files): Likewise.
36057         * modules/fprintf-posix-tests (Files): Likewise.
36058         * modules/fpurge-tests (Files): Likewise.
36059         * modules/freadable-tests (Files): Likewise.
36060         * modules/freadahead-tests (Files): Likewise.
36061         * modules/freading-tests (Files): Likewise.
36062         * modules/freadptr-tests (Files): Likewise.
36063         * modules/freadseek-tests (Files): Likewise.
36064         * modules/freopen-tests (Files): Likewise.
36065         * modules/frexp-nolibm-tests (Files): Likewise.
36066         * modules/frexp-tests (Files): Likewise.
36067         * modules/frexpl-nolibm-tests (Files): Likewise.
36068         * modules/frexpl-tests (Files): Likewise.
36069         * modules/fseek-tests (Files): Likewise.
36070         * modules/fseeko-tests (Files): Likewise.
36071         * modules/fstrcmp-tests (Files): Likewise.
36072         * modules/fsync-tests (Files): Likewise.
36073         * modules/ftell-tests (Files): Likewise.
36074         * modules/ftello-tests (Files): Likewise.
36075         * modules/func-tests (Files): Likewise.
36076         * modules/futimens-tests (Files): Likewise.
36077         * modules/fwritable-tests (Files): Likewise.
36078         * modules/fwriting-tests (Files): Likewise.
36079         * modules/getcwd-tests (Files): Likewise.
36080         * modules/getdate-tests (Files): Likewise.
36081         * modules/getdelim-tests (Files): Likewise.
36082         * modules/getdtablesize-tests (Files): Likewise.
36083         * modules/getgroups-tests (Files): Likewise.
36084         * modules/getline-tests (Files): Likewise.
36085         * modules/getndelim2-tests (Files): Likewise.
36086         * modules/glob-tests (Files): Likewise.
36087         * modules/hash-tests (Files): Likewise.
36088         * modules/i-ring-tests (Files): Likewise.
36089         * modules/iconv-tests (Files): Likewise.
36090         * modules/iconv_open-utf-tests (Files): Likewise.
36091         * modules/idpriv-drop-tests (Files): Likewise.
36092         * modules/idpriv-droptemp-tests (Files): Likewise.
36093         * modules/inet_ntop-tests (Files): Likewise.
36094         * modules/inet_pton-tests (Files): Likewise.
36095         * modules/isblank-tests (Files): Likewise.
36096         * modules/isfinite-tests (Files): Likewise.
36097         * modules/isinf-tests (Files): Likewise.
36098         * modules/isnan-tests (Files): Likewise.
36099         * modules/isnand-nolibm-tests (Files): Likewise.
36100         * modules/isnand-tests (Files): Likewise.
36101         * modules/isnanf-nolibm-tests (Files): Likewise.
36102         * modules/isnanf-tests (Files): Likewise.
36103         * modules/isnanl-nolibm-tests (Files): Likewise.
36104         * modules/isnanl-tests (Files): Likewise.
36105         * modules/lchown-tests (Files): Likewise.
36106         * modules/ldexpl-tests (Files): Likewise.
36107         * modules/link-tests (Files): Likewise.
36108         * modules/linkat-tests (Files): Likewise.
36109         * modules/linked-list-tests (Files): Likewise.
36110         * modules/linkedhash-list-tests (Files): Likewise.
36111         * modules/localename-tests (Files): Likewise.
36112         * modules/lseek-tests (Files): Likewise.
36113         * modules/lstat-tests (Files): Likewise.
36114         * modules/mbmemcasecmp-tests (Files): Likewise.
36115         * modules/mbmemcasecoll-tests (Files): Likewise.
36116         * modules/mbrtowc-tests (Files): Likewise.
36117         * modules/mbscasecmp-tests (Files): Likewise.
36118         * modules/mbscasestr-tests (Files): Likewise.
36119         * modules/mbschr-tests (Files): Likewise.
36120         * modules/mbscspn-tests (Files): Likewise.
36121         * modules/mbsinit-tests (Files): Likewise.
36122         * modules/mbsncasecmp-tests (Files): Likewise.
36123         * modules/mbsnrtowcs-tests (Files): Likewise.
36124         * modules/mbspbrk-tests (Files): Likewise.
36125         * modules/mbspcasecmp-tests (Files): Likewise.
36126         * modules/mbsrchr-tests (Files): Likewise.
36127         * modules/mbsrtowcs-tests (Files): Likewise.
36128         * modules/mbsspn-tests (Files): Likewise.
36129         * modules/mbsstr-tests (Files): Likewise.
36130         * modules/memchr-tests (Files): Likewise.
36131         * modules/memchr2-tests (Files): Likewise.
36132         * modules/memcmp-tests (Files): Likewise.
36133         * modules/memmem-tests (Files): Likewise.
36134         * modules/memrchr-tests (Files): Likewise.
36135         * modules/mkdir-tests (Files): Likewise.
36136         * modules/mkfifo-tests (Files): Likewise.
36137         * modules/mkfifoat-tests (Files): Likewise.
36138         * modules/mknod-tests (Files): Likewise.
36139         * modules/nanosleep-tests (Files): Likewise.
36140         * modules/nl_langinfo-tests (Files): Likewise.
36141         * modules/obstack-printf-tests (Files): Likewise.
36142         * modules/open-tests (Files): Likewise.
36143         * modules/openat-tests (Files): Likewise.
36144         * modules/pipe-filter-gi-tests (Files): Likewise.
36145         * modules/pipe-filter-ii-tests (Files): Likewise.
36146         * modules/pipe2-tests (Files): Likewise.
36147         * modules/popen-safer-tests (Files): Likewise.
36148         * modules/popen-tests (Files): Likewise.
36149         * modules/posixtm-tests (Files): Likewise.
36150         * modules/pread-tests (Files): Likewise.
36151         * modules/printf-frexp-tests (Files): Likewise.
36152         * modules/printf-frexpl-tests (Files): Likewise.
36153         * modules/printf-posix-tests (Files): Likewise.
36154         * modules/priv-set-tests (Files): Likewise.
36155         * modules/quotearg-tests (Files): Likewise.
36156         * modules/random_r-tests (Files): Likewise.
36157         * modules/rawmemchr-tests (Files): Likewise.
36158         * modules/rbtree-list-tests (Files): Likewise.
36159         * modules/rbtree-oset-tests (Files): Likewise.
36160         * modules/rbtreehash-list-tests (Files): Likewise.
36161         * modules/readlink-tests (Files): Likewise.
36162         * modules/remove-tests (Files): Likewise.
36163         * modules/rename-tests (Files): Likewise.
36164         * modules/renameat-tests (Files): Likewise.
36165         * modules/rmdir-tests (Files): Likewise.
36166         * modules/round-tests (Files): Likewise.
36167         * modules/roundf-tests (Files): Likewise.
36168         * modules/roundl-tests (Files): Likewise.
36169         * modules/safe-alloc-tests (Files): Likewise.
36170         * modules/setenv-tests (Files): Likewise.
36171         * modules/sigaction-tests (Files): Likewise.
36172         * modules/signbit-tests (Files): Likewise.
36173         * modules/sleep-tests (Files): Likewise.
36174         * modules/snprintf-posix-tests (Files): Likewise.
36175         * modules/snprintf-tests (Files): Likewise.
36176         * modules/sprintf-posix-tests (Files): Likewise.
36177         * modules/stat-tests (Files): Likewise.
36178         * modules/stat-time-tests (Files): Likewise.
36179         * modules/strcasestr-tests (Files): Likewise.
36180         * modules/strchrnul-tests (Files): Likewise.
36181         * modules/strerror-tests (Files): Likewise.
36182         * modules/striconv-tests (Files): Likewise.
36183         * modules/striconveh-tests (Files): Likewise.
36184         * modules/striconveha-tests (Files): Likewise.
36185         * modules/strsignal-tests (Files): Likewise.
36186         * modules/strstr-tests (Files): Likewise.
36187         * modules/strtod-tests (Files): Likewise.
36188         * modules/strverscmp-tests (Files): Likewise.
36189         * modules/symlink-tests (Files): Likewise.
36190         * modules/symlinkat-tests (Files): Likewise.
36191         * modules/trunc-tests (Files): Likewise.
36192         * modules/truncf-tests (Files): Likewise.
36193         * modules/truncl-tests (Files): Likewise.
36194         * modules/uname-tests (Files): Likewise.
36195         * modules/unicase/cased-tests (Files): Likewise.
36196         * modules/unicase/ignorable-tests (Files): Likewise.
36197         * modules/unicase/locale-language-tests (Files): Likewise.
36198         * modules/unicase/tolower-tests (Files): Likewise.
36199         * modules/unicase/totitle-tests (Files): Likewise.
36200         * modules/unicase/toupper-tests (Files): Likewise.
36201         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36202         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36203         * modules/unicase/u8-casefold-tests (Files): Likewise.
36204         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36205         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36206         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36207         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36208         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36209         * modules/unicase/u8-tolower-tests (Files): Likewise.
36210         * modules/unicase/u8-totitle-tests (Files): Likewise.
36211         * modules/unicase/u8-toupper-tests (Files): Likewise.
36212         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36213         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36214         * modules/unicase/u16-casefold-tests (Files): Likewise.
36215         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36216         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36217         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36218         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36219         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36220         * modules/unicase/u16-tolower-tests (Files): Likewise.
36221         * modules/unicase/u16-totitle-tests (Files): Likewise.
36222         * modules/unicase/u16-toupper-tests (Files): Likewise.
36223         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36224         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36225         * modules/unicase/u32-casefold-tests (Files): Likewise.
36226         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36227         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36228         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36229         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36230         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36231         * modules/unicase/u32-tolower-tests (Files): Likewise.
36232         * modules/unicase/u32-totitle-tests (Files): Likewise.
36233         * modules/unicase/u32-toupper-tests (Files): Likewise.
36234         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36235         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36236         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36237         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36238         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36239         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36240         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36241         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36242         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36243         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36244         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36245         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36246         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36247         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36248         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36249         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36250         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36251         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36252         * modules/unictype/block-list-tests (Files): Likewise.
36253         * modules/unictype/block-of-tests (Files): Likewise.
36254         * modules/unictype/block-test-tests (Files): Likewise.
36255         * modules/unictype/category-C-tests (Files): Likewise.
36256         * modules/unictype/category-Cc-tests (Files): Likewise.
36257         * modules/unictype/category-Cf-tests (Files): Likewise.
36258         * modules/unictype/category-Cn-tests (Files): Likewise.
36259         * modules/unictype/category-Co-tests (Files): Likewise.
36260         * modules/unictype/category-Cs-tests (Files): Likewise.
36261         * modules/unictype/category-L-tests (Files): Likewise.
36262         * modules/unictype/category-Ll-tests (Files): Likewise.
36263         * modules/unictype/category-Lm-tests (Files): Likewise.
36264         * modules/unictype/category-Lo-tests (Files): Likewise.
36265         * modules/unictype/category-Lt-tests (Files): Likewise.
36266         * modules/unictype/category-Lu-tests (Files): Likewise.
36267         * modules/unictype/category-M-tests (Files): Likewise.
36268         * modules/unictype/category-Mc-tests (Files): Likewise.
36269         * modules/unictype/category-Me-tests (Files): Likewise.
36270         * modules/unictype/category-Mn-tests (Files): Likewise.
36271         * modules/unictype/category-N-tests (Files): Likewise.
36272         * modules/unictype/category-Nd-tests (Files): Likewise.
36273         * modules/unictype/category-Nl-tests (Files): Likewise.
36274         * modules/unictype/category-No-tests (Files): Likewise.
36275         * modules/unictype/category-P-tests (Files): Likewise.
36276         * modules/unictype/category-Pc-tests (Files): Likewise.
36277         * modules/unictype/category-Pd-tests (Files): Likewise.
36278         * modules/unictype/category-Pe-tests (Files): Likewise.
36279         * modules/unictype/category-Pf-tests (Files): Likewise.
36280         * modules/unictype/category-Pi-tests (Files): Likewise.
36281         * modules/unictype/category-Po-tests (Files): Likewise.
36282         * modules/unictype/category-Ps-tests (Files): Likewise.
36283         * modules/unictype/category-S-tests (Files): Likewise.
36284         * modules/unictype/category-Sc-tests (Files): Likewise.
36285         * modules/unictype/category-Sk-tests (Files): Likewise.
36286         * modules/unictype/category-Sm-tests (Files): Likewise.
36287         * modules/unictype/category-So-tests (Files): Likewise.
36288         * modules/unictype/category-Z-tests (Files): Likewise.
36289         * modules/unictype/category-Zl-tests (Files): Likewise.
36290         * modules/unictype/category-Zp-tests (Files): Likewise.
36291         * modules/unictype/category-Zs-tests (Files): Likewise.
36292         * modules/unictype/category-and-not-tests (Files): Likewise.
36293         * modules/unictype/category-and-tests (Files): Likewise.
36294         * modules/unictype/category-byname-tests (Files): Likewise.
36295         * modules/unictype/category-name-tests (Files): Likewise.
36296         * modules/unictype/category-none-tests (Files): Likewise.
36297         * modules/unictype/category-of-tests (Files): Likewise.
36298         * modules/unictype/category-or-tests (Files): Likewise.
36299         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36300         * modules/unictype/combining-class-tests (Files): Likewise.
36301         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36302         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36303         * modules/unictype/ctype-blank-tests (Files): Likewise.
36304         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36305         * modules/unictype/ctype-digit-tests (Files): Likewise.
36306         * modules/unictype/ctype-graph-tests (Files): Likewise.
36307         * modules/unictype/ctype-lower-tests (Files): Likewise.
36308         * modules/unictype/ctype-print-tests (Files): Likewise.
36309         * modules/unictype/ctype-punct-tests (Files): Likewise.
36310         * modules/unictype/ctype-space-tests (Files): Likewise.
36311         * modules/unictype/ctype-upper-tests (Files): Likewise.
36312         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36313         * modules/unictype/decimal-digit-tests (Files): Likewise.
36314         * modules/unictype/digit-tests (Files): Likewise.
36315         * modules/unictype/mirror-tests (Files): Likewise.
36316         * modules/unictype/numeric-tests (Files): Likewise.
36317         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36318         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36319         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36320         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36321         Likewise.
36322         * modules/unictype/property-bidi-block-separator-tests (Files):
36323         Likewise.
36324         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36325         Likewise.
36326         * modules/unictype/property-bidi-common-separator-tests (Files):
36327         Likewise.
36328         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36329         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36330         Likewise.
36331         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36332         Likewise.
36333         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36334         Likewise.
36335         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36336         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36337         Likewise.
36338         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36339         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36340         Likewise.
36341         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36342         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36343         * modules/unictype/property-bidi-segment-separator-tests (Files):
36344         Likewise.
36345         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36346         * modules/unictype/property-byname-tests (Files): Likewise.
36347         * modules/unictype/property-combining-tests (Files): Likewise.
36348         * modules/unictype/property-composite-tests (Files): Likewise.
36349         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36350         * modules/unictype/property-dash-tests (Files): Likewise.
36351         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36352         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36353         Likewise.
36354         * modules/unictype/property-deprecated-tests (Files): Likewise.
36355         * modules/unictype/property-diacritic-tests (Files): Likewise.
36356         * modules/unictype/property-extender-tests (Files): Likewise.
36357         * modules/unictype/property-format-control-tests (Files): Likewise.
36358         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36359         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36360         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36361         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36362         * modules/unictype/property-hyphen-tests (Files): Likewise.
36363         * modules/unictype/property-id-continue-tests (Files): Likewise.
36364         * modules/unictype/property-id-start-tests (Files): Likewise.
36365         * modules/unictype/property-ideographic-tests (Files): Likewise.
36366         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36367         * modules/unictype/property-ids-trinary-operator-tests (Files):
36368         Likewise.
36369         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36370         * modules/unictype/property-iso-control-tests (Files): Likewise.
36371         * modules/unictype/property-join-control-tests (Files): Likewise.
36372         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36373         * modules/unictype/property-line-separator-tests (Files): Likewise.
36374         * modules/unictype/property-logical-order-exception-tests (Files):
36375         Likewise.
36376         * modules/unictype/property-lowercase-tests (Files): Likewise.
36377         * modules/unictype/property-math-tests (Files): Likewise.
36378         * modules/unictype/property-non-break-tests (Files): Likewise.
36379         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36380         * modules/unictype/property-numeric-tests (Files): Likewise.
36381         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36382         * modules/unictype/property-other-default-ignorable-code-point-tests
36383         (Files): Likewise.
36384         * modules/unictype/property-other-grapheme-extend-tests (Files):
36385         Likewise.
36386         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36387         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36388         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36389         * modules/unictype/property-other-math-tests (Files): Likewise.
36390         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36391         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36392         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36393         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36394         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36395         * modules/unictype/property-private-use-tests (Files): Likewise.
36396         * modules/unictype/property-punctuation-tests (Files): Likewise.
36397         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36398         * modules/unictype/property-radical-tests (Files): Likewise.
36399         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36400         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36401         * modules/unictype/property-space-tests (Files): Likewise.
36402         * modules/unictype/property-terminal-punctuation-tests (Files):
36403         Likewise.
36404         * modules/unictype/property-test-tests (Files): Likewise.
36405         * modules/unictype/property-titlecase-tests (Files): Likewise.
36406         * modules/unictype/property-unassigned-code-value-tests (Files):
36407         Likewise.
36408         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36409         * modules/unictype/property-uppercase-tests (Files): Likewise.
36410         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36411         * modules/unictype/property-white-space-tests (Files): Likewise.
36412         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36413         * modules/unictype/property-xid-start-tests (Files): Likewise.
36414         * modules/unictype/property-zero-width-tests (Files): Likewise.
36415         * modules/unictype/scripts-tests (Files): Likewise.
36416         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36417         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36418         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36419         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36420         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36421         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36422         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36423         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36424         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36425         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36426         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36427         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36428         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36429         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36430         * modules/uninorm/composition-tests (Files): Likewise.
36431         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36432         * modules/uninorm/decomposition-tests (Files): Likewise.
36433         * modules/uninorm/filter-tests (Files): Likewise.
36434         * modules/uninorm/nfc-tests (Files): Likewise.
36435         * modules/uninorm/nfd-tests (Files): Likewise.
36436         * modules/uninorm/nfkc-tests (Files): Likewise.
36437         * modules/uninorm/nfkd-tests (Files): Likewise.
36438         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36439         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36440         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36441         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36442         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36443         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36444         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36445         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36446         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36447         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36448         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36449         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36450         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36451         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36452         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36453         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36454         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36455         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36456         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36457         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36458         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36459         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36460         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36461         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36462         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36463         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36464         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36465         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36466         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36467         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36468         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36469         * modules/uniwidth/u8-width-tests (Files): Likewise.
36470         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36471         * modules/uniwidth/u16-width-tests (Files): Likewise.
36472         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36473         * modules/uniwidth/u32-width-tests (Files): Likewise.
36474         * modules/uniwidth/width-tests (Files): Likewise.
36475         * modules/unlink-tests (Files): Likewise.
36476         * modules/unsetenv-tests (Files): Likewise.
36477         * modules/usleep-tests (Files): Likewise.
36478         * modules/utimens-tests (Files): Likewise.
36479         * modules/utimensat-tests (Files): Likewise.
36480         * modules/vasnprintf-posix-tests (Files): Likewise.
36481         * modules/vasnprintf-tests (Files): Likewise.
36482         * modules/vasprintf-posix-tests (Files): Likewise.
36483         * modules/vasprintf-tests (Files): Likewise.
36484         * modules/vdprintf-posix-tests (Files): Likewise.
36485         * modules/vfprintf-posix-tests (Files): Likewise.
36486         * modules/vprintf-posix-tests (Files): Likewise.
36487         * modules/vsnprintf-posix-tests (Files): Likewise.
36488         * modules/vsnprintf-tests (Files): Likewise.
36489         * modules/vsprintf-posix-tests (Files): Likewise.
36490         * modules/wcrtomb-tests (Files): Likewise.
36491         * modules/wcsnrtombs-tests (Files): Likewise.
36492         * modules/wcsrtombs-tests (Files): Likewise.
36493         * modules/wctype-tests (Files): Likewise.
36494         * modules/wcwidth-tests (Files): Likewise.
36495         * modules/xmemdup0-tests (Files): Likewise.
36496         * modules/xprintf-posix-tests (Files): Likewise.
36497         * modules/xvasprintf-tests (Files): Likewise.
36498
36499 2009-12-24  Eric Blake  <ebb9@byu.net>
36500
36501         test-nanosleep: fix typo
36502         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36503         patch.
36504         Reported by Bruno Haible.
36505
36506 2009-12-24  Bruno Haible  <bruno@clisp.org>
36507
36508         Reduce namespace pollution on glibc systems.
36509         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36510         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36511         systems.
36512         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36513         <getopt.h> on glibc systems.
36514         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36515         systems.
36516         * lib/fcntl.c: Include <unistd.h> here instead.
36517
36518 2009-12-24  Bruno Haible  <bruno@clisp.org>
36519
36520         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36521
36522 2009-12-24  Eric Blake  <ebb9@byu.net>
36523
36524         tests: add signature checks
36525         * tests/signature.h (SIGNATURE_CHECK): New file.
36526         * modules/atexit-tests (Files): Use it.
36527         * modules/btowc-tests (Files): Likewise.
36528         * modules/canonicalize-lgpl-tests (Files): Likewise.
36529         * modules/ceilf-tests (Files): Likewise.
36530         * modules/ceill-tests (Files): Likewise.
36531         * modules/chown-tests (Files): Likewise.
36532         * modules/dprintf-posix-tests (Files): Likewise.
36533         * modules/dup2-tests (Files): Likewise.
36534         * modules/dup3-tests (Files): Likewise.
36535         * modules/duplocale-tests (Files): Likewise.
36536         * modules/fchdir-tests (Files): Likewise.
36537         * modules/fcntl-tests (Files): Likewise.
36538         * modules/fdopendir-tests (Files): Likewise.
36539         * modules/fflush-tests (Files): Likewise.
36540         * modules/flock-tests (Files): Likewise.
36541         * modules/floorf-tests (Files): Likewise.
36542         * modules/floorl-tests (Files): Likewise.
36543         * modules/fnmatch-tests (Files): Likewise.
36544         * modules/fopen-tests (Files): Likewise.
36545         * modules/fprintf-posix-tests (Files): Likewise.
36546         * modules/freopen-tests (Files): Likewise.
36547         * modules/frexp-nolibm-tests (Files): Likewise.
36548         * modules/frexp-tests (Files): Likewise.
36549         * modules/frexpl-nolibm-tests (Files): Likewise.
36550         * modules/frexpl-tests (Files): Likewise.
36551         * modules/fseek-tests (Files): Likewise.
36552         * modules/fseeko-tests (Files): Likewise.
36553         * modules/fsync-tests (Files): Likewise.
36554         * modules/ftell-tests (Files): Likewise.
36555         * modules/ftello-tests (Files): Likewise.
36556         * modules/futimens-tests (Files): Likewise.
36557         * modules/getaddrinfo-tests (Files): Likewise.
36558         * modules/getcwd-tests (Files): Likewise.
36559         * modules/getdelim-tests (Files): Likewise.
36560         * modules/getdtablesize-tests (Files): Likewise.
36561         * modules/getgroups-tests (Files): Likewise.
36562         * modules/gethostname-tests (Files): Likewise.
36563         * modules/getline-tests (Files): Likewise.
36564         * modules/getopt-posix-tests (Files): Likewise.
36565         * modules/gettimeofday-tests (Files): Likewise.
36566         * modules/glob-tests (Files): Likewise.
36567         * modules/iconv-tests (Files): Likewise.
36568         * modules/inet_ntop-tests (Files): Likewise.
36569         * modules/inet_pton-tests (Files): Likewise.
36570         * modules/isblank-tests (Files): Likewise.
36571         * modules/lchown-tests (Files): Likewise.
36572         * modules/ldexpl-tests (Files): Likewise.
36573         * modules/link-tests (Files): Likewise.
36574         * modules/linkat-tests (Files): Likewise.
36575         * modules/lseek-tests (Files): Likewise.
36576         * modules/lstat-tests (Files): Likewise.
36577         * modules/mbrtowc-tests (Files): Likewise.
36578         * modules/mbsinit-tests (Files): Likewise.
36579         * modules/mbsnrtowcs-tests (Files): Likewise.
36580         * modules/mbsrtowcs-tests (Files): Likewise.
36581         * modules/memchr-tests (Files): Likewise.
36582         * modules/memcmp-tests (Files): Likewise.
36583         * modules/memmem-tests (Files): Likewise.
36584         * modules/memrchr-tests (Files): Likewise.
36585         * modules/mkdir-tests (Files): Likewise.
36586         * modules/mkfifo-tests (Files): Likewise.
36587         * modules/mkfifoat-tests (Files): Likewise.
36588         * modules/mknod-tests (Files): Likewise.
36589         * modules/nanosleep-tests (Files): Likewise.
36590         * modules/nl_langinfo-tests (Files): Likewise.
36591         * modules/obstack-printf-tests (Files): Likewise.
36592         * modules/open-tests (Files): Likewise.
36593         * modules/openat-tests (Files): Likewise.
36594         * modules/perror-tests (Files): Likewise.
36595         * modules/pipe2-tests (Files): Likewise.
36596         * modules/poll-tests (Files): Likewise.
36597         * modules/popen-tests (Files): Likewise.
36598         * modules/posix_spawn-tests (Files): Likewise.
36599         * modules/posix_spawnp-tests (Files): Likewise.
36600         * modules/pread-tests (Files): Likewise.
36601         * modules/printf-posix-tests (Files): Likewise.
36602         * modules/pty-tests (Files): Likewise.
36603         * modules/random_r-tests (Files): Likewise.
36604         * modules/rawmemchr-tests (Files): Likewise.
36605         * modules/readlink-tests (Files): Likewise.
36606         * modules/remove-tests (Files): Likewise.
36607         * modules/rename-tests (Files): Likewise.
36608         * modules/renameat-tests (Files): Likewise.
36609         * modules/rmdir-tests (Files): Likewise.
36610         * modules/round-tests (Files): Likewise.
36611         * modules/roundf-tests (Files): Likewise.
36612         * modules/roundl-tests (Files): Likewise.
36613         * modules/select-tests (Files): Likewise.
36614         * modules/setenv-tests (Files): Likewise.
36615         * modules/sigaction-tests (Files): Likewise.
36616         * modules/sleep-tests (Files): Likewise.
36617         * modules/snprintf-posix-tests (Files): Likewise.
36618         * modules/snprintf-tests (Files): Likewise.
36619         * modules/sprintf-posix-tests (Files): Likewise.
36620         * modules/stat-tests (Files): Likewise.
36621         * modules/strcasestr-tests (Files): Likewise.
36622         * modules/strchrnul-tests (Files): Likewise.
36623         * modules/strerror-tests (Files): Likewise.
36624         * modules/strsignal-tests (Files): Likewise.
36625         * modules/strstr-tests (Files): Likewise.
36626         * modules/strtod-tests (Files): Likewise.
36627         * modules/strverscmp-tests (Files): Likewise.
36628         * modules/symlink-tests (Files): Likewise.
36629         * modules/symlinkat-tests (Files): Likewise.
36630         * modules/times-tests (Files): Likewise.
36631         * modules/trunc-tests (Files): Likewise.
36632         * modules/truncf-tests (Files): Likewise.
36633         * modules/truncl-tests (Files): Likewise.
36634         * modules/tsearch-tests (Files): Likewise.
36635         * modules/uname-tests (Files): Likewise.
36636         * modules/unlink-tests (Files): Likewise.
36637         * modules/unsetenv-tests (Files): Likewise.
36638         * modules/usleep-tests (Files): Likewise.
36639         * modules/utimensat-tests (Files): Likewise.
36640         * modules/vasprintf-tests (Files): Likewise.
36641         * modules/vdprintf-posix-tests (Files): Likewise.
36642         * modules/vfprintf-posix-tests (Files): Likewise.
36643         * modules/vprintf-posix-tests (Files): Likewise.
36644         * modules/vsnprintf-posix-tests (Files): Likewise.
36645         * modules/vsnprintf-tests (Files): Likewise.
36646         * modules/vsprintf-posix-tests (Files): Likewise.
36647         * modules/wcrtomb-tests (Files): Likewise.
36648         * modules/wcsnrtombs-tests (Files): Likewise.
36649         * modules/wcsrtombs-tests (Files): Likewise.
36650         * modules/wcwidth-tests (Files): Likewise.
36651         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36652         * tests/test-isinf.c (isinf): Likewise.
36653         * tests/test-isnan.c (isnan): Likewise.
36654         * tests/test-signbit.c (signbit): Likewise.
36655         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36656         declaration, either as macro or with correct signature.
36657         (select): Ensure function under test is declared with correct
36658         signature in correct header.
36659         * tests/test-atexit.c (atexit): Likewise.
36660         * tests/test-btowc.c (btowc): Likewise.
36661         * tests/test-canonicalize-lgpl.c (realpath)
36662         (canonicalize_file_name): Likewise.
36663         * tests/test-ceilf1.c (ceilf): Likewise.
36664         * tests/test-ceill.c (ceill): Likewise.
36665         * tests/test-chown.c (chown): Likewise.
36666         * tests/test-dprintf-posix.c (dprintf): Likewise.
36667         * tests/test-dup2.c (dup2): Likewise.
36668         * tests/test-dup3.c (dup3): Likewise.
36669         * tests/test-duplocale.c (duplocale): Likewise.
36670         * tests/test-fchdir.c (fchdir): Likewise.
36671         * tests/test-fchownat.c (fchownat): Likewise.
36672         * tests/test-fcntl.c (fcntl): Likewise.
36673         * tests/test-fdopendir.c (fdopendir): Likewise.
36674         * tests/test-fflush.c (fflush): Likewise.
36675         * tests/test-flock.c (flock): Likewise.
36676         * tests/test-floorf1.c (floorf): Likewise.
36677         * tests/test-floorl.c (floorl): Likewise.
36678         * tests/test-fnmatch.c (fnmatch): Likewise.
36679         * tests/test-fopen.c (fopen): Likewise.
36680         * tests/test-fprintf-posix.c (fprintf): Likewise.
36681         * tests/test-freopen.c (freopen): Likewise.
36682         * tests/test-frexp.c (frexp): Likewise.
36683         * tests/test-frexpl.c (frexpl): Likewise.
36684         * tests/test-fseek.c (fseek): Likewise.
36685         * tests/test-fseeko.c (fseeko): Likewise.
36686         * tests/test-fstatat.c (fstatat): Likewise.
36687         * tests/test-fsync.c (fsync): Likewise.
36688         * tests/test-ftell.c (ftell): Likewise.
36689         * tests/test-ftello.c (ftello): Likewise.
36690         * tests/test-futimens.c (futimens): Likewise.
36691         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36692         (gai_strerror): Likewise.
36693         * tests/test-getcwd.c (getcwd): Likewise.
36694         * tests/test-getdelim.c (getdelim): Likewise.
36695         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36696         * tests/test-getgroups.c (getgroups): Likewise.
36697         * tests/test-gethostname.c (gethostname): Likewise.
36698         * tests/test-getline.c (getline): Likewise.
36699         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36700         Likewise.
36701         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36702         * tests/test-glob.c (glob, globfree): Likewise.
36703         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36704         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36705         * tests/test-inet_pton.c (inet_pton): Likewise.
36706         * tests/test-isblank.c (isblank): Likewise.
36707         * tests/test-lchown.c (lchown): Likewise.
36708         * tests/test-ldexpl.c (ldexpl): Likewise.
36709         * tests/test-link.c (link): Likewise.
36710         * tests/test-linkat.c (linkat): Likewise.
36711         * tests/test-lseek.c (lseek): Likewise.
36712         * tests/test-lstat.c (lstat): Likewise.
36713         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36714         * tests/test-mbsinit.c (mbsinit): Likewise.
36715         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36716         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36717         * tests/test-memchr.c (memchr): Likewise.
36718         * tests/test-memcmp.c (memcmp): Likewise.
36719         * tests/test-memmem.c (memmem): Likewise.
36720         * tests/test-memrchr.c (memrchr): Likewise.
36721         * tests/test-mkdir.c (mkdir): Likewise.
36722         * tests/test-mkdirat.c (mkdirat): Likewise.
36723         * tests/test-mkfifo.c (mkfifo): Likewise.
36724         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36725         * tests/test-mknod.c (mknod): Likewise.
36726         * tests/test-nanosleep.c (nanosleep): Likewise.
36727         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36728         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36729         Likewise.
36730         * tests/test-open.c (open): Likewise.
36731         * tests/test-openat.c (openat): Likewise.
36732         * tests/test-perror.c (perror): Likewise.
36733         * tests/test-pipe2.c (pipe2): Likewise.
36734         * tests/test-poll.c (poll): Likewise.
36735         * tests/test-popen.c (popen, pclose): Likewise.
36736         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36737         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36738         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36739         (posix_spawn_file_actions_destroy)
36740         (posix_spawn_file_actions_addclose)
36741         (posix_spawn_file_actions_addopen)
36742         (posix_spawn_file_actions_adddup2): Likewise.
36743         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36744         * tests/test-pread.c (pread): Likewise.
36745         * tests/test-printf-posix.c (printf): Likewise.
36746         * tests/test-pty.c (openpty, forkpty): Likewise.
36747         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36748         (random_r): Likewise.
36749         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36750         * tests/test-readlink.c (readlink): Likewise.
36751         * tests/test-remove.c (remove): Likewise.
36752         * tests/test-rename.c (rename): Likewise.
36753         * tests/test-renameat.c (renameat): Likewise.
36754         * tests/test-rmdir.c (rmdir): Likewise.
36755         * tests/test-round1.c (round): Likewise.
36756         * tests/test-roundf1.c (roundf): Likewise.
36757         * tests/test-roundl.c (roundl): Likewise.
36758         * tests/test-setenv.c (setenv): Likewise.
36759         * tests/test-sigaction.c (sigaction): Likewise.
36760         * tests/test-sleep.c (sleep): Likewise.
36761         * tests/test-snprintf.c (snprintf): Likewise.
36762         * tests/test-sprintf-posix.c (sprintf): Likewise.
36763         * tests/test-stat.c (stat): Likewise.
36764         * tests/test-stpncpy.c (stpncpy): Likewise.
36765         * tests/test-strcasestr.c (strcasestr): Likewise.
36766         * tests/test-strchrnul.c (strchrnul): Likewise.
36767         * tests/test-strerror.c (strerror): Likewise.
36768         * tests/test-strsignal.c (strsignal): Likewise.
36769         * tests/test-strstr.c (strstr): Likewise.
36770         * tests/test-strtod.c (strtod): Likewise.
36771         * tests/test-strverscmp.c (strverscmp): Likewise.
36772         * tests/test-symlink.c (symlink): Likewise.
36773         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36774         * tests/test-times.c (times): Likewise.
36775         * tests/test-trunc1.c (trunc): Likewise.
36776         * tests/test-truncf1.c (truncf): Likewise.
36777         * tests/test-truncl.c (truncl): Likewise.
36778         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36779         Likewise.
36780         * tests/test-uname.c (uname): Likewise.
36781         * tests/test-unlink.c (unlink): Likewise.
36782         * tests/test-unlinkat.c (unlinkat): Likewise.
36783         * tests/test-unsetenv.c (unsetenv): Likewise.
36784         * tests/test-usleep.c (usleep): Likewise.
36785         * tests/test-utimensat.c (utimensat): Likewise.
36786         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36787         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36788         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36789         * tests/test-vprintf-posix.c (vprintf): Likewise.
36790         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36791         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36792         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36793         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36794         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36795         * tests/test-wcwidth.c (wcwidth): Likewise.
36796
36797         build: pull in conditional headers during GNULIB_POSIXCHECK
36798         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36799         definitions from any conditionally-included headers.
36800         * lib/stdlib.in.h (includes): Likewise.
36801         * lib/unistd.in.h (includes): Likewise.
36802
36803 2009-12-24  Bruno Haible  <bruno@clisp.org>
36804
36805         * tests/test-argv-iter.c: Include header file being tested immediately
36806         after config.h.
36807         * tests/test-base64.c: Likewise.
36808         * tests/test-flock.c: Likewise.
36809         * tests/test-fsync.c: Likewise.
36810         * tests/test-getdate.c: Likewise.
36811         * tests/test-getndelim2.c: Likewise.
36812         * tests/test-isfinite.c: Likewise.
36813         * tests/test-isinf.c: Likewise.
36814         * tests/test-strerror.c: Likewise.
36815         * tests/test-strsignal.c: Likewise.
36816
36817 2009-12-23  Eric Blake  <ebb9@byu.net>
36818
36819         unistd: work around cygwin bug
36820         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36821         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36822         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36823
36824 2009-12-23  Bruno Haible  <bruno@clisp.org>
36825
36826         localename: More tests.
36827         * tests/test-localename.c (SIZEOF): New macro.
36828         (categories): New variable.
36829         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36830         test_locale_name_default): Add test w.r.t. thread locale.
36831         (test_locale_name_thread): New function.
36832         (main): Invoke it.
36833
36834         localename: Make aware of thread locale.
36835         * lib/localename.h (gl_locale_name_thread): New declaration.
36836         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36837         behaviour with respect to thread locale.
36838         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36839         <langinfo.h>, glthread/lock.h.
36840         (SIZE_BITS): New macro.
36841         (string_hash): New function.
36842         (struct hash_node): New type.
36843         (HASH_TABLE_SIZE): New macro.
36844         (struniq_hash_table, struniq_lock): New variables.
36845         (struniq): New function.
36846         (gl_locale_name_thread): New function.
36847         (gl_locale_name): Invoke it.
36848         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36849         * modules/localename (Depends-on): Add lock.
36850         Reported by Mike Gran <spk121@yahoo.com>.
36851
36852 2009-12-23  Eric Blake  <ebb9@byu.net>
36853
36854         va-args: new module
36855         * modules/va-args: New file.
36856         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36857         * MODULES.html.sh (Core language properties): Mention it.
36858
36859         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36860         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36861         named alias for __attribute__((__unused__)).
36862         * lib/chown.c: Update client.
36863         * lib/fchmodat.c: Likewise.
36864         * lib/fts.c: Likewise.
36865         * lib/getdate.y: Likewise.
36866         * lib/getgroups.c: Likewise.
36867         * lib/getopt.c: Likewise.
36868         * lib/getugroups.c: Likewise.
36869         * lib/mkdir.c: Likewise.
36870         * lib/mkfifo.c: Likewise.
36871         * lib/mkfifoat.c: Likewise.
36872         * lib/mknod.c: Likewise.
36873         * lib/mknodat.c: Likewise.
36874         * lib/readlink.c: Likewise.
36875         * lib/se-context.in.h: Likewise.
36876         * lib/se-selinux.in.h: Likewise.
36877         * lib/sockets.c: Likewise.
36878         * lib/symlink.c: Likewise.
36879         * lib/symlinkat.c: Likewise.
36880         * lib/unicodeio.c: Likewise.
36881         * lib/unistr.h: Likewise.
36882         * tests/test-areadlink.c: Likewise.
36883         * tests/test-areadlinkat.c: Likewise.
36884         * tests/test-filenamecat.c: Likewise.
36885         * tests/test-fseeko.c: Likewise.
36886         * tests/test-ftello.c: Likewise.
36887         * tests/test-getdate.c: Likewise.
36888         * tests/test-getgroups.c: Likewise.
36889         * tests/test-gethostname.c: Likewise.
36890         * tests/test-quotearg.c: Likewise.
36891         * tests/test-version-etc.c: Likewise.
36892         * tests/test-xalloc-die.c: Likewise.
36893         * tests/test-xfprintf-posix.c: Likewise.
36894         * tests/test-xprintf-posix.c: Likewise.
36895         * tests/test-xvasprintf.c: Likewise.
36896
36897         tests: avoid compiler warnings
36898         * tests/test-fcntl.c (main): Delete unused parameters.
36899         * tests/test-freopen-safer.c (main): Likewise.
36900         * tests/test-xalloc-die.c (main): Mark unused parameters.
36901         * tests/test-fseeko.c (main): Likewise.
36902         * tests/test-ftello.c (main): Likewise.
36903         * tests/test-nanosleep.c (main): Avoid declaration warning.
36904         * tests/test-sleep.c (main): Likewise.
36905         * tests/test-unsetenv.c (main): Silence warning about string
36906         literal.
36907         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36908
36909 2009-12-23  Bruno Haible  <bruno@clisp.org>
36910
36911         * tests/test-localename.c (test_locale_name): New function, extracted
36912         from main. Also test mixed situations.
36913         (test_locale_name_posix, test_locale_name_environ,
36914         test_locale_name_default): New functions.
36915         (main): Invoke them all.
36916         * modules/localename-tests (configure.ac): Test for newlocale.
36917
36918 2009-12-23  Bruno Haible  <bruno@clisp.org>
36919
36920         unistd: Ensure getcwd gets declared before being overridden.
36921         * lib/unistd.in.h: Conditionally include <io.h>.
36922
36923 2009-12-22  Bruno Haible  <bruno@clisp.org>
36924
36925         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36926         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36927         (gl_WCHAR_H): Invoke it.
36928         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36929         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36930         Reported by Karl Berry <karl@freefriends.org>.
36931
36932 2009-12-22  Eric Blake  <ebb9@byu.net>
36933
36934         math, unistd: avoid redundant includes
36935         * lib/math.in.h (isnan): No need to re-include <math.h>.
36936         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36937
36938         getsubopt: work around cygwin bug
36939         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36940         avoid conflicting with system getsubopt.
36941         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36942         bug.
36943
36944         getopt: synchronize from glibc
36945         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36946         parameter order.  Adjust all callers.
36947         (_getopt_internal_r, main): Adjust quoting in error messages.
36948         Drop considerations for outdated POSIX 1003.2 error message.
36949         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36950         callers.
36951         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36952
36953         test-getopt: test stderr behavior
36954         * modules/getopt-posix-tests (Depends-on): Add dup2.
36955         * tests/test-getopt.c (ASSERT): Avoid stderr.
36956         (main): Move stderr to a temporary file.
36957         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36958         Instead, add parameter to inform caller if output occurred.
36959         (test_getopt): Adjust all existing tests to expect silence, and
36960         add new tests of leading ":".
36961         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36962         glibc shortcomings with leading "-:" or "+:" in optstring.
36963         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36964         Likewise.
36965         * doc/posix-functions/getopt.texi (getopt): Likewise.
36966
36967         test-getopt: enhance test
36968         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36969         supports optind=0.
36970         * tests/test-getopt.c (OPTIND_MIN): Move...
36971         * tests/test-getopt.h (OPTIND_MIN): ...here.
36972         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36973         Require that optind=0 works, since modern BSD supports it in
36974         addition to optreset, and since coreutils expects it.
36975         (test_getopt_long_only): New test.
36976         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36977         glibc shortcomings with 'W;', and enforcement of optind=0.
36978         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36979         Likewise.
36980
36981 2009-12-21  Bruno Haible  <bruno@clisp.org>
36982
36983         localename: Improvements for MacOS X and Cygwin.
36984         * lib/localename.h (gl_locale_name_environ): New declaration.
36985         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36986         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36987         (gl_locale_name_posix): Invoke it.
36988         (gl_locale_name_default): Add comments. Use Windows native API also on
36989         Cygwin.
36990
36991 2009-12-21  Bruno Haible  <bruno@clisp.org>
36992
36993         Update list of Win32 locale ids.
36994         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36995         (LANG_SAMI): Renamed from LANG_SAAMI.
36996         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36997         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36998         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36999         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37000         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37001         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37002         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37003         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37004         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37005         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37006         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37007         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37008         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37009         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37010         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37011         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37012         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37013         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37014         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37015         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37016         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37017         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37018         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37019         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37020         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37021         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37022         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37023         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37024         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37025         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37026         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37027         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37028         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37029         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37030         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37031         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37032         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37033         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37034         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37035         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37036         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37037         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37038         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37039         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37040         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37041         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37042         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37043         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37044         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37045         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37046         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37047         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37048         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37049         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37050         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37051         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37052         Add more languages and countries for Sami, Sorbian. Add more countries
37053         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37054         for Pashto. Change country for Syriac, Tswana.
37055
37056 2009-12-21  Eric Blake  <ebb9@byu.net>
37057
37058         test-utimens: avoid spurious failure
37059         * tests/test-chown.h (nap): Factor...
37060         * tests/nap.h: ...into new file.
37061         * tests/test-lchown.h (nap): Avoid duplication.
37062         * tests/test-utimens-common.h (nap): Use shared implementation,
37063         necessary on file systems with 1-second resolution.
37064         * modules/chown-tests (Files): Include new file.
37065         * modules/fdutimensat-tests (Files): Likewise.
37066         * modules/futimens-tests (Files): Likewise.
37067         * modules/lchown-tests (Files): Likewise.
37068         * modules/openat-tests (Files): Likewise.
37069         * modules/utimens-tests (Files): Likewise.
37070         * modules/utimensat-tests (Files): Likewise.
37071
37072 2009-12-19  Eric Blake  <ebb9@byu.net>
37073
37074         futimens, utimensat: work around Linux bug
37075         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37076         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37077         * lib/utimensat.c (rpl_utimensat): Work around it.
37078         * lib/futimens.c (rpl_futimens): Adjust comment.
37079
37080         utimens: work around Linux ctime bug
37081         * lib/utimens.c (detect_ctime_bug): New helper function.
37082         (update_timespec): Differentiate between workaround needed for
37083         this bug vs. what is needed for systems that lack utimensat.
37084         (fdutimens, lutimens): Work around bug.
37085
37086         utimens: check for ctime update
37087         * tests/test-utimens-common.h (check_ctime): Define.
37088         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37089         * tests/test-futimens.h (test_futimens): Likewise.
37090         * tests/test-lutimens.h (test_lutimens): Likewise.
37091         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37092         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37093
37094 2009-12-19  Bruno Haible  <bruno@clisp.org>
37095
37096         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37097         * tests/test-dprintf-posix2.sh: New file.
37098         * tests/test-dprintf-posix2.c: New file.
37099         * modules/dprintf-posix-tests (Files): Add them.
37100         (configure.ac): Check for getrlimit and setrlimit.
37101         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37102
37103 2009-12-19  Bruno Haible  <bruno@clisp.org>
37104
37105         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37106         * tests/test-fprintf-posix3.sh: New file.
37107         * tests/test-fprintf-posix3.c: New file.
37108         * modules/fprintf-posix-tests (Files): Add them.
37109         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37110
37111 2009-12-19  Eric Blake  <ebb9@byu.net>
37112
37113         dirfd: fix prototype
37114         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37115         * lib/dirfd.c (dirfd): Likewise.
37116
37117         canonicalize: reduce memory usage
37118         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37119         allocation to size.
37120         Reported by Solar Designer <solar@openwall.com>.
37121
37122 2009-12-19  Bruno Haible  <bruno@clisp.org>
37123
37124         New module attribute 'Applicability'.
37125         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37126         * gnulib-tool: New option --extract-applicability.
37127         (func_usage): Document it.
37128         (sed_extract_prog): Recognize it.
37129         (func_get_applicability): New function.
37130         (func_import): Generalize handling of 'link-warning' module.
37131         * modules/link-warning (Applicability): New section.
37132         * modules/arg-nonnull (Applicability): New section.
37133         Repoted by Simon Josefsson <simon@josefsson.org>.
37134
37135 2009-12-19  Bruno Haible  <bruno@clisp.org>
37136
37137         fflush: tweak
37138         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37139         * lib/fseeko.c (rpl_fseeko): Likewise.
37140
37141 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37142
37143         * lib/gl_list.h: Fix typo in comment.
37144
37145 2009-12-16  Eric Blake  <ebb9@byu.net>
37146
37147         fcntl: use to simplify other modules
37148         * modules/cloexec (Depends-on): Add fcntl.
37149         * modules/fchdir (Depends-on): Likewise.
37150         * modules/fd-safer-flag (Depends-on): Likewise.
37151         * modules/unistd-safer (Depends-on): Likewise.
37152         * modules/dup3 (configure.ac): Set module indicator.
37153         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37154         missing.
37155         * lib/fchdir.c (_gl_register_dup): Fix comment.
37156         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37157         * lib/dup-safer.c (dup_safer): Likewise.
37158         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37159         * lib/dup3.c (dup3): Likewise.
37160         * tests/test-fchdir.c (main): Enhance test.
37161         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
37162
37163         fcntl: port portions of fcntl to mingw
37164         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37165         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37166         replacement for mingw.
37167         * modules/fcntl (Description): Update.
37168         (Depends-on): Add dup2.
37169         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37170         * modules/fcntl-h (Makefile.am): Substitute it.
37171         * lib/fcntl.in.h (fcntl): Update declaration.
37172         (F_DUPFD, F_GETFD): New macros, when needed.
37173         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37174         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37175         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37176         we now guarantee.
37177
37178         fcntl: work around cygwin bug in F_DUPFD
37179         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37180         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37181         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37182         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37183         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37184
37185         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37186         * modules/fcntl (Files): List new files.
37187         (configure.ac): Run a test.
37188         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37189         * lib/fcntl.c (rpl_fcntl): Likewise.
37190         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37191         (gl_FCNTL_H): Always replace fcntl.h.
37192         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37193         * lib/fcntl.in.h (fcntl): Declare replacement.
37194         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37195         needed, plus a witness.
37196         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37197         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37198         * tests/test-fcntl.c: New file.
37199         * modules/fcntl-tests: Likewise.
37200
37201         binary-io: avoid potential compilation warning
37202         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37203         directives.
37204
37205         fflush: avoid compilation error on NetBSD
37206         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37207         between off_t and fpos_t, since the latter is sometimes a struct.
37208         * lib/fseeko.c (rpl_fseeko): Likewise.
37209         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37210
37211 2009-12-15  Eric Blake  <ebb9@byu.net>
37212
37213         fcntl-h, stdio, sys_ioctl: fix declarations
37214         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37215         function must not take arguments.
37216         * lib/sys_ioctl.in.h (ioctl): Likewise.
37217         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37218         (open): Add a link warning.
37219
37220 2009-12-15  Jim Meyering  <meyering@redhat.com>
37221
37222         areadlink, areadlink-with-size: relax license to LGPLv2+
37223         * modules/areadlink (License): Relax to LGPLv2+.
37224         * modules/areadlink-with-size (License): Likewise.
37225
37226 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37227             Bruno Haible  <bruno@clisp.org>
37228
37229         *printf: Fix memory leak.
37230         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37231         * lib/vfprintf.c (vfprintf): Likewise.
37232         * lib/dprintf.c (dprintf): Likewise.
37233         * lib/vdprintf.c (vdprintf): Likewise.
37234
37235 2009-12-14  Eric Blake  <ebb9@byu.net>
37236
37237         accept4: adjust module dependencies
37238         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37239
37240         utimens: one more try at avoiding compiler warning
37241         * lib/utimens.c (lutimens): Lower scope of result.
37242
37243 2009-12-13  Bruno Haible  <bruno@clisp.org>
37244
37245         Move the malloc checking from module 'list' to new module 'xlist'.
37246         * modules/xlist: New file.
37247         * lib/gl_xlist.h: New file.
37248         * lib/gl_xlist.c: New file.
37249         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37250         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37251         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37252         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37253         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37254         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37255         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37256         gl_sortedlist_nx_add): New declarations.
37257         (struct gl_list_implementation): Rename and change methods accordingly.
37258         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37259         (gl_list_nx_create): Renamed from gl_list_create.
37260         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37261         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37262         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37263         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37264         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37265         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37266         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37267         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37268         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37269         gl_list_create_empty.
37270         (gl_list_nx_create): Renamed from gl_list_create.
37271         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37272         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37273         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37274         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37275         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37276         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37277         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37278         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37279         * lib/gl_array_list.c: Don't include xalloc.h.
37280         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37281         NULL upon out-of-memory.
37282         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37283         out-of-memory.
37284         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37285         Change return type to 'int'.
37286         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37287         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37288         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37289         upon out-of-memory.
37290         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37291         upon out-of-memory.
37292         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37293         upon out-of-memory.
37294         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37295         upon out-of-memory.
37296         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37297         out-of-memory.
37298         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37299         Update.
37300         (gl_array_list_implementation): Update.
37301         * lib/gl_carray_list.c: Don't include xalloc.h.
37302         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37303         Return NULL upon out-of-memory.
37304         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37305         out-of-memory.
37306         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37307         Change return type to 'int'.
37308         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37309         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37310         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37311         upon out-of-memory.
37312         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37313         upon out-of-memory.
37314         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37315         out-of-memory.
37316         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37317         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37318         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37319         Update.
37320         (gl_carray_list_implementation): Update.
37321         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37322         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37323         gl_linked_create_empty. Return NULL upon out-of-memory.
37324         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37325         out-of-memory.
37326         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37327         Change return type to 'int'. Return -1 upon out-of-memory.
37328         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37329         out-of-memory.
37330         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37331         upon out-of-memory.
37332         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37333         upon out-of-memory.
37334         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37335         NULL upon out-of-memory.
37336         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37337         upon out-of-memory.
37338         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37339         out-of-memory.
37340         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37341         Update.
37342         * lib/gl_linked_list.c: Don't include xalloc.h.
37343         (gl_linked_list_implementation): Update.
37344         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37345         (add_to_bucket): Change return type to 'int'.
37346         (gl_linkedhash_list_implementation): Update.
37347         * lib/gl_anytree_list1.h (free_subtree): New function.
37348         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37349         gl_tree_create_empty. Return NULL upon out-of-memory.
37350         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37351         Change return type to 'int'. Return -1 upon out-of-memory.
37352         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37353         out-of-memory.
37354         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37355         (gl_tree_remove_node): New function, moved here from
37356         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37357         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37358         Update.
37359         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37360         malloc, not xmalloc. Return NULL upon out-of-memory.
37361         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37362         out-of-memory.
37363         (gl_tree_remove_node_from_tree): New function, extracted from
37364         gl_tree_remove_node.
37365         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37366         upon out-of-memory.
37367         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37368         out-of-memory.
37369         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37370         upon out-of-memory.
37371         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37372         upon out-of-memory.
37373         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37374         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37375         not xmalloc. Return NULL upon out-of-memory.
37376         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37377         out-of-memory.
37378         (gl_tree_remove_node_from_tree): New function, extracted from
37379         gl_tree_remove_node.
37380         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37381         upon out-of-memory.
37382         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37383         out-of-memory.
37384         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37385         upon out-of-memory.
37386         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37387         upon out-of-memory.
37388         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37389         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37390         gl_anytree_list1.h before gl_anyavltree_list2.h.
37391         (gl_avltree_list_implementation): Update.
37392         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37393         gl_anytree_list1.h before gl_anyavltree_list2.h.
37394         (gl_rbtree_list_implementation): Update.
37395         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37396         Change return type to 'int'. Return -1 upon out-of-memory. Use
37397         __builtin_expect.
37398         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37399         (gl_avltreehash_list_implementation): Update.
37400         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37401         (gl_rbtreehash_list_implementation): Update.
37402         * modules/array-list (Depends-on): Remove xalloc.
37403         * modules/carray-list (Depends-on): Likewise.
37404         * modules/linked-list (Depends-on): Likewise.
37405         * modules/linkedhash-list (Depends-on): Likewise.
37406         * modules/avltree-list (Depends-on): Likewise.
37407         * modules/rbtree-list (Depends-on): Likewise.
37408         * modules/avltreehash-list (Depends-on): Likewise.
37409         * modules/rbtreehash-list (Depends-on): Likewise.
37410
37411         * modules/xsublist: New file.
37412         * lib/gl_xsublist.h: New file.
37413         * lib/gl_xsublist.c: New file.
37414         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37415         (gl_sublist_nx_create): New declaration.
37416         * lib/gl_sublist.c: Don't include xalloc.h.
37417         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37418         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37419         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37420         Change return type to 'int'. Return -1 upon out-of-memory.
37421         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37422         upon out-of-memory.
37423         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37424         NULL upon out-of-memory.
37425         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37426         upon out-of-memory.
37427         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37428         NULL upon out-of-memory.
37429         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37430         NULL upon out-of-memory.
37431         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37432         upon out-of-memory.
37433         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37434         (gl_sublist_list_implementation): Update.
37435         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37436         upon out-of-memory.
37437         * modules/sublist (Depends-on): Remove xalloc.
37438
37439         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37440         * tests/test-carray_list.c: Likewise.
37441         * tests/test-linked_list.c: Likewise.
37442         * tests/test-linkedhash_list.c: Likewise.
37443         * tests/test-avltree_list.c: Likewise.
37444         * tests/test-rbtree_list.c: Likewise.
37445         * tests/test-avltreehash_list.c: Likewise.
37446         * tests/test-rbtreehash_list.c: Likewise.
37447         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37448         * modules/carray-list-tests (Makefile.am): Likewise.
37449         * modules/linked-list-tests (Makefile.am): Likewise.
37450         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37451         * modules/avltree-list-tests (Makefile.am): Likewise.
37452         * modules/rbtree-list-tests (Makefile.am): Likewise.
37453         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37454         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37455
37456         * NEWS: Mention the changes.
37457
37458         * lib/clean-temp.c: Include gl_xlist.h.
37459         * modules/clean-temp (Depends-on): Add xlist.
37460
37461         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37462         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37463
37464         * tests/test-array_oset.c: Include gl_xlist.h.
37465         * modules/array-oset-tests (Depends-on): Add xlist.
37466
37467         Reported by José E. Marchesi <jemarch@gnu.org>.
37468
37469 2009-12-13  Bruno Haible  <bruno@clisp.org>
37470
37471         Move the malloc checking from module 'oset' to new module 'xoset'.
37472         * modules/xoset: New file.
37473         * lib/gl_xoset.h: New file.
37474         * lib/gl_xoset.c: New file.
37475         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37476         declarations.
37477         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37478         (struct gl_oset_implementation): Rename and change methods accordingly.
37479         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37480         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37481         'int'. Mark as __warn_unused_result__.
37482         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37483         gl_oset_create_empty.
37484         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37485         'int'.
37486         * lib/gl_array_oset.c: Don't include xalloc.h.
37487         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37488         malloc, not xmalloc.
37489         (grow): Change return type to 'int'. Don't call xalloc_die.
37490         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37491         to 'int'.
37492         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37493         'int'.
37494         (gl_array_oset_implementation): Update.
37495         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37496         gl_tree_create_empty.
37497         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37498         'int'.
37499         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37500         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37501         xmalloc.
37502         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37503         not xmalloc.
37504         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37505         xmalloc.
37506         (gl_avltree_oset_implementation): Update.
37507         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37508         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37509         xmalloc.
37510         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37511         not xmalloc.
37512         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37513         xmalloc.
37514         (gl_rbtree_oset_implementation): Update.
37515         * modules/array-oset (Depends-on): Remove xalloc.
37516         * modules/avltree-oset (Depends-on): Likewise.
37517         * modules/rbtree-oset (Depends-on): Likewise.
37518         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37519         * tests/test-avltree_oset.c: Likewise.
37520         * tests/test-rbtree_oset.c: Likewise.
37521         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37522         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37523         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37524         * NEWS: Mention the change.
37525
37526 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37527
37528         maint.mk: allow a project to override release-prep commands
37529         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37530         commands into a new rule.
37531         (release-prep): New rule.
37532         (release-prep-hook): New overridable variable.
37533
37534 2009-12-13  Bruno Haible  <bruno@clisp.org>
37535
37536         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37537
37538 2009-12-13  Jim Meyering  <meyering@redhat.com>
37539
37540         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37541         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37542
37543 2009-12-12  Bruno Haible  <bruno@clisp.org>
37544
37545         duplocale: Tweak.
37546         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37547
37548 2009-12-12  Karl Berry  <karl@gnu.org>
37549
37550         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37551
37552 2009-12-12  Bruno Haible  <bruno@clisp.org>
37553
37554         * m4/po.m4: Undo incorrect untabification.
37555
37556 2009-12-12  Bruno Haible  <bruno@clisp.org>
37557
37558         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37559         * modules/c-strtod (Depends-on): Add locale.
37560         * modules/c-strtold (Depends-on): Likewise.
37561
37562 2009-12-12  Bruno Haible  <bruno@clisp.org>
37563
37564         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37565
37566 2009-12-11  Eric Blake  <ebb9@byu.net>
37567
37568         setenv: relax requirement in light of POSIX ruling
37569         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37570         not NULL.
37571         * tests/test-setenv.c (main): Relax test.
37572         * tests/test-unsetenv.c (main): Likewise.
37573         * doc/posix-functions/setenv.texi (setenv): Document this.
37574         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37575
37576 2009-12-11  Bruno Haible  <bruno@clisp.org>
37577
37578         New module 'fd-safer-flag'.
37579         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37580         * lib/dup-safer.c (dup_safer_flag): Remove function.
37581         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37582         * lib/fd-safer.c (fd_safer_flag): Remove function.
37583         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37584         * modules/cloexec (configure.ac): Drop indicator macro.
37585         * modules/fd-safer-flag: New file.
37586         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37587         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37588         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37589
37590 2009-12-11  Bruno Haible  <bruno@clisp.org>
37591
37592         Tests for module 'nl_langinfo'.
37593         * modules/nl_langinfo-tests: New file.
37594         * tests/test-nl_langinfo.sh: New file.
37595         * tests/test-nl_langinfo.c: New file.
37596
37597         New module 'nl_langinfo'.
37598         * lib/nl_langinfo.c: New file.
37599         * m4/nl_langinfo.m4: New file.
37600         * modules/nl_langinfo: New file.
37601         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37602
37603 2009-12-11  Bruno Haible  <bruno@clisp.org>
37604
37605         Tests for module 'langinfo'.
37606         * modules/langinfo-tests: New file.
37607         * tests/test-langinfo.c: New file.
37608
37609         New module 'langinfo'.
37610         * lib/langinfo.in.h: New file.
37611         * m4/langinfo_h.m4: New file.
37612         * modules/langinfo: New file.
37613         * doc/posix-headers/langinfo.texi: Mention the new module.
37614
37615 2009-12-11  Bruno Haible  <bruno@clisp.org>
37616
37617         * lib/config.charset: Untabify.
37618
37619 2009-12-11  Bruno Haible  <bruno@clisp.org>
37620
37621         * modules/unistd-safer (configure.ac): Drop indicator macro.
37622
37623 2009-12-11  Bruno Haible  <bruno@clisp.org>
37624
37625         Move pipe2-safer code to its own file.
37626         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37627         * lib/pipe-safer.c (pipe2_safer): Remove function.
37628         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37629         (Makefile.am): Add it to lib_SOURCES.
37630
37631 2009-12-10  Bruno Haible  <bruno@clisp.org>
37632
37633         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37634
37635 2009-12-10  Bruno Haible  <bruno@clisp.org>
37636
37637         Declare which arguments expect non-NULL values, for GCC and clang.
37638         * build-aux/arg-nonnull.h: New file.
37639         * modules/arg-nonnull: New file.
37640         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37641         (inet_ntop, inet_pton): Use it.
37642         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37643         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37644         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37645         (open, openat): Use it.
37646         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37647         (fnmatch): Use it.
37648         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37649         (getopt, getopt_long, getopt_long_only): Use it.
37650         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37651         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37652         Use it.
37653         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37654         (iconv_open): Use it.
37655         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37656         (strtoimax, strtoumax): Use it.
37657         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37658         (duplocale): Use it.
37659         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37660         (frexp, frexpl): Use it.
37661         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37662         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37663         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37664         (tsearch, tfind, tdelete, twalk): Use it.
37665         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37666         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37667         sigpending): Use it.
37668         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37669         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37670         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37671         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37672         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37673         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37674         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37675         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37676         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37677         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37678         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37679         Use it.
37680         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37681         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37682         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37683         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37684         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37685         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37686         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37687         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37688         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37689         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37690         strtoull, unsetenv): Use it.
37691         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37692         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37693         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37694         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37695         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37696         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37697         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37698         (strcasecmp, strncasecmp): Use it.
37699         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37700         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37701         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37702         rpl_setsockopt): Use it.
37703         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37704         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37705         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37706         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37707         (gettimeofday): Use it.
37708         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37709         (times): Use it.
37710         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37711         (uname): Use it.
37712         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37713         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37714         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37715         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37716         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37717         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37718         unlinkat, write): Use it.
37719         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37720         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37721         * lib/argv-iter.h: Include arg-nonnull.h.
37722         (_ATTRIBUTE_NONNULL_): Remove macro.
37723         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37724         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37725         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37726         optimization.
37727         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37728         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37729         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37730         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37731         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37732         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37733         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37734         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37735         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37736         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37737         * modules/dirent (Depends-on): Add arg-nonnull.
37738         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37739         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37740         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37741         * modules/fnmatch (Depends-on): Add arg-nonnull.
37742         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37743         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37744         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37745         * modules/glob (Depends-on): Add arg-nonnull.
37746         (Makefile.am): Insert arg-nonnull.h into glob.h.
37747         * modules/iconv_open (Depends-on): Add arg-nonnull.
37748         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37749         * modules/inttypes (Depends-on): Add arg-nonnull.
37750         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37751         * modules/locale (Depends-on): Add arg-nonnull.
37752         (Makefile.am): Insert arg-nonnull.h into locale.h.
37753         * modules/math (Depends-on): Add arg-nonnull.
37754         (Makefile.am): Insert arg-nonnull.h into math.h.
37755         * modules/netdb (Depends-on): Add arg-nonnull.
37756         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37757         * modules/search (Depends-on): Add arg-nonnull.
37758         (Makefile.am): Insert arg-nonnull.h into search.h.
37759         * modules/signal (Depends-on): Add arg-nonnull.
37760         (Makefile.am): Insert arg-nonnull.h into signal.h.
37761         * modules/spawn (Depends-on): Add arg-nonnull.
37762         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37763         * modules/stdio (Depends-on): Add arg-nonnull.
37764         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37765         * modules/stdlib (Depends-on): Add arg-nonnull.
37766         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37767         * modules/string (Depends-on): Add arg-nonnull.
37768         (Makefile.am): Insert arg-nonnull.h into string.h.
37769         * modules/strings (Depends-on): Add arg-nonnull.
37770         (Makefile.am): Insert arg-nonnull.h into strings.h.
37771         * modules/sys_socket (Depends-on): Add arg-nonnull.
37772         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37773         * modules/sys_stat (Depends-on): Add arg-nonnull.
37774         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37775         * modules/sys_time (Depends-on): Add arg-nonnull.
37776         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37777         * modules/sys_times (Depends-on): Add arg-nonnull.
37778         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37779         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37780         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37781         * modules/time (Depends-on): Add arg-nonnull.
37782         (Makefile.am): Insert arg-nonnull.h into time.h.
37783         * modules/unistd (Depends-on): Add arg-nonnull.
37784         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37785         * modules/wchar (Depends-on): Add arg-nonnull.
37786         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37787         * modules/argv-iter (Depends-on): Add arg-nonnull.
37788         * tests/test-canonicalize.c (null_ptr): New function.
37789         (main): Use it.
37790         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37791         (main): Use it.
37792         * tests/test-memmem.c (null_ptr): New function.
37793         (main): Use it.
37794         Reported by Jim Meyering.
37795
37796 2009-12-10  Bruno Haible  <bruno@clisp.org>
37797
37798         Use spaces for indentation, not tabs.
37799         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37800         * m4/*.m4: Untabify.
37801         * build-aux/*.h: Untabify.
37802         * tests/**/*.[hc]: Untabify.
37803         * README: New section "Indent with spaces, not TABs", based on
37804         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37805         * NEWS: Mention the change.
37806
37807 2009-12-10  Bruno Haible  <bruno@clisp.org>
37808
37809         pty test: Fix link error.
37810         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37811         test_pty_LDADD.
37812
37813 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37814
37815         * modules/pty: New file.
37816         * modules/pty-tests: New file.
37817         * m4/pty.m4: New file.
37818         * tests/test-pty.c: New file.
37819         * doc/glibc-headers/pty.texi: Modified.
37820         * doc/glibc-functions/forkpty.texi: Modified.
37821         * doc/glibc-functions/openpty.texi: Modified.
37822
37823 2009-12-10  Bruno Haible  <bruno@clisp.org>
37824
37825         Avoid syntax error in C++ mode.
37826         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37827
37828 2009-12-10  Bruno Haible  <bruno@clisp.org>
37829
37830         Use sed with option -e.
37831         * gnulib-tool (func_version, func_emit_copyright_notice,
37832         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37833         option -e to sed.
37834         * modules/link-warning (Makefile.am): Likewise.
37835
37836 2009-12-10  Jim Meyering  <meyering@redhat.com>
37837
37838         mgetgroups: do not write bytes beyond end of malloc'd buffer
37839         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37840         username, we call getgroups with a one-element-shorter buffer,
37841         but still told it the length was original, max_n_groups.
37842
37843 2009-12-09  Eric Blake  <ebb9@byu.net>
37844
37845         cloexec: relax license
37846         * modules/cloexec (Maintainer): Add myself.
37847         (License): Use LGPL, not GPL.
37848
37849         link-warning: optimize generation
37850         * modules/link-warning (Makefile.am): Reduce process usage.
37851
37852 2009-12-09  Bruno Haible  <bruno@clisp.org>
37853
37854         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37855         workaround was added on 2009-11-17.
37856
37857 2009-12-09  Jim Meyering  <meyering@redhat.com>
37858             Bruno Haible  <bruno@clisp.org>
37859
37860         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37861         * modules/link-warning (Makefile.am): Make the comment-removing sed
37862         command more robust in the face of bootstrap-prepended comment lines.
37863
37864 2009-12-09  Bruno Haible  <bruno@clisp.org>
37865
37866         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37867         most one group.
37868
37869 2009-12-09  Simon Josefsson <simon@josefsson.org>
37870             Bruno Haible  <bruno@clisp.org>
37871
37872         * build-aux/link-warning.h: Add copyright notice.
37873         * modules/link-warning (Makefile.am): Generate link-warning.h from
37874         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37875         * NEWS: Mention change in link-warning module.
37876         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37877         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37878         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37879         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37880         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37881         * modules/math (Makefile.am): Add dependency to math.h.
37882         * modules/search (Makefile.am): Add dependency to search.h.
37883         * modules/signal (Makefile.am): Add dependency to signal.h.
37884         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37885         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37886         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37887         * modules/string (Makefile.am): Add dependency to string.h.
37888         * modules/strings (Makefile.am): Add dependency to strings.h.
37889         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37890         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37891         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37892         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37893         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37894         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37895         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37896         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37897         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37898
37899 2009-12-09  Bruno Haible  <bruno@clisp.org>
37900
37901         fchdir: Optimize away rpl_fstat when possible.
37902         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37903         REPLACE_OPEN_DIRECTORY.
37904         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37905
37906 2009-12-09  Bruno Haible  <bruno@clisp.org>
37907
37908         * lib/fchdir.c: Update comment.
37909
37910 2009-12-09  Bruno Haible  <bruno@clisp.org>
37911
37912         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37913
37914 2009-12-08  Eric Blake  <ebb9@byu.net>
37915
37916         fchdir: avoid memory leak on re-registration.
37917         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37918
37919 2009-12-08  Jim Meyering  <meyering@redhat.com>
37920
37921         init.sh: avoid Solaris 10 /bin/sh portability problem
37922         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37923         sourced script:
37924           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37925           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37926           bar
37927         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37928         and two tests used that idiom.
37929         * tests/init.sh: Update suggested usage comments.
37930         (path_prepend_): New function, to be used in place
37931         of the --src-path=DIR option.
37932         (setup_): Move PATH-prepending code into path_prepend_.
37933         * tests/test-pread.sh: Adapt to new usage.
37934         * tests/test-xalloc-die.sh: Likewise.
37935
37936 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37937
37938         * doc/gnulib.texi (Glibc pty.h): Add.
37939         * doc/glibc-functions/forkpty.texi: Add.
37940         * doc/glibc-functions/openpty.texi: Add.
37941         Suggested by Bruno Haible.
37942
37943 2009-12-08  Eric Blake  <ebb9@byu.net>
37944
37945         fchdir: fix logic bugs
37946         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37947         * tests/test-fchdir.c (main): Enhance test.
37948         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37949         is in use.
37950
37951         dup2: fix logic bugs
37952         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37953         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37954         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37955         exists.
37956         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37957
37958 2009-12-07  Eric Blake  <ebb9@byu.net>
37959
37960         unlink: fix m4 detection
37961         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37962
37963         unistd-safer: add unit test
37964         * modules/unistd-safer-tests: New file.
37965         * tests/test-dup-safer.c: Likewise.
37966         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37967         * tests/test-dup2.c (setmode): Likewise.
37968         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37969
37970         cloexec: preserve text vs. binary across dup_cloexec
37971         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37972         mode.
37973         * modules/dup2-tests (Depends-on): Add binary-io.
37974         * modules/cloexec-tests (Depends-on): Likewise.
37975         * tests/test-dup2.c (setmode, is_mode): New helpers.
37976         (main): Add tests that translation mode is preserved.
37977         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37978         Reported by Bruno Haible.
37979
37980         mgetgroups: reduce duplicate listings
37981         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37982         resulting array.
37983         * tests/test-chown.h (test_chown): Simplify client.
37984         * tests/test-lchown.h (test_lchown): Likewise.
37985
37986 2009-12-06  Bruno Haible  <bruno@clisp.org>
37987
37988         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37989         value.
37990
37991 2009-12-06  Bruno Haible  <bruno@clisp.org>
37992
37993         * lib/progname.c: Include stdio.h, stdlib.h.
37994         (set_program_name): Reject a NULL argument.
37995
37996 2009-12-05  Eric Blake  <ebb9@byu.net>
37997
37998         pipe2-safer: new module
37999         * modules/pipe2-safer: New file.
38000         * lib/unistd-safer.h (pipe2_safer): New prototype.
38001         * lib/unistd--.h (pipe2): New wrapper.
38002         * lib/pipe-safer.c (pipe2_safer): New function.
38003         * modules/pipe (Depends-on): Add pipe2-safer.
38004         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38005
38006         stdlib-safer: preserve cloexec flag for mkostemp[s]
38007         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38008         fd_safer_flag.
38009
38010         unistd-safer: allow preservation of cloexec status via flag
38011         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38012         prototypes.
38013         * lib/dup-safer.c (dup_safer_flag): New function.
38014         * lib/fd-safer.c (fd_safer_flag): Likewise.
38015         * modules/cloexec (configure.ac): Set witness.
38016
38017         test-dup2: enhance test
38018         * modules/dup2-tests (Depends-on): Add cloexec.
38019         * tests/test-dup2.c (main): Enhance test.
38020
38021         cloexec: add dup_cloexec
38022         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38023         header and comments.
38024         * lib/cloexec.c (set_cloexec_flag): Add comments.
38025         (dup_cloexec): New function, with mingw implementation borrowed
38026         from...
38027         * lib/w32spawn.h (dup_noinherit): ...here.
38028         * modules/execute (Depends-on): Add cloexec.
38029         * modules/pipe (Depends-on): Likewise.
38030         * modules/cloexec (Depends-on): Add dup2.
38031         * modules/cloexec-tests (Files): New file.
38032         * tests/test-cloexec.c: Likewise.
38033
38034         test-xalloc-die: fix test for mingw
38035         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38036         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38037         directory and .exe suffix off argv[0] output.
38038
38039         test-fseeko: fix test for mingw
38040         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38041         than undefining fseek, so test will pass on mingw.
38042
38043 2009-12-05  Bruno Haible  <bruno@clisp.org>
38044
38045         * lib/progname.h (set_program_name): Clarify specification.
38046         * lib/progname.c (set_program_name): Likewise.
38047         Reported by Jim Meyering.
38048
38049 2009-12-05  Jim Meyering  <meyering@redhat.com>
38050
38051         maint.mk: backslash-escape parens in default regexp
38052         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38053         backslash-escape the literal parentheses.
38054
38055         maint.mk: news-date-check: use grep -E
38056         * top/maint.mk (today): Define a Make variable, not a...
38057         (news-date-check): ...shell variable.
38058         (news-date-regexp): Use the Make variable.
38059         Use grep's -E option.  Change the failing diagnostic to mention
38060         the variable, $(news-date-regexp).
38061
38062 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38063
38064         maintainer-makefile: allow customization of NEWS entry format
38065         * top/maint.mk (news-date-regexp): New overridable variable.
38066         (news-date-check): Use it.
38067
38068 2009-12-04  Eric Blake  <ebb9@byu.net>
38069
38070         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38071         * lib/mgetgroups.h (xgetgroups): New prototype.
38072         * lib/mgetgroups.c (xgetgroups): New wrapper.
38073         (mgetgroups): Handle ENOSYS.
38074         * modules/mgetgroups (Depends-on): Add realloc.
38075         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38076
38077         mgetgroups: avoid argument promotion issues with -1
38078         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38079         for invalid gid_t.
38080         * tests/test-chown.h (getegid, test_chown): Likewise.
38081         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38082
38083 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38084
38085         exclude: Fix header file problems.
38086         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38087
38088 2009-12-01  Jim Meyering  <meyering@redhat.com>
38089
38090         fts: fts_open: do not let an empty string cause immediate failure
38091         This is required in support of GNU rm, for which the command
38092         "rm A '' B" must process and remove both A and B, in spite of
38093         the empty string argument.
38094         * lib/fts.c (fts_open): Do not let the presence of an empty string
38095         cause fts_open to fail immediately.  Most fts-using tools must be
38096         able to process all arguments, in order, and can be expected to
38097         diagnose such arguments themselves.
38098
38099 2009-11-30  Eric Blake  <ebb9@byu.net>
38100
38101         utimens: fix compilation error
38102         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38103         Declare variable at right scope.
38104
38105 2009-11-29  Jim Meyering  <meyering@redhat.com>
38106
38107         bootstrap: handle perl-5.11's changed --version output
38108         * build-aux/bootstrap (get_version): Handle perl separately,
38109         since perl-5.11's --version output is different.
38110
38111 2009-11-28  Jim Meyering  <meyering@redhat.com>
38112
38113         userspec: depend on the inttostr module, too
38114         * modules/userspec (Depends-on): Add inttostr.
38115
38116         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38117         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38118         number of MAXUID when it evaluates to (uid_t) -1.
38119         Likewise for group ID.  Reported by Matt McCutchen in
38120         <http://savannah.gnu.org/bugs/?28113>
38121
38122         userspec: reformat to use spaces, not TABs
38123         * lib/userspec.c: Expand TABs to spaces.
38124         Add Emacs' "indent-tabs-mode: nil" hint.
38125
38126 2009-11-27  Eric Blake  <ebb9@byu.net>
38127
38128         getopt-gnu: flush out another BSD bug
38129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38130         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38131         flush out BSD bug.
38132         * tests/test-getopt.h (test_getopt): End lists with NULL.
38133         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38134         (test_getopt_long_posix): Enhance test.
38135         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38136         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38137         getopt-gnu.
38138         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38139         Likewise.
38140
38141 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38142
38143         * modules/idpriv-droptemp-tests (Notice): Fix text.
38144
38145 2009-11-27  Jim Meyering  <meyering@redhat.com>
38146
38147         test-xalloc-die: avoid spurious failure due to libtool argv difference
38148         In a libtool-enabled project, this test would fail due to a difference
38149         in the emitted program name, e.g.,
38150         -test-xalloc-die: memory exhausted
38151         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38152         Use program to avoid that.
38153         * modules/xalloc-die-tests (Depends-on): Add progname.
38154         * tests/test-xalloc-die.c: Include progname.h".
38155         (program_name): Remove decl.
38156         (main): Call set_program_name.
38157         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38158
38159 2009-11-26  Richard Jones  <rjones@redhat.com>
38160
38161         w32sock: leave win32 error in place.
38162         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38163
38164 2009-11-26  Eric Blake  <ebb9@byu.net>
38165
38166         init.sh: suggest to use skip_ and fail_ functions in comments
38167         * tests/init.sh: Add a sentence.
38168
38169 2009-11-25  Bruno Haible  <bruno@clisp.org>
38170
38171         init.sh: add documentation in comments
38172         * tests/init.sh: Add some developer and user documentation.
38173
38174 2009-11-26  Jim Meyering  <meyering@redhat.com>
38175
38176         init.sh: accommodate even those who specify bogus srcdir manually
38177         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38178         configure-time tests to be sanitized, so that there is no need to
38179         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38180         (with no double quotes) suffices.  However, since tests may be
38181         invoked manually, and since you may explicitly set srcdir to the
38182         name of a directory containing spaces, do quote its uses here.
38183         * tests/test-pread.sh: Likewise.
38184         Suggested by Bruno Haible.
38185
38186         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38187         * tests/test-pread.sh: Write no data into the pipe, because
38188         test-pread actually reads none.  This avoids a diagnostic,
38189         "bash: echo: write error: Broken pipe", that arises in the unusual
38190         event something is ignoring SIGPIPE, and might be interpreted
38191         as some sort of failure.  Reported by Bruno Haible.
38192
38193 2009-11-25  Jim Meyering  <meyering@redhat.com>
38194
38195         test-pread: cover failure with ESPIPE and EINVAL
38196         * tests/test-pread.c (main): Test for failure, too.
38197         * tests/test-pread.sh: Invoke with stdin on a pipe.
38198         Suggested by Eric Blake.
38199
38200         pread: improvement and fix
38201         * modules/pread (Depends-on): Depend on lseek, for portability to
38202         e.g., mingw.  Suggested by Eric Blake.
38203         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38204
38205         unistd.in.h: correct declaration of pread
38206         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38207         Reported by Richard W.M. Jones.
38208
38209         test-pread.sh: distribute the test script
38210         * modules/pread-tests (Files): Include test-pread.sh.
38211
38212         test-pread.sh: clean up
38213         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38214         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38215         That is unnecessary, since it's always ".".
38216         Suggestion from Eric Blake.
38217
38218         test-pread.sh: make executable
38219         * tests/test-pread.sh: Set executable bit.
38220         Reported by Eric Blake.
38221
38222         correct typo in test-pread.sh
38223         * tests/test-pread.sh: Add #! line.
38224
38225         test pread
38226         * tests/test-pread.c: New file.
38227         * tests/test-pread.sh: Likewise.
38228         * modules/pread-tests: Likewise.
38229
38230         pread: new module
38231         * modules/pread: New file.
38232         * lib/unistd.in.h (pread): Define/declare.
38233         * lib/pread.c (pread): New file.
38234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38235         * modules/unistd (Makefile.am): Substitute witnesses.
38236         * doc/posix-functions/pread.texi (pread): Update.
38237         * MODULES.html.sh: Add pread.
38238
38239 2009-11-25  Jim Meyering  <meyering@redhat.com>
38240
38241         tests/init.sh: new file to be used via most *.sh tests
38242         * tests/init.sh: New file.
38243
38244 2009-11-25  Eric Blake  <ebb9@byu.net>
38245
38246         utimens: work around older Linux failure with symlinks
38247         * lib/utimens.c (lutimensat_works_really): New variable.
38248         (fdutimens, lutimens): Use it to manage kernels that support
38249         nanosecond times on files, but not on symlinks.
38250         Reported by OndÅ™ej Vašík.
38251
38252         utimes: fix configure grammar
38253         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38254
38255 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38256
38257         regex: Fix fastmap for multibyte character ranges.
38258         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38259         characters when a multibyte character range is included.
38260
38261 2009-11-22  Andy Wingo  <wingo@pobox.com>
38262
38263         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38264         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38265
38266 2009-11-24  Bruno Haible  <bruno@clisp.org>
38267
38268         doc: Most *_l functions exist in MacOS X 10.5.
38269         * doc/posix-functions/duplocale.texi: Update platforms list.
38270         * doc/posix-functions/freelocale.texi: Likewise.
38271         * doc/posix-functions/newlocale.texi: Likewise.
38272         * doc/posix-functions/uselocale.texi: Likewise.
38273         * doc/posix-functions/isalnum_l.texi: Likewise.
38274         * doc/posix-functions/isalpha_l.texi: Likewise.
38275         * doc/posix-functions/isblank_l.texi: Likewise.
38276         * doc/posix-functions/iscntrl_l.texi: Likewise.
38277         * doc/posix-functions/isdigit_l.texi: Likewise.
38278         * doc/posix-functions/isgraph_l.texi: Likewise.
38279         * doc/posix-functions/islower_l.texi: Likewise.
38280         * doc/posix-functions/isprint_l.texi: Likewise.
38281         * doc/posix-functions/ispunct_l.texi: Likewise.
38282         * doc/posix-functions/isspace_l.texi: Likewise.
38283         * doc/posix-functions/isupper_l.texi: Likewise.
38284         * doc/posix-functions/iswalnum_l.texi: Likewise.
38285         * doc/posix-functions/iswalpha_l.texi: Likewise.
38286         * doc/posix-functions/iswblank_l.texi: Likewise.
38287         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38288         * doc/posix-functions/iswctype_l.texi: Likewise.
38289         * doc/posix-functions/iswdigit_l.texi: Likewise.
38290         * doc/posix-functions/iswgraph_l.texi: Likewise.
38291         * doc/posix-functions/iswlower_l.texi: Likewise.
38292         * doc/posix-functions/iswprint_l.texi: Likewise.
38293         * doc/posix-functions/iswpunct_l.texi: Likewise.
38294         * doc/posix-functions/iswspace_l.texi: Likewise.
38295         * doc/posix-functions/iswupper_l.texi: Likewise.
38296         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38297         * doc/posix-functions/isxdigit_l.texi: Likewise.
38298         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38299         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38300         * doc/posix-functions/strcoll_l.texi: Likewise.
38301         * doc/posix-functions/strfmon_l.texi: Likewise.
38302         * doc/posix-functions/strftime_l.texi: Likewise.
38303         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38304         * doc/posix-functions/strxfrm_l.texi: Likewise.
38305         * doc/posix-functions/tolower_l.texi: Likewise.
38306         * doc/posix-functions/toupper_l.texi: Likewise.
38307         * doc/posix-functions/towctrans_l.texi: Likewise.
38308         * doc/posix-functions/towlower_l.texi: Likewise.
38309         * doc/posix-functions/towupper_l.texi: Likewise.
38310         * doc/posix-functions/wcscoll_l.texi: Likewise.
38311         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38312         * doc/posix-functions/wctrans_l.texi: Likewise.
38313         * doc/posix-functions/wctype_l.texi: Likewise.
38314         * doc/glibc-functions/strptime_l.texi: Likewise.
38315         * doc/glibc-functions/strtod_l.texi: Likewise.
38316         * doc/glibc-functions/strtof_l.texi: Likewise.
38317         * doc/glibc-functions/strtol_l.texi: Likewise.
38318         * doc/glibc-functions/strtold_l.texi: Likewise.
38319         * doc/glibc-functions/strtoll_l.texi: Likewise.
38320         * doc/glibc-functions/strtoul_l.texi: Likewise.
38321         * doc/glibc-functions/strtoull_l.texi: Likewise.
38322         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38323         * doc/glibc-functions/wcstod_l.texi: Likewise.
38324         * doc/glibc-functions/wcstof_l.texi: Likewise.
38325         * doc/glibc-functions/wcstol_l.texi: Likewise.
38326         * doc/glibc-functions/wcstold_l.texi: Likewise.
38327         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38328         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38329         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38330
38331 2009-11-24  Bruno Haible  <bruno@clisp.org>
38332
38333         duplocale: Fix logic bug.
38334         * lib/duplocale.c: Don't include <langinfo.h>.
38335         (_NL_LOCALE_NAME): Remove macro.
38336         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38337         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38338
38339 2009-11-23  Jim Meyering  <meyering@redhat.com>
38340
38341         test-update-copyright: don't hard-code /usr/bin/perl
38342         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38343         perl to print the current year.  Gilles Espinasse reported that
38344         the replaced use of perl was hard-coded as /usr/bin/perl.
38345
38346 2009-11-23  Bruno Haible  <bruno@clisp.org>
38347
38348         duplocale: Add support for glibc 2.3.x.
38349         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38350
38351 2009-11-22  Bruno Haible  <bruno@clisp.org>
38352
38353         vasnprintf: Tiny optimization.
38354         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38355         MacOS X.
38356
38357 2009-11-22  Bruno Haible  <bruno@clisp.org>
38358
38359         Tests for module 'duplocale'.
38360         * modules/duplocale-tests: New file.
38361         * tests/test-duplocale.c: New file.
38362
38363         New module 'duplocale'.
38364         * m4/duplocale.m4: New file.
38365         * lib/locale.in.h (duplocale): New declaration.
38366         * lib/duplocale.c: New file.
38367         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38368         gl_LOCALE_H_DEFAULTS): New macros.
38369         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38370         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38371         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38372         REPLACE_DUPLOCALE.
38373         * modules/duplocale: New file.
38374         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38375
38376 2009-11-22  Bruno Haible  <bruno@clisp.org>
38377
38378         * modules/locale-tests (configure.ac): Test for newlocale function.
38379         * tests/test-locale.c: When the system has extended locale functions,
38380         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38381
38382         locale: Make locale_t available when possible.
38383         * lib/locale.in.h: Include <xlocale.h> when it exists.
38384         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38385         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38386         * modules/locale (Depends-on): Add extensions.
38387         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38388         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38389
38390 2009-11-22  Bruno Haible  <bruno@clisp.org>
38391
38392         Add comments.
38393         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38394         invocation.
38395         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38396         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38397         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38398
38399 2009-11-22  Bruno Haible  <bruno@clisp.org>
38400
38401         error: account for the possibility of freopen (stdout).
38402         * lib/error.c: Include <unistd.h>.
38403         (flush_stdout): New function, extracted from error and error_at_line.
38404         Determine stdout's fd dynamically.
38405         (error, error_at_line): Invoke flush_stdout.
38406         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38407         * modules/error (Depends-on): Add unistd.
38408
38409 2009-11-22  Bruno Haible  <bruno@clisp.org>
38410
38411         diffseq: Add comment.
38412         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38413
38414 2009-11-22  Jim Meyering  <meyering@redhat.com>
38415
38416         c-stack: avoid defining an unused static function
38417         * lib/c-stack.c (find_stack_direction): Do not define this function
38418         when it will not be used.
38419
38420         diffseq: avoid spurious gcc warnings
38421         * lib/diffseq.h (IF_LINT2): Define.
38422         (compareseq): Use it to initialize two members of "part".
38423         This avoids two used-uninitialized warnings.
38424
38425 2009-11-21  Jim Meyering  <meyering@redhat.com>
38426
38427         c-stack: avoid "ignoring return value of `write'" warning
38428         * lib/c-stack.c: Include "ignore-value.h".
38429         (die): Explicitly ignore each write return value.
38430         * modules/c-stack (Depends-on): Add ignore-value.
38431
38432 2009-11-21  Bruno Haible  <bruno@clisp.org>
38433
38434         diffseq: reduce scope of variable 'best'.
38435         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38436         variable, earlier used for two different purposes.
38437
38438 2009-11-21  Jim Meyering  <meyering@redhat.com>
38439
38440         diffseq: remove useless assignment to "best"
38441         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38442         assignment.  At that point "best" is already guaranteed to be zero.
38443
38444 2009-11-20  Eric Blake  <ebb9@byu.net>
38445
38446         build: mention ftp redirector in release announcements
38447         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38448         values that used to come from cfg.mk; mention FTP redirect URL.
38449         * build-aux/announce-gen: Mention the mirror list.
38450         Suggested by Karl Berry.
38451
38452         nanosleep: improve port to mingw
38453         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38454         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38455         LIB_NANOSLEEP, but only when needed.
38456         * modules/select (Link): Document LIBSOCKET.
38457         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38458         enough.
38459
38460         nanosleep: work around cygwin bug
38461         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38462         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38463         bug.
38464         (getnow): Delete, not needed.
38465         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38466         LIB_CLOCK_GETTIME.
38467         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38468         clock-time, gettime.
38469         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38470         bug.
38471         * modules/nanosleep-tests: New test.
38472         * tests/test-nanosleep.c: New file.
38473
38474         sleep: work around cygwin bug
38475         * lib/sleep.c (rpl_sleep): Work around the bug.
38476         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38477         (gl_PREREQ_SLEEP): Delete unused macro.
38478         * modules/sleep (Depends-on): Add verify.
38479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38480         * modules/unistd (Makefile.am): Substitute witness.
38481         * lib/unistd.in.h (sleep): Update prototype.
38482         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38483         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38484         * modules/sleep-tests (Depends-on): Check for alarm.
38485
38486 2009-11-20  Jim Meyering  <meyering@redhat.com>
38487
38488         maint.mk: improve sc_prohibit_magic_number_exit
38489         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38490         so it does not match uses like System.exit(1).
38491         Add comments showing how to correct all offenders.
38492
38493 2009-11-19  Eric Blake  <ebb9@byu.net>
38494
38495         xalloc-die-tests: add missing library
38496         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38497
38498         test-xvasprintf: silence compiler warnings
38499         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38500         empty string from gcc.
38501
38502 2009-11-19  Jim Meyering  <meyering@redhat.com>
38503
38504         xfreopen: new module, from coreutils
38505         * modules/xfreopen: New module.
38506         * lib/xfreopen.c: New file.
38507         * lib/xfreopen.h: New file.
38508         * MODULES.html.sh (File stream based Input/Output"): Add it.
38509
38510 2009-11-19  Eric Blake  <ebb9@byu.net>
38511
38512         manywarnings: depend on warnings
38513         * modules/manywarnings (Depends-on): Add warnings.
38514
38515         build: avoid compiler warnings
38516         * lib/select.c (rpl_select): Delete unused variable.
38517         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38518
38519 2009-11-18  Eric Blake  <ebb9@byu.net>
38520
38521         tests: avoid false negative with --with-packager
38522         * tests/test-version-etc.sh: Discard packager information.
38523         * tests/test-argp-version-etc-1.sh: Likewise.
38524         Reported by Mike Frysinger.
38525
38526         utimens: fix regression on Solaris
38527         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38528         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38529         can only change fd timestamps via futimesat.  Instead, use an
38530         additional witness macro to avoid BSD bug.
38531         Reported by Jim Meyering.
38532
38533 2009-11-17  Eric Blake  <ebb9@byu.net>
38534
38535         usleep: use it to simplify tests
38536         * modules/stat-time-tests (Depends-on): Add usleep.
38537         (configure.ac): Drop usleep check.
38538         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38539         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38540         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38541         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38542         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38543         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38544         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38545         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38546         Likewise.
38547         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38548         * tests/test-lchown.h (nap): Likewise.
38549         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38550         * tests/test-stat-time.c (nap): Likewise.
38551         * tests/test-utimens-common.h (nap): Update comments.
38552
38553         usleep: new module
38554         * modules/usleep: New file.
38555         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38556         * lib/usleep.c (usleep): Likewise.
38557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38558         * modules/unistd (Makefile.am): Substitute witnesses.
38559         * lib/unistd.in.h (usleep): Add declaration.
38560         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38561         * MODULES.html.sh (Date and time): Likewise.
38562         * modules/usleep-tests (Depends-on): New test.
38563         * tests/test-usleep.c: New file.
38564
38565         chown: work around OpenBSD bug
38566         * lib/chown.c (rpl_chown): Work around the bug.
38567         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38568         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38569         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38570         * modules/chown (Depends-on): Add stdbool.
38571         * modules/lchown (Depends-on): Likewise.
38572         * doc/posix-functions/chown.texi (chown): Document the bug.
38573         * doc/posix-functions/lchown.texi (lchown): Likewise.
38574         * tests/test-lchown.h (test_chown): Relax test.
38575
38576         mkstemp: avoid conflict with C++ keyword template
38577         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38578         * lib/mkostemp.c (mkostemp): Likewise.
38579         * lib/mkostemps.c (mkostemps): Likewise.
38580         * lib/mkstemp.c (mkstemp): Likewise.
38581         * lib/mkstemps.c (mkstemps): Likewise.
38582
38583         xalloc-die-tests: optimize
38584         * tests/test-xalloc-die.sh: Reduce number of processes.
38585
38586 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38587
38588         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38589         patch from ludo@gnu.org (Ludovic Courtès).
38590
38591 2009-11-17  Jim Meyering  <meyering@redhat.com>
38592
38593         version-etc: use proper license string
38594         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38595         * modules/version-etc-fsf: Likewise.
38596
38597 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38598
38599         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38600         printed to stdout.  Deal with EOL differences.
38601
38602 2009-11-17  Eric Blake  <ebb9@byu.net>
38603
38604         unsetenv: work around Solaris bug
38605         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38606         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38607         Reported by Jim Meyering.
38608
38609         vasnprintf: avoid compiler warnings
38610         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38611         variables.
38612         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38613
38614 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38615
38616         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38617         settings since xalloc-die is no longer the self test,
38618         xalloc-die.sh is.
38619
38620 2009-11-17  Jim Meyering  <meyering@redhat.com>
38621
38622         test-xalloc-die.sh: make the code agree with the commit log
38623         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38624         at the end, just in case you happen to have a test-xalloc-die
38625         program in some other PATH directory.
38626
38627         test-xalloc-die.sh: fix a portability bug
38628         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38629         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38630         Otherwise, argv[0] (as often seen in diagnostics) would be too
38631         system-dependent, sometimes with, and sometimes without the leading "./".
38632
38633         version-etc-fsf: relax license to LGPLv3+
38634         * modules/version-etc-fsf (License): Relax license.
38635
38636 2009-11-16  Eric Blake  <ebb9@byu.net>
38637
38638         xalloc-die-tests: avoid printing null pointer
38639         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38640         shell script.
38641         * tests/test-xalloc-die.c (program_name): Declare.
38642         * tests/test-xalloc-die.sh (tmpfiles): New file.
38643
38644         setenv, unsetenv: work around various bugs
38645         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38646         (setenv) [HAVE_SETENV]: Work around bugs.
38647         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38648         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38649         for bugs.
38650         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38651         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38653         * modules/stdlib (Makefile.am): Update substitutions.
38654         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38655         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38656         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38657         * modules/setenv-tests: New test.
38658         * modules/unsetenv-tests: Likewise.
38659         * tests/test-setenv.c: New file.
38660         * tests/test-unsetenv.c: Likewise.
38661
38662 2009-11-16  Jim Meyering  <meyering@redhat.com>
38663
38664         version-etc: relax license to LGPLv3+
38665         * modules/version-etc (License): Relax license.
38666
38667         better AC_REQUIRE expanded-before-required-warning avoidance
38668         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38669         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38670         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38671         which is no longer needed.
38672
38673 2009-11-16  Eric Blake  <ebb9@byu.net>
38674
38675         test-freading: clean up temporary file
38676         * tests/test-freading.c (main): Remove file on success, and use
38677         ASSERT more liberally.
38678         Reported by Jim Meyering.
38679
38680 2009-11-16  Jim Meyering  <meyering@redhat.com>
38681
38682         avoid new AC_REQUIRE expanded-before-required warnings
38683         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38684         merely using it.
38685         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38686         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38687
38688 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38689
38690         * tests/test-xalloc-die.c: New file.
38691         * modules/xalloc-die-tests: New file.
38692         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38693         XFAIL_TESTS so it can be appended by modules.
38694
38695 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38696
38697         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38698         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38699
38700 2009-11-14  Eric Blake  <ebb9@byu.net>
38701
38702         fnmatch: avoid compiler warning
38703         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38704         to silence compiler warning about mismatch signedness in ?:.
38705         Reported by Robert Millan.
38706
38707         intprops: add double-inclusion guard
38708         * lib/intprops.h: Allow idempotent includes.
38709         Suggested by Bruce Korb.
38710
38711         openat: detect Solaris fchownat bug
38712         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38713         penalizing glibc chownat when only lchownat is broken.
38714         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38715         trailing slash bugs.
38716         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38717         * modules/openat-tests (Files): Include more files.
38718         (Depends-on): Add mgetgroups, sleep, stat-time.
38719         (configure.ac): Add additional checks.
38720         (Makefile.am): Build new test.
38721         * tests/test-fchownat.c: New file.
38722
38723         lchown: detect Solaris and FreeBSD bug
38724         * lib/lchown.c (rpl_lchown): Work around bug.
38725         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38727         * modules/unistd (Makefile.am): Populate it.
38728         * lib/unistd.in.h (lchown): Update declaration.
38729         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38730         * modules/lchown-tests: New file.
38731         * tests/test-lchown.h (test_lchown): Likewise.
38732         * tests/test-lchown.c (main): Likewise.
38733
38734         chown: detect Solaris and FreeBSD bug
38735         * lib/chown.c (rpl_chown): Work around bug.
38736         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38737         (gl_PREREQ_CHOWN): Delete.
38738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38739         * modules/unistd (Makefile.am): Populate it.
38740         * lib/unistd.in.h (chown): Update declaration.
38741         * lib/lchown.c (chown): Update client.
38742         * modules/lchown (Depends-on): Add lstat.
38743         * doc/posix-functions/chown.texi (chown): Document the bug.
38744         * doc/posix-functions/getgroups.texi (getgroups): Document
38745         getgroups pitfall.
38746         * modules/chown-tests: New file.
38747         * tests/test-chown.h (test_chown): Likewise.
38748         * tests/test-chown.c (main): Likewise.
38749
38750 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38751
38752         gnulib-tool: correctly detect absence of m4 directories
38753         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38754
38755 2009-11-14  Jim Meyering  <meyering@redhat.com>
38756
38757         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38758         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38759
38760 2009-11-14  John W. Eaton  <jwe@gnu.org>
38761
38762         strftime.h: wrap funtion declaration in extern "C" block
38763         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38764
38765 2009-11-13  Eric Blake  <ebb9@byu.net>
38766
38767         getgroups: avoid compiler warning
38768         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38769
38770         getgroups: work around FreeBSD bug
38771         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38772         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38773         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38774         * tests/test-getgroups.c (main): Fix buffer overrun.
38775
38776         getgroups: avoid compilation failure
38777         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38778         * modules/getgroups (Depends-on): Add stdint.
38779
38780 2009-11-13  Jim Meyering  <meyering@redhat.com>
38781
38782         test-getgroups: avoid compilation failure
38783         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38784
38785 2009-11-13  Eric Blake  <ebb9@byu.net>
38786
38787         mgetgroups: new module, taken from coreutils
38788         * modules/mgetgroups: New file.
38789         * lib/mgetgroups.h: Likewise.
38790         * lib/mgetgroups.c (mgetgroups): Likewise.
38791         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38792         * MODULES.html.sh (Users and groups): Mention it.
38793
38794         getgroups: don't expose GETGROUPS_T to user
38795         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38796         an element at a time if GETGROUPS_T is wrong size.
38797         * lib/getugroups.h (getugroups): Change signature.
38798         * lib/unistd.in.h (getgroups): Likewise.
38799         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38800         signature needs fixing.
38801         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38802         AC_TYPE_GETGROUPS.
38803         * modules/group-member (Depends-on): Add getgroups.
38804         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38805         (group_member): Rely on getgroups replacement.
38806         * lib/getugroups.c (getugroups): Use gid_t.
38807         * tests/test-getgroups.c (main): Likewise.
38808         * NEWS: Mention the signature change.
38809         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38810         problem with signature.
38811         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38812         GETGROUPS_T is still useful for setgroups.
38813
38814         getgroups, getugroups: provide stubs for mingw
38815         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38816         * lib/getugroups.c (getugroups): Likewise.
38817         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38818         function.  Modernize replacement scheme.
38819         (gl_PREREQ_GETGROUPS): Delete.
38820         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38821         * modules/getgroups (configure.ac): Declare witness.
38822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38823         * modules/unistd (Depends-on): Substitute witness.
38824         * lib/unistd.in.h (getgroups): Declare replacement.
38825
38826         getgroups: avoid calling exit
38827         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38828         drop xalloc.
38829         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38830         dependencies.
38831         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38832         exiting, in the rare case of malloc failure.
38833
38834         getgroups: fix logic error
38835         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38836         has more than 20 groups.
38837         * modules/getgroups-tests: New test.
38838         * tests/test-getgroups.c: New file.
38839
38840 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38841
38842         * tests/test-base64.c: Improve.
38843
38844 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38845
38846         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38847         Blake <ebb9@byu.net>.
38848
38849 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38850
38851         * tests/test-xvasprintf.c: Add %s%s related checks.
38852
38853 2009-11-12  Eric Blake  <ebb9@byu.net>
38854
38855         version-etc: match standards.texi style
38856         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38857         and use <> only for URLs.
38858
38859 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38860
38861         fts: do not fail on a submount during traversal
38862         * lib/fts.c (fts_build): Read the stat info again after opening
38863         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38864         Original report at http://bugzilla.redhat.com/501848.
38865
38866 2009-11-12  Jim Meyering  <meyering@redhat.com>
38867
38868         bootstrap: sync from coreutils
38869         * build-aux/bootstrap (bootstrap_epilogue): New function.
38870         Use git_modules_config in one more place.  This make bootstrap's
38871         --gnulib-srcdir option more useful for testing.
38872
38873         bootstrap: generalize autoheader check
38874         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38875         AC_CONFIG_HEADERS.
38876
38877 2009-11-11  Eric Blake  <ebb9@byu.net>
38878
38879         mkfifoat: use new modules for Solaris and BSD bugs
38880         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38881         * lib/mkfifoat.c (mknodat): Split...
38882         * lib/mknodat.c (mknodat): ...into new file.
38883         * modules/mkfifoat (Files): Ship new file.
38884         (Depends-on): Add mkfifo, mknod.
38885         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38886         (Depends-on): Add symlink.
38887         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38888         redundant with test_mkfifo.h.
38889         (do_mkfifoat, do_mknodat): New helpers.
38890
38891         mknod: new module
38892         * modules/mknod: New file.
38893         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38894         * lib/mknod.c (mknod): Likewise.
38895         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38896         defaults.
38897         * modules/sys_stat (Makefile.am): Substitute them.
38898         * lib/sys_stat.in.h (mknod): Declare replacement.
38899         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38900         Document it.
38901         * doc/posix-functions/mknod.texi (mknod): Likewise.
38902         * modules/mknod-tests: New test.
38903         * tests/test-mknod.c: Likewise.
38904
38905         mkfifo: new module
38906         * modules/mkfifo: New file.
38907         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38908         * lib/mkfifo.c (mkfifo): Likewise.
38909         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38910         defaults.
38911         * modules/sys_stat (Makefile.am): Substitute them.
38912         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38913         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38914         Document it.
38915         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38916         * modules/mkfifo-tests: New test.
38917         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38918         from test-mkfifoat.c.
38919         * tests/test-mkfifo.c: New file.
38920
38921         readlink: detect FreeBSD bug
38922         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38923         slash on symlink.
38924         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38925         * tests/test-readlink.h (test_readlink): Enhance test.
38926
38927         symlink: detect FreeBSD bug
38928         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38929         slash on symlink.
38930         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38931         * tests/test-symlink.h (test_symlink): Enhance test.
38932
38933 2009-11-10  Eric Blake  <ebb9@byu.net>
38934
38935         link: detect FreeBSD bug
38936         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38937         symlink.
38938         * doc/posix-functions/link.texi (link): Document the bug.
38939         * tests/test-link.h (test_link): Enhance test.
38940         * tests/test-linkat.c (main): Update caller.
38941
38942         unlink, remove: detect FreeBSD bug
38943         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38944         slash on symlink.
38945         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38946         * doc/posix-functions/remove.texi (remove): Likewise.
38947         * tests/test-unlink.h (test_unlink): Enhance test.
38948         * tests/test-remove.c (main): Likewise.
38949
38950 2009-11-09  Eric Blake  <ebb9@byu.net>
38951
38952         rename: detect FreeBSD bug
38953         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38954         slash on symlink.
38955         * modules/renameat-tests (Depends-on): Add filenamecat.
38956         * tests/test-rename.h (test_rename): Allow one more errno.
38957         * tests/test-renameat.c (main): Likewise.
38958         * doc/posix-functions/rename.texi (rename): Document the bug.
38959
38960         open: detect FreeBSD bug
38961         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38962         symlink.
38963         * doc/posix-functions/open.texi (open): Document the bug.
38964         * doc/posix-functions/utimes.texi (utimes): Likewise.
38965         * tests/test-open.h (test_open): Add parameters, and test symlink
38966         handling.
38967         * tests/test-open.c (main): Adjust caller.
38968         * tests/test-fcntl-safer.c (main): Likewise.
38969         * modules/open-tests (Depends-on): Add stdbool, symlink.
38970         * modules/fcntl-safer-tests (Depends-on): Likewise.
38971         * tests/test-openat.c (main): Add test-open tests.
38972
38973         stat: detect FreeBSD bug
38974         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38975         symlink.
38976         * doc/posix-functions/stat.texi (stat): Document the bug.
38977         * tests/test-stat.h (test_stat_func): Add argument.
38978         * tests/test-stat.c (main): Adjust caller.
38979         * tests/test-fstatat.c (main): Likewise.
38980         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38981         Reported by Jim Meyering.
38982
38983 2009-11-09  James Youngman  <jay@gnu.org>
38984
38985         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38986         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38987
38988 2009-11-08  Jim Meyering  <meyering@redhat.com>
38989
38990         utimens: remove invalid futimesat call
38991         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38992         It used the file descriptor of the target file as the DIR_FD
38993         parameter and NULL as the file name.  That caused failure with
38994         errno == EFAULT on FreeBSD-8.0-rc2
38995
38996 2009-11-07  Eric Blake  <ebb9@byu.net>
38997
38998         fflush, freadseek: use fseeko, not fseek
38999         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39000         (clear_ungetc_buffer): Avoid potential problems on large files.
39001         * lib/freadseek.c (freadseek): Likewise.
39002         * modules/freadseek (Depends-on): Add fseeko.
39003         * modules/fseek (configure.ac): Set a witness.
39004         * tests/test-fflush.c (main): Use fseeko.
39005         * tests/test-fpurge.c (fseek): Disable link warning.
39006         * tests/test-freadable.c (fseek): Likewise.
39007         * tests/test-freading.c (fseek): Likewise.
39008         * tests/test-fseeko.c (fseek): Likewise.
39009         * tests/test-ftell.c (fseek): Likewise.
39010         * tests/test-ftello.c (fseek): Likewise.
39011         * tests/test-fwritable.c (fseek): Likewise.
39012         * tests/test-fwriting.c (fseek): Likewise.
39013
39014 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39015
39016         * modules/memchr (Depends-on): Drop getpagesize dependency.
39017
39018 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39019
39020         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39021         Reported by Ludovic Courtès.
39022         * build-aux/pmccabe2html: Improve example usage.
39023         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39024
39025 2009-11-06  Jim Meyering  <meyering@redhat.com>
39026
39027         do-release-commit-and-tag: New module.
39028         Automate the release-commit and tag process.
39029         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39030         * modules/do-release-commit-and-tag: New file.
39031         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39032
39033 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39034
39035         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39036         because test-select.c uses inet_pton.
39037
39038 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39039
39040         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39041         GETADDRINFO_LIB.  Bump serial number.
39042         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39043         Suggested by Eric Blake <ebb9@byu.net>.
39044
39045 2009-11-05  Eric Blake  <ebb9@byu.net>
39046
39047         strtod: detect darwin bug
39048         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39049         Reported by Leo Davis.
39050
39051         freopen-safer: new module
39052         * modules/freopen-safer: New module.
39053         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39054         * lib/freopen-safer.c (freopen_safer): New file.
39055         * lib/stdio-safer.h (freopen_safer): New declaration.
39056         * lib/stdio--.h (freopen): New override.
39057         * MODULES.html.sh (File stream based Input/Output): Mention it.
39058         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39059         freopen-safer module.
39060         * doc/posix-functions/stderr.texi (stderr): Likewise.
39061         * doc/posix-functions/stdin.texi (stdin): Likewise.
39062         * doc/posix-functions/stdout.texi (stdout): Likewise.
39063         * modules/freopen-safer-tests: New test.
39064         * tests/test-reopen-safer.c: New file.
39065
39066 2009-11-05  Jim Meyering  <meyering@redhat.com>
39067
39068         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39069         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39070
39071 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39072
39073         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39074
39075 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39076
39077         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39078
39079 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39080
39081         Fix link error.
39082         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39083         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39084
39085 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39086
39087         * tests/test-func.c: Also test value of __func__.
39088
39089 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39090
39091         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39092         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39093
39094 2009-11-05  Bruno Haible  <bruno@clisp.org>
39095
39096         Fix link error.
39097         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39098         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39099         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39100
39101 2009-11-05  Bruno Haible  <bruno@clisp.org>
39102
39103         Tests for module 'inet_pton'.
39104         * modules/inet_pton-tests: New file.
39105         * tests/test-inet_pton.c: New file.
39106
39107 2009-11-05  Bruno Haible  <bruno@clisp.org>
39108
39109         Tests for module 'inet_ntop'.
39110         * modules/inet_ntop-tests: New file.
39111         * tests/test-inet_ntop.c: New file.
39112
39113 2009-11-04  Eric Blake  <ebb9@byu.net>
39114
39115         stdlib-safer: wrap all mkstemp variants
39116         * modules/mkostemp (configure.ac): Set witness.
39117         * modules/mkostemps (configure.ac): Likewise.
39118         * modules/mkstemps (configure.ac): Likewise.
39119         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39120         (mkstemps_safer): Wrap more functions.
39121         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39122         wrapping.
39123         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39124         (mkstemps_safer): Implement the wrappers.
39125
39126         mkstemps, mkostemps: new modules
39127         * modules/mkostemps: New module.
39128         * modules/mkstemps: Likewise.
39129         * lib/mkostemps.c (mkostemps): New file.
39130         * lib/mkstemps.c (mkstemps): Likewise.
39131         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39132         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39134         * modules/stdlib (Makefile.am): Substitute them.
39135         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39136         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39137         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39138         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39139         * MODULES.html.sh (File system functions): Mention them.
39140
39141         tempname: resync from glibc
39142         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39143         same values for __GT_FILE as glibc.  Abort even when assertions
39144         are disabled.
39145         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39146         match its value otherwise.  Allow idempotent inclusion.
39147         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39148         * lib/mkostemp.c (mkostemp): Likewise.
39149         * lib/mkstemp.c (mkstemp): Likewise.
39150         * lib/tmpfile.c (tmpfile): Likewise.
39151         * NEWS: Document this.
39152
39153         utimens: fix use of futimens on older Linux
39154         * lib/utimens.c (fdutimens): Use updated, rather than original,
39155         timespec to avoid bug in older Linux kernel.
39156         Reported by Simon Josefsson.
39157
39158 2009-11-04  Bruno Haible  <bruno@clisp.org>
39159
39160         Make num_processors more flexible and consistent.
39161         * lib/nproc.h (enum nproc_query): New type.
39162         (num_processors): Add a 'query' argument.
39163         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39164         (num_processors): Add a 'query' argument. Test the value of the
39165         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39166         mingw, count the number of CPUs available for the current process.
39167         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39168         Check for sched_getaffinity and sched_getaffinity_np.
39169         * modules/nproc (Depends-on): Add c-ctype, extensions.
39170         * NEWS: Mention the change.
39171
39172 2009-11-03  Bruno Haible  <bruno@clisp.org>
39173
39174         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39175
39176 2009-11-03  Jim Meyering  <meyering@redhat.com>
39177
39178         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39179         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39180         if it is defined.
39181
39182 2009-11-02  Eric Blake  <ebb9@byu.net>
39183
39184         mktime, timegm: share common declaration
39185         * lib/mktime-internal.h: New file.
39186         * lib/mktime.c: Use it rather than open-coding a declaration.
39187         * lib/timegm.c: Likewise.
39188         * modules/mktime (Files): Ship it.
39189         * modules/timegm (Files): Likewise.
39190         Suggested by Bruno Haible.
39191
39192         test-update-copyright: update test to match script changes
39193         * tests/test-update-copyright.sh: Avoid hard-coding perl
39194         location.  Don't update *.bak created by earlier runs.
39195
39196 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39197             Simon Josefsson  <simon@josefsson.org>
39198             Bruno Haible  <bruno@clisp.org>
39199
39200         Fix link error on Solaris 8.
39201         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39202         also in libnsl. Define also INET_PTON_LIB.
39203         * modules/inet_pton (Link): New section.
39204
39205 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39206             Bruno Haible  <bruno@clisp.org>
39207
39208         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39209         * modules/inet_ntop (Link): New section.
39210         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39211
39212 2009-11-02  Eric Blake  <ebb9@byu.net>
39213
39214         maint: avoid compiler warnings in m4 macros
39215         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39216         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39217
39218 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39219
39220         * m4/pmccabe2html.m4: Remove file.
39221         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39222         function.  Change maintainer.
39223         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39224         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39225         Courtès).
39226
39227 2009-10-31  Eric Blake  <ebb9@byu.net>
39228
39229         fseeko: fix m4 regression
39230         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39231         regression from 2009-10-27.
39232         Reported by Ralf Wildenhues.
39233
39234 2009-10-31  Jim Meyering  <meyering@redhat.com>
39235
39236         inttostr: aesthetics and improved (compile-time) safety
39237         Define inttype_is_signed rather than inttype_is_unsigned,
39238         since the sole use is via "#if inttype_is_signed".
39239         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39240         inttype_is_unsigned.
39241         * lib/offtostr.c (inttype_is_signed): Likewise.
39242         * lib/uinttostr.c (inttype_is_signed): Likewise.
39243         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39244         * lib/inttostr.c (inttostr): Use verify to cross-check the
39245         inttype_is_signed value and the signedness of the actual type.
39246         * modules/inttostr (Depends-on): Add verify.
39247
39248 2009-10-30  Eric Blake  <ebb9@byu.net>
39249
39250         build: avoid compiler warnings
39251         * lib/fchmodat.c (lchmod): Mark unused variables.
39252         * lib/getopt.c (_getopt_initialize): Likewise.
39253         * lib/mktime.c (__mktime_internal): Provide prototype.
39254         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39255         older gcc that do not understand #pragma GCC diagnostic.
39256         * lib/uinttostr.c (inttype_is_unsigned): Define.
39257         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39258
39259 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39260
39261         stat: fix compilation on AIX
39262         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39263         only see struct stat64.
39264
39265 2009-10-30  Eric Blake  <ebb9@byu.net>
39266
39267         exclude: make more robust
39268         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39269         rather than masking a coding bug.
39270         Suggested by Bruno Haible.
39271
39272 2009-10-30  Jim Meyering  <meyering@redhat.com>
39273
39274         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39275         Rather than putting #!/usr/bin/perl on the first line,
39276         start with a variant of what's recommended by "man perlrun" that
39277         invokes the first "perl" program from your shell's search path.
39278         * build-aux/gitlog-to-changelog: Replace #!... as above.
39279         Add a "Local Variables" perl mode setting.
39280         Prompted by a patch from Ludovic Courtès.
39281         Improved by Eric Blake.
39282         * build-aux/useless-if-before-free: Likewise.
39283         * build-aux/announce-gen: Likewise.
39284         * build-aux/update-copyright: Likewise.
39285
39286 2009-10-29  Eric Blake  <ebb9@byu.net>
39287
39288         filenamecat-lgpl: adjust clients
39289         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39290         filenamecat.
39291         * modules/renameat (Depends-on): Likewise.
39292
39293         filenamecat: split into filenamecat-lgpl
39294         * modules/filenamecat-lgpl: New module.
39295         * modules/filenamecat (Files): Move library-safe files into
39296         filenamecat-lgpl.
39297         (Depends-on): Add filenamecat-lgpl.
39298         (configure.ac): Declare witness.
39299         * lib/filenamecat.h (file_name_concat): Only declare when using
39300         GPL module.
39301         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39302         Move...
39303         * lib/filenamecat-lgpl.c: ...into new file.
39304         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39305         (gl_FILE_NAME_CONCAT): Use it.
39306         * MODULES.html.sh (File system functions): Mention new module.
39307
39308         argp: avoid memory leak
39309         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39310         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39311         base_name, since the latter malloc()s and can call exit().
39312         Leak introduced 2006-07-03.
39313
39314         dirname-lgpl: adjust clients that don't need full dirname
39315         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39316         * modules/filenamecat (Depends-on): Likewise.
39317         * modules/linkat (Depends-on): Likewise.
39318         * modules/mkancesdirs (Depends-on): Likewise.
39319         * modules/mkdir (Depends-on): Likewise.
39320         * modules/openat (Depends-on): Likewise.
39321         * modules/savewd (Depends-on): Likewise.
39322         * modules/rename (Depends-on): Likewise.
39323         (License): Relax license.
39324         * modules/mkdir-tests (Depends-on): Drop progname.
39325         (Makefile.am): Delete unneeded LDADD.
39326         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39327
39328         dirname: split into dirname-lgpl
39329         * modules/dirname-lgpl: New module.
39330         * modules/dirname (Files): Move library-safe files into
39331         dirname-lgpl.
39332         (Depends-on): Add dirname-lgpl.
39333         (configure.ac): Declare witness.
39334         * modules/double-slash-root (License): Relax license.
39335         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39336         module.
39337         * lib/dirname.c (dir_len, mdir_name): Move...
39338         * lib/dirname-lgpl.c: ...into new file.
39339         * lib/basename.c (last_component, base_len): Move...
39340         * lib/basename-lgpl.c: ...into new file.
39341         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39342         (gl_DIRNAME): Use it.
39343         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39344         Mention new module.
39345         * modules/dirname-tests (Depends-on): Add progname.
39346         * tests/test-dirname.c (program_name): Delete.
39347
39348         mkdir: make safe for libraries
39349         * modules/mkdir (Depends-on): Drop xalloc.
39350         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39351         exit.
39352
39353         tests: avoid some compiler warnings
39354         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39355         literals.
39356         * tests/test-memchr.c (main): Avoid type mismatch.
39357         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39358         * tests/test-base64.c (main): Likewise.
39359         * tests/test-getdelim.c (main): Likewise.
39360         * tests/test-gethostname.c (main): Likewise.
39361         * tests/test-getline.c (main): Likewise.
39362         * tests/test-netinet_in.c (main): Likewise.
39363         * tests/test-select.c (open_server_socket, main): Likewise.
39364         * tests/test-select-stdin.c (main): Likewise.
39365         * tests/test-sockets.c (main): Likewise.
39366         * tests/test-strsignal.c (main): Likewise.
39367         * tests/test-sys_select.c (main): Likewise.
39368         * tests/test-sys_socket.c (main): Likewise.
39369         * tests/test-u64.c (main): Likewise.
39370         * tests/test-xfprintf-posix.c (main): Likewise.
39371         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39372
39373         sockets: avoid compiler warning
39374         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39375
39376         maint: detect usage(1) and other suspicious exits
39377         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39378
39379 2009-10-29  Jim Meyering  <meyering@redhat.com>
39380
39381         timespec: long-to-int truncation could make timespec_cmp malfunction
39382         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39383         a multiple of 2^32 nanoseconds as no difference.
39384
39385 2009-10-28  Jim Meyering  <meyering@redhat.com>
39386
39387         fprintftime: wrap macro code argument in "do {...} while(0)"
39388         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39389         cpy macro must be a statement that can be followed by a semicolon.
39390         Now that the else clause contains a comment and is hence longer
39391         than one line, I require curly braces.  That in turn requires
39392         that we wrap this code block in the standard do...while(0).
39393
39394         fprintftime: remove stray semicolon from previous change
39395         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39396
39397         fprintftime: avoid a warning about ignored fwrite return value
39398         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39399         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39400         that is unsafe.
39401         * modules/fprintftime (Depends-on): Add ignore-value.
39402
39403         exclude: avoid an unwarranted warning
39404         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39405
39406 2009-10-27  Eric Blake  <ebb9@byu.net>
39407
39408         fseek: avoid compilation failure when fflush is replaced
39409         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39410         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39411         module is in use.
39412         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39413         module is not in use; since REPLACE_FSEEK worked otherwise.
39414         (GNULIB_FTELLO): Likewise for ftell.
39415         Reported by Ian Beckwith and others.
39416
39417 2009-10-27  Bruno Haible  <bruno@clisp.org>
39418
39419         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39420         Reported by Jim Meyering.
39421
39422 2009-10-27  Jim Meyering  <jim@meyering.net>
39423             Bruno Haible  <bruno@clisp.org>
39424
39425         Avoid warning despite dropping the return value of fwrite.
39426         * lib/unicodeio.c: Include ignore-value.h.
39427         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39428         * modules/unicodeio (Depends-on): Add ignore-value.
39429
39430 2009-10-26  Eric Blake  <ebb9@byu.net>
39431
39432         areadlinkat: fix fallback path
39433         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39434         pointer and zero.
39435
39436 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39437
39438         Use a better IO block size for modern systems
39439         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39440         * lib/md2.c: Likewise.
39441         * lib/md4.c: Likewise.
39442         * lib/md5.c: Likewise.
39443         * lib/sha1.c: Likewise.
39444         * lib/sha256.c: Likewise.
39445         * lib/sha512.c: Likewise.
39446
39447 2009-10-22  Eric Blake  <ebb9@byu.net>
39448
39449         tests: avoid several compiler warnings
39450         * tests/test-getcwd.c (main): Avoid buffer underflow.
39451         * tests/test-getdate.c (main): String literals are not safe with
39452         putenv, so use setenv.  Declare unused argument.
39453         * modules/getdate-tests (Depends-on): Add setenv.
39454         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39455         problems with string literals in char *.
39456         * tests/test-hash.c (main): Avoid shadowing declaration.
39457         (insert_new): Treat string literals as char const *.
39458         * tests/test-getopt.h (test_getopt): Likewise.
39459         (getopt_loop): Alter types to minimize casting elsewhere.
39460         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39461         (test_getopt_long_posix): Likewise.
39462         (do_getopt_long): Add wrapper to minimize casting.
39463         * tests/test-atexit.c (clear_temp_file): Use void.
39464         * tests/test-areadlink-with-size.c (main): Declare unused
39465         arguments.
39466         * tests/test-areadlink.c (main): Likewise.
39467         * tests/test-areadlinkat-with-size.c (main): Likewise.
39468         * tests/test-areadlinkat.c (main): Likewise.
39469         * tests/test-canonicalize-lgpl.c (main): Likewise.
39470         * tests/test-canonicalize.c (main): Likewise.
39471         * tests/test-dirent-safer.c (main): Likewise.
39472         * tests/test-dirname.c (main): Likewise.
39473         * tests/test-dup2.c (main): Likewise.
39474         * tests/test-fchdir.c (main): Likewise.
39475         * tests/test-fcntl-h.c (main): Likewise.
39476         * tests/test-fcntl-safer.c (main): Likewise.
39477         * tests/test-fdopendir.c (main): Likewise.
39478         * tests/test-fdutimensat.c (main): Likewise.
39479         * tests/test-fflush.c (main): Likewise.
39480         * tests/test-filenamecat.c (main): Likewise.
39481         * tests/test-filevercmp.c (main): Likewise.
39482         * tests/test-fopen-safer.c (main): Likewise.
39483         * tests/test-fopen.c (main): Likewise.
39484         * tests/test-fpending.c (main): Likewise.
39485         * tests/test-fpurge.c (main): Likewise.
39486         * tests/test-freading.c (main): Likewise.
39487         * tests/test-fstatat.c (main): Likewise.
39488         * tests/test-fsync.c (main): Likewise.
39489         * tests/test-futimens.c (main): Likewise.
39490         * tests/test-getndelim2.c (main): Likewise.
39491         * tests/test-gettimeofday.c (main): Likewise.
39492         * tests/test-getopt.c (main): Likewise.
39493         * tests/test-i-ring.c (main): Likewise.
39494         * tests/test-inttypes.c (main): Likewise.
39495         * tests/test-link.c (main): Likewise.
39496         * tests/test-lstat.c (main): Likewise.
39497         * tests/test-math.c (main): Likewise.
39498         * tests/test-md5.c (main): Likewise.
39499         * tests/test-memchr2.c (main): Likewise.
39500         * tests/test-memrchr.c (main): Likewise.
39501         * tests/test-mkdir.c (main): Likewise.
39502         * tests/test-mkdirat.c (main): Likewise.
39503         * tests/test-mkfifoat.c (main): Likewise.
39504         * tests/test-open.c (main): Likewise.
39505         * tests/test-openat-safer.c (main): Likewise.
39506         * tests/test-openat.c (main): Likewise.
39507         * tests/test-quotearg.c (main): Likewise.
39508         * tests/test-rawmemchr.c (main): Likewise.
39509         * tests/test-readlink.c (main): Likewise.
39510         * tests/test-remove.c (main): Likewise.
39511         * tests/test-rename.c (main): Likewise.
39512         * tests/test-renameat.c (main): Likewise.
39513         * tests/test-rmdir.c (main): Likewise.
39514         * tests/test-sha1.c (main): Likewise.
39515         * tests/test-signal.c (main): Likewise.
39516         * tests/test-sigaction.c (main): Likewise.
39517         * tests/test-stat.c (main): Likewise.
39518         * tests/test-stat-time.c (main): Likewise.
39519         * tests/test-stddef.c (main): Likewise.
39520         * tests/test-stdint.c (main): Likewise.
39521         * tests/test-stdio.c (main): Likewise.
39522         * tests/test-stdlib.c (main): Likewise.
39523         * tests/test-strchrnul.c (main): Likewise.
39524         * tests/test-strerror.c (main): Likewise.
39525         * tests/test-string.c (main): Likewise.
39526         * tests/test-strtod.c (main): Likewise.
39527         * tests/test-strverscmp.c (main): Likewise.
39528         * tests/test-symlink.c (main): Likewise.
39529         * tests/test-symlinkat.c (main): Likewise.
39530         * tests/test-sys_stat.c (main): Likewise.
39531         * tests/test-sys_time.c (main): Likewise.
39532         * tests/test-time.c (main): Likewise.
39533         * tests/test-unistd.c (main): Likewise.
39534         * tests/test-unlink.c (main): Likewise.
39535         * tests/test-unlinkat.c (main): Likewise.
39536         * tests/test-utimens.c (main): Likewise.
39537         * tests/test-utimensat.c (main): Likewise.
39538         * tests/test-version-etc.c (main): Likewise.
39539         * tests/test-wchar.c (main): Likewise.
39540         * tests/test-wctype.c (main): Likewise.
39541         * tests/test-xprintf-posix.c (main): Likewise.
39542         * tests/test-posixtm.c (main): Likewise.
39543         (STREQ): Delete unused macro.
39544         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39545         shadowed variables.
39546         * tests/test-memchr.c (main): Likewise.
39547
39548 2009-10-21  Eric Blake  <ebb9@byu.net>
39549
39550         areadlinkat: avoid failure on older glibc
39551         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39552         rather than mis-comparing 0 against FUNC_RESULT of char*.
39553
39554 2009-10-21  Bruno Haible  <bruno@clisp.org>
39555
39556         * modules/stpncpy (License): Relicense under LGPLv2+.
39557         Reported by David Lutterkort <lutter@redhat.com>.
39558
39559 2009-10-20  Eric Blake  <ebb9@byu.net>
39560
39561         utimensat: work around Solaris 9 bug
39562         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39563         has trailing slash bugs.
39564         * tests/test-lutimens.h (test_lutimens): Enhance test.
39565         * tests/test-utimens.h (test_utimens): Likewise.
39566         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39567         * doc/posix-functions/utimes.texi (utimes): Likewise.
39568         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39569         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39570         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39571         * doc/posix-functions/futimens.texi (futimens): Likewise.
39572
39573         fdutimensat: new module
39574         * modules/fdutimensat: New file.
39575         * lib/fdutimensat.c (fdutimensat): Likewise.
39576         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39577         * MODULES.html.sh (File system functions): Mention module.
39578         * modules/fdutimensat-tests: New test.
39579         * tests/test-fdutimensat.c: Likewise.
39580
39581         doc: regenerate INSTALL
39582         * doc/INSTALL: Reflect recent autoconf update.
39583         * doc/INSTALL.ISO: Likewise.
39584         * doc/INSTALL.UTF-8: Likewise.
39585
39586 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39587
39588         acl: warn if ACL support is not detected
39589         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39590
39591 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39592
39593         * lib/nproc.h: Add extern "C" block for C++.
39594
39595 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39596             Bruno Haible  <bruno@clisp.org>
39597
39598         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39599         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39600         * doc/posix-functions/isalpha.texi: Likewise.
39601         * doc/posix-functions/isblank.texi: Likewise.
39602         * doc/posix-functions/iscntrl.texi: Likewise.
39603         * doc/posix-functions/isdigit.texi: Likewise.
39604         * doc/posix-functions/isgraph.texi: Likewise.
39605         * doc/posix-functions/islower.texi: Likewise.
39606         * doc/posix-functions/isprint.texi: Likewise.
39607         * doc/posix-functions/ispunct.texi: Likewise.
39608         * doc/posix-functions/isspace.texi: Likewise.
39609         * doc/posix-functions/isupper.texi: Likewise.
39610         * doc/posix-functions/isxdigit.texi: Likewise.
39611
39612 2009-10-18  Bruno Haible  <bruno@clisp.org>
39613
39614         Tests for module 'isblank'.
39615         * modules/isblank-tests: New file.
39616         * tests/test-isblank.c: New file.
39617
39618         New module 'isblank'.
39619         * lib/isblank.c: New file.
39620         * m4/isblank.m4: New file.
39621         * modules/isblank: New file.
39622         * doc/posix-functions/isblank.texi: Mention the new module.
39623
39624 2009-10-18  Bruno Haible  <bruno@clisp.org>
39625
39626         New module 'ctype'.
39627         * lib/ctype.in.h: New file.
39628         * m4/ctype.m4: New file.
39629         * modules/ctype: New file.
39630         * doc/posix-headers/ctype.texi: Mention the new module.
39631
39632 2009-10-18  Jim Meyering  <meyering@redhat.com>
39633
39634         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39635         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39636         right after its initialization, rather than farther down.
39637         Keeping these in close proximity makes it easier to ensure
39638         that each such variable is initialized.  E.g.,
39639
39640             LIB_CLOCK_GETTIME=
39641             AC_SUBST([LIB_CLOCK_GETTIME])
39642
39643         This change also increments these serial numbers.
39644         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39645         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39647
39648 2009-10-18  Bruno Haible  <bruno@clisp.org>
39649
39650         Don't let environment variables perturb build.
39651         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39652         (gl_PREREQ_GETHRXTIME): ... not here.
39653
39654 2009-10-18  Bruno Haible  <bruno@clisp.org>
39655
39656         Avoid symlink attack in localcharset module.
39657         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39658         (O_NOFOLLOW): Define fallback.
39659         (get_charset_aliases): Don't open the file if it is a symbolic link.
39660         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39661         gl_FCNTL_H.
39662         (gl_FCNTL_H): Require it.
39663         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39664         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39665         Reported by Fergal Glynn <fglynn@veracode.com>.
39666
39667 2009-10-18  Bruno Haible  <bruno@clisp.org>
39668
39669         Implement nproc for mingw.
39670         * lib/nproc.c: Include <windows.h>
39671         (num_processors): On native Windows platforms, try GetSystemInfo.
39672
39673 2009-10-18  Bruno Haible  <bruno@clisp.org>
39674
39675         Implement nproc for IRIX.
39676         * lib/nproc.c: Include <sys/sysmp.h>.
39677         (num_processors): On IRIX systems, try sysmp.
39678         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39679
39680 2009-10-18  Bruno Haible  <bruno@clisp.org>
39681
39682         Implement nproc for HP-UX.
39683         * lib/nproc.c: Include <sys/pstat.h>
39684         (num_processors): On HP-UX systems, try pstat_getdynamic.
39685         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39686         pstat_getdynamic.
39687
39688 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39689             Bruno Haible  <bruno@clisp.org>
39690
39691         Implement nproc for NetBSD, OpenBSD.
39692         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39693         (ARRAY_SIZE): New macro.
39694         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39695         * m4/nproc.m4: New file.
39696         * modules/nproc (Files): Add m4/nproc.m4.
39697         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39698         (Makefile.am): Instead, augment lib_SOURCES.
39699
39700 2009-10-18  Bruno Haible  <bruno@clisp.org>
39701
39702         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39703         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39704         sys/param.h.
39705
39706 2009-10-16  Eric Blake  <ebb9@byu.net>
39707
39708         utimensat: new module
39709         * modules/utimensat: New file.
39710         * lib/utimensat.c (utimensat): Likewise.
39711         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39712         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39713         so we can work around Linux bugs.
39714         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39715         * modules/sys_stat (Makefile.am): Substitute them.
39716         * lib/sys_stat.in.h (utimensat): Declare it.
39717         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39718         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39719         * modules/utimensat-tests: New test.
39720         * tests/test-utimensat.c: Likewise.
39721
39722         utimens: let lutimens work on non-symlinks
39723         * lib/utimens.c (lutimens): Fall back to utimens rather than
39724         failing with ENOSYS, when file is not a symlink.
39725         (utimens): Reduce redirection.
39726         * tests/test-lutimens.h (test_lutimens): Update test to cover
39727         non-symlinks.
39728         * tests/test-utimens.h (test_utimens): Update test to cover
39729         symlinks.
39730         * tests/test-utimens.c (main): Update caller.
39731
39732         utimens: cache whether utimensat syscall works
39733         * lib/utimens.c (utimensat_works_really): New cache variable.
39734         (fdutimens, lutimens): Use it to avoid failing syscall.
39735
39736         test-stat-time, test-utimens: improve portability
39737         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39738         ext4 on alpha, and for cygwin.
39739         * tests/test-utimens-common.h: New file.
39740         (nap): Factor delays into single function.
39741         * tests/test-lutimens.h (test_lutimens): Use new header.
39742         * tests/test-futimens.h (test_futimens): Likewise.
39743         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39744         timestamps to occur from same machine, as was done previously for
39745         test_utimens.
39746         * modules/utimens-tests (Files): Ship new file.
39747         * modules/futimens-tests (Files): Likewise.
39748         Reported in part by Jim Meyering.
39749
39750         sys_stat: sort replacement declarations
39751         * lib/sys_stat.in.h: Sort declarations.
39752         * lib/futimens.c (futimens): Fix typo.
39753
39754 2009-10-15  Jim Meyering  <meyering@redhat.com>
39755
39756         don't let environment settings perturb build
39757         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39758         could cause a configure-time and/or build-time malfunction.
39759         Typically, a configure-time function-in-library test is performed
39760         via code like this:
39761
39762           LIB_VAR=
39763           AC_SUBST([LIB_VAR])
39764           prefix_saved_LIBS=$LIBS
39765             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39766                        [test "$ac_cv_search_FUNC" = "none required" ||
39767                         LIB_VAR=$ac_cv_search_FUNC])
39768           LIBS=$prefix_saved_LIBS
39769
39770         However, in each of the files affected by this change, the LIB_VAR=
39771         initialization was omitted.  Thus, when set in the environment, its
39772         value would propagate into generated Makefiles when FUNC is not found
39773         in LIB_NAME.
39774         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39775         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39777
39778 2009-10-14  Eric Blake  <ebb9@byu.net>
39779
39780         fchdir: avoid infinite recursion in mingw
39781         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39782         recursing.
39783
39784         test-stat-time: port to mingw
39785         * tests/test-stat-time.c (force_unlink): Return a value.
39786         (test_ctime) [W32]: Fix compilation error.
39787         (nap): Don't call usleep with too large an argument.  Use
39788         force_unlink.
39789         * doc/pastposix-functions/usleep.texi (usleep): Document the
39790         portability issue.
39791
39792 2009-10-13  Jim Meyering  <meyering@redhat.com>
39793
39794         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39795         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39796         * modules/pipe-filter-ii: Likewise.
39797         * modules/sys_socket-tests: Likewise.
39798         * modules/tsearch-tests: Likewise.
39799         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39800         (check): Depend on it.
39801
39802 2009-10-12  Eric Blake  <ebb9@byu.net>
39803
39804         utimens-tests: port to NFS file systems
39805         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39806         comparisons to avoid spurious failures from timestamp drift
39807         between NFS machines.
39808
39809 2009-10-12  Eric Blake  <ebb9@byu.net>
39810
39811         stat-time-tests: minor cleanups
39812         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39813         * tests/test-stat-time.c (nap): Separate assignment from call.
39814         Suggested by Paolo Bonzini and Bruno Haible.
39815
39816         sys_stat: guarantee struct timespec
39817         * lib/sys_stat.in.h (includes): Always include <time.h>
39818         * modules/sys_stat (Depends-on): Add time.
39819         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39820         mode_t permission values.
39821         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39822         get at subsecond timestamps.
39823
39824 2009-10-10  Eric Blake  <ebb9@byu.net>
39825
39826         futimens: new module
39827         * modules/futimens: New file.
39828         * lib/futimens.c (futimens): Likewise.
39829         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39830         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39831         we can work around Linux bugs.
39832         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39833         * modules/sys_stat (Makefile.am): Substitute them.
39834         * lib/sys_stat.in.h (futimens): Declare it.
39835         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39836         * doc/posix-functions/futimens.texi (futimens): Likewise.
39837         * modules/futimens-tests: New test.
39838         * tests/test-futimens.c: Likewise.
39839
39840         utimens: introduce fdutimens
39841         * lib/utimens.h (fdutimens): New prototype.
39842         * lib/utimens.c (gl_futimens): Move guts...
39843         (fdutimens): ...to new interface.
39844         * tests/test-utimens.c (do_fdutimens): Use it.
39845
39846         utimens: add UTIME_NOW and UTIME_OMIT support
39847         * lib/utimens.c (validate_timespec, update_timespec): New helper
39848         functions.
39849         (gl_futimens, lutimens): Use them.
39850         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39851         stdbool, sys_stat.
39852         (Link): Mention resulting library dependency.
39853         * modules/utimecmp (Link): Likewise.
39854         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39855         (Makefile.am): Pick up library dependency.
39856         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39857         definition.
39858         * tests/test-sys_stat.c: Test the definitions.
39859         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39860         * NEWS: Document library dependency.
39861
39862         utimecmp: support symlink timestamps
39863         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39864         hashing when possible.  Use pathconf when available.
39865         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39866         * modules/utimecmp (Depends-on): Add lstat.
39867
39868         utimens: add lutimens interface
39869         * lib/utimens.c (lutimens): New function.
39870         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39871         * lib/utimens.h (lutimens): Declare new interface.
39872         * tests/test-utimens.c (main): Enhance test.
39873         * tests/test-lutimens.h (test_lutimens): New file.
39874         * modules/utimens-tests (Files): Distribute it.
39875         (Depends-on): Add symlink.
39876         (configure.ac): Check for usleep.
39877
39878         utimens: validate futimens usage
39879         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39880         fewer syscalls on failure later on.  Avoid compiler warning on
39881         mingw.
39882         * modules/utimens (Depends-on): Add dup2.
39883
39884         utimens: add test
39885         * modules/utimens-tests: New test.
39886         * tests/test-utimens.h: New file.
39887         * tests/test-futimens.h: Likewise.
39888         * tests/test-utimens.c: Likewise.
39889
39890         doc: mention timestamp portability issues
39891         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39892         instead.
39893         * doc/posix-functions/utime.texi (utime): Likewise.
39894         * doc/posix-functions/utimes.texi (utimes): Likewise.
39895         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39896         instead.
39897         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39898         module.
39899         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39900         Mention weakness with symlink timestamps.
39901         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39902         to utimensat/futimens instead.
39903         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39904
39905         test-dup2: enhance test
39906         * tests/test-dup2.c (main): Also check AT_FDCWD.
39907
39908         test-stat-time: avoid more spurious failures
39909         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39910         xfs; and avoid race if the two timestamps cross quantization edge.
39911
39912         relocatable: prefer 'file system' over 'filesystem'
39913         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39914         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39915         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39916         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39917         * lib/relocatable.c (compute_curr_prefix): Likewise.
39918
39919 2009-10-10  Jim Meyering  <meyering@redhat.com>
39920
39921         stat-time-tests: check for the usleep function
39922         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39923
39924 2009-10-10  Bruno Haible  <bruno@clisp.org>
39925
39926         * modules/xnanosleep: Put the Link section after the Include section.
39927
39928 2009-10-09  Eric Blake  <ebb9@byu.net>
39929
39930         dup2: work around FreeBSD 6.1 bug
39931         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39932         * doc/posix-functions/dup2.texi (dup2): Document it.
39933         Reported by Nelson H. F. Beebe and Jim Meyering.
39934
39935         test-stat-time: port to buggy NFS clients
39936         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39937         (test_ctime): Also skip test if mtime and ctime are skewed.
39938
39939         maint: prefer 'file system' over 'filesystem'
39940         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39941         * doc/posix-functions/lstat.texi (lstat): Likewise.
39942         * lib/file-has-acl.c (file_has_acl): Likewise.
39943         * lib/fwriteerror.c [TEST]: Likewise.
39944         * tests/test-areadlink.h (test_areadlink): Likewise.
39945         * tests/test-areadlinkat-with-size.c (main): Likewise.
39946         * tests/test-areadlinkat.c (main): Likewise.
39947         * tests/test-canonicalize-lgpl.c (main): Likewise.
39948         * tests/test-canonicalize.c (main): Likewise.
39949         * tests/test-fstatat.c (main): Likewise.
39950         * tests/test-linkat.c (main): Likewise.
39951         * tests/test-lstat.h (test_lstat_func): Likewise.
39952         * tests/test-mkdir.h (test_mkdir): Likewise.
39953         * tests/test-readlink.h (test_readlink): Likewise.
39954         * tests/test-remove.c (main): Likewise.
39955         * tests/test-rename.h (test_rename): Likewise.
39956         * tests/test-renameat.c (main): Likewise.
39957         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39958         * tests/test-symlink.h (test_symlink): Likewise.
39959         * tests/test-symlinkat.c (main): Likewise.
39960         * tests/test-unlink.h (test_unlink_func): Likewise.
39961         * tests/test-unlinkat.c (main): Likewise.
39962
39963         maint: make realtime library usage explicit
39964         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39965         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39966         * modules/settime (Link): Likewise.
39967         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39968
39969         test-stat-time: speed up execution
39970         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39971         warning on mingw.
39972         (nap): New helper function.
39973         (prepare_test): Use it to reduce sleep time.
39974         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39975         execution.
39976         * modules/stat-time-tests (configure.ac): Check for usleep.
39977
39978 2009-10-09  Jim Meyering  <meyering@redhat.com>
39979
39980         selinux-h: always use getfilecon wrappers
39981         * lib/getfilecon.c: New file.
39982         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39983         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39984         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39985         (fgetfilecon): Provide a stub.
39986         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39987         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39988         file unconditionally.
39989         When <selinux/selinux.h> is found, arrange to use wrappers.
39990         * modules/selinux-h (Files): Add getfilecon.c.
39991         (Makefile.am): Substitute include-next-related bits
39992         into the now-always-generated selinux/selinux.h file.
39993         * doc/glibc-functions/lgetfilecon.texi: New file.
39994         * doc/glibc-functions/fgetfilecon.texi: New file.
39995         * doc/glibc-functions/getfilecon.texi: New file.
39996         * doc/glibc-functions/getfilecon-desc.texi: New file.
39997         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39998         which to pull in the new files.
39999         * MODULES.html.sh (Misc): Add selinux-h.
40000
40001 2009-10-08  Jim Meyering  <meyering@redhat.com>
40002
40003         unistd: fix comment typo
40004         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40005
40006 2009-10-08  Eric Blake  <ebb9@byu.net>
40007
40008         areadlink: use SIZE_MAX consistently
40009         * modules/areadlink (Depends-on): Add stdint.
40010         * modules/areadlink-with-size (Depends-on): Likewise.
40011         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40012         gives NULL; drop sys/types, since unistd gives size_t; and add
40013         stdint for SIZE_MAX.
40014         (SIZE_MAX): Rely on headers.
40015         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40016         and add stdint.
40017         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40018         (SIZE_MAX): Likewise.
40019         (INITIAL_BUF_SIZE): Turn into enum.
40020         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40021
40022 2009-10-08  Jim Meyering  <meyering@redhat.com>
40023
40024         areadlinkat: avoid compilation failure
40025         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40026         Fix typo in comment.
40027
40028 2009-10-07  Eric Blake  <ebb9@byu.net>
40029
40030         areadlinkat-with-size: new module
40031         * modules/areadlinkat-with-size: New module.
40032         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40033         * lib/areadlink.h (areadlinkat): Declare it.
40034         * MODULES.html.sh (File system functions): Mention it.
40035         * modules/areadlinkat-with-size-tests: New test.
40036         * tests/test-areadlinkat-with-size.c: New file.
40037
40038         xreadlinkat: new module
40039         * modules/xreadlinkat: New module.
40040         * lib/xreadlinkat.c (xreadlinkat): New file.
40041         * lib/xreadlink.h (xreadlinkat): Declare it.
40042         * MODULES.html.sh (File system functions): Mention it.
40043
40044         areadlinkat: new module
40045         * lib/at-func.c (FUNC_FAIL): New define.
40046         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40047         * modules/areadlinkat: New module.
40048         * lib/linkat.c (areadlinkat): Move...
40049         * lib/areadlinkat.c (areadlinkat): ...to new file.
40050         * lib/areadlink.h (areadlinkat): Declare it.
40051         * modules/linkat (Depends-on): Add areadlinkat.
40052         * MODULES.html.sh (File system functions): Mention it.
40053         * modules/areadlinkat-tests: New test.
40054         * tests/test-areadlinkat.c: New file.
40055
40056         areadlink, areadlink-with-size: add tests
40057         * modules/areadlink-tests: New test.
40058         * modules/areadlink-with-size-tests: Likewise.
40059         * tests/test-areadlink.h: New file.
40060         * tests/test-areadlink.c: Likewise.
40061         * tests/test-areadlink-with-size.c: Likewise.
40062
40063         maint: minor cleanups
40064         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40065         _UNUSED_PARAMETER_ instead.
40066         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40067         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40068         * modules/linkat-tests (Files): Distribute test-link.h.
40069
40070         openat, utimens: whitespace cleanup
40071         * lib/openat.c: Prefer space throughout, rather than mix of 8
40072         spaces vs. tabs.
40073         * lib/at-func.c: Likewise.
40074         * lib/utimens.c: Likewise.
40075
40076         openat: avoid using wrong fd
40077         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40078         working directory chooses same fd.
40079         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40080
40081         mkdir, mkdirat: fix cygwin 1.5.x bug
40082         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40083         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40084         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40085         bug.
40086         (gl_PREREQ_MKDIR): Delete unused macro.
40087         * modules/mkdir (Files): Track file rename.
40088         (configure.ac): Update macro name.
40089         * modules/openat (Depends-on): Add mkdir.
40090         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40091
40092         mkdir, mkdirat: add tests
40093         * modules/mkdir-tests: New test.
40094         * tests/test-mkdir.h: New file.
40095         * tests/test-mkdir.c: Likewise.
40096         * tests/test-mkdirat.c: Likewise.
40097         * modules/openat-tests (Files): Add new files.
40098         (Makefile.am): Run new test.
40099
40100 2009-10-06  Eric Blake  <ebb9@byu.net>
40101
40102         doc: tweak *at function documentation
40103         * doc/posix-functions/faccessat.texi (faccessat): Mention
40104         known issue with replacement.
40105         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40106         * doc/posix-functions/linkat.texi (linkat): Likewise.
40107         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40108         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40109         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40110         * doc/posix-functions/renameat.texi (renameat): Likewise.
40111         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40112
40113         openat: fix GNU/Hurd bug in unlinkat
40114         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40115         broken.
40116         * doc/posix-functions/unlink.texi (unlink): Document this.
40117         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40118
40119         fdopendir: fix GNU/Hurd bug
40120         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40121         allowing non-directory fds.
40122         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40123         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40124         * modules/dirent (Makefile.am): Substitute it.
40125         * lib/dirent.in.h (fdopendir): Declare replacement.
40126         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40127         * tests/test-fdopendir.c (main): Test something other than
40128         /dev/null, since on Hurd that behaves like a directory.
40129
40130         test-symlink: port to GNU/Hurd
40131         * tests/test-symlink.h (test_symlink): Relax expected errno.
40132
40133         doc: tweak more cygwin information
40134         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40135         now compatible with glibc.
40136         * doc/posix-functions/getopt.texi (getopt): Likewise.
40137
40138         getopt-gnu: add another test
40139         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40140         guarantee behavior relied on by m4.
40141         * tests/test-getopt.c (main): Use it.
40142         * modules/getopt-posix-tests (Depends-on): Add setenv.
40143         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40144
40145         getopt: fix compilation on darwin
40146         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40147         include.
40148         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40149         Reported by Ludovic Courtès.
40150
40151 2009-10-06  Bruno Haible  <bruno@clisp.org>
40152
40153         * modules/size_max (Description): Discourage its use.
40154         Reported by Simon Josefsson.
40155
40156 2009-10-06  Jim Meyering  <meyering@redhat.com>
40157
40158         linkat: avoid compilation failure
40159         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40160
40161 2009-10-05  Eric Blake  <ebb9@byu.net>
40162
40163         linkat: support Linux 2.6.17
40164         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40165         linkat on Linux, but allow cache variable override.
40166         * lib/linkat.c (rpl_linkat): Define override.
40167         * modules/linkat (Depends-on): Add symlinkat.
40168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40169         * modules/unistd (Makefile.am): Substitute it.
40170         * lib/unistd.in.h (linkat): Declare replacement.
40171         Reported by Pádraig Brady.
40172
40173         quotearg: port test to systems with C.UTF-8 locale
40174         * tests/test-quotearg.c (struct result_strings): Add another
40175         member, differentiating between C.ASCII and C.UTF-8 handling.
40176         (compare_strings): Add parameter.
40177         (main): Adjust all callers.
40178
40179         getopt: avoid clash with FreeBSD _getopt_internal
40180         * lib/getopt.in.h (_getopt_internal): Override the name.
40181         * lib/getopt_int.h (includes): Pick up any overrides.
40182         Reported by Reuben Thomas.
40183
40184         hash: allow C89 compilation
40185         * lib/hash.c (check_tuning): Move declaration before statement.
40186         Reported by Reuben Thomas.
40187
40188 2009-10-05  Karl Berry  <karl@gnu.org>
40189
40190         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40191
40192 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40193             Bruno Haible  <bruno@clisp.org>
40194
40195         * lib/uname.c (uname): Use a table-driven algorithm to compute
40196         Windows NT versions.
40197
40198 2009-10-04  Bruno Haible  <bruno@clisp.org>
40199
40200         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40201         program_invocation_short_name.
40202         * modules/progname (configure.ac): Test for presence of
40203         program_invocation_short_name.
40204         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40205
40206 2009-10-04  Bruno Haible  <bruno@clisp.org>
40207
40208         * lib/progname.c (set_program_name): Fix comment.
40209         Reported by Jim Meyering.
40210
40211 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40212             Bruno Haible  <bruno@clisp.org>
40213
40214         * lib/uname.c: Include <string.h>.
40215         (uname): Do only one call to GetVersionEx in the common case.
40216
40217 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40218             Bruno Haible  <bruno@clisp.org>
40219
40220         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40221         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40222         (uname): Add support for Windows CE and various non-x86 CPU types.
40223
40224 2009-10-03  Bruno Haible  <bruno@clisp.org>
40225
40226         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40227         invocation to tests/configure.ac.
40228         Reported by Ian Beckwith <ianb@erislabs.net>.
40229
40230 2009-10-02  Eric Blake  <ebb9@byu.net>
40231
40232         fchdir: avoid compiler warning
40233         * lib/fchdir.c (canonicalize_file_name)
40234         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40235
40236         test-open: support mingw errno values
40237         * tests/test-open.h (test_open): Relax test.
40238         * tests/test-fopen.h (test_fopen): Likewise.
40239         * tests/test-openat-safer.c (main): Likewise.
40240
40241         open: fix opening directory on mingw
40242         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40243
40244         test-open: on GNU/Hurd, /dev/null is a directory
40245         * tests/test-fopen.h (main): Rename...
40246         (test_fopen): ...to this.  Use a guaranteed non-directory when
40247         confirming open behavior on trailing slash.
40248         * tests/test-openat-safer.c (main): Likewise.
40249         * tests/test-open.h (main): Likewise....
40250         (test_open): ...to this.
40251         * tests/test-fopen.c (main): Adjust caller.
40252         * tests/test-fopen-safer.c (main): Likewise.
40253         * tests/test-open.c (main): Likewise.
40254         * tests/test-fcntl-safer.c (main): Likewise.
40255         Reported by Samuel Thibault.
40256
40257         rename, fchdir: don't ignore chdir failure
40258         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40259         * lib/rename.c (rpl_rename) [W32]: Likewise.
40260         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40261         an empty destination directory if source cannot be renamed,
40262         although there is still possibility for failure.
40263         * doc/posix-functions/rename.texi (rename): Document the race.
40264         Reported by Jim Meyering.
40265
40266         maint: cleanup whitespace in recent commits
40267         * lib/rename.c (rpl_rename): Remove tabs.
40268         * tests/test-link.h (test_link): Likewise.
40269         * lib/fchdir.c (get_name): Likewise.
40270         Reported by Jim Meyering.
40271
40272 2009-10-02  Ben Pfaff  <blp@gnu.org>
40273
40274         relocatable-prog-wrapper: Add missing dependency on
40275         double-slash-root.
40276         * modules/relocatable-prog-wrapper: Add dependency.
40277         Reported by Ian Beckwith <ianb@erislabs.net>.
40278
40279 2009-10-02  Eric Blake  <ebb9@byu.net>
40280
40281         renameat: fix Solaris bugs
40282         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40283         needed fixing.
40284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40285         * modules/stdio (Makefile.am): Substitute it.
40286         * lib/stdio.in.h (renameat): Declare replacement.
40287         * lib/renameat.c (rpl_renameat): Implement fix.
40288
40289         renameat: new module
40290         * modules/renameat: New file.
40291         * lib/renameat.c (renameat): Likewise.
40292         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40294         * modules/stdio (Makefile.am): Substitute them.
40295         * lib/stdio.in.h (renameat): Declare it.
40296         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40297         * doc/posix-functions/renameat.texi (renameat): Likewise.
40298         * modules/renameat-tests: New test.
40299         * tests/test-renameat.c: Likewise.
40300
40301         rename: fix mingw bugs
40302         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40303         directory overwrite bugs.
40304
40305         rename: fix another cygwin 1.5 bug
40306         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40307         checks.
40308         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40309         unnecessary cygwin workarounds.  Also work around bug with moving
40310         full directory onto an empty one.
40311         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40312
40313         rename-dest-slash: merge into rename module
40314         * modules/rename-dest-slash (Status): Mark obsolete.
40315         (Depends-on): Add rename.
40316         (Files): Let rename do it all.
40317         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40318         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40319         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40320         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40321         * lib/rename.c (rpl_rename): Update comments.
40322
40323         rename: fix cygwin 1.5.x bugs
40324         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40325         * lib/rename.c (rpl_rename): Work around them.
40326         * modules/rename (Depends-on): Add same-inode.
40327
40328         rename: fix Solaris 10 bug
40329         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40330         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40331         was the only bug.
40332
40333         rename: fix Solaris 9 bug
40334         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40335         on non-directory.  Avoid calling exit.
40336         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40337         strdup.
40338         * modules/rename-tests (Depends-on): Drop lstat.
40339         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40340         (gl_PREREQ_RENAME): Delete unused macro.
40341
40342         rename-dest-slash: fix NetBSD bug
40343         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40344         links.
40345         * modules/rename-dest-slash (Depends-on): Add same-inode.
40346
40347         rename-tests: new test, exposes several platform bugs
40348         * modules/rename-tests: New file.
40349         * tests/test-rename.h: Likewise.
40350         * tests/test-rename.c: Likewise.
40351         * doc/posix-functions/rename.texi (rename): Improve documentation,
40352         including bugs that will eventually be fixed in gnulib.
40353
40354 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40355
40356         * lib/uname.c: Include <stdlib.h>
40357         (uname): Assume version info is available.
40358
40359 2009-10-02  Jim Meyering  <meyering@redhat.com>
40360
40361         gnu-web-doc-update: correct --help output
40362         * build-aux/gnu-web-doc-update: Make --help output relevant.
40363
40364         gnu-web-doc-update: add standard options
40365         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40366
40367         gnu-web-doc-update: New module.
40368         Use this script to automatically update the on-line web documentation
40369         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40370         * modules/gnu-web-doc-update: New file, from coreutils.
40371         * build-aux/gnu-web-doc-update: New script.
40372
40373 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40374
40375         link: LoadLibrary is not needed.
40376         * lib/link.c: Use GetModuleHandle.
40377
40378 2009-10-01  Eric Blake  <ebb9@byu.net>
40379
40380         getopt: bump serial number
40381         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40382         change.
40383
40384         tests: tighten link, rmdir, and remove tests
40385         * tests/test-link.h (includes): No need to use <config.h> here.
40386         Clean up if directory hard link was created, otherwise test for
40387         trailing '.'.
40388         * tests/test-linkat.c (main): Simplify.
40389         * tests/test-remove.c (main): Enhance test for trailing '.'.
40390         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40391
40392 2009-10-01  Jim Meyering  <meyering@redhat.com>
40393
40394         maint.mk: requiring "make major" was annoying, for a "minor" release.
40395         What is intended is "stable", to contrast with alpha and beta,
40396         so require "make stable", not "make major".
40397         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40398         (get_tool_versions): Likewise.
40399         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40400
40401 2009-09-30  Ben Pfaff  <blp@gnu.org>
40402
40403         Fix broken build of replacement for Windows tmpfile().
40404         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40405         flags argument added along with the 'mkostemp' module.
40406
40407 2009-09-28  Bruno Haible  <bruno@clisp.org>
40408
40409         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40410         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40411         to 'remove_elt'.
40412         (gl_list_remove): Update.
40413         * lib/gl_list.c (gl_list_remove): Update.
40414         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40415         to 'remove_elt'.
40416         (gl_oset_remove): Update.
40417         * lib/gl_list.c (gl_oset_remove): Update.
40418         Reported by Eric Blake.
40419
40420 2009-09-28  Eric Blake  <ebb9@byu.net>
40421
40422         doc: mention yet more cygwin 1.7 status
40423         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40424         cygwin.
40425         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40426         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40427
40428         argp: fix test failure
40429         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40430         that are not upper-case.  Pass correct range to tolower.
40431
40432 2009-09-27  Jim Meyering  <meyering@redhat.com>
40433
40434         test-yesno: work around sparc-dash here-document infelicity
40435         Without this change, the literal \177 byte in a here document
40436         would make dash 0.5.5.1-3 access uninitialized memory.
40437         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40438         Instead, use a marker, "@", and filter through tr to create the desired
40439         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40440
40441 2009-09-27  Bruno Haible  <bruno@clisp.org>
40442
40443         Disable untested support for new flavours of ACLs on AIX.
40444         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40445         progress.
40446         * lib/set-mode-acl.c (qset_acl): Likewise.
40447
40448 2008-12-07  Bruno Haible  <bruno@clisp.org>
40449
40450         Add support for new flavours of ACLs on AIX. (Untested.)
40451         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40452         (file_has_acl): Add support for newer AIX.
40453         * lib/set-mode-acl.c (qset_acl): Likewise.
40454         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40455         Rainer Tammer <tammer@tammer.net>.
40456
40457 2009-09-26  Eric Blake  <ebb9@byu.net>
40458
40459         argp: fix compilation of getopt
40460         * lib/getopt.in.h (includes): Use different guard than glibc.
40461         Reported by Sergey Poznyakoff.
40462
40463         doc: mention more cygwin 1.7 status
40464         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40465         bug.
40466         * doc/posix-functions/execl.texi (execl): Likewise.
40467         * doc/posix-functions/execle.texi (execle): Likewise.
40468         * doc/posix-functions/execlp.texi (execlp): Likewise.
40469         * doc/posix-functions/execv.texi (execv): Likewise.
40470         * doc/posix-functions/execve.texi (execve): Likewise.
40471         * doc/posix-functions/execvp.texi (execvp): Likewise.
40472         * doc/glibc-functions/canonicalize_file_name.texi
40473         (canonicalize_file_name): Cygwin 1.7 now provides this.
40474         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40475         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40476         on AT_SYMLINK_NOFOLLOW.
40477
40478 2009-09-24  Eric Blake  <ebb9@byu.net>
40479
40480         test-linkat: make test more robust
40481         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40482
40483         getopt: fix inclusion guards for cygwin
40484         * modules/getopt-posix (Depends-on): Add include-next.
40485         (Makefile.am): Substitute more items in replacement header.
40486         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40487         <getopt.h>.
40488         * lib/getopt.in.h (includes): Use split inclusion guard, and
40489         prefer <getopt.h> over include <unistd.h> when one is present.
40490         (option): Also override name of 'struct option'.
40491
40492         same-inode: revert prior change; it is not yet ready
40493         * NEWS: Undo mention of this change.
40494         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40495         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40496         * lib/cycle-check.c (cycle_check): Likewise.
40497         * lib/same.c (same_name): Likewise.
40498         * lib/at-func2.c (at_func2): Likewise.
40499
40500 2009-09-23  Eric Blake  <ebb9@byu.net>
40501
40502         linkat: new module
40503         * modules/linkat: New file.
40504         * lib/at-func2.c (at_func2): Likewise.
40505         * lib/linkat.c (linkat): Likewise.
40506         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40507         * lib/openat-priv.h (at_func2): Add declaration.
40508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40509         * modules/unistd (Makefile.am): Substitute them.
40510         * lib/unistd.in.h (linkat): Declare it.
40511         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40512         * doc/posix-functions/linkat.texi (linkat): Likewise.
40513         * doc/posix-functions/link.texi (link): Tweak wording.
40514         * tests/test-link.c (main): Move guts...
40515         * tests/test-link.h (test_link): ...into new file.
40516         * modules/linkat-tests: New test.
40517         * tests/test-linkat.c: Likewise.
40518         * modules/link-tests (Files): Ship new file.
40519         (Depends-on): Add stdbool.
40520
40521         dirname: add library-safe mdir_name
40522         * lib/dirname.h (mdir_name): New prototype.
40523         * lib/dirname.c (dir_name): Move guts...
40524         (mdir_name): ...to new function that avoids xalloc_die.
40525
40526         fchdir: another mingw fix
40527         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40528         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40529         on mingw (where it has not yet been ported), and make it optional
40530         elsewhere.
40531         (_gl_register_fd): Use it.
40532
40533         same-inode: make SAME_INODE tri-state, to port to mingw
40534         * NEWS: Mention this change.
40535         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40536         st_ino always being 0.
40537         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40538         * lib/cycle-check.c (cycle_check): Likewise.
40539         * lib/same.c (same_name): Likewise.
40540
40541         lstat: avoid mingw compilation error
40542         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40543         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40544         lstat ourselves.
40545         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40546         was adequate.
40547         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40548         the checks for lstat.
40549         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40550
40551         link: fix test failure on Solaris 9
40552         * lib/link.c (rpl_link): Don't assume link will catch bogus
40553         trailing slash on source.
40554
40555         test-symlinkat: enhance test
40556         * tests/test-readlink.c (main): Move guts...
40557         * tests/test-readlink.h (test_readlink): ...into new file.
40558         * tests/test-symlink.c (main): Move guts...
40559         * tests/test-symlink.h (test_symlink): ...into new file.
40560         * tests/test-symlinkat.c (main): Use new files for further
40561         coverage.
40562         (do_symlink, do_readlink): New helper functions.
40563         * modules/symlink-tests (Files): Ship new file.
40564         (Depends-on): Add stdbool.
40565         * modules/readlink-tests (Files): Ship new file.
40566         (Depends-on): Add stdbool.
40567         * modules/symlinkat-tests (Files): Use new files.
40568
40569 2009-09-23  Eric Blake  <ebb9@byu.net>
40570
40571         readlink: document portability issue with symlink length
40572         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40573         systems have bogus st_size on symlinks, and mention the
40574         areadlink-with-size module.
40575         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40576         * doc/posix-functions/readlink.texi (readlink): Mention the
40577         areadlink module, and ERANGE failure.
40578         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40579         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40580
40581         readlink: fix Solaris 9 bug with trailing slash
40582         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40583         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40584         * doc/posix-functions/readlink.texi (readlink): Document this.
40585         * modules/readlink-tests: New test.
40586         * tests/test-readlink.c: Likewise.
40587
40588         readlink: fix cygwin 1.5.x bug with return type
40589         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40590         * lib/unistd.in.h (readlink): Use ssize_t.
40591         * lib/readlink.c (readlink): Likewise.
40592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40593         * modules/unistd (Makefile.am): Substitute it.
40594         * lib/unistd.in.h (readlink): Declare replacement.
40595         * doc/posix-functions/readlink.texi (readlink): Document this.
40596
40597         symlink: use throughout gnulib
40598         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40599         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40600         symlink is not used.
40601         * modules/symlinkat (Depends-on): Add symlink.
40602         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40603         * modules/canonicalize-tests (Depends-on): Likewise.
40604         * modules/lstat-tests (Depends-on): Likewise.
40605         * modules/openat-tests (Depends-on): Likewise.
40606         * modules/remove-tests (Depends-on): Likewise.
40607         * modules/rmdir-tests (Depends-on): Likewise.
40608         * modules/unlink-tests (Depends-on): Likewise.
40609         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40610         * tests/test-canonicalize.c (symlink): Likewise.
40611         * tests/test-fstatat.c (symlink): Likewise.
40612         * tests/test-lstat.c (symlink): Likewise.
40613         * tests/test-remove.c (symlink): Likewise.
40614         * tests/test-rmdir.c (symlink): Likewise.
40615         * tests/test-unlink.c (symlink): Likewise.
40616         * tests/test-unlinkat.c (symlink): Likewise.
40617
40618         symlink: new module, for Solaris 9 bug
40619         * modules/symlink: New file.
40620         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40621         * lib/symlink.c: Likewise.
40622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40623         * modules/unistd (Makefile.am): Substitute them.
40624         * lib/unistd.in.h (symlink): Declare replacement.
40625         * MODULES.html.sh (File system functions): Mention it.
40626         * doc/posix-functions/symlink.texi (symlink): Likewise.
40627         * modules/symlink-tests: New test.
40628         * tests/test-symlink.c: Likewise.
40629
40630 2009-09-23  Bruno Haible  <bruno@clisp.org>
40631
40632         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40633         when needed.
40634         Test case: gnulib-tool --import --with-tests atexit inttypes.
40635         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40636
40637 2009-09-23  Bruno Haible  <bruno@clisp.org>
40638
40639         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40640         subcommand, not in a subshell.
40641
40642 2009-09-22  Eric Blake  <ebb9@byu.net>
40643
40644         unistd: sort replacement declarations
40645         * lib/unistd.in.h: Sort declarations.
40646
40647         open, openat: minor optimization
40648         * lib/open.c (open): If open succeeded, len is non-zero.
40649         * lib/openat.c (rpl_openat): Likewise.
40650
40651         link-follow: ensure correct result
40652         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40653         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40654         distinguish between possible failures.
40655
40656 2009-09-21  Eric Blake  <ebb9@byu.net>
40657
40658         fts: avoid compiler warning
40659         * lib/fts.c (dirent_inode_sort_may_be_useful)
40660         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40661
40662 2009-09-19  Bruno Haible  <bruno@clisp.org>
40663
40664         * lib/progreloc.c (canonicalize_file_name): New declaration.
40665
40666 2009-09-19  Eric Blake  <ebb9@byu.net>
40667
40668         link: fix quoting
40669         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40670
40671         openat: fix openat bugs on Solaris 9
40672         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40673         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40674         * modules/openat (Depends-on): Add open.
40675         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40676         * modules/fcntl-h (Makefile.am): Substitute it.
40677         * lib/fcntl.in.h (openat): Declare replacement.
40678         * doc/posix-functions/openat.texi (openat): Document this.
40679
40680         openat: move fstatat and unlinkat into correct files
40681         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40682         compiled.
40683         * lib/openat.c (fstatat, unlinkat): Move...
40684         * lib/fstatat.c (fstatat): ...into correct files.
40685         * lib/unlinkat.c (unlinkat): Likewise.
40686
40687         openat: fix unlinkat bugs on Solaris 9
40688         * lib/unlinkat.c (unlinkat): New file.
40689         * modules/openat (Depends-on): Add unlink.
40690         (Files): Distribute it.
40691         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40692         trailing slash behavior is broken.
40693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40694         * modules/unistd (Makefile.am): Substitute it.
40695         * lib/unistd.in.h (unlinkat): Declare replacement.
40696         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40697
40698         openat: fix fstatat bugs on Solaris 9
40699         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40700         stat.
40701         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40702
40703         test-unlinkat: enhance test, to expose Solaris 9 bug
40704         * tests/test-unlink.c (main): Factor guts...
40705         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40706         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40707         * tests/test-rmdir.c (main): Adjust caller.
40708         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40709         (unlinker): New helper function.
40710         (rmdirat): Enhance check.
40711         * modules/rmdir-tests (Depends-on): Add stdbool.
40712         * modules/unlink-tests (Depends-on): Likewise.
40713         (Files): Add test-unlink.h.
40714         * modules/openat-tests (Files): Likewise.
40715         (Depends-on): Add unlinkdir.
40716
40717         test-fstatat: new test, to expose Solaris 9 bugs
40718         * tests/test-stat.c (main): Factor guts...
40719         * tests/test-stat.h (test_stat_func): ...into new file.
40720         * tests/test-lstat.c (main): Factor guts...
40721         * tests/test-lstat.h (test_lstat_func): ...into new file.
40722         * tests/test-fstatat.c: New file.
40723         * modules/stat-tests (Files): Add test-stat.h.
40724         * modules/lstat-tests (Files): Add test-lstat.h.
40725         (Depends-on): Add stdbool.
40726         * modules/openat-tests (Depends-on): Add pathmax.
40727         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40728         (Makefile.am): Run new test.
40729
40730         remove: new module, for mingw and Solaris 9 bugs
40731         * modules/remove: New file.
40732         * lib/remove.c: Likewise.
40733         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40735         * modules/stdio (Makefile.am): Use them.
40736         * lib/stdio.in.h (remove): Declare replacement.
40737         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40738         * doc/posix-functions/remove.texi (remove): Likewise.
40739         * modules/remove-tests: New test.
40740         * tests/test-remove.c: Likewise.
40741
40742         unlink: new module, for Solaris 9 bug
40743         * modules/unlink: New file.
40744         * lib/unlink.c: Likewise.
40745         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40747         * modules/unistd (Makefile.am): Use them.
40748         * lib/unistd.in.h (stat): Declare replacement.
40749         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40750         * doc/posix-functions/unlink.texi (unlink): Likewise.
40751         * modules/unlink-tests: New test.
40752         * tests/test-unlink.c: Likewise.
40753
40754         lstat: fix Solaris 9 bug
40755         * lib/lstat.c (lstat): Also check for trailing slash on
40756         non-symlink, non-directories.  Use stat module to simplify logic.
40757         * doc/posix-functions/lstat.texi (lstat): Document it.
40758         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40759         (configure.ac): Check for symlink.
40760         * tests/test-lstat.c (main): Add more tests.
40761
40762         stat: add as dependency to other modules
40763         * modules/chown (Depends-on): Add stat.
40764         * modules/euidaccess (Depends-on): Likewise.
40765         * modules/fchdir (Depends-on): Likewise.
40766         * modules/isdir (Depends-on): Likewise.
40767         * modules/link (Depends-on): Likewise.
40768         * modules/lstat (Depends-on): Likewise.
40769         * modules/mkdir-p (Depends-on): Likewise.
40770         * modules/modechange (Depends-on): Likewise.
40771         * modules/open (Depends-on): Likewise.
40772         * modules/readlink (Depends-on): Likewise.
40773         * modules/same (Depends-on): Likewise.
40774
40775         stat: fix Solaris 9 bug
40776         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40777         slash.
40778         * lib/stat.c (rpl_stat): Work around it.
40779         * doc/posix-functions/stat.texi (stat): Update documentation.
40780
40781         stat: new module, for mingw bug
40782         * modules/stat: New file.
40783         * lib/stat.c: Likewise.
40784         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40785         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40786         * modules/sys_stat (Makefile.am): Use them.
40787         * lib/sys_stat.in.h (stat): Declare replacement.
40788         * lib/openat.c (fstatat): Deal with lstat and stat being function
40789         macros.
40790         * modules/openat (Depends-on): Add inline.
40791         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40792         * doc/posix-functions/stat.texi (stat): Likewise.
40793         * modules/stat-tests: New test.
40794         * tests/test-stat.c: Likewise.
40795
40796 2009-09-19  Jim Meyering  <meyering@redhat.com>
40797
40798         syntax-check: detect unnecessary inclusion of canonicalize.h
40799         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40800
40801 2009-09-19  Eric Blake  <ebb9@byu.net>
40802
40803         canonicalize-lgpl: adjust clients to use correct header
40804         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40805         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40806         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40807         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40808         * lib/progreloc.c (includes): Likewise.
40809
40810 2009-09-19  Jim Meyering  <meyering@redhat.com>
40811
40812         test-posixtm.c: correct a comment
40813         * tests/test-posixtm.c: Correct first-line comment.
40814         Spotted by Eric Blake.
40815
40816 2009-09-16  Jim Meyering  <meyering@redhat.com>
40817
40818         posixtm-tests: make T const-correct; add a test case
40819         * tests/test-posixtm.c (T): Declare const.
40820         Add a test for -(2^31+1).
40821         Remove useless can-succeed-only-in-2002 test.
40822
40823         posixtm-tests: adjust the sole failing test
40824         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40825         expected output matches what mktime now produces.  Cross-checked via
40826         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40827
40828         posixtm: move #ifdef'd tests into a new module
40829         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40830         * tests/test-posixtm.c: ... this new file.
40831         * modules/posixtm-tests: New module.
40832
40833 2009-09-19  Eric Blake  <ebb9@byu.net>
40834
40835         openat: simplify use of at-func.c
40836         * lib/at-func.c (includes): Include prerequisites here, to
40837         simplify requirements on client files.
40838         * lib/openat-priv.h: Add double-inclusion guard.
40839         * lib/faccessat.c (includes): Simplify.
40840         * lib/fchmodat.c (includes): Likewise.
40841         * lib/fchownat.c (includes): Likewise.
40842         * lib/mkdirat.c (includes): Likewise.
40843         * lib/mkfifoat.c (includes): Likewise.
40844         * lib/symlinkat.c (includes): Likewise.
40845
40846         openat: allow return of fd 0
40847         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40848         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40849         unistd-safer.
40850         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40851         <fcntl.h>; this module does not leak fds.
40852         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40853         must be allowed to return 0, leaving openat_safer to add the
40854         safety.
40855         (openat_permissive): Avoid writing to just-opened fd 2 if
40856         restoring the current directory fails.
40857         * lib/openat-die.c (openat_restore_fail): Add comment.
40858         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40859         (save_cwd): Guarantee safe fd, but without use of open_safer.
40860         * tests/test-openat.c: New test.
40861         * modules/openat-tests (Files, Makefile.am): Distribute and build
40862         new file.
40863
40864         relocatable-prog-wrapper: fix build
40865         * modules/relocatable-prog-wrapper (Files): Update name of
40866         canonicalize m4 file, broken on 2009-09-17.
40867         Reported by emad hajjar <aleppos@hotmail.com>.
40868
40869 2009-09-19  Bruno Haible  <bruno@clisp.org>
40870
40871         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40872         * lib/safe-alloc.c: Likewise.
40873         Reported by Ian Beckwith <ianb@erislabs.net>.
40874
40875 2009-09-18  Bruno Haible  <bruno@clisp.org>
40876
40877         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40878         Reported by <erobles@sensacd.com.mx>.
40879
40880 2009-09-17  Eric Blake  <ebb9@byu.net>
40881
40882         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40883         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40884         slashes when checking if last component is missing.
40885         * tests/test-canonicalize.c (main): Test this.
40886
40887         canonicalize, canonicalize-lgpl: honor // if distinct from /
40888         * modules/canonicalize (Files): Add double-slash-root.m4.
40889         * modules/canonicalize-lgpl (Files): Likewise.
40890         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40891         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40892         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40893         fallback definition.
40894         (canonicalize_filename_mode): Use it to protect //.
40895         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40896         (__realpath): Likewise.
40897         * tests/test-canonicalize.c (main): Test this.
40898         * tests/test-canonicalize-lgpl.c (main): Likewise.
40899         * modules/canonicalize-tests (Depends-on): Add same-inode.
40900         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40901
40902         canonicalize-lgpl: fix glibc bug with trailing slash
40903         * m4/canonicalize-lgpl.m4: Move contents...
40904         * m4/canonicalize.m4: ...here.
40905         (gl_CANONICALIZE_LGPL): Factor realpath check...
40906         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40907         glibc 2.3.5 bug, fixed 2005-04-27.
40908         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40909         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40910         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40911         * modules/canonicalize-lgpl (Files): Manage file rename.
40912         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40913         * modules/stdlib (Makefile.am): Substitute witness.
40914         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40915         is needed.
40916         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40917         replacement is required.
40918         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40919         * doc/glibc-functions/canonicalize_file_name.texi
40920         (canonicalize_file_name): Document this.
40921         * doc/posix-functions/realpath.texi (realpath): Likewise.
40922
40923         canonicalize-lgpl: reject non-directory with trailing slash
40924         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40925         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40926         catches failures in glibc 2.3.5.
40927         * tests/test-canonicalize.c (main): Likewise.
40928
40929         canonicalize-lgpl: use native realpath if it works
40930         * lib/canonicalize-lgpl.c (realpath): Guard with
40931         FUNC_REALPATH_WORKS.
40932         * lib/stdlib.in.h (realpath): Make declaration optional based on
40933         HAVE_REALPATH.
40934         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40935         native realpath works.
40936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40937         * modules/stdlib (Makefile.am): Substitute witness.
40938
40939         canonicalize, canonicalize-lgpl: use <stdlib.h>
40940         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40941         (Include): Mention <stdlib.h>.
40942         (configure.ac): Mention functions we provide.
40943         * modules/canonicalize (configure.ac): Likewise.
40944         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40945         realpath if canonicalize_file_name is missing.
40946         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40947         * modules/stdlib (Makefile.am): Substitute witnesses.
40948         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40949         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40950         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40951         * NEWS: Document this.
40952         * doc/glibc-functions/canonicalize_file_name.texi
40953         (canonicalize_file_name): Likewise.
40954         * doc/posix-functions/realpath.texi (realpath): Likewise.
40955         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40956
40957         test-canonicalize: consolidate into single C program
40958         * tests/test-canonicalize.sh: Delete; move setup into...
40959         * tests/test-canonicalize.c (main): ...the program, making it
40960         easier to run in debugger.  Add some tests.
40961         * modules/canonicalize-tests (Files): Remove unused file.
40962         (Depends-on): Add progname.
40963         (configure.ac, Makefile.am): Simplify.
40964
40965         test-canonicalize-lgpl: consolidate into single C program
40966         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40967         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40968         easier to run in debugger.  Add some tests.
40969         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40970         (configure.ac, Makefile.am): Simplify.
40971
40972         canonicalize: avoid resolvepath
40973         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40974         unnecessary checks.
40975         * lib/canonicalize.c (includes): Simplify.
40976         (canonicalize_file_name): Drop resolvepath implementation.
40977         * modules/canonicalize (Depends-on): Drop filenamecat.
40978
40979         canonicalize: don't lose errno
40980         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40981         over calls to free.
40982
40983         canonicalize: simplify errno handling
40984         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40985         assignment.
40986
40987         canonicalize, canonicalize-lgpl: update module dependencies
40988         * modules/canonicalize (Depends-on): Add extensions, lstat,
40989         pathmax, stdlib.
40990         (Files): Drop pathmax.h.
40991         (configure.ac): Adjust macro name.
40992         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40993         lstat, stdlib, sys_stat.
40994         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40995         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40996         extensions.
40997         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40998         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40999         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41000         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41001         declaration, if available.
41002         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41003         we can rely on the readlink module.
41004         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41005         (includes): Use <unistd.h> unconditionally.
41006
41007 2009-09-17  Eric Blake  <ebb9@byu.net>
41008
41009         maint: make Include sections of modules consistent
41010         * modules/alloca: Use only header name; no need to list #include.
41011         * modules/alloca-opt: Likewise.
41012         * modules/arpa_inet: Likewise.
41013         * modules/canon-host: Likewise.
41014         * modules/configmake: Likewise.
41015         * modules/dirent: Likewise.
41016         * modules/eealloc: Likewise.
41017         * modules/environ: Likewise.
41018         * modules/fchdir: Likewise.
41019         * modules/fcntl: Likewise.
41020         * modules/fcntl-h: Likewise.
41021         * modules/gethrxtime: Likewise.
41022         * modules/gettime: Likewise.
41023         * modules/ignore-value: Likewise.
41024         * modules/inet_ntop: Likewise.
41025         * modules/inet_pton: Likewise.
41026         * modules/inttypes: Likewise.
41027         * modules/isnand-nolibm: Likewise.
41028         * modules/isnanf-nolibm: Likewise.
41029         * modules/mbchar: Likewise.
41030         * modules/mbfile: Likewise.
41031         * modules/mbiter: Likewise.
41032         * modules/mbuiter: Likewise.
41033         * modules/netdb: Likewise.
41034         * modules/netinet_in: Likewise.
41035         * modules/nproc: Likewise.
41036         * modules/pagealign_alloc: Likewise.
41037         * modules/poll: Likewise.
41038         * modules/printf-frexp: Likewise.
41039         * modules/pthread: Likewise.
41040         * modules/putenv: Likewise.
41041         * modules/random_r: Likewise.
41042         * modules/relocatable-prog: Likewise.
41043         * modules/search: Likewise.
41044         * modules/select: Likewise.
41045         * modules/selinux-h: Likewise.
41046         * modules/settime: Likewise.
41047         * modules/signal: Likewise.
41048         * modules/size_max: Likewise.
41049         * modules/socklen: Likewise.
41050         * modules/ssize_t: Likewise.
41051         * modules/stdarg: Likewise.
41052         * modules/stdbool: Likewise.
41053         * modules/stddef: Likewise.
41054         * modules/stdint: Likewise.
41055         * modules/stdio: Likewise.
41056         * modules/stdlib: Likewise.
41057         * modules/string: Likewise.
41058         * modules/strings: Likewise.
41059         * modules/sys_file: Likewise.
41060         * modules/sys_ioctl: Likewise.
41061         * modules/sys_select: Likewise.
41062         * modules/sys_socket: Likewise.
41063         * modules/sys_stat: Likewise.
41064         * modules/sys_time: Likewise.
41065         * modules/sys_times: Likewise.
41066         * modules/sys_utsname: Likewise.
41067         * modules/sys_wait: Likewise.
41068         * modules/sysexits: Likewise.
41069         * modules/time: Likewise.
41070         * modules/times: Likewise.
41071         * modules/tmpfile: Likewise.
41072         * modules/trim: Likewise.
41073         * modules/unistd: Likewise.
41074         * modules/wchar: Likewise.
41075         * modules/wctype: Likewise.
41076
41077 2009-09-17  Bruno Haible  <bruno@clisp.org>
41078
41079         Make getdate.y compile on QNX and NetBSD 5 / i386.
41080         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41081         TIME_T_FITS_IN_LONG_INT.
41082         * lib/getdate.y (long_time_t): New type.
41083         (relative_time): Change type of 'seconds' field to long_time_t.
41084         (get_date): Update types of local variables. Check against overflow
41085         during conversion from long_time_t to time_t.
41086         Reported by Matt Kraai <kraai@ftbfs.org>
41087         and Hasso Tepper <hasso@netbsd.org>.
41088
41089 2009-09-17  Bruno Haible  <bruno@clisp.org>
41090
41091         * modules/COPYING: Update copyright years.
41092         * modules/README: Likeiwse.
41093         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41094         Reported by Ian Beckwith <ianb@erislabs.net>.
41095
41096 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41097
41098         * users.txt: Update references for gnuit package.
41099
41100 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41101
41102         * m4/getdelim.m4: Fix typo in copyright line.
41103
41104 2009-09-17  Bruno Haible  <bruno@clisp.org>
41105
41106         * lib/atoll.c: Use the standard header with GPL copyright.
41107         * lib/argz.in.h: Likewise.
41108         * lib/glob.c: Likewise.
41109         * lib/glob-libc.h: Likewise.
41110         * lib/random_r.c: Likewise.
41111         * lib/siglist.h: Likewise.
41112         * lib/strsignal.c: Likewise.
41113         Reported by Ian Beckwith <ianb@erislabs.net>.
41114
41115 2009-09-17  Eric Blake  <ebb9@byu.net>
41116
41117         rmdir: ensure correct dependency order
41118         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41119
41120 2009-09-17  Bruno Haible  <bruno@clisp.org>
41121
41122         Disable assertion that fails on NetBSD 5 / i386.
41123         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41124         Reported by Sam Steingold <sds@gnu.org>
41125         and Hasso Tepper <hasso@netbsd.org>.
41126
41127 2009-09-16  Eric Blake  <ebb9@byu.net>
41128
41129         unlinkdir: port to mingw
41130         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41131         on which no one can unlink a directory.
41132
41133         stdlib: sort witness names
41134         * modules/stdlib (Makefile.am): Sort replacements.
41135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41136         * lib/stdlib.in.h: Likewise.
41137
41138         parse-duration-tests: avoid link failure
41139         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41140         LIBINTL.
41141         Reported by Tom G. Christensen.
41142
41143         openat-tests: ensure unlinkat behaves like rmdir
41144         * tests/test-rmdir.c (main): Factor guts...
41145         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41146         * modules/rmdir-tests (Files): Ship new file.
41147         * modules/openat-tests: New test.
41148         * tests/test-unlinkat.c: Likewise.
41149
41150         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41151         * modules/rmdir-errno (Status, Notice): Now obsolete.
41152
41153         rmdir: work around cygwin 1.5.x and mingw bugs
41154         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41155         * lib/rmdir.c (rmdir): Work around it.
41156         * modules/rmdir (Status, Notice): No longer obsolete.
41157         (Files): Add dos.m4.
41158         (Depends-on): Add unistd.
41159         (configure.ac): Set witnesses.
41160         (License): Relax to LGPLv2+.
41161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41162         * modules/unistd (Makefile.am): Substitute witnesses.
41163         * lib/unistd.in.h (rmdir): Declare replacement.
41164         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41165         * modules/rmdir-tests: New tests.
41166         * tests/test-rmdir.c: Likewise.
41167
41168 2009-09-15  Eric Blake  <ebb9@byu.net>
41169
41170         fchdir: improve use of replacement functions
41171         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41172         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41173         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41174         REPLACE_CLOSEDIR.
41175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41176         * modules/sys_stat (Makefile.am): Substitute correct witness.
41177         * modules/dirent (Makefile.am): Likewise.
41178         * modules/unistd (Makefile.am): Likewise.
41179         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41180         * lib/unistd.in.h (dup): Likewise.
41181         * lib/sys_stat.in.h (fstat): Likewise.
41182
41183         maint: ignore gnulib-tool temp files
41184         * .gitignore: Ignore files created during gnulib-tool --test.
41185
41186 2009-09-13  Jim Meyering  <meyering@redhat.com>
41187
41188         posixtm: don't reject a time that specify "60" as the number of seconds
41189         * lib/posixtm.c (posixtime): The code to reject invalid dates
41190         would also reject a time specified with the .60 suffix.
41191         But POSIX allows that, in order to accommodate leap seconds.
41192         So don't reject it.
41193         (main): Adjust tests accordingly.
41194         * modules/posixtm (Depends-on): Add stpcpy.
41195
41196 2009-09-11  Jim Meyering  <meyering@redhat.com>
41197
41198         announce-gen: include [$release_type] in emitted Subject:
41199         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41200         e.g., [stable] in the emitted Subject: line.
41201
41202 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41203
41204         Remove obsolete macros from several modules.
41205         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41206         obsolete Autoconf macros with their modern counterparts.
41207         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41208         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41209         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41210         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41211         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41212         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41213         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41214         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41215         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41216         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41217         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41218         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41219         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41220         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41221         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41222         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41223         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41224         * m4/time_r.m4 (gl_TIME_R): Likewise.
41225         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41226         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41227         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41228
41229         Fix copyright header in build-aux scripts.
41230         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41231         recommendation.
41232         * build-aux/ncftpput-ftp: Likewise.
41233         * build-aux/update-copyright: Likewise.
41234
41235 2009-09-09  Eric Blake  <ebb9@byu.net>
41236
41237         test-link: allow Linux choice of errno
41238         * tests/test-link.c (main): Relax test for alternate error.
41239
41240         strndup: fix improper m4 caching
41241         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41242         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41243         (gl_PREREQ_STRNDUP): Delete.
41244         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41245         * modules/string (Makefile.am): Substitute it.
41246         * lib/string.in.h (strndup): Modernize prototype.
41247
41248         getcwd: port to mingw
41249         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41250         different from the POSIX assumptions made throughout the getcwd
41251         module; fortunately, the mingw getcwd does not need replacement.
41252         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41253         * modules/getcwd-tests: New test.
41254         * tests/test-getcwd.c: Likewise.
41255
41256         link: fix platform bugs
41257         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41258         * lib/link.c (link): Work around them.  Fix related mingw bug.
41259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41260         * modules/unistd (Makefile.am): Substitute it.
41261         * lib/unistd.in.h (link): Declare replacement.
41262         * doc/posix-functions/link.texi (link): Document this.
41263         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41264
41265         test-link: consolidate into single C program, test more cases
41266         * tests/test-link.sh: Delete.
41267         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41268         at least Cygwin and Solaris.
41269         * modules/link-tests (Files): Remove unused file.
41270         (Depends-on): Add errno, sys_stat.
41271         (Makefile.am): Simplify.
41272
41273 2009-09-08  Bruno Haible  <bruno@clisp.org>
41274
41275         Work around towlower, towupper bug on mingw.
41276         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41277         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41278         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41279         * doc/posix-functions/towupper.texi: Likewise.
41280         Reported by Eric Blake.
41281
41282 2009-09-08  Jim Meyering  <meyering@redhat.com>
41283
41284         build: don't try to run autoheader if we don't use it
41285         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41286         is not used in configure.ac.
41287
41288 2009-09-08  Eric Blake  <ebb9@byu.net>
41289
41290         euidaccess: fix compilation error
41291         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41292
41293         rawmemchr: relax license
41294         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41295         okay.
41296         Reported by Jim Meyering.
41297
41298         mkfifoat: new module
41299         * modules/mkfifoat: New file.
41300         * lib/mkfifoat.c: Likewise.
41301         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41302         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41303         * modules/sys_stat (Makefile.am): Use them.
41304         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41305         * MODULES.html.sh (File system functions): Mention module.
41306         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41307         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41308         * modules/mkfifoat-tests: New test.
41309         * tests/test-mkfifoat.c: Likewise.
41310
41311         strchrnul: relax license
41312         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41313         okay.
41314         Reported by Jim Meyering.
41315
41316 2009-09-08  Eric Blake  <ebb9@byu.net>
41317
41318         fstatat: fix compilation on Solaris
41319         * lib/fstatat.c (includes): Add fcntl.h.
41320         Reported by Pádraig Brady.
41321
41322 2009-09-07  Eric Blake  <ebb9@byu.net>
41323
41324         rename: modernize replacement
41325         * modules/rename (Depends-on): Add stdio.
41326         (configure.ac): Declare witness.
41327         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41328         stdio take care of replacement.
41329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41330         * modules/stdio (Makefile.am): Substitute them.
41331         * lib/stdio.in.h (rename): Declare replacement.
41332         * lib/rename.c (includes): Allow cross-compilation to non-windows
41333         machines.
41334         * doc/posix-functions/rename.texi (rename): Improve
41335         documentation.
41336
41337         stdio: sort witness names
41338         * modules/stdio (Makefile.am): Sort replacements.
41339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41340         * lib/stdio.in.h: Likewise.
41341
41342         getcwd: minor cleanups
41343         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41344         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41345
41346         openat: provide more convenience names
41347         * modules/faccessat (configure.ac): Add C witness.
41348         * lib/unistd.in.h (readlinkat): Fix typo.
41349         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41350         convenience wrappers.
41351         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41352         wrappers in syntax checks.
41353
41354 2009-09-06  Eric Blake  <ebb9@byu.net>
41355
41356         doc: fix comments in recent patches
41357         * lib/faccessat.c: Mention correct function.
41358         * lib/fchmodat.c: Likewise.
41359         * lib/fchownat.c: Likewise.
41360         * lib/symlinkat.c: Likewise.
41361         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41362         constants.
41363
41364         faccessat, symlinkat: continue cleanup of previous patch
41365         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41366         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41367         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41369         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41370         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41371         set.
41372
41373 2009-09-06  Bruno Haible  <bruno@clisp.org>
41374
41375         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41376         (fstatat): Declare if GNULIB_FSTATAT is set.
41377         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41378         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41379         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41380         * modules/fcntl-h (Files): Remove m4/openat.m4.
41381         * modules/sys_stat (Files): Remove m4/openat.m4.
41382         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41383         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41384         * modules/unistd (Files): Remove m4/openat.m4.
41385         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41386         GNULIB_OPENAT.
41387         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41388         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41389         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41390         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41391         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41392         gl_OPENAT_DEFAULTS.
41393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41394         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41395         Don't require gl_OPENAT_DEFAULTS.
41396         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41397         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41398         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41399         (gl_OPENAT_DEFAULTS): Remove macro.
41400
41401 2009-09-06  Bruno Haible  <bruno@clisp.org>
41402
41403         * modules/openat (configure.ac): Remove unneeded witness.
41404
41405 2009-09-06  Bruno Haible  <bruno@clisp.org>
41406
41407         Set errno to ENOSYS when a function is entirely unsupported.
41408         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41409         EOPNOTSUPP.
41410         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41411         * modules/chown (Depends-on): Remove errno.
41412
41413 2009-09-06  Bruno Haible  <bruno@clisp.org>
41414
41415         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41416
41417 2009-09-06  Bruno Haible  <bruno@clisp.org>
41418
41419         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41420
41421 2009-09-06  Ben Pfaff  <blp@gnu.org>
41422             Bruno Haible  <bruno@clisp.org>
41423
41424         Work around a glibc bug in strtok_r.
41425         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41426         Undefine if UNDEFINE_STRTOK_R is set.
41427         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41429         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41430         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41431         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41432         UNDEFINE_STRTOK_R.
41433         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41434
41435 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41436
41437         exclude: minor fix
41438         * lib/exclude.c: Include wctype.h
41439
41440 2009-09-06  Akim Demaille  <demaille@gostai.com>
41441
41442         bootstrap: improve error message
41443         * build-aux/bootstrap (find_tool): Upon failure, report the list
41444         of candidates.
41445         Honor the initial value of the envvar.
41446
41447 2009-09-05  Eric Blake  <ebb9@byu.net>
41448
41449         symlinkat: new module
41450         * modules/symlinkat: New file.
41451         * lib/symlinkat.c: Likewise.
41452         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41454         * modules/unistd (Makefile.am): Use them.
41455         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41456         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41457         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41458         * MODULES.html.sh (File system functions): Mention module.
41459         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41460         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41461         * modules/symlinkat-tests: New test.
41462         * tests/test-symlinkat.c: Likewise.
41463
41464         test-openat-safer: add more checks
41465         * tests/test-openat-safer.c (main): Check more code paths.
41466
41467 2009-09-05  Jim Meyering  <meyering@redhat.com>
41468
41469         syntax-check: detect unnecessary inclusion of openat.h
41470         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41471
41472 2009-09-05  Bruno Haible  <bruno@clisp.org>
41473
41474         Support towlower, towupper.
41475         * doc/posix-functions/towlower.texi: Mention module wctype.
41476         * doc/posix-functions/towupper.texi: Likewise.
41477         * lib/wctype.in.h (towlower, towupper): New functions.
41478         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41479         (ASSERT): New macro.
41480         (e): New variable.
41481         (main): Test also towlower, towupper. Test WEOF argument.
41482         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41483
41484 2009-09-05  Bruno Haible  <bruno@clisp.org>
41485
41486         Fix conversion behaviour when the input is invalid.
41487         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41488         mark occurring in first pass of indirect conversion.
41489         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41490         input.
41491         Found by clang's static analyzer.
41492
41493 2009-09-05  Bruno Haible  <bruno@clisp.org>
41494
41495         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41496         where direct conversion is possible.
41497
41498 2009-09-04  Eric Blake  <ebb9@byu.net>
41499
41500         openat: fail with ENOENT on empty name
41501         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41502         buffer.
41503
41504         link-follow: fix logic bug in prior patch
41505         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41506         reversed sense of yes and no in prior patch.  Avoid confusing
41507         compilation failure with desired semantics.
41508
41509         link-follow: accomodate mingw and cross-compilation
41510         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41511         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41512         cross-compilation results to -1, to make linkat easier to
41513         implement when cross-compiling.  Trivially support mingw.
41514         * modules/link-follow (configure.ac): Call new name.
41515         * NEWS: Mention this.
41516
41517 2009-09-03  Eric Blake  <ebb9@byu.net>
41518
41519         faccessat: compile replacement
41520         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41521         needed.
41522
41523         fts: fix compilation error
41524         * lib/fts.c (includes): Re-add "openat.h", for
41525         openat_needs_fchdir.
41526
41527         faccessat: new module
41528         * modules/faccessat: New file.
41529         * lib/faccessat.c: Likewise.
41530         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41532         * modules/unistd (Makefile.am): Use it.
41533         * lib/unistd.in.h (faccessat): Declare it.
41534         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41535         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41536         * MODULES.html.sh (File system functions): Mention it.
41537         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41538         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41539
41540         euidaccess: prefer POSIX over non-standard implementation
41541         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41542         * lib/euidaccess.c (euidaccess): Use it if available.
41543
41544         openat: make template easier to use
41545         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41546         AT_FUNC_F2 to be undefined.
41547         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41548         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41549         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41550         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41551         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41552         Likewise.
41553         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41554         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41555         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41556         Likewise.
41557
41558         openat: declare in POSIX headers
41559         * NEWS: Mention this.
41560         * modules/openat (configure.ac): Declare witnesses.
41561         (Depends-on): Add fcntl-h, sys_stat, unistd.
41562         (Include): Mention correct headers.
41563         * modules/fcntl-h (Depends-on): Add link-warning.
41564         (Files): Add openat.m4.
41565         (Makefile.am): Substitute witnesses.
41566         * modules/sys_stat (Files, Makefile.am): Likewise.
41567         * modules/unistd (Files, Makefile.am): Likewise.
41568         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41569         (gl_OPENAT_DEFAULTS): New macro.
41570         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41572         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41573         (SYS_STAT_H): Remove unused variable.
41574         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41575         * lib/fcntl--.h (includes): Remove unneeded header.
41576         * lib/openat-safer.c (includes): Likewise.
41577         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41578         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41579         appropriate headers.
41580         (__OPENAT_PREFIX): Delete.
41581         * lib/fcntl.in.h (openat): Provide declaration.
41582         (AT_FDCWD): Fix Solaris bug.
41583         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41584         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41585         * lib/fchmodat.c (includes):  Adjust to find declaration.
41586         * lib/fchownat.c (includes): Likewise.
41587         * lib/mkdirat.c (includes): Likewise.
41588         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41589         still visible.
41590
41591 2009-09-02  Eric Blake  <ebb9@byu.net>
41592
41593         errno: use consistently
41594         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41595         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41596         * lib/canonicalize.c (ELOOP): Likewise.
41597         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41598         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41599         * lib/lchown.c (EOPNOTSUPP): Likewise.
41600         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41601         * lib/savewd.c (ESTALE): Likewise.
41602         * lib/settime.c (ENOSYS): Likewise.
41603         * lib/utimens.c (ENOSYS): Likewise.
41604         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41605         * lib/chdir-safer.c (ELOOP): Likewise.
41606         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41607         * modules/c-stack (Depends-on): Add errno.
41608         * modules/canonicalize (Depends-on): Likewise.
41609         * modules/chdir-safer (Depends-on): Likewise.
41610         * modules/fdopendir (Depends-on): Likewise.
41611         * modules/inet_ntop (Depends-on): Likewise.
41612         * modules/inet_pton (Depends-on): Likewise.
41613         * modules/lchown (Depends-on): Likewise.
41614         * modules/openat (Depends-on): Likewise.
41615         * modules/savewd (Depends-on): Likewise.
41616         * modules/settime (Depends-on): Likewise.
41617         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41618
41619         fts: avoid leaking fds
41620         * modules/fts (Depends-on): Add cloexec.
41621         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41622         flag.
41623
41624         fts: make directory fds more robust
41625         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41626         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41627
41628         backupfile, chdir-long, fts, savedir: make safer
41629         * lib/backupfile.c (includes): Use "dirent--.h", since
41630         numbered_backup can write to stderr during readdir.
41631         * lib/savedir.c (includes): Likewise.
41632         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41633         emulation can write to stderr on failure.
41634         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41635         * lib/getcwd.c: Document why opendir_safer is unused.
41636         * lib/glob.c: Likewise.
41637         * lib/scandir.c: Likewise.
41638         * lib/openat-proc.c: Likewise, for open_safer.
41639         * modules/backupfile (Depends-on): Add dirent-safer.
41640         * modules/savedir (Depends-on): Likewise.
41641         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41642         * modules/chdir-long (Depends-on): Add openat-safer.
41643
41644         openat-safer: new module
41645         * modules/openat-safer: New file.
41646         * lib/openat-safer.c: Likewise.
41647         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41648         * lib/fcntl-safer.h (openat_safer): Declare.
41649         * lib/fcntl--.h (openat): Override.
41650         * MODULES.html.sh (File descriptor based I/O): Mention it.
41651         * lib/openat.h: Add double-inclusion guards.
41652         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41653         "fcntl--.h", so we can implement openat.
41654         * modules/openat-safer-tests: New test.
41655         * tests/test-openat-safer.c: New file.
41656
41657         dirent-safer: new module
41658         * modules/dirent-safer: New file.
41659         * lib/dirent--.h: Likewise.
41660         * lib/dirent-safer.h: Likewise.
41661         * lib/opendir-safer.c: Likewise.
41662         * m4/dirent-safer.m4: Likewise.
41663         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41664         * modules/dirent-safer-tests: New test.
41665         * tests/test-dirent-safer.c: New file.
41666         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41667
41668         fdopendir: optimize on mingw
41669         * lib/unistd.in.h (_gl_directory_name): New prototype.
41670         * lib/fchdir.c (_gl_directory_name): Implement it.
41671         (fchdir): Use it to simplify implementation.
41672         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41673         fchdir, when available, to avoid calling [f]chdir().
41674
41675         fdopendir: split into its own module
41676         * lib/openat.c (fdopendir): Move...
41677         * lib/fdopendir.c: ...into new file.
41678         * modules/fdopendir: New module.
41679         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41680         * modules/openat (Depends-on): Add fdopendir.
41681         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41682         fdopendir here.
41683         * modules/savedir (Depends-on): Only need fdopendir, not full
41684         openat.
41685         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41686         * lib/openat.h (fdopendir): Drop prototype.
41687         * lib/dirent.in.h (fdopendir): Provide prototype.
41688         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41689         * modules/dirent (Makefile.am): Substitute them.
41690         * MODULES.html.sh (File system functions): Mention it.
41691         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41692         * modules/fdopendir-tests: New file.
41693         * tests/test-fdopendir.c: Likewise.
41694
41695         fchdir: use more consistent macro convention
41696         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41697         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41698         REPLACE_FCHDIR, rather than relying on config.h macros.
41699         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41700         inside a single make-time REPLACE_FCHDIR block, rather than using
41701         the config.h FCHDIR_REPLACEMENT.
41702         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41703         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41704         Manage fstat replacement.
41705         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41706         REPLACE_FCHDIR.
41707         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41708         (Makefile.am): Substitute REPLACE_FCHDIR.
41709         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41710         FCHDIR_REPLACEMENT.
41711         * lib/dup-safer.c (dup_safer): Likewise.
41712         * lib/dup2.c (rpl_dup2): Likewise.
41713         * lib/dup3.c (rpl_dup3): Likewise.
41714         * lib/open.c (rpl_open): Likewise.
41715
41716         fchdir: simplify error handling, and support dup3
41717         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41718         stdbool, malloc-posix, realloc-posix.
41719         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41720         (ensure_dirs_slot): Return false on allocation failure.
41721         (rpl_dup2): Delete.
41722         (_gl_register_dup): New function.
41723         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41724         (_gl_register_fd): Close fd on allocation failure.
41725         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41726         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41727         prototype.
41728         (rpl_dup2_fchdir): Delete prototype.
41729         * lib/open.c (open): Update caller.
41730         * lib/dup2.c (dup2): Track fchdir metadata.
41731         * lib/dup3.c (dup3): Likewise.
41732         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41733         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41734
41735 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41736
41737         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41738         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41739         don't pass arguments to AC_OUTPUT.
41740
41741 2009-09-02  Bruno Haible  <bruno@clisp.org>
41742
41743         * modules/mkdtemp (License): Relicense under LGPLv2+.
41744         Reported by Paolo Bonzini.
41745
41746 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41747
41748         Replace uses of obsolete autoconf macros in Jim's modules.
41749         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41750         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41751         can evoke a warning from autoconf when run with -Wobsolete
41752         enabled.  They were declared obsolete for good reasons (see
41753         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41754         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41755         should not continue using the deprecated macros.
41756         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41757         obsolete Autoconf macros with modern counterparts.
41758         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41759         * m4/dos.m4 (gl_AC_DOS): Likewise.
41760         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41761         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41762         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41763         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41764         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41765         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41766         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41767         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41768         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41769         Likewise.
41770         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41771         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41772         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41773         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41774         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41775         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41776
41777 2009-09-01  Eric Blake  <ebb9@byu.net>
41778
41779         fchdir: fix off-by-one bug in previous patch
41780         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41781         (_gl_unregister_fd): Delete useless if.
41782
41783 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41784
41785         maint.mk: sort the list of syntax-check rules
41786         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41787         easier to get a sense of progress when the rules are run sequentially
41788         and take a long time.
41789
41790 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41791
41792         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41793         * modules/netinet_in: Likewise.
41794         * modules/sys_file: Likewise.
41795         * modules/sys_ioctl: Likewise.
41796         * modules/sys_select: Likewise.
41797         * modules/sys_socket: Likewise.
41798         * modules/sys_stat: Likewise.
41799         * modules/sys_time: Likewise.
41800         * modules/sys_times: Likewise.
41801         * modules/sys_utsname: Likewise.
41802         * modules/sys_wait: Likewise.
41803
41804 2009-09-01  Jim Meyering  <meyering@redhat.com>
41805
41806         fts: help ensure that return values are not ignored
41807         * lib/fts_.h (__GNUC_PREREQ): Define.
41808         (__attribute_warn_unused_result__): Define.
41809         (fts_children, fts_close, fts_open, fts_read): Declare with
41810         __attribute_warn_unused_result__.
41811
41812         fts: fts_close now fails also when closing a dir file descriptor fails
41813         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41814         and propagate to caller, along with errno.
41815
41816         announce-gen: correct formatting in --help output
41817         * build-aux/announce-gen (usage): Move the one-line description in
41818         --help output "up", to where it belongs, just after Usage:.
41819
41820 2009-08-31  Eric Blake  <ebb9@byu.net>
41821
41822         fchdir: port to mingw
41823         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41824         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41825         opened, then use a substitute.
41826         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41827         replacement.
41828         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41829         (_gl_register_fd): No need to check stat if open already filters
41830         all directories.
41831         (fchdir): Fix error condition to match POSIX.
41832         * modules/fchdir (Depends-on): Add sys_stat.
41833         * doc/posix-functions/open.texi (open): Document the limitation.
41834         * modules/fchdir-tests: New file.
41835         * tests/test-fchdir.c: Likewise.
41836
41837         canonicalize: allow cross-testing from cygwin to mingw
41838         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41839         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41840         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41841         Likewise.
41842         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41843         target does not support symlinks.
41844         * tests/test-canonicalize-lgpl.sh: Likewise.
41845
41846         chown: avoid compilation warning on mingw
41847         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41848         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41849         mingw.
41850         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41851         * modules/chown (Depends-on): Add errno.
41852
41853 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41854
41855         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41856         command.
41857
41858 2009-08-31  Jim Meyering  <meyering@redhat.com>
41859
41860         canonicalize: remove useless initialization
41861         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41862         initialization of local, "end".
41863
41864 2009-08-30  Bruno Haible  <bruno@clisp.org>
41865
41866         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41867         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41868         ENOSYS.
41869
41870 2009-08-30  Bruno Haible  <bruno@clisp.org>
41871
41872         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41873         /usr/xpg4/bin/tr when it exists.
41874         * tests/test-pipe-filter-gi1.sh: Likewise.
41875
41876 2009-08-30  Bruno Haible  <bruno@clisp.org>
41877
41878         Work around deficient /usr/bin/id program on Solaris.
41879         * tests/test-file-has-acl.sh (ID): New variable.
41880         * tests/test-set-mode-acl.sh (ID): Likewise.
41881         * tests/test-copy-acl.sh (ID): Likewise.
41882         * tests/test-copy-file.sh (ID): Likewise.
41883
41884 2009-08-30  Bruno Haible  <bruno@clisp.org>
41885
41886         New module 'xstriconveh'.
41887         * lib/xstriconveh.h: New file.
41888         * lib/xstriconveh.c: New file.
41889         * modules/xstriconveh: New file.
41890
41891 2009-08-30  Bruno Haible  <bruno@clisp.org>
41892
41893         Make it easier to use mem_cd_iconveh.
41894         * lib/striconveh.h (iconveh_t): New type.
41895         (iconveh_open, iconveh_close): New declarations.
41896         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41897         with a single 'const iconveh_t *' argument.
41898         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41899         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41900         with a single 'const iconveh_t *' argument.
41901         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41902         * tests/test-striconveh.c (main): Update.
41903         * NEWS: Mention the change.
41904
41905 2009-08-30  Bruno Haible  <bruno@clisp.org>
41906
41907         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41908         problem.
41909
41910 2009-08-30  Bruno Haible  <bruno@clisp.org>
41911
41912         Work around iconv_open problem on Solaris.
41913         * lib/iconv_open-solaris.gperf: New file.
41914         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41915         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41916         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41917         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41918         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41919         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41920
41921 2009-08-29  Jim Meyering  <meyering@redhat.com>
41922
41923         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41924         * top/maint.mk (cvs-check): Remove target; it was just an alias
41925         to the better-named vc-diff-check.
41926         (maintainer-distcheck): Remove rule.  It was used only from
41927         the (alpha/beta/major) target, and all of its commands but one
41928         were coreutils-specific.
41929         (vc-dist): Remove rule.
41930         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41931         Run vc-diff-check, not vc-dist.
41932         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41933
41934 2009-08-27  Bruno Haible  <bruno@clisp.org>
41935
41936         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41937         of 0.
41938
41939 2009-08-27  Bruno Haible  <bruno@clisp.org>
41940
41941         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41942         compilers.
41943         * doc/func.texi: Document the SunPRO C bug.
41944
41945 2009-08-27  Bruno Haible  <bruno@clisp.org>
41946
41947         Fix link error on Solaris.
41948         * tests/test-parse-duration.c (xstrdup): Remove function.
41949
41950 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41951
41952         ignore-value: handle pointer types, too
41953         * lib/ignore-value.h (__attribute__): Remove definition.
41954         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41955         of a more concise and more-often effective "(void) i" statement.
41956         (ignore_ptr): New function to suppress warnings from functions that
41957         return pointers, and to make it explicit that one function doesn't
41958         handle all cases.
41959
41960 2009-08-25  Bruno Haible  <bruno@clisp.org>
41961
41962         dup2: work around a Linux bug.
41963         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41964         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41965         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41966         Reported by Simon Josefsson.
41967
41968 2009-08-25  Jim Meyering  <meyering@redhat.com>
41969
41970         libguestfs uses gnulib
41971         * users.txt: Add libguestfs.
41972
41973 2009-08-24  Eric Blake  <ebb9@byu.net>
41974
41975         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41976         * lib/pipe2.c (includes): Add binary-io.h.
41977         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41978
41979 2009-08-24  Bruno Haible  <bruno@clisp.org>
41980
41981         Tolerate declared but missing accept4 syscall.
41982         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41983         available.
41984         * lib/sys_socket.in.h (accept4): If the function is already present,
41985         override it.
41986         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41987         * modules/accept4 (Makefile.am): Compile accept4.c always.
41988         Reported by Paolo Bonzini and Eric Blake.
41989
41990 2009-08-23  Bruno Haible  <bruno@clisp.org>
41991
41992         New module 'accept4'.
41993         * lib/sys_socket.in.h (accept4): New declaration.
41994         * lib/accept4.c: New file.
41995         * m4/accept4.m4: New file.
41996         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41997         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41998         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41999         HAVE_ACCEPT4.
42000         * modules/accept4: New file.
42001         * doc/glibc-functions/accept4.texi: Mention the new module.
42002
42003 2009-08-24  Jim Meyering  <meyering@redhat.com>
42004
42005         progname: also set global program_invocation_name, when possible
42006         Before this change, a libtool-enabled program that calls glibc's
42007         error function would report the program name as
42008         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42009         * modules/progname (configure.ac): Check for a declaration of
42010         program_invocation_name.
42011         * lib/progname.c:  Include <errno.h>.
42012         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42013         Set program_invocation_name.
42014
42015 2009-08-23  Bruno Haible  <bruno@clisp.org>
42016
42017         * lib/dup3.c: Include <string.h>.
42018
42019 2009-08-23  Bruno Haible  <bruno@clisp.org>
42020
42021         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42022         * lib/pipe2.c (pipe2): Likewise.
42023         Suggested by Eric Blake.
42024
42025 2009-08-23  Bruno Haible  <bruno@clisp.org>
42026
42027         Tolerate declared but missing dup3 syscall.
42028         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42029         * lib/unistd.in.h (dup3): If the function is already present,
42030         override it.
42031         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42032         * modules/dup3 (Makefile.am): Compile dup3.c always.
42033         Reported by Paolo Bonzini.
42034
42035 2009-08-23  Bruno Haible  <bruno@clisp.org>
42036
42037         Tolerate declared but missing pipe2 syscall.
42038         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42039         available.
42040         * lib/unistd.in.h (pipe2): If the function is already present,
42041         override it.
42042         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42043         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42044         Reported by Paolo Bonzini.
42045
42046 2009-08-23  Bruno Haible  <bruno@clisp.org>
42047
42048         * lib/pipe2.c (pipe2): Move #ifs inside function.
42049
42050 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42051
42052         quotearg: document limitations of quote_these_too
42053         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42054         those limitations are created.
42055         * lib/quotearg.h (set_char_quoting): Document that digits and
42056         letters that are special after backslash are not permitted.
42057         (quotearg_char): Cross-reference set_char_quoting documentation.
42058
42059 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42060
42061         quotearg: implement custom_quoting_style
42062         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42063         right_quote fields.
42064         (set_custom_quoting): New public function.
42065         (quotearg_buffer_restyled): Add left_quote and right_quote
42066         arguments, handle them very much like locale quoting, and update
42067         all uses.
42068         (quotearg_n_custom): New public function.
42069         (quotearg_n_custom_mem): New public function.
42070         (quotearg_custom): New public function.
42071         (quotearg_custom_mem): New public function.
42072         * lib/quotearg.h: Prototype and document new public functions.
42073         (enum quoting_style): For escape_quoting_style and
42074         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42075         ignored even though they're otherwise like c_quoting_style.
42076         Add custom_quoting_style member and document with comparison to
42077         clocale_quoting_style.
42078         * tests/test-quotearg.c (custom_quotes): New array.
42079         (custom_results): New array.
42080         (main): Extend to test custom quoting.
42081
42082 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42083
42084         quotearg: fix right quote escaping when it's in quote_these_too
42085         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42086         quote, be sure to prepend only one backslash.
42087         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42088         (main): Test it.
42089
42090 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42091
42092         quotearg-tests: test escaping of embedded locale quotes
42093         * tests/test-quotearg.c (struct result_strings): Add member for
42094         new input.
42095         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42096         (inputs): Add new input.
42097         (results_g): Add expected results.
42098         (flag_results): Likewise.
42099         (locale_results): Likewise.
42100         (compare_strings): Check those.
42101
42102 2009-08-23  Bruno Haible  <bruno@clisp.org>
42103
42104         Tests for module 'dup3'.
42105         * modules/dup3-tests: New file.
42106         * tests/test-dup3.c: New file.
42107
42108         New module 'dup3'.
42109         * lib/unistd.in.h (dup3): New declaration.
42110         * lib/dup3.c: New file.
42111         * m4/dup3.m4: New file.
42112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42113         HAVE_DUP3.
42114         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42115         * modules/dup3: New file.
42116         * doc/glibc-functions/dup3.texi: Mention the new module.
42117
42118 2009-08-23  Bruno Haible  <bruno@clisp.org>
42119
42120         Tweak the dup2 test.
42121         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42122         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42123         the test file is still empty. Fix argument order of lseek.
42124
42125 2009-08-23  Bruno Haible  <bruno@clisp.org>
42126
42127         Avoid test link errors when the modules getopt-gnu, gettext are used.
42128         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42129         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42130
42131 2009-08-23  Bruno Haible  <bruno@clisp.org>
42132
42133         Fix getdtablesize() on mingw.
42134         * lib/getdtablesize.c (getdtablesize): Implement differently.
42135         * lib/unistd.in.h (getdtablesize): Improve comment.
42136
42137 2009-08-23  Bruno Haible  <bruno@clisp.org>
42138
42139         New module 'mkostemp'.
42140         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42141         * lib/stdlib.in.h (mksotemp): New declaration.
42142         * lib/mkostemp.c: New file, from glibc with modifications.
42143         * lib/tempname.h (GT_FILE): Remove outdated comment.
42144         (gen_tempname): Add flags argument.
42145         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42146         (__GT_FILE): Map to 1.
42147         (small_open, large_open): Remove macros.
42148         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42149         * lib/mkstemp.c (mkstemp): Update.
42150         * lib/mkdtemp.c (mkdtemp): Likewise.
42151         * m4/mkostemp.m4: New file.
42152         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42153         HAVE_MKOSTEMP.
42154         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42155         HAVE_MKOSTEMP.
42156         * modules/mkostemp: New file, based on modules/mkstemp.
42157         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42158         * NEWS: Mention the change.
42159
42160 2009-08-23  Bruno Haible  <bruno@clisp.org>
42161
42162         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42163         Reported by Eric Blake.
42164
42165 2009-08-23  Bruno Haible  <bruno@clisp.org>
42166
42167         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42168         Reported by Eric Blake.
42169
42170 2009-08-23  Bruno Haible  <bruno@clisp.org>
42171
42172         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42173         * modules/pipe2 (Depends-on): Likewise.
42174
42175 2009-08-23  Eric Blake  <ebb9@byu.net>
42176
42177         fcntl-h: add O_TTY_INIT support
42178         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42179         * tests/test-fcntl-h.c (o): Test it.
42180         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42181
42182         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42183         * modules/fcntl: Move <fcntl.h> header replacement...
42184         * modules/fcntl-h: ...to new name, so as not to collide with
42185         like-named function.
42186         * tests/test-fcntl.c: Rename...
42187         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42188         * modules/fcntl-tests: Rename...
42189         * modules/fcntl-h-tests: ...to this.  Update test file name.
42190         * modules/chdir-long (Depends-on): Update clients.
42191         * modules/chdir-safer (Depends-on): Likewise.
42192         * modules/fcntl-safer (Depends-on): Likewise.
42193         * modules/fts (Depends-on): Likewise.
42194         * modules/mkancesdirs (Depends-on): Likewise.
42195         * modules/mkdir-p (Depends-on): Likewise.
42196         * modules/open (Depends-on): Likewise.
42197         * modules/savewd (Depends-on): Likewise.
42198         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42199         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42200
42201 2009-08-22  Bruno Haible  <bruno@clisp.org>
42202
42203         * modules/binary-io (License): Relicense under LGPL.
42204         * modules/pipe2 (License): Likewise.
42205
42206 2009-08-22  Bruno Haible  <bruno@clisp.org>
42207
42208         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42209         return value.
42210         * lib/pipe-filter-gi.c (filter_init): Likewise.
42211         Reported by Eric Blake.
42212
42213 2009-08-22  Bruno Haible  <bruno@clisp.org>
42214
42215         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42216         * modules/pipe (Depends-on): Add pipe2.
42217
42218 2009-08-22  Bruno Haible  <bruno@clisp.org>
42219
42220         Tests for module 'pipe2'.
42221         * modules/pipe2-tests: New file.
42222         * tests/test-pipe2.c: New file.
42223
42224         New module 'pipe2'.
42225         * lib/unistd.in.h (pipe2): New declaration.
42226         * lib/pipe2.c: New file.
42227         * m4/pipe2.m4: New file.
42228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42229         HAVE_PIPE2.
42230         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42231         * modules/pipe2: New file.
42232         * doc/glibc-functions/pipe2.texi: Mention the new module.
42233
42234 2009-08-22  Bruno Haible  <bruno@clisp.org>
42235
42236         Reference some new glibc functions.
42237         * doc/glibc-functions/accept4.texi: New file.
42238         * doc/glibc-functions/dup3.texi: New file.
42239         * doc/glibc-functions/mkostemp.texi: New file.
42240         * doc/glibc-functions/pipe2.texi: New file.
42241         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42242         (Glibc sys/socket.h): Refer to accept4.
42243         (Glibc unistd.h): Refer to dup3, pipe2.
42244         Reported by Eric Blake.
42245
42246 2009-08-22  Jim Meyering  <meyering@redhat.com>
42247             Bruno Haible  <bruno@clisp.org>
42248
42249         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42250         This makes it so packages using automake-1.11's silent-rules option
42251         can print e.g., a single "GEN    configmake.h" line, rather than
42252         the 30+ statements that perform the job.  If you want to see the
42253         actual commands, you can still run "make V=1".
42254         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42255         so that make output is abbreviated when those variables are defined
42256         appropriately.
42257         * modules/argz: Likewise.
42258         * modules/arpa_inet: Likewise.
42259         * modules/byteswap: Likewise.
42260         * modules/configmake: Likewise.
42261         * modules/dirent: Likewise.
42262         * modules/errno: Likewise.
42263         * modules/fcntl: Likewise.
42264         * modules/float: Likewise.
42265         * modules/fnmatch: Likewise.
42266         * modules/getopt-posix: Likewise.
42267         * modules/glob: Likewise.
42268         * modules/iconv_open: Likewise.
42269         * modules/inttypes: Likewise.
42270         * modules/localcharset: Likewise.
42271         * modules/locale: Likewise.
42272         * modules/math: Likewise.
42273         * modules/netdb: Likewise.
42274         * modules/netinet_in: Likewise.
42275         * modules/poll: Likewise.
42276         * modules/posix_spawnp-tests: Likewise.
42277         * modules/sched: Likewise.
42278         * modules/search: Likewise.
42279         * modules/selinux-h: Likewise.
42280         * modules/signal: Likewise.
42281         * modules/spawn: Likewise.
42282         * modules/stdarg: Likewise.
42283         * modules/stdbool: Likewise.
42284         * modules/stddef: Likewise.
42285         * modules/stdint: Likewise.
42286         * modules/stdio: Likewise.
42287         * modules/stdlib: Likewise.
42288         * modules/string: Likewise.
42289         * modules/strings: Likewise.
42290         * modules/sys_file: Likewise.
42291         * modules/sys_ioctl: Likewise.
42292         * modules/sys_select: Likewise.
42293         * modules/sys_socket: Likewise.
42294         * modules/sys_stat: Likewise.
42295         * modules/sys_time: Likewise.
42296         * modules/sys_times: Likewise.
42297         * modules/sys_utsname: Likewise.
42298         * modules/sys_wait: Likewise.
42299         * modules/sysexits: Likewise.
42300         * modules/time: Likewise.
42301         * modules/unistd: Likewise.
42302         * modules/wchar: Likewise.
42303         * modules/wctype: Likewise.
42304
42305 2009-08-22  Jim Meyering  <meyering@redhat.com>
42306
42307         announce-gen: detect write failure
42308         * build-aux/announce-gen: Add Coda at end.
42309         Remove equivalent-but-more-verbose block at top.
42310
42311 2009-08-19  Akim Demaille  <demaille@gostai.com>
42312
42313         bootstrap: --help to stdout.
42314         * bootstrap (usage): Don't send --help to stderr.
42315         Use a here doc instead of a long string.
42316
42317 2009-08-21  Eric Blake  <ebb9@byu.net>
42318
42319         test-popen-safer: split from test-popen
42320         * tests/test-popen.c (main): Move...
42321         * tests/test-popen.h: ...into new file.
42322         * tests/test-popen-safer2.c: New file.
42323         * modules/popen-tests (Files): Add test-popen.h.
42324         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42325         Suggested by Bruno Haible.
42326
42327         test-fcntl-safer: split from test-open
42328         * tests/test-open.c (main): Move...
42329         * tests/test-open.h: ...into new file.
42330         * tests/test-fcntl-safer.c: New file.
42331         * modules/open-tests (Files): Add test-open.h.
42332         * modules/fcntl-safer-tests: New file.
42333         Suggested by Bruno Haible.
42334
42335         test-fopen-safer: split from test-fopen
42336         * tests/test-fopen.c (main): Move...
42337         * tests/test-fopen.h: ...into new file.
42338         * tests/test-fopen-safer.c: New file.
42339         * modules/fopen-tests (Files): Add test-fopen.h.
42340         * modules/fopen-safer-tests: New file.
42341         Suggested by Bruno Haible.
42342
42343 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42344
42345         popen-safer: test O_CLOEXEC at run-time.
42346         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42347
42348 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42349
42350         fcntl: move more flags to the header
42351         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42352         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42353         * lib/fcntl.in.h: Do both things here.
42354
42355 2009-08-21  Jim Meyering  <meyering@redhat.com>
42356
42357         consistently remove $@-t before redirecting to it
42358         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42359         * modules/alloca-opt: Likewise.
42360         * modules/byteswap: Likewise.
42361         * modules/fnmatch: Likewise.
42362         * modules/getopt-posix: Likewise.
42363         * modules/glob: Likewise.
42364         * modules/poll: Likewise.
42365         * modules/posix_spawnp-tests: Likewise.
42366         * modules/sys_socket: Likewise.
42367         * modules/sysexits: Likewise.
42368
42369 2009-08-21  Eric Blake  <ebb9@byu.net>
42370
42371         popen: simplify access to original popen
42372         * lib/popen.c (rpl_popen): No need to worry about popen being a
42373         macro.
42374         Reported by Bruno Haible.
42375
42376 2009-08-20  Eric Blake  <ebb9@byu.net>
42377
42378         build: avoid some compiler warnings
42379         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42380         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42381         type.
42382         (new_exclude_segment, excluded_file_pattern_p)
42383         (excluded_file_name_p): Reduce scope.
42384         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42385         old-style declaration.
42386
42387 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42388
42389         * tests/test-exclude1.sh: Handle Windows EOL.
42390         * tests/test-exclude2.sh: Likewise.
42391         * tests/test-exclude3.sh: Likewise.
42392         * tests/test-exclude4.sh: Likewise.
42393         * tests/test-exclude5.sh: Likewise.
42394         * tests/test-exclude6.sh: Likewise.
42395         * tests/test-exclude7.sh: Likewise.
42396
42397 2009-08-19  Akim Demaille  <demaille@gostai.com>
42398
42399         bootstrap: find sha1sum when named gsha1sum.
42400         * bootstrap (find_tool): New.
42401         ($SHA1SUM): New.
42402         Use it.
42403
42404 2009-08-20  Jim Meyering  <meyering@redhat.com>
42405
42406         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42407         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42408         expression that converts "." in a file name to "\." in the resulting
42409         regexp.  Start with a dummy statement, so that prior shell variable
42410         definitions are expanded portably.  Reported by Simon Josefsson.
42411
42412 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42413
42414         Fix polling for writeability of a screen buffer.
42415         * lib/poll.c: Distinguish input and screen buffers for the
42416         Win32 implementation.
42417         * lib/select.c: Likewise.
42418
42419 2009-08-19  Eric Blake  <ebb9@byu.net>
42420
42421         popen-safer: prevent popen from clobbering std descriptors
42422         * modules/popen-safer: New file.
42423         * lib/popen-safer.c: Likewise.
42424         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42425         * lib/stdio--.h (popen): Provide override.
42426         * lib/stdio-safer.h (popen_safer): Provide declaration.
42427         * tests/test-popen.c (includes): Partially test this.
42428         * modules/popen-safer-tests: New file, for more tests.
42429         * tests/test-popen-safer.c: Likewise.
42430         * MODULES.html.sh (file stream based Input/Output): Mention it.
42431
42432         tests: test some of the *-safer modules
42433         * modules/fopen-safer (Depends-on): Add fopen.
42434         * modules/fcntl-safer (Depends-on): Add fcntl.
42435         * modules/stdlib-safer (Depends-on): Add stdlib.
42436         (configure.ac): Set indicator.
42437         * modules/unistd-safer (configure.ac): Likewise.
42438         * modules/tmpfile-safer (configure.ac): Likewise.
42439         (Depends-on): Add tmpfile.
42440         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42441         active.
42442         * tests/test-fopen.c (includes): Test safer versions when they are
42443         in use.
42444         * tests/test-open.c (includes): Likewise.
42445
42446         popen: fix cygwin 1.5 bug when stdin closed
42447         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42448         * modules/popen: New file.
42449         * modules/popen-tests: Likewise.
42450         * tests/test-popen.c: Likewise.
42451         * m4/popen.m4: Likewise.
42452         * lib/popen.c: Likewise.
42453         * lib/stdio.in.h (popen): New declaration.
42454         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42455         * modules/stdio (Makefile.am): Likewise.
42456         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42457
42458 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42459
42460         maint.mk: give full control over update-copyright exclusions
42461         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42462         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42463         (update-copyright): Don't force inclusion of top-level
42464         ChangeLog.  Don't force exclusion of all COPYING files, but make
42465         them the default exclusion instead.
42466
42467 2009-08-16  Bruno Haible  <bruno@clisp.org>
42468
42469         Fix test failures on Solaris 10.
42470         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42471         tests when Solaris iconv() is used.
42472         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42473         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42474         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42475         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42476         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42477
42478 2009-08-16  Bruno Haible  <bruno@clisp.org>
42479
42480         Fix test failures on Solaris 10.
42481         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42482         'tr' program and pass it as first argument.
42483         * tests/test-pipe-filter-gi1.sh: Likewise.
42484         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42485         program as first argument.
42486         * tests/test-pipe-filter-gi1.c (main): Likewise.
42487
42488 2009-08-16  Eric Blake  <ebb9@byu.net>
42489
42490         fpurge: fix previous commits
42491         * modules/fpurge (Makefile.am): Make replacement conditional,
42492         partially reverting 2007-04-29 change; missed in previous
42493         attempt.
42494         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42495         is missing.
42496
42497 2009-08-16  Bruno Haible  <bruno@clisp.org>
42498
42499         Clarify fpurge's effect on the file position.
42500         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42501         * tests/test-fpurge.c (main): Make a second pass for checking the file
42502         position.
42503
42504 2009-08-16  Bruno Haible  <bruno@clisp.org>
42505
42506         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42507         declaration of fpurge is missing.
42508         * tests/test-fpurge.c (main): Check that the file has not more contents
42509         than expected. Close the file before removing it.
42510
42511 2009-08-15  Eric Blake  <ebb9@byu.net>
42512
42513         fpurge: don't wrap working cygwin implementation
42514         * lib/fpurge.c (fpurge): Fix comment typo.
42515         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42516         1.7 to avoid replacement.
42517         * tests/test-fpurge.c (main): Enhance test.
42518
42519 2009-08-15  Eric Blake  <ebb9@byu.net>
42520         and Jim Meyering  <meyering@redhat.com>
42521
42522         test-update-copyright: skip if perl is insufficient
42523         * tests/test-update-copyright.sh: Failure to run maintainer tool
42524         should not cause testsuite failure on cygwin 1.5.
42525
42526 2009-08-14  Eric Blake  <ebb9@byu.net>
42527
42528         doc: mention more functions added in cygwin 1.7.0
42529         * doc/posix-headers/limits.texi (limits.h): Update for recent
42530         cygwin additions.
42531         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42532         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42533         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42534         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42535         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42536
42537 2009-08-14  Eric Blake  <ebb9@byu.net>
42538
42539         maint.mk: simplify update-copyright rule
42540         * top/maint.mk (update-copyright-local): Delete, and document how
42541         to do it in cfg.mk instead.
42542         (update-copyright-exclude-regexp): Delete, and document how to do
42543         it in .x-update-copyright instead.
42544         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42545         exclude ChangeLog.
42546
42547 2009-08-14  Bruno Haible  <bruno@clisp.org>
42548
42549         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42550
42551 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42552
42553         maint.mk: support update-copyright-env
42554         * top/maint.mk (update-copyright-env): Define place-holder.
42555         (update-copyright): Expand $(update-copyright-env) before
42556         invoking update-copyright.
42557
42558 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42559
42560         update-copyright: implement forced reformatting
42561         * build-aux/update-copyright: Implement and document
42562         UPDATE_COPYRIGHT_FORCE.
42563         * tests/test-update-copyright.sh: Test it.
42564
42565 2009-08-14  Eric Blake  <ebb9@byu.net>
42566         and Bruno Haible  <bruno@clisp.org>
42567
42568         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42569         * tests/test-locale.c: Revert previous patch related to NULL.
42570         * tests/test-stdio.c: Likewise.
42571         * tests/test-stdlib.c: Likewise.
42572         * tests/test-string.c: Likewise.
42573         * tests/test-unistd.c: Likewise.
42574         * modules/time-tests (Depends-on): Add verify.
42575         * modules/wchar-tests (Depends-on): Likewise.
42576         * tests/test-time.c: Test for NULL compliance.
42577         * tests/test-wchar.c: Likewise.
42578         * modules/locale (Depends-on): Add stddef.
42579         * modules/stdio (Depends-on): Likewise.
42580         * modules/stdlib (Depends-on): Likewise.
42581         * modules/string (Depends-on): Likewise.
42582         * modules/time (Depends-on): Likewise.
42583         * modules/unistd (Depends-on): Likewise.
42584         * modules/wchar (Depends-on): Likewise.
42585         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42586         * lib/stdlib.in.h (includes): Likewise.
42587         * lib/string.in.h (includes): Likewise.
42588         * lib/time.in.h (includes): Likewise.
42589         * lib/unistd.in.h (includes): Likewise.
42590         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42591         replaced.
42592         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42593         * m4/stddef_h.m4: New file.
42594         * modules/stddef: Likewise.
42595         * lib/stddef.in.h: Likewise.
42596         * modules/stddef-tests: Likewise.
42597         * tests/test-stddef.c: Likewise.
42598         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42599         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42600         * doc/posix-headers/locale.texi (locale.h): Likewise.
42601         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42602         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42603         * doc/posix-headers/string.texi (string.h): Likewise.
42604         * doc/posix-headers/time.texi (time.h): Likewise.
42605         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42606         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42607
42608 2009-08-14  Eric Blake  <ebb9@byu.net>
42609
42610         doc: improve git diff of texinfo files
42611         * .gitattributes: Add rule for *.texi files, with hint on how to
42612         use it.
42613         Copied from m4, and based on a report by Bruno Haible.
42614
42615 2009-08-14  Bruno Haible  <bruno@clisp.org>
42616
42617         Disable multithread support by default on Cygwin 1.5.x for real.
42618         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42619
42620 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42621
42622         update-copyright: much ado about intervals
42623         * build-aux/update-copyright: Implement and document
42624         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42625         of copyright year intervals.
42626         Also, document UPDATE_COPYRIGHT_YEAR.
42627         * tests/test-update-copyright.sh: Test it.
42628
42629         update-copyright: convert 2-digit to 4-digit years
42630         * build-aux/update-copyright: Implement and document.
42631         * tests/test-update-copyright.sh: Update.
42632
42633 2009-08-14  Jim Meyering  <meyering@redhat.com>
42634
42635         test-exclude: avoid coreutils "make check" failure
42636         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42637         just as in test-argmatch.c.
42638
42639 2009-08-13  Eric Blake  <ebb9@byu.net>
42640
42641         test-dup2: fix bad assumption
42642         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42643         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42644
42645         test-version-etc: fix CRLF portability issue
42646         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42647         recognize \r.
42648         * tests/test-argp-version-etc-1.sh: Likewise.
42649
42650         getopt: update client modules
42651         * modules/argp (Depends-on): Use getopt-gnu.
42652         * modules/git-merge-changelog (Depends-on): Likewise.
42653         * modules/long-options (Depends-on): Likewise.
42654         * modules/xstrtol (Depends-on): Likewise.
42655
42656 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42657
42658         * tests/test-version-etc.sh: Don't fail on different
42659         project/version.  Don't fail on CRLF differences.  Rewrite to use
42660         multiple -e instead of multiple sed forks, suggested by Eric Blake
42661         <ebb9@byu.net>.
42662         * tests/test-argp-version-etc-1.sh: Likewise.
42663
42664 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42665
42666         * tests/test-version-etc.sh: Don't fail on different
42667         project/version.
42668
42669 2009-08-12  Bruno Haible  <bruno@clisp.org>
42670
42671         Tests for modules 'getopt-posix', 'getopt-gnu'.
42672         * modules/getopt-posix-tests: New file.
42673         * tests/test-getopt.c: New file.
42674         * tests/test-getopt.h: New file.
42675         * tests/test-getopt_long.h: New file.
42676
42677         New modules 'getopt-posix', 'getopt-gnu'.
42678         * modules/getopt-gnu: New file, renamed from modules/getopt.
42679         * modules/getopt-posix: New file.
42680         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42681         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42682         (gl_GETOPT): Remove macro.
42683         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42684         Disable the test against BSD systems that declare optreset. Test
42685         against mingw bug. Test against lack of support of optional arguments
42686         on many platforms.
42687         * doc/glibc-headers/getopt.texi: Update module name and list of
42688         relevant platforms.
42689         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42690         'getopt-gnu' and more portability problems.
42691         * NEWS: Mention the changes.
42692
42693 2009-08-12  Bruno Haible  <bruno@clisp.org>
42694
42695         Ensure that optarg etc. get declared by <unistd.h>.
42696         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42697         AC_USE_SYSTEM_EXTENSIONS.
42698         * modules/getopt (Depends-on): Add 'extensions'.
42699
42700 2009-08-12  Bruno Haible  <bruno@clisp.org>
42701
42702         Avoid test link errors.
42703         * modules/pipe-filter-ii-tests (Makefile.am): Define
42704         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42705         * modules/pipe-filter-gi-tests (Makefile.am): Define
42706         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42707         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42708
42709 2009-08-12  Bruno Haible  <bruno@clisp.org>
42710
42711         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42712         gl_GETOPT_SUBSTITUTE before.
42713         (gl_GETOPT): Use it.
42714         * m4/argp.m4 (gl_ARGP): Update.
42715         Reported by Sergey Poznyakoff.
42716
42717         * m4/getopt.m4: Reorder macros.
42718         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42719         (gl_GETOPT_SUBSTITUTE): Remove macro.
42720
42721 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42722
42723         Minor improvement in gitlog-to-changelog
42724
42725         * build-aux/gitlog-to-changelog: New option `--format' makes
42726         output format string configurable.
42727
42728 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42729
42730         Optimize exclude: use hash tables for non-wildcard patterns.
42731
42732         * lib/exclude.c: Include hash.h and mbuiter.h
42733         (struct exclude_pattern, exclude_segment): New data types.
42734         (struct exclude): Rewrite.
42735         (fnmatch_pattern_has_wildcards): New function.
42736         (new_exclude_segment, free_exclude_segment): New functions.
42737         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42738         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42739         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42740         * modules/exclude: Depend on hash and mbuiter.
42741
42742         * modules/exclude-tests: New file.
42743         * tests/test-exclude.c: New file.
42744         * tests/test-exclude1.sh: New file.
42745         * tests/test-exclude2.sh: New file.
42746         * tests/test-exclude3.sh: New file.
42747         * tests/test-exclude4.sh: New file.
42748         * tests/test-exclude5.sh: New file.
42749         * tests/test-exclude6.sh: New file.
42750         * tests/test-exclude7.sh: New file.
42751
42752 2009-08-12  Bruno Haible  <bruno@clisp.org>
42753
42754         Ensure that getopt() gets declared by <unistd.h>.
42755         * lib/unistd.in.h: Conditionally include getopt.h.
42756         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42757         Set GNULIB_UNISTD_H_GETOPT.
42758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42759         GNULIB_UNISTD_H_GETOPT.
42760         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42761
42762 2009-08-12  Bruno Haible  <bruno@clisp.org>
42763
42764         Clarify logic.
42765         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42766         gl_replace_getopt instead of GETOPT_H.
42767
42768 2009-08-12  Bruno Haible  <bruno@clisp.org>
42769
42770         * m4/getopt.m4: Add comments.
42771
42772 2009-08-12  Bruno Haible  <bruno@clisp.org>
42773
42774         Disable multithread support by default on Cygwin 1.5.x.
42775         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42776         set gl_use_threads=no if not specified otherwise.
42777
42778 2009-08-11  Bruno Haible  <bruno@clisp.org>
42779
42780         Avoid compilation error on NetBSD 5.0.
42781         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42782         * tests/test-stdio.c: Likewise.
42783         * tests/test-stdlib.c: Likewise.
42784         * tests/test-string.c: Likewise.
42785         * tests/test-unistd.c: Likewise.
42786         Reported by Greg Troxel <gdt@ir.bbn.com>
42787         at <https://savannah.gnu.org/support/?106973>.
42788
42789 2009-08-11  Bruno Haible  <bruno@clisp.org>
42790
42791         * modules/dup2-tests (Depends-on): Remove close.
42792
42793         Undo 2009-07-19 commit.
42794         * modules/acl-tests (Depends-on): Remove close.
42795         * modules/binary-io-tests (Depends-on): Likewise.
42796         * modules/closein-tests (Depends-on): Likewise.
42797         * modules/flock-tests (Depends-on): Likewise.
42798         * modules/fsync-tests (Depends-on): Likewise.
42799         * modules/lseek-tests (Depends-on): Likewise.
42800         * modules/pipe-tests (Depends-on): Likewise.
42801         * modules/posix_spawn-tests (Depends-on): Likewise.
42802         * modules/posix_spawnp-tests (Depends-on): Likewise.
42803         * modules/stat-time-tests (Depends-on): Likewise.
42804         * modules/yesno-tests (Depends-on): Likewise.
42805
42806 2009-08-10  Bruno Haible  <bruno@clisp.org>
42807
42808         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42809
42810 2009-08-10  Bruno Haible  <bruno@clisp.org>
42811
42812         Fix a gcc warning.
42813         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42814
42815 2009-08-10  Bruno Haible  <bruno@clisp.org>
42816
42817         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42818         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42819         not only the first time.
42820         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42821         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42822         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42823         is 1, not only the the first time.
42824
42825 2009-08-10  Bruno Haible  <bruno@clisp.org>
42826
42827         Make it possible to use module 'gethostname' without module 'close'.
42828         * lib/unistd.in.h (close): Evoke a link error only if
42829         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42831         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42832         * modules/unistd (Makefile.am): Substitute
42833         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42834         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42835         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42836         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42837         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42838         * modules/sys_ioctl (Makefile.am): Substitute
42839         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42840         * modules/socket (configure.ac): On native Windows, set
42841         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42842         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42843         Reported by Sam Steingold <sds@gnu.org>.
42844
42845 2009-08-10  Bruno Haible  <bruno@clisp.org>
42846
42847         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42848         * modules/ioctl (configure.ac): Likewise.
42849
42850 2009-08-10  Bruno Haible  <bruno@clisp.org>
42851
42852         Avoid collision between gnulib wrapper and libintl wrapper.
42853         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42854         already defined in intl/printf.c.
42855         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42856         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42857
42858 2009-08-09  Bruno Haible  <bruno@clisp.org>
42859
42860         Make <sys/select.h> really self-contained, also on Solaris 10.
42861         * lib/sys_select.in.h: Include <string.h>.
42862         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42863         Solaris 10 problem.
42864         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42865         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42866         Reported by Jim Meyering.
42867
42868 2009-08-09  Bruno Haible  <bruno@clisp.org>
42869
42870         Avoid warnings from 'aclocal' that are due to a use of macro name
42871         AM_XGETTEXT_OPTION that is not defined in automake.
42872         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42873         automake.
42874         * modules/error (configure.ac): Likewise.
42875         * modules/propername (configure.ac): Likewise.
42876         * modules/vasprintf (configure.ac): Likewise.
42877         * modules/verror (configure.ac): Likewise.
42878         * modules/xprintf (configure.ac): Likewise.
42879         * modules/xvasprintf (configure.ac): Likewise.
42880
42881 2009-08-08  Bruno Haible  <bruno@clisp.org>
42882
42883         Avoid compilation error in C++ mode.
42884         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42885         Reported by Sam Steingold <sds@gnu.org>.
42886
42887 2009-08-08  Bruno Haible  <bruno@clisp.org>
42888
42889         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42890         for the various Unix platforms.
42891         * doc/posix-headers/limits.texi: Update platforms list regarding
42892         HOST_NAME_MAX.
42893         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42894
42895 2009-08-07  Jim Meyering  <meyering@redhat.com>
42896
42897         selinux-at: fix typo in a comment
42898         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42899         Spotted by Paolo Bonzini.
42900
42901         selinux-at: remove redundant m4 code, add documentation
42902         * modules/selinux-at (configure.ac): Remove redundant code.
42903         LIB_SELINUX is already set via the dependent module, selinux-h.
42904         (Include): Add quotes around selinux-at.h.
42905         * lib/selinux-at.h: Add documentation.
42906         Reported by Bruno Haible in
42907         http://marc.info/?l=gnulib-bug&m=124958988300749
42908
42909 2009-08-07  Bruno Haible  <bruno@clisp.org>
42910
42911         Avoid link error on MacOS X 10.3 and 10.4.
42912         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42913         on non-ELF systems.
42914         * lib/argp-pv.c (argp_program_version): Likewise.
42915         Reported by Simon Josefsson.
42916
42917 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42918
42919         * tests/test-version-etc.sh: Use $EXEEXT.
42920
42921 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42922
42923         update-copyright: update documentation to point to maint.mk
42924         * build-aux/update-copyright: Here.
42925
42926 2009-08-06  Jim Meyering  <meyering@redhat.com>
42927
42928         maint.mk: support update-copyright-local
42929         * top/maint.mk (update-copyright-local): Define place-holder.
42930         (update-copyright): Depend on $(update-copyright-local).
42931
42932 2009-08-06  Jim Meyering  <meyering@redhat.com>
42933
42934         selinux-at: new module
42935         Initially written for coreutils, this module will soon be
42936         used by findutils, too.
42937         * MODULES.html.sh [Misc]: Add selinux-at.
42938         * lib/selinux-at.h: New file, from coreutils.
42939         * lib/selinux-at.c: Likewise.
42940         * modules/selinux-at: Likewise.
42941         (License): Change from LGPL to GPL, since it depends
42942         on the GPL'd openat module.
42943
42944         doc: update README
42945         * README: Remove references to cogito.
42946         Remove cvs-repo-updating instructions from 2007.
42947         Don't imply that CVS is better if you have limited disk space.
42948
42949 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42950
42951         update-copyright: support C-style comments
42952         * build-aux/update-copyright: Implement and document.
42953         * tests/test-update-copyright.sh: Test.
42954
42955 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42956
42957         update-copyright: support omitted "(C)"
42958         * build-aux/update-copyright: Implement and document.  Also,
42959         allow variable whitespace before "(C)".
42960         * tests/test-update-copyright.sh: Test.
42961
42962 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42963
42964         update-copyright: don't trip on non-FSF copyright statements
42965         * build-aux/update-copyright: Fix so that the first correctly
42966         formatted FSF copyright statement is recognized no matter what
42967         appears before it.  Update documentation.
42968         * tests/test-update-copyright.sh: Test that.
42969
42970 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42971
42972         update-copyright: clean up code a little
42973         * build-aux/update-copyright: Append "_re" to the name of any
42974         variable holding a regular expression.
42975         Replace "old" and "new" with "stmt" in variable names.
42976         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42977         handled correctly.
42978         Format code more consistently.
42979
42980 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42981
42982         update-copyright-tests: improve portability
42983         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42984         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42985
42986 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42987
42988         update-copyright: support @copyright{} and &copy;
42989         * build-aux/update-copyright: Implement and document.
42990         * tests/test-update-copyright.sh: Test.
42991
42992 2009-08-04  Jim Meyering  <meyering@redhat.com>
42993
42994         update-copyright-tests: correctly test EOL=\r\n handling
42995         * tests/test-update-copyright.sh: Put \r at the end of some lines
42996         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42997
42998         maint.mk: make update-copyright exclusion list more configurable
42999         * top/maint.mk (update-copyright): Default to excluding COPYING,
43000         but allow an override, in case someone does want to update that file.
43001
43002         maint.mk: don't update copyright date in COPYING
43003         * top/maint.mk (update-copyright): Exclude COPYING.
43004
43005         maint.mk: add a copyright-updating rule
43006         * top/maint.mk (update-copyright): New rule.
43007         Derived from coreutils/Makefile.am.
43008
43009         update-copyright: rename some variables
43010         * build-aux/update-copyright: Rename a few variables for clarity.
43011         Tweak syntax.  List Joel E. Denny as coauthor.
43012
43013 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43014
43015         update-copyright: fix bug for 2-digit last year and add tests
43016         * build-aux/update-copyright: Fix bug.
43017         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43018         specified.
43019         * modules/update-copyright-tests: New
43020         * tests/test-update-copyright.sh: New.
43021
43022 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43023
43024         update-copyright: handle leading tabs in line prefix
43025         * build-aux/update-copyright: Count leading tabs as 8 spaces
43026         when computing margin.  This helps with the formatting of
43027         ChangeLogs, for example.
43028         Fix documentation a little.
43029
43030 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43031
43032         update-copyright: support EOL=\r\n
43033         * build-aux/update-copyright: Implement that.
43034
43035 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43036
43037         update-copyright: automatically format copyright statements
43038         * build-aux/update-copyright: Implement that.
43039         Also, be a little more predictable and safer by always failing
43040         when the full copyright format is not perfectly recognized as an
43041         unbroken whole.  Discussed at
43042         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43043         Rewrite documentation.
43044
43045 2009-08-03  Bruno Haible  <bruno@clisp.org>
43046
43047         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43048
43049 2009-08-02  Bruno Haible  <bruno@clisp.org>
43050
43051         Tests for module 'uname'.
43052         * modules/uname-tests: New file.
43053         * tests/test-uname.c: New file.
43054
43055         New module 'uname'.
43056         * lib/uname.c: New file.
43057         * m4/uname.m4: New file.
43058         * modules/uname: New file.
43059         * doc/posix-functions/uname.texi: Mention the new module.
43060
43061 2009-08-02  Bruno Haible  <bruno@clisp.org>
43062
43063         Tests for module 'sys_utsname'.
43064         * modules/sys_utsname-tests: New file.
43065         * tests/test-sys_utsname.c: New file.
43066
43067         New module 'sys_utsname'.
43068         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43069         * m4/sys_utsname_h.m4: New file.
43070         * modules/sys_utsname: New file.
43071         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43072
43073 2009-08-02  Bruno Haible  <bruno@clisp.org>
43074
43075         Implicitly initialize the sockets library.
43076         * lib/gethostname.c: Include sockets.h.
43077         (rpl_gethostname): Invoke gl_sockets_startup.
43078         * lib/socket.c: Include sockets.h.
43079         (rpl_socket): Invoke gl_sockets_startup.
43080         * modules/gethostname (Depends-on): Add sockets.
43081         * modules/socket (Depends-on): Likewise.
43082         * tests/test-poll.c: Don't include sockets.h.
43083         (main): Don't invoke gl_sockets_startup.
43084         * tests/test-select.c: Don't include sockets.h.
43085         (main): Don't invoke gl_sockets_startup.
43086
43087 2009-08-02  Bruno Haible  <bruno@clisp.org>
43088
43089         Allow multiple calls to gl_sockets_startup.
43090         * lib/sockets.c (initialized_sockets_version): New variable.
43091         (gl_sockets_startup): Do nothing if already called for this or a higher
43092         version.
43093         (gl_sockets_cleanup): Reset initialized_sockets_version.
43094
43095 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43096
43097         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43098         different project/version.
43099
43100 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43101             Bruno Haible  <bruno@clisp.org>
43102
43103         Tests for module 'pipe-filter-gi'.
43104         * modules/pipe-filter-gi-tests: New file.
43105         * tests/test-pipe-filter-gi1.sh: New file.
43106         * tests/test-pipe-filter-gi1.c: New file.
43107         * tests/test-pipe-filter-gi2.sh: New file.
43108         * tests/test-pipe-filter-gi2-main.c: New file.
43109         * tests/test-pipe-filter-gi2-child.c: New file.
43110
43111         New module 'pipe-filter-gi'.
43112         * lib/pipe-filter-gi.c: New file.
43113         * modules/pipe-filter-gi: New file.
43114
43115 2009-08-02  Bruno Haible  <bruno@clisp.org>
43116             Paolo Bonzini  <bonzini@gnu.org>
43117
43118         Tests for module 'pipe-filter-ii'.
43119         * modules/pipe-filter-ii-tests: New file.
43120         * tests/test-pipe-filter-ii1.sh: New file.
43121         * tests/test-pipe-filter-ii1.c: New file.
43122         * tests/test-pipe-filter-ii2.sh: New file.
43123         * tests/test-pipe-filter-ii2-main.c: New file.
43124         * tests/test-pipe-filter-ii2-child.c: New file.
43125
43126         New module 'pipe-filter-ii'.
43127         * lib/pipe-filter.h: New file.
43128         * lib/pipe-filter-ii.c: New file.
43129         * lib/pipe-filter-aux.h: New file.
43130         * modules/pipe-filter-ii: New file.
43131
43132 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43133
43134         * lib/gc-libgcrypt.c: Change copyright to FSF.
43135         * lib/gc-gnulib.c: Likewise.
43136
43137 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43138
43139         * lib/gethostname.c: Include limits.h.
43140
43141 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43142             Bruno Haible  <bruno@clisp.org>
43143
43144         Ensure HOST_NAME_MAX as part of the gethostname module.
43145         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43146         define also HOST_NAME_MAX.
43147         * tests/test-gethostname.c: Include <limits.h>.
43148         (main): Check also HOST_NAME_MAX.
43149         * doc/posix-headers/limits.texi: Document the mingw problem.
43150
43151 2009-08-02  Bruno Haible  <bruno@clisp.org>
43152
43153         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43154         Add comments.
43155
43156 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43157
43158         * lib/gethostname.c: Add Windows wrapper.
43159         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43160         * modules/gethostname: Depend on sys_socket & errno, for also
43161         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43162         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43163
43164 2009-07-31  Jim Meyering  <meyering@redhat.com>
43165
43166         getloadavg: fix symbol name in comment
43167         * lib/getloadavg.c: Correct a typo I introduced when adding
43168         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43169         Matt Kraai spotted the problem.
43170
43171 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43172
43173         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43174         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43175         code also if ! defined N_NAME_POINTER.
43176         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43177         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43178         but the n_name member is a 12-byte array.
43179
43180 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43181
43182         update-copyright: generalize comment handling
43183         * build-aux/update-copyright: Handle copyright statements
43184         within more comment styles.
43185         Document usage.
43186         Report any file with an external copyright holder or parse failure.
43187
43188 2009-07-29  Jim Meyering  <meyering@redhat.com>
43189
43190         mktime: correct setting of REPLACE_MKTIME
43191         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43192
43193         update-copyright: new module
43194         * modules/update-copyright: New file.
43195         * build-aux/update-copyright: New file.
43196         * MODULES.html.sh (maint+release support): Add update-copyright.
43197
43198 2009-07-27  Bruno Haible  <bruno@clisp.org>
43199
43200         Fix compilation error when <ctime> is used and mktime is replaced.
43201         * lib/time.in.h (mktime): New declaration.
43202         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43203         REPLACE_MKTIME instead of defining mktime in config.h.
43204         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43205         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43206         Reported by Ross McFarland <rwmcfa1@neces.com>.
43207
43208 2009-07-27  Bruno Haible  <bruno@clisp.org>
43209
43210         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43211         Reported by Matt Kraai <mkraai@beckman.com>.
43212
43213 2009-07-25  Jim Meyering  <meyering@redhat.com>
43214
43215         maint.mk: avoid warnings about missing files
43216         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43217         diagnostic when .prev-version does not exist.
43218         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43219         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43220         nonexistent cfg.mk.
43221         Suggestions from Simon Josefsson.
43222
43223 2009-07-25  Bruno Haible  <bruno@clisp.org>
43224
43225         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43226         defined as macros. Needed on QNX 6.4.1.
43227         Reported by Matt Kraai <mkraai@beckman.com>.
43228
43229 2009-07-23  Jim Meyering  <meyering@redhat.com>
43230
43231         maint.mk: invoke "make dist" with a working value of XZ_OPT
43232         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43233
43234 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43235
43236         Make fseeko.c compile on QNX.
43237         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43238
43239 2009-07-22  Peter Simons  <simons@cryp.to>
43240
43241         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43242         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43243         * lib/md4.h: Likewise.
43244         * lib/md5.h: Likewise.
43245         * lib/sha1.h: Likewise.
43246         * lib/sha256.h: Likewise.
43247         * lib/sha512.h: Likewise.
43248
43249         tests-sha1: don't assign literal string to 'char *' variable
43250         * tests/test-sha1.c (main): Declare locals with "const" to match
43251         attributes of the right hand side.
43252
43253 2009-07-21  Eric Blake  <ebb9@byu.net>
43254
43255         dup2: fix more mingw problems
43256         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43257         fd to itself.
43258         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43259         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43260         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43261         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43262         care of mingw bugs.
43263
43264 2009-07-21  Jim Meyering  <meyering@redhat.com>
43265
43266         vc-list-files: avoid failure when /bin/sh is dash
43267         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43268         On some Debian based systems, /bin/sh is a symlink to dash, and running
43269         this command would omit the "/" following each 'tests' prefix:
43270           dash -x build-aux/vc-list-files -C . tests
43271         That is because bash and dash work differently:
43272           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43273           bash ok
43274           dash odd
43275
43276 2009-07-21  Eric Blake  <ebb9@byu.net>
43277
43278         dup2-tests: test previous patch
43279         * modules/dup2-tests: New file.
43280         * tests/test-dup2.c: Likewise.
43281         * tests/test-open.c (main): Avoid unspecified behavior.
43282         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43283         test.
43284
43285         dup2: work around mingw and cygwin 1.5 bug
43286         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43288         * modules/unistd (Makefile.am): Substitute it.
43289         * lib/unistd.in.h (dup2): Declare the replacement.
43290         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43291         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43292         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43293         * modules/execute (Depends-on): Add dup2.
43294         * modules/fseterr (Depends-on): Likewise.
43295         * modules/pipe (Depends-on): Likewise.
43296         * modules/posix_spawn-internal (Depends-on): Likewise.
43297
43298 2009-07-21  Bruno Haible  <bruno@clisp.org>
43299
43300         * modules/.gitattributes: New file.
43301
43302 2009-07-20  Bruno Haible  <bruno@clisp.org>
43303
43304         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43305         (main): Use it.
43306
43307 2009-07-20  Eric Blake  <ebb9@byu.net>
43308
43309         test-pipe: make a bit more robust.
43310         * tests/test-pipe.c (myerr): Allow error messages regardless of
43311         what we do to stderr.
43312         (test_pipe): Rearrange to avoid deadlock.
43313         (child_main): Try a larger read, to ensure we avoided deadlock.
43314         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43315         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43316         if misused.
43317
43318 2009-07-19  Jim Meyering  <meyering@redhat.com>
43319
43320         fts: avoid false-positive cycle-detection
43321         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43322         for each new command line argument.
43323
43324 2009-07-19  Bruno Haible  <bruno@clisp.org>
43325
43326         Fix build error on mingw with the modules sys_select and unistd.
43327         * modules/acl-tests (Depends-on): Add close.
43328         * modules/binary-io-tests (Depends-on): Likewise.
43329         * modules/closein-tests (Depends-on): Likewise.
43330         * modules/flock-tests (Depends-on): Likewise.
43331         * modules/fsync-tests (Depends-on): Likewise.
43332         * modules/lseek-tests (Depends-on): Likewise.
43333         * modules/pipe-tests (Depends-on): Likewise.
43334         * modules/posix_spawn-tests (Depends-on): Likewise.
43335         * modules/posix_spawnp-tests (Depends-on): Likewise.
43336         * modules/stat-time-tests (Depends-on): Likewise.
43337         * modules/yesno-tests (Depends-on): Likewise.
43338
43339 2009-07-19  Bruno Haible  <bruno@clisp.org>
43340
43341         Unify conditionals.
43342         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43343         macros, not at the compiler macros.
43344         * lib/pipe.c: Likewise.
43345         * lib/execute.c: Likewise.
43346         * lib/spawni.c: Likewise.
43347
43348 2009-07-19  Bruno Haible  <bruno@clisp.org>
43349
43350         Fix handling of closed stdin/stdout/stderr on mingw.
43351         * lib/w32spawn.h: Include unistd.h.
43352         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43353         file descriptor with O_NOINHERIT flag.
43354         (fd_safer_noinherit): New function, based on fd-safer.c.
43355         (dup_safer_noinherit): New function, based on dup-safer.c.
43356         (undup_safer_noinherit): New function.
43357         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43358         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43359         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43360         instead of fd_safer.
43361         * tests/test-pipe.c: Include <windows.h>.
43362         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43363         result.
43364
43365         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43366         from main.
43367         (test_pipe): Pass an extra argument for disambiguation.
43368         (main): Invoke parent_main or child_main.
43369
43370         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43371         consistently.
43372
43373 2009-07-18  Eric Blake  <ebb9@byu.net>
43374
43375         test-pipe: fix mingw build
43376         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43377
43378 2009-07-18  Bruno Haible  <bruno@clisp.org>
43379
43380         * modules/pipe-tests (Makefile.am): Fix typo.
43381
43382 2009-07-18  Eric Blake  <ebb9@byu.net>
43383
43384         error: fix mingw build
43385         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43386         Reported by Bruno Haible.
43387
43388         error: avoid undefined use of stdout
43389         * lib/error.c (error, error_at_line): Check that fd 1 is open
43390         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43391         is handling faults and the close_stdout module wants to report the
43392         detection of closed stdout as an error.
43393
43394 2009-07-17  Eric Blake  <ebb9@byu.net>
43395
43396         pipe: be robust in face of closed fds
43397         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43398         should cause child to misbehave.
43399         * modules/pipe-tests: New module.
43400         * tests/test-pipe.c: New file.
43401         * tests/test-pipe.sh: New file.
43402         Reported by Akim Demaille.
43403
43404 2009-07-14  Bruno Haible  <bruno@clisp.org>
43405
43406         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43407         Reported by anonymous kc.
43408
43409 2009-07-07  Jim Meyering  <meyering@redhat.com>
43410
43411         maint.mk: don't look for translatable strings in *.m4 or *.mk
43412         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43413         when searching for translatable strings.
43414
43415 2009-07-05  Jim Meyering  <meyering@redhat.com>
43416
43417         remove superfluous parentheses in STREQ definition
43418         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43419         * lib/getugroups.c (STREQ): Likewise.
43420         * lib/fnmatch.c (STREQ): Likewise.
43421         Spotted by Bruno Haible.
43422
43423 2009-07-04  Jim Meyering  <meyering@redhat.com>
43424
43425         argv-iter: new module
43426         * MODULES.html.sh: Add argv-iter.
43427         * lib/argv-iter.c, lib/argv-iter.h: New files.
43428         * modules/argv-iter: New file.
43429         * modules/argv-iter-tests: New file.
43430         * tests/test-argv-iter.c: Test it.
43431
43432 2009-07-04  Bruno Haible  <bruno@clisp.org>
43433
43434         Fix assertion.
43435         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43436         contains more exact copies of a given entry than file2, leave the extra
43437         copies unpaired rather than aborting.
43438         Reported by Eric Blake.
43439
43440 2009-07-02  Bruno Haible  <bruno@clisp.org>
43441
43442         Speedup git-merge-changelog for git cherry-pick.
43443         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43444         (entries_mapping_get): New function, extracted from compute_mapping.
43445         (entries_mapping_reverse_get): New function.
43446         (compute_mapping): Add a 'full' argument. Return the result in a
43447         'struct entries_mapping'.
43448         (main): Update. Access the mappings through entries_mapping_get.
43449         Reported by Eric Blake.
43450
43451 2009-07-02  Bruno Haible  <bruno@clisp.org>
43452
43453         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43454         best_i.
43455
43456 2009-07-02  Bruno Haible  <bruno@clisp.org>
43457
43458         Speed up approximate search for matching ChangeLog entries.
43459         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43460         argument. Call fstrcmp_bounded instead of fstrcmp.
43461         (compute_mapping, try_split_merged_entry, main): Update callers.
43462
43463 2009-07-02  Bruno Haible  <bruno@clisp.org>
43464
43465         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43466
43467 2009-06-30  Bruno Haible  <bruno@clisp.org>
43468
43469         Reduce the number of uc_is_cased calls.
43470         * lib/unicase.h (casing_suffix_context_t): Add
43471         'first_char_except_ignorable' field.
43472         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43473         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43474         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43475         Update initializer.
43476         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43477         case-ignorable characters.
43478         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43479         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43480         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43481         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43482         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43483
43484 2009-06-30  Bruno Haible  <bruno@clisp.org>
43485
43486         Tests for module 'unicase/ignorable'.
43487         * modules/unicase/ignorable-tests: New file.
43488         * tests/unicase/test-ignorable.c: New file, generated by
43489         gen-uni-tables.
43490
43491         Tests for module 'unicase/cased'.
43492         * modules/unicase/cased-tests: New file.
43493         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43494         * tests/unicase/test-predicate-part1.h: New file, derived from
43495         tests/unictype/test-predicate-part1.h.
43496         * tests/unicase/test-predicate-part2.h: New file, same as
43497         tests/unictype/test-predicate-part2.h.
43498
43499         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43500         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43501         (output_casing_properties): New function.
43502         (main): Call it.
43503         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43504         * lib/unicase/cased.c: Include unictype/bitmap.h.
43505         (uc_is_cased): Define through a bitmap lookup.
43506         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43507         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43508         (uc_is_case_ignorable): Define through a bitmap lookup.
43509         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43510         lib/unictype/bitmap.h.
43511         (Depends-on): Add inline. Clean up.
43512         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43513         lib/unictype/bitmap.h.
43514         (Depends-on): Add inline. Clean up.
43515         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43516         recognition.
43517         * tests/unicase/test-u16-tolower.c (main): Likewise.
43518         * tests/unicase/test-u32-tolower.c (main): Likewise.
43519
43520 2009-06-30  Bruno Haible  <bruno@clisp.org>
43521
43522         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43523         * lib/unicase/u16-casemap.c: Likewise.
43524         * lib/unicase/u32-casemap.c: Likewise.
43525
43526 2009-06-29  Bruno Haible  <bruno@clisp.org>
43527
43528         Define u32_casefold as a wrapper around u32_ct_casefold.
43529         * lib/unicase/u32-casefold.c: Update.
43530         * modules/unicase/u32-casefold (Depends-on): Add
43531         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43532         unicase/empty-suffix-context. Clean up.
43533
43534         Define u16_casefold as a wrapper around u16_ct_casefold.
43535         * lib/unicase/u16-casefold.c: Update.
43536         * modules/unicase/u16-casefold (Depends-on): Add
43537         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43538         unicase/empty-suffix-context. Clean up.
43539
43540         Define u8_casefold as a wrapper around u8_ct_casefold.
43541         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43542         * lib/unicase/u8-casefold.c: Update.
43543         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43544         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43545
43546         Define u32_totitle as a wrapper around u32_ct_totitle.
43547         * lib/unicase/u32-totitle.c: Update.
43548         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43549         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43550
43551         Define u16_totitle as a wrapper around u16_ct_totitle.
43552         * lib/unicase/u16-totitle.c: Update.
43553         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43554         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43555
43556         Define u8_totitle as a wrapper around u8_ct_totitle.
43557         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43558         functions.
43559         (FUNC): Delegate to U_CT_TOTITLE.
43560         * lib/unicase/u8-totitle.c: Update.
43561         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43562         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43563
43564         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43565         invocation.
43566         * modules/unicase/u32-tolower (Depends-on): Add
43567         unicase/empty-prefix-context, unicase/empty-suffix-context.
43568
43569         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43570         invocation.
43571         * modules/unicase/u16-tolower (Depends-on): Add
43572         unicase/empty-prefix-context, unicase/empty-suffix-context.
43573
43574         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43575         * modules/unicase/u8-tolower (Depends-on): Add
43576         unicase/empty-prefix-context, unicase/empty-suffix-context.
43577
43578         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43579         invocation.
43580         * modules/unicase/u32-toupper (Depends-on): Add
43581         unicase/empty-prefix-context, unicase/empty-suffix-context.
43582
43583         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43584         invocation.
43585         * modules/unicase/u16-toupper (Depends-on): Add
43586         unicase/empty-prefix-context, unicase/empty-suffix-context.
43587
43588         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43589         * modules/unicase/u8-toupper (Depends-on): Add
43590         unicase/empty-prefix-context, unicase/empty-suffix-context.
43591
43592         New module 'unicase/u32-ct-casefold'.
43593         * lib/unicase/u32-ct-casefold.c: New file.
43594         * modules/unicase/u32-ct-casefold: New file.
43595
43596         New module 'unicase/u16-ct-casefold'.
43597         * lib/unicase/u16-ct-casefold.c: New file.
43598         * modules/unicase/u16-ct-casefold: New file.
43599
43600         New module 'unicase/u8-ct-casefold'.
43601         * lib/unicase/u8-ct-casefold.c: New file.
43602         * lib/unicase/u-ct-casefold.h: New file, derived from
43603         lib/unicase/u-casefold.h.
43604         * modules/unicase/u8-ct-casefold: New file.
43605
43606         New module 'unicase/u32-ct-totitle'.
43607         * lib/unicase/u32-ct-totitle.c: New file.
43608         * modules/unicase/u32-ct-totitle: New file.
43609
43610         New module 'unicase/u16-ct-totitle'.
43611         * lib/unicase/u16-ct-totitle.c: New file.
43612         * modules/unicase/u16-ct-totitle: New file.
43613
43614         New module 'unicase/u8-ct-totitle'.
43615         * lib/unicase/u8-ct-totitle.c: New file.
43616         * lib/unicase/u-ct-totitle.h: New file, derived from
43617         lib/unicase/u-totitle.h.
43618         * modules/unicase/u8-ct-totitle: New file.
43619
43620         New module 'unicase/u32-ct-tolower'.
43621         * lib/unicase/u32-ct-tolower.c: New file.
43622         * modules/unicase/u32-ct-tolower: New file.
43623
43624         New module 'unicase/u16-ct-tolower'.
43625         * lib/unicase/u16-ct-tolower.c: New file.
43626         * modules/unicase/u16-ct-tolower: New file.
43627
43628         New module 'unicase/u8-ct-tolower'.
43629         * lib/unicase/u8-ct-tolower.c: New file.
43630         * modules/unicase/u8-ct-tolower: New file.
43631
43632         New module 'unicase/u32-ct-toupper'.
43633         * lib/unicase/u32-ct-toupper.c: New file.
43634         * modules/unicase/u32-ct-toupper: New file.
43635
43636         New module 'unicase/u16-ct-toupper'.
43637         * lib/unicase/u16-ct-toupper.c: New file.
43638         * modules/unicase/u16-ct-toupper: New file.
43639
43640         New module 'unicase/u8-ct-toupper'.
43641         * lib/unicase/u8-ct-toupper.c: New file.
43642         * modules/unicase/u8-ct-toupper: New file.
43643
43644         Add context arguments to u*_casemap functions.
43645         * lib/unicase/unicasemap.h: Include unicase.h.
43646         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43647         suffix_context arguments.
43648         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43649         functions.
43650         (FUNC): Add prefix_context and suffix_context arguments. Use
43651         uc_is_cased and uc_is_case_ignorable.
43652         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43653         * lib/unicase/u16-casemap.c: Likewise.
43654         * lib/unicase/u32-casemap.c: Likewise.
43655         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43656         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43657         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43658         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43659         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43660         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43661
43662         New module 'unicase/u32-suffix-context'.
43663         * lib/unicase/u32-suffix-context.c: New file.
43664         * modules/unicase/u32-suffix-context: New file.
43665
43666         New module 'unicase/u16-suffix-context'.
43667         * lib/unicase/u16-suffix-context.c: New file.
43668         * modules/unicase/u16-suffix-context: New file.
43669
43670         New module 'unicase/u8-suffix-context'.
43671         * lib/unicase/u8-suffix-context.c: New file.
43672         * lib/unicase/u-suffix-context.h: New file.
43673         * modules/unicase/u8-suffix-context: New file.
43674
43675         New module 'unicase/empty-suffix-context'.
43676         * lib/unicase/empty-suffix-context.c: New file.
43677         * modules/unicase/empty-suffix-context: New file.
43678
43679         New module 'unicase/u32-prefix-context'.
43680         * lib/unicase/u32-prefix-context.c: New file.
43681         * modules/unicase/u32-prefix-context: New file.
43682
43683         New module 'unicase/u16-prefix-context'.
43684         * lib/unicase/u16-prefix-context.c: New file.
43685         * modules/unicase/u16-prefix-context: New file.
43686
43687         New module 'unicase/u8-prefix-context'.
43688         * lib/unicase/u8-prefix-context.c: New file.
43689         * lib/unicase/u-prefix-context.h: New file.
43690         * lib/unicase/context.h: New file.
43691         * modules/unicase/u8-prefix-context: New file.
43692
43693         New module 'unicase/empty-prefix-context'.
43694         * lib/unicase/empty-prefix-context.c: New file.
43695         * modules/unicase/empty-prefix-context: New file.
43696
43697         New module 'unicase/ignorable'.
43698         * lib/unicase/ignorable.c: New file.
43699         * modules/unicase/ignorable: New file.
43700
43701         New module 'unicase/cased'.
43702         * lib/unicase/caseprop.h: New file.
43703         * lib/unicase/cased.c: New file.
43704         * modules/unicase/cased: New file.
43705
43706         New functions for case mapping of substrings.
43707         * lib/unicase.h (casing_prefix_context_t): New type.
43708         (unicase_empty_prefix_context): New variable.
43709         (u8_casing_prefix_context, u16_casing_prefix_context,
43710         u32_casing_prefix_context, u8_casing_prefixes_context,
43711         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43712         declarations.
43713         (casing_suffix_context_t): New type.
43714         (unicase_empty_suffix_context): New variable.
43715         (u8_casing_suffix_context, u16_casing_suffix_context,
43716         u32_casing_suffix_context, u8_casing_suffixes_context,
43717         u16_casing_suffixes_context, u32_casing_suffixes_context,
43718         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43719         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43720         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43721         declarations.
43722
43723 2009-06-28  Jim Meyering  <meyering@redhat.com>
43724
43725         boostrap: indent only with spaces
43726         * build-aux/bootstrap: Indent only with spaces, never TABs.
43727
43728         bootstrap: split long lines
43729         * build-aux/bootstrap: Keep line length < 80.
43730
43731         bootstrap: sync from coreutils
43732         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43733         just as autoreconf does.  Verify a list of prerequisite
43734         package-name,version-number pairs if defined in bootstrap.conf.
43735         Refer to README-prereq, if prerequisites are not satisfied.
43736
43737 2009-06-27  Eric Blake  <ebb9@byu.net>
43738
43739         tests: add test for bogus NULL definition
43740         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43741         * tests/test-stdlib.c: Likewise.
43742         * tests/test-string.c: Likewise.
43743         * tests/test-locale.c: Likewise.
43744         * tests/test-unistd.c: Likewise.
43745         * modules/stdio-tests (Depends-on): Add verify.
43746         * modules/stdlib-tests (Depends-on): Likewise.
43747         * modules/string-tests (Depends-on): Likewise.
43748         * modules/locale-tests (Depends-on): Likewise.
43749         * modules/unistd-tests (Depends-on): Likewise.
43750
43751 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43752
43753         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43754         self-explaining comment.
43755         * m4/selinux-selinux-h: Update serial.
43756         (gl_LIBSELINUX): New macro, adding a warning for missing development
43757         packages to code extracted from...
43758         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43759         Add warning for missing development packages here, too.
43760
43761 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43762
43763         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43764
43765 2009-06-25  Eric Blake  <ebb9@byu.net>
43766
43767         version-etc: fix regression
43768         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43769         gcc.
43770         (version_etc): Use it, to catch bugs with trailing NULL.
43771         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43772         (version_etc_va): Fix logic bug.
43773         * modules/version-etc-tests: Add test.
43774         * tests/test-version-etc.c: New file.
43775         * tests/test-version-etc.sh: Likewise.
43776
43777 2009-06-25  Sam Steingold  <sds@gnu.org>
43778
43779         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43780         mbtowc declaration.
43781
43782 2009-06-25  Eric Blake  <ebb9@byu.net>
43783
43784         fpurge: migrate into <stdio.h>
43785         * lib/fpurge.h: Delete...
43786         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43787         * lib/fpurge.c (fpurge): Change declaring header.
43788         * modules/fpurge (Files): Drop deleted file.
43789         (Depends-on): Add stdio.
43790         (configure.ac): Set witness.
43791         * modules/stdio (Makefile.am): Support fpurge macros.
43792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43793         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43794         * lib/fflush.c: Update client.
43795         * tests/test-fpurge.c: Likewise.
43796         * NEWS: Mention the change.
43797
43798 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43799
43800         * lib/argp-version-etc.c (program_authors): Add const
43801         qualifier.
43802         * lib/version-etc.c: Fix typos in the comments.
43803         * modules/argp-version-etc: Depends on version-etc.
43804
43805 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43806
43807         argp-version-etc: new module.
43808
43809         * lib/argp-version-etc.c: New file.
43810         * lib/argp-version-etc.h: New file.
43811         * modules/argp-version-etc: New file.
43812         * modules/argp-version-etc-tests: New file.
43813         * tests/test-argp-version-etc.c: New test.
43814         * tests/test-argp-version-etc-1.sh: New test.
43815
43816 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43817
43818         Provide additional interfaces and documentation for version-etc
43819         module.
43820
43821         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43822         interfaces.
43823         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43824         prototypes.
43825
43826 2009-06-24  Bruno Haible  <bruno@clisp.org>
43827
43828         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43829         HAVE_LIB${NAME} macro.
43830         Reported by Sam Steingold <sds@gnu.org>.
43831
43832 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43833
43834         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43835         needed.
43836
43837 2009-06-21  Bruno Haible  <bruno@clisp.org>
43838
43839         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43840         work.
43841         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43842         together with LIB${NAME}, LTLIB${NAME}.
43843         Reported by Sam Steingold <sds@gnu.org>.
43844
43845 2009-06-20  Jim Meyering  <meyering@redhat.com>
43846
43847         tests: make sc_require_test_exit_idiom more generic
43848         * top/maint.mk (Exit_witness_file): New overridable variable.
43849         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43850         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43851
43852 2009-06-19  Jim Meyering  <meyering@redhat.com>
43853
43854         hash: reverse order of src/dst parameters in an internal interface
43855         * lib/hash.c (transfer_entries): Reverse order of parameters to
43856         put DST before SRC.  Adjust callers.
43857
43858         tests: test-hash: avoid wholesale duplication
43859         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43860         Instead, use a loop and add a single conditional.
43861
43862         tests: test-hash: allow seed selection via a command line argument
43863         * tests/test-hash.c (get_seed): New function.
43864         (main): Use it.
43865
43866 2009-06-19  Eric Blake  <ebb9@byu.net>
43867
43868         hash: avoid memory leak on allocation failure
43869         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43870         failure.  Factor repeated algorithm...
43871         (transfer_entries): ...into new helper routine.
43872         (hash_delete): React to hash_rehash return value.
43873
43874         hash: reduce memory pressure in hash_rehash no-op case
43875         * lib/hash.c (next_prime): Avoid overflow.
43876         (hash_initialize): Factor bucket size computation...
43877         (compute_bucket_size): ...into new helper function.
43878         (hash_rehash): Use new function and open coding to reduce memory
43879         pressure, and avoid a memory leak in USE_OBSTACK code.
43880         Reported by Jim Meyering.
43881
43882 2009-06-18  Eric Blake  <ebb9@byu.net>
43883
43884         hash: make rotation more obvious
43885         * modules/hash (Depends-on): Add bitrotate and stdint.
43886         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43887         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43888         (SIZE_MAX): Rely on headers for definition.
43889         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43890         (raw_hasher): Use rotr_sz.
43891         Suggested by Jim Meyering.
43892
43893         hash: fix memory leak in last patch
43894         * lib/hash.c (hash_rehash): Avoid memory leak.
43895
43896         hash: avoid no-op rehashing
43897         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43898
43899         hash: provide default callback functions
43900         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43901         (hash_initialize): Use them as defaults.
43902         * tests/test-hash.c (main): Test this.
43903
43904         hash: minor optimization
43905         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43906         when possible.
43907         (hash_initialize): Document this promise.
43908         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43909         * tests/test-hash.c (hash_compare_strings): Test this.
43910
43911 2009-06-18  Bruno Haible  <bruno@clisp.org>
43912
43913         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43914         going to be replaced anyway.
43915
43916 2009-06-18  Bruno Haible  <bruno@clisp.org>
43917
43918         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43919         in one place.
43920         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43921         be replaced anyway.
43922
43923 2009-06-18  Eric Blake  <ebb9@byu.net>
43924
43925         hash: check for resize before insertion
43926         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43927         threshold before insertion, so that a pathological hash_rehash
43928         that fills every bucket can still trigger another rehash.
43929
43930 2009-06-18  Jim Meyering  <meyering@redhat.com>
43931
43932         hash-tests: add a loop around the small tests
43933         * tests/test-hash.c (main): Repeat small tests with selected
43934         small initial table sizes.
43935
43936 2009-06-17  Eric Blake  <ebb9@byu.net>
43937
43938         hash: minor cleanups
43939         * lib/hash.h (hash_entry): Make opaque, by moving...
43940         * lib/hash.c (hash_entry): ...here.
43941         (hash_insert): Clarify restrictions on what can be inserted.
43942         (hash_get_next): Clarify when it is safe to remove an element
43943         during traversal.
43944         (check_tuning): Skip verification when tuning is known safe.
43945         (hash_initialize): Clarify restrictions on tuning.
43946
43947 2009-06-17  Jim Meyering  <jim@meyering.net>
43948         and Eric Blake  <ebb9@byu.net>
43949
43950         hash-tests: new module
43951         * modules/hash-tests: New file.
43952         * tests/test-hash.c: New file.
43953
43954 2009-06-17  Eric Blake  <ebb9@byu.net>
43955
43956         strstr-simple: document new module
43957         * MODULES.html.sh: Document new module.
43958
43959         strstr, strcasestr: replace on platforms with broken memchr
43960         * modules/strstr: Split into...
43961         * modules/strstr-simple: ...new module that does not care about
43962         performance, but does care about glibc bug.
43963         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43964         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43965         if platform memchr is broken, per Debian bug 521737.
43966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43967         memchr.
43968         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43969         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43970         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43971         * modules/mountlist (Depends-on): Add strstr-simple.
43972         * modules/gen-uni-tables (Depends-on): Likewise.
43973         * modules/argz (Depends-on): Add strstr.
43974
43975 2009-06-17  Bruno Haible  <bruno@clisp.org>
43976
43977         * modules/posix_spawn-internal (Depends-on): Add errno.
43978
43979 2009-06-17  Bruno Haible  <bruno@clisp.org>
43980
43981         Define missing ESTALE on Interix 3.5.
43982         * lib/errno.in.h (ESTALE): Assign a value if missing.
43983         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43984         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43985         missing.
43986         * doc/posix-headers/errno.texi: Mention the Interix bug.
43987         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43988
43989 2009-06-15  Eric Blake  <ebb9@byu.net>
43990
43991         memchr, memchr2: add valgrind exception
43992         * lib/memchr.valgrind: New file.
43993         * lib/memchr2.valgrind: New file.
43994         * modules/memchr (Files): Distribute valgrind file.
43995         * modules/memchr2 (Files): Likewise.
43996
43997         docs: memchr is no longer obsolete
43998         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43999         * lib/string.in.h (memchr): Simplify logic.
44000
44001 2009-06-14  Jim Meyering  <meyering@redhat.com>
44002
44003         link-follow: fix the "checking..." message to not mention trailing slash
44004         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44005         never considered trailing slashes.
44006
44007 2009-06-14  Bruno Haible  <bruno@clisp.org>
44008
44009         * m4/memchr.m4: Mention also the bug on IA-64.
44010         * doc/posix-functions/memchr.texi: Likewise.
44011
44012 2009-06-12  Eric Blake  <ebb9@byu.net>
44013
44014         memchr: detect broken x86_64 and alpha implementations
44015         * modules/memchr-tests (Depends-on): Move mmap detection...
44016         * modules/memchr (Depends-on): ...here.
44017         (configure.ac): Set indicator.
44018         * lib/string.in.h (memchr): Declare replacement.
44019         * modules/string (Makefile.am): Trigger replacement.
44020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44021         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44022         bugs.
44023         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44024         * modules/getpagesize (License): Relax license.
44025
44026 2009-06-11  Bruno Haible  <bruno@clisp.org>
44027
44028         * lib/idpriv.h: Add more references.
44029
44030 2009-06-08  Bruno Haible  <bruno@clisp.org>
44031
44032         Tests for module 'idpriv-droptemp'.
44033         * modules/idpriv-droptemp-tests: New file.
44034         * tests/test-idpriv-droptemp.sh: New file.
44035         * tests/test-idpriv-droptemp.su.sh: New file.
44036         * tests/test-idpriv-droptemp.c: New file.
44037
44038         New module 'idpriv-droptemp'.
44039         * lib/idpriv-droptemp.c: New file.
44040         * modules/idpriv-droptemp: New file.
44041
44042 2009-06-08  Bruno Haible  <bruno@clisp.org>
44043
44044         Tests for module 'idpriv-drop'.
44045         * modules/idpriv-drop-tests: New file.
44046         * tests/test-idpriv-drop.sh: New file.
44047         * tests/test-idpriv-drop.su.sh: New file.
44048         * tests/test-idpriv-drop.c: New file.
44049
44050         New module 'idpriv-drop'.
44051         * lib/idpriv.h: New file.
44052         * lib-idpriv-drop.c: New file.
44053         * m4/idpriv.m4: New file.
44054         * modules/idpriv-drop: New file.
44055
44056 2009-06-08  Bruno Haible  <bruno@clisp.org>
44057
44058         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44059         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44060         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44061         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44062         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44063         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44064         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44065
44066 2009-06-08  Eric Blake  <ebb9@byu.net>
44067
44068         test-strstr: use memory fence, when possible
44069         * tests/test-strstr.c (main): Use memory fence, in order to be
44070         more likely to trigger Debian bug 521737.
44071         * modules/strstr-tests (Files): Pull in additional files.
44072
44073         memchr: no longer obsolete, for wider field testing
44074         * modules/memchr (Status, Notice): Delete, this module is no
44075         longer obsolete.
44076         * modules/vasnprintf (Depends-on): Add memchr.
44077
44078 2009-06-07  Jim Meyering  <meyering@redhat.com>
44079
44080         hash: declare some functions with the warn_unused_result attribute
44081         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44082
44083 2009-06-07  Bruno Haible  <bruno@clisp.org>
44084
44085         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44086         Reported by Eric Blake.
44087
44088 2009-06-06  Eric Blake  <ebb9@byu.net>
44089
44090         test-alignof: fix typo with long double
44091         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44092         compiler error.
44093
44094 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44095
44096         Escape non-texinfo { and }s.
44097         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44098         markup error.
44099
44100 2009-06-04  Jim Meyering  <meyering@redhat.com>
44101
44102         gitlog-to-changelog: don't infloop on an empty commit log
44103         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44104         Reported by Boris Petersen <transacid@centerim.org>.
44105
44106 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44107
44108         version-etc: extend for packagers
44109         Add three new configure options, intended for packagers:
44110           --with-packager="packager name"
44111           --with-packager-version="packager-specific version"
44112           --with-packager-bug-reports="packager bug reporting"
44113         An example with coreutils:
44114           $ ./configure \
44115             --with-packager=Gentoo \
44116             --with-packager-bug-report=http://bugs.gentoo.org/ \
44117             --with-packager-version="patchset 1.6"
44118           $ ./src/ls --version | head -n2
44119           ls (GNU coreutils) 7.1-dirty
44120           Packaged by Gentoo (patchset 1.6)
44121         Note that the bug reporting info via --help doesn't show up because
44122         coreutils uses its own custom emit_bug_reporting_address() implementation
44123         in src/system.h.  If it didn't, it'd look like:
44124           $ ./src/ls --help | tail -n4
44125           Report bugs to <bug-coreutils@gnu.org>.
44126           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44127           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44128           General help using GNU software: <http://www.gnu.org/gethelp/>.
44129         * lib/version-etc.c: Print new information, if provided.
44130         * m4/version-etc.m4: New file.
44131         * modules/version-etc (Files): Add m4/version-etc.m4.
44132         (configure.ac): Add gl_VERSION_ETC.
44133
44134 2009-05-31  Bruno Haible  <bruno@clisp.org>
44135
44136         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44137         and 'int64_t'.
44138         * modules/alignof-tests (Dependencies): Add stdint.
44139         Reported by Eric Blake.
44140
44141 2009-05-31  Bruno Haible  <bruno@clisp.org>
44142
44143         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44144         restriction due to compiler bugs.
44145         Reported by Eric Blake.
44146
44147 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44148             Bruno Haible  <bruno@clisp.org>
44149
44150         Fix test-alignof failure.
44151         * lib/alignof.h (alignof_slot): New macro.
44152         (alignof_type): New macro, with the same semantics as the previous
44153         'alignof'.
44154         (alignof): Alias to alignof_slot.
44155         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44156         check that the results are usable as constant expressions.
44157
44158 2009-05-31  Bruno Haible  <bruno@clisp.org>
44159
44160         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44161         * tests/test-memchr.c (main): Check that memchr does not read past the
44162         first occurrence of the byte.
44163         * tests/test-strstr.c (main): Update comment.
44164         Suggested by Eric Blake.
44165
44166 2009-05-30  Bruno Haible  <bruno@clisp.org>
44167
44168         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44169         detail how to use dumpbin.
44170         Reported by David Byron <dbyron@dbyron.com>.
44171
44172 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44173
44174         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44175
44176 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44177
44178         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44179
44180 2009-05-28  Bruno Haible  <bruno@clisp.org>
44181
44182         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44183         build-aux/ files.
44184
44185 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44186
44187         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44188
44189 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44190
44191         * gnulib-tool (sed_transform_main_lib_file)
44192         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44193         regexps.
44194
44195 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44196
44197         * tests/test-strstr.c: Add another self-test.
44198         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44199         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44200
44201 2009-05-23  Bruno Haible  <bruno@clisp.org>
44202
44203         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44204         change.
44205
44206 2009-05-21  Bruno Haible  <bruno@clisp.org>
44207
44208         Simplify use of mode_t varargs.
44209         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44210         uses 'mode_t' or 'int'.
44211         * lib/openat.c (openat): Likewise.
44212         * lib/open-safer.c (open_safer): Likewise.
44213         * m4/mode_t.m4: New file.
44214         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44215         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44216         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44217         * modules/open (Files): Add m4/mode_t.m4.
44218         * modules/openat (Files): Likewise.
44219         * modules/fcntl-safer (Files): Likewise.
44220         Suggested by Eric Blake.
44221
44222 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44223
44224         * doc/glibc-functions/fallocate.texi: New file.
44225         * doc/gnulib.texi: Include it.
44226
44227 2009-05-21  Eric Blake  <ebb9@byu.net>
44228             Bruno Haible  <bruno@clisp.org>
44229
44230         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44231         invocations.
44232         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44233
44234 2009-05-21  Eric Blake  <ebb9@byu.net>
44235             Bruno Haible  <bruno@clisp.org>
44236
44237         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44238         include_next. Fix of 2008-11-20 commit.
44239         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44240         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44241         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44242         NEXT_MATH_H.
44243         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44244         instead of NEXT_MATH_H.
44245
44246 2009-05-21  Bruno Haible  <bruno@clisp.org>
44247
44248         Avoid redefinition warnings for SIZE_MAX.
44249         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44250         Reported by Simon Josefsson.
44251
44252 2009-05-21  Bruno Haible  <bruno@clisp.org>
44253
44254         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44255         AC_CACHE_VAL.
44256
44257 2009-05-20  Bruno Haible  <bruno@clisp.org>
44258
44259         Make zeroptr.h work on mingw.
44260         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44261         mprotect.
44262         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44263         * modules/memchr2-tests (configure.ac): Likewise.
44264         * modules/memcmp-tests (configure.ac): Likewise.
44265         * modules/memmem-tests (configure.ac): Likewise.
44266         * modules/memrchr-tests (configure.ac): Likewise.
44267         Reported by Simon Josefsson.
44268
44269 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44270
44271         * tests/test-glob.c: Include string.h for strcmp prototype.
44272
44273 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44274
44275         * modules/getdelim (Depends-on): Add explicit stdint, although it
44276         was implicitly already pulled in via realloc-posix.
44277         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44278
44279 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44280
44281         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44282         G. Christensen" <tgc@jupiterrise.com>.
44283         * m4/sys_socket_h.m4: Check for sa_family_t.
44284         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44285         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44286         * tests/test-sys_socket.c: Check that sa_family_t works.
44287
44288 2009-05-18  Eric Blake  <ebb9@byu.net>
44289
44290         maint.mk: allow gnulib_dir in VPATH build
44291         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44292
44293 2009-05-15  Jim Meyering  <meyering@redhat.com>
44294
44295         maint.mk: Give gnulib_dir a default definition.
44296         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44297         Thus, most packages no longer need to specify this variable in cfg.mk
44298
44299 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44300
44301         rename.m4: fix typos that would make non-mingw cross-configure fail
44302         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44303
44304 2009-05-13  Eric Blake  <ebb9@byu.net>
44305
44306         mmap-anon: avoid out-of-order autoconf expansion
44307         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44308         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44309         * modules/memchr-tests (Depends-on): Add extensions.
44310         * modules/memchr2-tests (Depends-on): Add extensions.
44311         * modules/memcmp-tests (Depends-on): Add extensions.
44312         * modules/memmem-tests (Depends-on): Add extensions.
44313         * modules/memrchr-tests (Depends-on): Add extensions.
44314
44315 2009-05-13  Bruno Haible  <bruno@clisp.org>
44316
44317         Make some tests ISO C 99 compliant.
44318         * tests/zerosize-ptr.h: New file.
44319         * tests/test-memchr.c: Include zerosize-ptr.h.
44320         (main): Use a zero-size object pointer instead of NULL.
44321         * tests/test-memchr2.c: Include zerosize-ptr.h.
44322         (main): Use a zero-size object pointer instead of NULL.
44323         * tests/test-memcmp.c: Include zerosize-ptr.h.
44324         (main): Use a zero-size object pointer instead of NULL.
44325         * tests/test-memmem.c: Include zerosize-ptr.h.
44326         (main): Use a zero-size object pointer instead of NULL.
44327         * tests/test-memrchr.c: Include zerosize-ptr.h.
44328         (main): Use a zero-size object pointer instead of NULL.
44329         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44330         m4/mmap-anon.m4.
44331         (Depends-on): Add getpagesize.
44332         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44333         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44334         m4/mmap-anon.m4.
44335         (Depends-on): Add getpagesize.
44336         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44337         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44338         m4/mmap-anon.m4.
44339         (Depends-on): Add getpagesize.
44340         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44341         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44342         m4/mmap-anon.m4.
44343         (Depends-on): Add getpagesize.
44344         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44345         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44346         m4/mmap-anon.m4.
44347         (Depends-on): Add getpagesize.
44348         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44349
44350 2009-05-12  Bruno Haible  <bruno@clisp.org>
44351
44352         Tests for module 'alignof'.
44353         * modules/alignof-tests: New file.
44354         * tests/test-alignof.c: New file.
44355
44356 2009-05-12  Bruno Haible  <bruno@clisp.org>
44357
44358         Fix alignof macro.
44359         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44360         vendor compilers that are always correct.
44361
44362 2009-05-12  Bruno Haible  <bruno@clisp.org>
44363
44364         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44365         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44366         not whether its fully works.
44367
44368 2009-05-12  Bruno Haible  <bruno@clisp.org>
44369
44370         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44371
44372 2009-05-12  Jim Meyering  <meyering@redhat.com>
44373
44374         * top/maint.mk: Adjust backslash alignment.
44375
44376 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44377
44378         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44379
44380 2009-05-11  Eric Blake  <ebb9@byu.net>
44381
44382         argp: avoid undefined behavior
44383         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44384         macros.
44385
44386 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44387
44388         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44389         user.name to prevent git commit from complaining.
44390
44391 2009-05-10  Bruno Haible  <bruno@clisp.org>
44392
44393         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44394         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44395         it rewrites every file name only once.
44396         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44397
44398 2009-05-08  Bruno Haible  <bruno@clisp.org>
44399
44400         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44401         instead of 'max'.
44402
44403 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44404
44405         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44406         sockaddr_storage test.
44407
44408 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44409
44410         * modules/sys_socket (Makefile.am): Substitute
44411         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44412         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44413         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44414         * tests/test-sys_socket.c: Check sockaddr_storage.
44415
44416 2009-05-08  Bruno Haible  <bruno@clisp.org>
44417
44418         New module 'alignof'.
44419         * lib/alignof.h: New file.
44420         * modules/alignof: New file.
44421
44422 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44423             Bruno Haible  <bruno@clisp.org>
44424
44425         Fix test-file-has-acl on FreeBSD.
44426         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44427         mask is implicitly added.
44428         * tests/test-file-has-acl.c: Include <signal.h>.
44429         (main): Terminate the test after 5 seconds.
44430         * modules/acl-tests (configure.ac): Check for alarm function.
44431
44432 2009-05-04  Bruno Haible  <bruno@clisp.org>
44433
44434         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44435         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44436         * modules/errno (configure.ac): Drop AC_REQUIRE.
44437         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44438         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44439
44440 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44441
44442         * modules/glob-tests: New module.
44443         * tests/test-glob.c: Add.
44444
44445 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44446
44447         * modules/fnmatch-tests: New module.
44448         * tests/test-fnmatch.c: Add.
44449
44450 2009-05-04  Eric Blake  <ebb9@byu.net>
44451
44452         maint: make the new no-submodule-changes rule VPATH-safe
44453         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44454
44455 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44456             Bruno Haible  <bruno@clisp.org>
44457
44458         acl: Fix infinite loop on FreeBSD.
44459         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44460         of return value from acl_get_entry.
44461         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44462         Likewise.
44463
44464 2009-05-03  Bruno Haible  <bruno@clisp.org>
44465
44466         * lib/acl-internal.h (acl_entries): Clarify return value.
44467         * lib/acl_entries.c (acl_entries): Likewise.
44468
44469 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44470
44471         Bug fix in acl module.
44472         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44473
44474 2009-05-03  Bruno Haible  <bruno@clisp.org>
44475
44476         Create gperf-generated file in the source dir, not in the build dir.
44477         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44478         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44479         * modules/unicase/locale-language (unicase/locale-languages.h):
44480         Likewise.
44481         * modules/unicase/special-casing (unicase/special-casing-table.h):
44482         Likewise.
44483         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44484         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44485         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44486         Reported by Ralf Wildenhues.
44487
44488 2009-05-03  Bruno Haible  <bruno@clisp.org>
44489
44490         * modules/fnmatch (Description, configure.ac): Taken from
44491         fnmatch-posix.
44492         * modules/fnmatch-posix: Turn into a symbolic reference to the
44493         'fnmatch' module, and deprecate.
44494         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44495
44496 2009-05-03  Bruno Haible  <bruno@clisp.org>
44497
44498         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44499         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44500         Reported by Ralf Wildenhues.
44501
44502 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44503
44504         * m4/fnmatch.m4: Fix fnmatch re-define.
44505
44506 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44507
44508         priv-set: new module and tests; adapt write-any-file
44509         * lib/priv-set.c: New file.
44510         * lib/priv-set.h: New file.
44511         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44512         * lib/write-any-file.c: Simplify by using priv-set module.
44513         * m4/priv-set.m4: New file.
44514         * modules/priv-set: New file.
44515         * modules/unlinkdir: Add dependency on priv-set module.
44516         * modules/write-any-file: Likewise.
44517
44518         Tests for module 'priv-set'.
44519         * modules/priv-set-tests: New file.
44520         * tests/test-priv-set.c: New file.
44521
44522 2009-05-03  Jim Meyering  <meyering@redhat.com>
44523             Bruno Haible  <bruno@clisp.org>
44524
44525         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44526         use the converted UTF-8 variant of the name instead.
44527
44528 2009-05-03  Jim Meyering  <meyering@redhat.com>
44529
44530         tests: tighten some getdate tests
44531         * tests/test-getdate.c (main): Tighten tests: require equality,
44532         not just greater than.  Set TZ envvar to UTC0.
44533
44534 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44535
44536         getdate: correctly interpret "next monday" when run on a Monday
44537         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44538         that e.g., "next tues" (when run on a tuesday) results in a date
44539         that is one week in the future, and not today's date.
44540         I.e., add a week when the wday is the same as the current one.
44541         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44542         and earlier by Martin Bernreuther and Jan Minář.
44543         * tests/test-getdate.c (main): Check that "next DAY" is always in
44544         the future and that "last DAY" is always in the past.
44545
44546 2009-05-02  Jim Meyering  <meyering@redhat.com>
44547
44548         build: ensure that a release build fails when a submodule is unclean
44549         * top/maint.mk (no-submodule-changes): New rule.
44550         (alpha beta major): Depend on it.
44551
44552 2009-05-02  Bruno Haible  <bruno@clisp.org>
44553
44554         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44555         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44556         shell variable gl_fnmatch_required to detect which variant is
44557         requested.
44558         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44559         gl_FUNC_FNMATCH_POSIX.
44560         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44561         exclude fnmatch-posix.
44562
44563 2009-05-02  Bruno Haible  <bruno@clisp.org>
44564
44565         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44566         * modules/mbsrtowcs (License): Change to LGPLv2+.
44567         * modules/strnlen1 (License): Likewise.
44568         Reported by Simon Josefsson.
44569
44570 2009-05-02  Bruno Haible  <bruno@clisp.org>
44571
44572         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44573         "cross".
44574         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44575         gnulib-tool was called with option --source-base=lib.
44576
44577 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44578
44579         Use automake *-local hooks without commands, for extensibility.
44580         * modules/localcharset (Makefile.am): Rename install-exec-local
44581         rule to install-exec-localcharset, and make it a prerequisite of
44582         install-exec-local.  Likewise, rename the uninstall-local rule to
44583         uninstall-localcharset, and make it a prerequisite of the former.
44584
44585 2009-05-01  Bruno Haible  <bruno@clisp.org>
44586
44587         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44588         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44589         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44590         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44591         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44592         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44593         m4/locale-zh.m4, m4/codeset.m4.
44594
44595         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44596         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44597         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44598         m4/locale-zh.m4.
44599
44600         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44601         REPLACE_WCRTOMB if mbstate_t must be replaced.
44602         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44603         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44604
44605 2009-05-01  Bruno Haible  <bruno@clisp.org>
44606
44607         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44608         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44609         dngettext, dcngettext, textdomain, bindtextdomain,
44610         bind_textdomain_codeset): Undefine before redefining.
44611
44612 2009-04-30  Bruno Haible  <bruno@clisp.org>
44613
44614         Fix bug introduced on 2009-04-25.
44615         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44616         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44617         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44618         is defined.
44619         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44620         is defined.
44621         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44622         is defined.
44623         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44624
44625 2009-04-28  Bruno Haible  <bruno@clisp.org>
44626
44627         Comment tweaks.
44628         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44629         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44630         * lib/unicase.h (u*_casexfrm): Likewise.
44631         Reported by Paolo Bonzini.
44632
44633 2009-04-28  Bruno Haible  <bruno@clisp.org>
44634
44635         Fix a compilation error.
44636         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44637         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44638         Reported by Jim Meyering.
44639
44640 2009-04-27  Bruno Haible  <bruno@clisp.org>
44641
44642         New module 'libunistring'.
44643         * modules/libunistring: New file.
44644         * m4/libunistring.m4: New file.
44645         * MODULES.html.sh (Unicode string functions): Add it.
44646
44647 2009-04-27  Eric Blake  <ebb9@byu.net>
44648
44649         maint.mk: allow package-specific header to provide <config.h>
44650         * top/maint.mk (sc_require_config_h): New variable.
44651         (sc_require_config_h, sc_require_config_h_first): Use it.
44652
44653 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44654
44655         * top/maint.mk (sc_avoid_if_before_free): Except
44656         useless-if-before-free script.
44657
44658 2009-04-27  Eric Blake  <ebb9@byu.net>
44659
44660         maintainer-makefile: depend on all required helper scripts
44661         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44662         useless-if-before-free.
44663         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44664         version, rather than assuming gnulib checkout is available.
44665         Reported by Simen Josefsson.
44666
44667 2009-04-26  Bruno Haible  <bruno@clisp.org>
44668
44669         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44670         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44671         "../" or "..".
44672
44673 2009-04-26  Bruno Haible  <bruno@clisp.org>
44674
44675         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44676         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44677         AC_LIB_HAVE_LINKFLAGS.
44678
44679 2009-04-26  Bruno Haible  <bruno@clisp.org>
44680
44681         Simplify calling convention of u*_conv_from_encoding.
44682         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44683         u32_conv_from_encoding): Expect a resultbuf argument and return the
44684         result directly as a pointer.
44685         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44686         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44687         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44688         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44689         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44690         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44691         Update.
44692         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44693         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44694         * lib/vasnprintf.c (VASNPRINTF): Update.
44695         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44696         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44697         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44698         * NEWS: Mention the change.
44699
44700 2009-04-26  Bruno Haible  <bruno@clisp.org>
44701
44702         Simplify calling convention of u*_conv_to_encoding.
44703         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44704         u32_conv_to_encoding): Expect a resultbuf argument and return the
44705         result directly as a pointer.
44706         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44707         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44708         freeing scaled_offsets if mem_iconveha failed.
44709         * lib/unicase/u-casexfrm.h (FUNC): Update.
44710         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44711         * lib/vasnprintf.c (VASNPRINTF): Update.
44712         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44713         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44714         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44715         * NEWS: Mention the change.
44716
44717 2009-04-26  Bruno Haible  <bruno@clisp.org>
44718
44719         Avoid test failures on AIX and OSF/1.
44720         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44721         malloc(0).
44722         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44723         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44724         Likewise.
44725         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44726         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44727         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44728         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44729         * doc/posix-functions/malloc.texi: Document the portability problem
44730         related to malloc(0).
44731
44732 2009-04-26  Bruno Haible  <bruno@clisp.org>
44733
44734         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44735         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44736         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44737
44738 2009-04-25  Bruno Haible  <bruno@clisp.org>
44739
44740         Avoid link error when creating a namespace clean library.
44741         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44742         as macro with arguments if already defined as an alias.
44743         * lib/signbitf.c (gl_signbitf): Don't undefine.
44744         * lib/signbitd.c (gl_signbitd): Don't undefine.
44745         * lib/signbitl.c (gl_signbitl): Don't undefine.
44746
44747 2009-04-25  Jim Meyering  <meyering@redhat.com>
44748
44749         vc-list-files: fix another quoting bug
44750         * build-aux/vc-list-files: Avoid sed backslash expansion
44751         of pathological directory names.
44752
44753 2009-04-25  Eric Blake  <ebb9@byu.net>
44754
44755         vc-list-files: fix shell quoting error
44756         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44757         timestamp.
44758
44759 2009-04-25  Jim Meyering  <meyering@redhat.com>
44760
44761         vc-list-files: restore lost functionality with subdir argument
44762         * build-aux/vc-list-files: When given a non-"." sub-directory
44763         argument, substitute the $dir/ prefix back onto each resulting name.
44764         Otherwise, coreutils' root_tests check would fail.
44765
44766 2009-04-24  Eric Blake  <ebb9@byu.net>
44767
44768         vc-list-files: ignore git symlinks
44769         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44770         than ls-files, to ignore git symlinks.
44771
44772         maint.mk: import improvements from m4
44773         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44774         (move_if_change): Delete unused macro.
44775         (news-date-check, vc-diff-check): Support VPATH builds.
44776         (announcement): Likewise.  Split --bootstrap-tools list...
44777         (boostrap-tools): ...into separate list, which can be overridden
44778         in cfg.mk.
44779         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44780         requiring dependency on useless-if-before-free module.
44781         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44782         Support VPATH builds.
44783
44784 2009-04-24  Jim Meyering  <meyering@redhat.com>
44785
44786         maint.mk: remove coreutils-specific rules and variables
44787         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44788         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44789         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44790
44791         maint.mk: remove obsolete rule
44792         * top/maint.mk (rel-check): Remove rule.
44793         (WGET, WGETFLAGS): Remove now-unused variables.
44794
44795 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44796
44797         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44798         consistency.
44799
44800         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44801         '$(PATH_SEPARATOR)' instead of ':'.
44802
44803 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44804
44805         * lib/getopt1.c (main): Use 'const' for static array.
44806
44807 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44808
44809         * top/maint.mk: Sync with coreutils.
44810         * NEWS: Explain incompatibilities.
44811
44812 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44813             Bruno Haible  <bruno@clisp.org>
44814
44815         Fix cross-compilation results.
44816         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44817         statement, as third argument of AC_TRY_RUN.
44818         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44819         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44820         Likewise.
44821         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44822         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44823         Likewise.
44824         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44825         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44826         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44827
44828 2009-04-20  Bruno Haible  <bruno@clisp.org>
44829
44830         Avoid test failure on mingw.
44831         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44832
44833 2009-04-20  Bruno Haible  <bruno@clisp.org>
44834
44835         Avoid compilation error on mingw.
44836         * modules/localename-tests (Depends-on): Add locale.
44837
44838 2009-04-19  Bruno Haible  <bruno@clisp.org>
44839
44840         Support for building a shared library on Windows platforms.
44841         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44842         (main): Test the presence of UNINORM_NFC here.
44843         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44844         (main): Test the presence of UNINORM_NFD here.
44845         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44846         (main): Test the presence of UNINORM_NFKC here.
44847         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44848         (main): Test the presence of UNINORM_NFKD here.
44849
44850 2009-04-19  Bruno Haible  <bruno@clisp.org>
44851
44852         Avoid a compiler warning.
44853         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44854         Change type of variable 'sequence'.
44855
44856 2009-04-19  Bruno Haible  <bruno@clisp.org>
44857
44858         * modules/configmake (Makefile.am): When the contents of configmake.h
44859         does not change, arrange to preserve its modification time.
44860
44861 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44862
44863         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44864         gettext domain.
44865
44866 2009-04-16  Jim Meyering  <meyering@redhat.com>
44867
44868         useless-if-before-free: improve conversion code
44869         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44870         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44871
44872 2009-04-14  Bruno Haible  <bruno@clisp.org>
44873
44874         * modules/fcntl (Depends-on): Add extensions.
44875         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44876
44877 2009-04-12  Ben Pfaff  <blp@gnu.org>
44878
44879         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44880         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44881
44882 2009-03-20  Ben Pfaff  <blp@gnu.org>
44883
44884         Make rename replace existing destinations on Windows.
44885         * m4/rename.m4: Add test for Mingw.
44886         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44887         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44888         * doc/posix-functions/rename.texi: Document.
44889
44890 2009-04-10  Bruno Haible  <bruno@clisp.org>
44891
44892         New include file "iconveh.h".
44893         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44894         * lib/striconveh.h: Include it.
44895         (enum iconv_ilseq_handler): Remove definition.
44896         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44897         striconveh.h.
44898         * lib/striconveha.c: Include striconveh.h.
44899         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44900         * modules/striconveh (Files): Add lib/iconveh.h.
44901         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44902         lib/striconveh.h.
44903
44904 2009-04-10  Bruno Haible  <bruno@clisp.org>
44905
44906         * lib/uniconv.h: Update comment.
44907
44908 2009-04-10  Bruno Haible  <bruno@clisp.org>
44909
44910         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44911         always.
44912         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44913         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44914         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44915         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44916         "unistring-notinline.h", so that the function gets defined always.
44917         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44918         * lib/unistr/u8-uctomb.c: Likewise.
44919         * lib/unistr/u16-mbtouc.c: Likewise.
44920         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44921         * lib/unistr/u16-uctomb.c: Likewise.
44922         * lib/unistr/u32-mbtouc.c: Likewise.
44923         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44924         * lib/unistr/u32-uctomb.c: Likewise.
44925
44926 2009-04-10  Bruno Haible  <bruno@clisp.org>
44927
44928         Mark 'utime' obsolete.
44929         * modules/utime (Status, Notice): New sections.
44930         Suggested by Jim Meyering.
44931
44932         Fix cross-compile guess for utime test.
44933         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44934         autoconf.
44935         * doc/posix-functions/utime.texi: Give more precisions.
44936         Reported by Jan <ipif@ymail.com>.
44937
44938 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44939
44940         filevercmp: correct today's change
44941         * lib/filevercmp.c: Also handle coreutils' test inputs.
44942         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44943
44944         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44945         for reporting it.
44946         * lib/filevercmp.c: Special handle for "", "." and "..".
44947         * tests/test-filevercmp.c: Enlarge the set suite.
44948
44949 2009-04-07  Jim Meyering  <meyering@redhat.com>
44950
44951         useless-if-before-free: show how to remove braced useless free, too
44952         * build-aux/useless-if-before-free: still only in a comment, though.
44953
44954 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44955
44956         maint.mk: import changes to syntax-check macros from coreutils
44957         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44958         Use them in the relevant macros.
44959
44960 2009-04-06  Bruno Haible  <bruno@clisp.org>
44961
44962         Fix unportable use of bit-fields.
44963         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44964         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44965         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44966
44967 2009-04-06  Bruno Haible  <bruno@clisp.org>
44968
44969         Avoid test failures on AIX and OSF/1.
44970         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44971         that malloc(0) = NULL.
44972         * tests/unicase/test-u8-tolower.c (check): Likewise.
44973         * tests/unicase/test-u8-totitle.c (check): Likewise.
44974         * tests/unicase/test-u8-toupper.c (check): Likewise.
44975         * tests/unicase/test-u16-casefold.c (check): Likewise.
44976         * tests/unicase/test-u16-tolower.c (check): Likewise.
44977         * tests/unicase/test-u16-totitle.c (check): Likewise.
44978         * tests/unicase/test-u16-toupper.c (check): Likewise.
44979         * tests/unicase/test-u32-casefold.c (check): Likewise.
44980         * tests/unicase/test-u32-tolower.c (check): Likewise.
44981         * tests/unicase/test-u32-totitle.c (check): Likewise.
44982         * tests/unicase/test-u32-toupper.c (check): Likewise.
44983         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44984         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44985         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44986         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44987         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44988         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44989         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44990         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44991         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44992         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44993         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44994         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44995
44996 2009-04-05  Bruno Haible  <bruno@clisp.org>
44997
44998         Work around an autoconf limitation.
44999         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45000         comment line if it would be longer than 3 KB.
45001
45002 2009-04-05  Bruno Haible  <bruno@clisp.org>
45003
45004         Avoid test failure with libiconv-1.13.
45005         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45006         of the expected test results.
45007
45008 2009-04-05  Bruno Haible  <bruno@clisp.org>
45009
45010         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45011         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45012         that it should be installed.
45013
45014 2009-04-05  Bruno Haible  <bruno@clisp.org>
45015
45016         * gnulib-tool: New option --copy-file.
45017         (func_usage): Document it.
45018         (func_dest_tmpfilename): Moved out of func_import.
45019         (func_add_file, func_update_file): New functions, extracted from
45020         func_import.
45021         (func_import): Update.
45022
45023 2009-04-05  Karl Berry  <karl@gnu.org>
45024
45025         * README: prominently mention gnulib-tool.
45026         Rearrange sections so getting the code is near the top.
45027
45028 2009-04-05  Bruno Haible  <bruno@clisp.org>
45029
45030         * lib/unicase.h: Mention u*_cmp2.
45031         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45032         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45033         * lib/unicase/ulc-casecmp.c: Likewise.
45034         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45035         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45036         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45037         unistr/u8-cmp.
45038         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45039         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45040         unistr/u16-cmp.
45041         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45042         unistr/u32-cmp.
45043
45044         * lib/uninorm.h: Mention u*_cmp2.
45045         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45046         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45047         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45048         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45049         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45050         unistr/u8-cmp.
45051         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45052         unistr/u16-cmp.
45053         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45054         unistr/u32-cmp.
45055
45056         New module 'unistr/u32-cmp2'.
45057         * lib/unistr/u32-cmp2.c: New file.
45058         * modules/unistr/u32-cmp2: New file.
45059
45060         New module 'unistr/u16-cmp2'.
45061         * lib/unistr/u16-cmp2.c: New file.
45062         * modules/unistr/u16-cmp2: New file.
45063
45064         New module 'unistr/u8-cmp2'.
45065         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45066         * lib/unistr/u8-cmp2.c: New file.
45067         * lib/unistr/u-cmp2.h: New file.
45068         * modules/unistr/u8-cmp2: New file.
45069
45070 2009-04-05  Bruno Haible  <bruno@clisp.org>
45071
45072         * lib/unictype.h (uc_property_is_valid): New macro.
45073         * tests/unictype/test-pr_byname.c (main): Use it.
45074
45075         * lib/unistr.h: Doc fixes.
45076         * lib/uniconv.h: Doc fixes.
45077         * lib/unictype.h: Doc fixes.
45078
45079 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45080
45081         Port coreutils 7.2 to Solaris 8.
45082
45083         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45084         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45085         for Solaris 8.  This is a bit of a hack, as it means it's the
45086         caller's responsibility to add -lnsl if needed, but most likely it
45087         won't be needed since only getaddrinfo uses this and getaddrinfo
45088         isn't needed on Solaris 8.
45089
45090         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45091         problem to Solaris 8 encountered with coreutils 7.2, which
45092         resulted in a message "fnmatch.c:292: warning: passing argument 4
45093         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45094         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45095
45096 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45097
45098         * m4/ld-version-script.m4: Add FIXME comment.
45099
45100 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45101
45102         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45103         SOVERSION variable.
45104
45105 2009-04-02  Bruno Haible  <bruno@clisp.org>
45106
45107         * Makefile (info, html, dvi, pdf): Combine the rules.
45108         Suggested by Jim Meyering.
45109
45110 2009-04-01  Bruno Haible  <bruno@clisp.org>
45111
45112         * Makefile (info, html, dvi, pdf): New targets.
45113         Reported by Reuben Thomas <rrt@sc3d.org>.
45114
45115 2009-04-01  Bruno Haible  <bruno@clisp.org>
45116
45117         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45118         can be put into PATH.
45119         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45120
45121 2009-04-01  Bruno Haible  <bruno@clisp.org>
45122
45123         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45124
45125 2009-04-01  Bruno Haible  <bruno@clisp.org>
45126
45127         Rename module 'visibility'.
45128         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45129         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45130         * doc/gnulib.texi: Update.
45131         * MODULES.html.sh (Misc): Update.
45132         * NEWS: Mention the change.
45133
45134 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45135
45136         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45137         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45138         Eric Blake <ebb9@byu.net> for review.
45139         * MODULES.html.sh: Add lib-msvc-compat.
45140         * doc/gnulib.texi: Link to new section.
45141         * m4/ld-output-def.m4: New file.
45142         * doc/ld-output-def.texi: New file.
45143
45144 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45145
45146         Rename ld-version-script to lib-symbol-versions.  Suggested by
45147         Bruno Haible <bruno@clisp.org>.
45148         * modules/ld-version-script: Renamed to lib-symbol-versions.
45149         * doc/ld-version-script.texi: Fix module name.
45150         * MODULES.html.sh: Add lib-symbol-versions.
45151
45152 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45153
45154         * modules/u64-tests: New file.
45155         * tests/test-u64.c: New file.
45156
45157 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45158
45159         * MODULES.html.sh: Mention u64.
45160         * modules/u64: New module.
45161         * modules/crypto/sha512: Depend on u64 module instead of providing
45162         u64.h.
45163
45164 2009-03-27  Eric Blake  <ebb9@byu.net>
45165
45166         test-strerror: make debugging EAI_SYSTEM easier
45167         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45168         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45169         failure was EAI_SYSTEM.
45170
45171 2009-03-25  Bruno Haible  <bruno@clisp.org>
45172
45173         Fix a problem with --enable-relocatable on Solaris 7.
45174         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45175         since 2008-02-24.
45176
45177 2009-03-25  Eric Blake  <ebb9@byu.net>
45178
45179         test-sockets: avoid gcc warning
45180         * tests/test-sockets.c (main): Silence compiler warning.
45181
45182 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45183
45184         New modules nproc, pthread, contributed by Glen Lenker.
45185
45186         * MODULES.html.sh: Add pthread, nproc.
45187         * lib/nproc.c: New file.
45188         * lib/nproc.h: New file.
45189         * lib/pthread.in.h: New file.
45190         * m4/pthread.m4: New file.
45191         * modules/nproc: New file.
45192         * modules/pthread: New file.
45193
45194 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45195
45196         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45197         New variable.
45198
45199 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45200
45201         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45202         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45203         * tests/test-filevercmp.c: Add tests for backup suffixes.
45204
45205 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45206
45207         * modules/stdlib (Depends-on): Add stdint, needed when defining
45208         struct random_data on, for example, HP-UX 10.20.  Reported by
45209         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45210
45211 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45212
45213         * lib/readline.c (readline): Call fflush on stdout after printing
45214         prompt.
45215
45216 2009-03-20  Bruno Haible  <bruno@clisp.org>
45217
45218         Remove dependency from 'close' module to -lws2_32 on native Windows.
45219         * lib/close-hook.h: New file.
45220         * lib/close-hook.c: New file.
45221         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45222         w32sock.h.
45223         (_gl_close_fd_maybe_socket): Remove function.
45224         (rpl_close): Invoke execute_all_close_hooks instead of
45225         _gl_close_fd_maybe_socket.
45226         * lib/sockets.c: Include close-hook.h, w32sock.h.
45227         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45228         (close_sockets_hook): New variable.
45229         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45230         (gl_sockets_cleanup): Unregister it.
45231         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45232         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45233         * modules/close-hook: New file.
45234         * modules/close (Files): Remove lib/w32sock.h.
45235         (Depends-on): Add close-hook.
45236         (Link): Remove section.
45237         * modules/sockets (Files): Add lib/w32sock.h.
45238         (Depends-on): Add close-hook.
45239         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45240         invocation.
45241         * NEWS: Mention that LIB_CLOSE is gone.
45242
45243 2009-03-23  Eric Blake  <ebb9@byu.net>
45244
45245         signal-tests: test previous patch
45246         * tests/test-signal.c: New file.
45247         * modules/signal-tests: Likewise.
45248
45249         signal.h: always support 'volatile sig_atomic_t'
45250         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45251         (gl_SIGNAL_H_DEFAULTS): Add a default.
45252         * modules/signal (Makefile.am): Substitute if needed.
45253         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45254         users can blindly add volatile.
45255         * doc/posix-headers/signal.texi (signal.h): Document it.
45256         Reported by Matthew Woehlke.
45257
45258 2009-03-23  Jim Meyering  <meyering@redhat.com>
45259
45260         pathmax: PATH_MAX: use pathconf only when available
45261         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45262         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45263         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45264         This avoids a link failure in a PSP cross-compilation environment
45265         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45266
45267         * lib/vasnprintf.c (divide): Fix typo in comment.
45268
45269 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45270
45271         * gnulib-tool (func_filter_filelist): Fix comment.
45272
45273 2009-03-20  Bruno Haible  <bruno@clisp.org>
45274
45275         Make sockets.h self-contained.
45276         * lib/sockets.c: Include sockets.h first.
45277         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45278
45279 2009-03-19  Eric Blake  <ebb9@byu.net>
45280
45281         doc: mention more functions added in cygwin 1.7.0
45282         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45283         addition.
45284         * doc/posix-functions/log2f.texi: Likewise.
45285
45286 2009-03-19  Jim Meyering  <meyering@redhat.com>
45287
45288         fsusage: avoid syntax error due to statement-before-declaration
45289         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45290         after all declarations.  Reported by Matthew Woehlke in
45291         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45292
45293 2009-03-18  Eric Blake  <ebb9@byu.net>
45294
45295         build-aux/compile: sync from automake
45296         * build-aux/compile: New file, from automake.
45297         * config/srclist.txt: Mention build-aux/compile.
45298
45299 2009-03-17  Bruno Haible  <bruno@clisp.org>
45300
45301         * lib/git-merge-changelog.c: Fix typo in comment.
45302         Reported by Reuben Thomas <rrt@sc3d.org>.
45303
45304 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45305
45306         * m4/regex.m4: update and improve help for
45307         --without-included-regex.
45308
45309 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45310
45311         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45312         failure on missing include files.
45313
45314 2009-03-17  Eric Blake  <ebb9@byu.net>
45315
45316         doc: mention more functions added in cygwin 1.7.0
45317         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45318         addition.
45319         * doc/posix-functions/fwscanf.texi: Likewise.
45320         * doc/posix-functions/swprintf.texi: Likewise.
45321         * doc/posix-functions/swscanf.texi: Likewise.
45322         * doc/posix-functions/vfwprintf.texi: Likewise.
45323         * doc/posix-functions/vfwscanf.texi: Likewise.
45324         * doc/posix-functions/vswprintf.texi: Likewise.
45325         * doc/posix-functions/vswscanf.texi: Likewise.
45326         * doc/posix-functions/vwprintf.texi: Likewise.
45327         * doc/posix-functions/vwscanf.texi: Likewise.
45328         * doc/posix-functions/wcscasecmp.texi: Likewise.
45329         * doc/posix-functions/wcsdup.texi: Likewise.
45330         * doc/posix-functions/wcsftime.texi: Likewise.
45331         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45332         * doc/posix-functions/wprintf.texi: Likewise.
45333         * doc/posix-functions/wscanf.texi: Likewise.
45334         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45335
45336 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45337
45338         maint.mk: really add $(AM_MAKEFLAGS)
45339         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45340         was inadvertently omitted in the last commit.
45341         Spotted by Bruno Haible.
45342
45343         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45344         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45345         $(AM_MAKEFLAGS)' rather than plain `make'.
45346
45347         gnulib-tool: execute $MAKE not make
45348         * gnulib-tool: Default $MAKE to 'make'.
45349         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45350         than make.  Initialize $MAKE in the do-autobuild script.
45351
45352         gnulib-tool: use $MAKE not make in generated files
45353         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45354         make, in generated files.  Initialize $MAKE in the do-autobuild
45355         script.
45356
45357         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45358
45359         GNUmakefile: disable parallelism only for multiple, recursive targets
45360         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45361         additions in the Makefile.
45362         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45363         by Automake.
45364         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45365         are listed on the command line and at least one of them is
45366         listed in $(ALL_RECURSIVE_TARGETS).
45367
45368 2009-03-14  Bruno Haible  <bruno@clisp.org>
45369
45370         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45371         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45372         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45373         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45374         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45375         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45376         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45377         unistr/u8-uctomb.
45378         * modules/unistr/u8-strchr (Depends-on): Likewise.
45379         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45380         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45381         unistr/u16-uctomb.
45382         * modules/unistr/u16-strchr (Depends-on): Likewise.
45383         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45384
45385 2009-03-12  Bruno Haible  <bruno@clisp.org>
45386
45387         Work around select() bug on Interix 3.5.
45388         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45389         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45390         * m4/select.m4: New file.
45391         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45392         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45393         * modules/select (Files): Add m4/select.m4.
45394         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45395         * modules/nanosleep (Depends-on): Add select.
45396         * modules/poll (Depends-on): Likewise.
45397         * doc/posix-functions/select.texi: Mention the Interix bug.
45398         Reported by Markus Duft <mduft@gentoo.org>.
45399
45400         * lib/select.c: Renamed from lib/winsock-select.c.
45401         * modules/select (Files): Add lib/select.c, remove
45402         lib/winsock-select.c.
45403         (configure.ac): Update.
45404
45405 2009-03-12  Jim Meyering  <meyering@redhat.com>
45406
45407         avoid gcc warnings about unused macro definitions
45408         * lib/readtokens.c (STREQ): Remove unused definition.
45409         * lib/xmalloc.c (SIZE_MAX): Likewise.
45410         * lib/openat-die.c (N_): Likewise.
45411         * lib/mountlist.c (SIZE_MAX): Remove definition.
45412         Instead, include <stdint.h>.
45413         * lib/readutmp.c: Likewise.
45414         * modules/readutmp (Depends-on): Add stdint.
45415         * modules/mountlist (Depends-on): Add stdint.
45416         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45417
45418 2009-03-10  Bruno Haible  <bruno@clisp.org>
45419
45420         Tests for module 'mbmemcasecoll'.
45421         * modules/mbmemcasecoll-tests: New file.
45422         * tests/test-mbmemcasecoll1.sh: New file.
45423         * tests/test-mbmemcasecoll2.sh: New file.
45424         * tests/test-mbmemcasecoll3.sh: New file.
45425         * tests/test-mbmemcasecoll.c: New file.
45426
45427         New module 'mbmemcasecoll'.
45428         * lib/mbmemcasecoll.h: New file.
45429         * lib/mbmemcasecoll.c: New file.
45430         * modules/mbmemcasecoll: New file.
45431
45432         * tests/test-mbmemcasecmp.h: New file, extracted from
45433         tests/test-mbmemcasecmp.c.
45434         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45435         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45436         (main): Update.
45437         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45438
45439 2009-03-09  Bruno Haible  <bruno@clisp.org>
45440
45441         Tests for module 'mbmemcasecmp'.
45442         * modules/mbmemcasecmp-tests: New file.
45443         * tests/test-mbmemcasecmp1.sh: New file.
45444         * tests/test-mbmemcasecmp2.sh: New file.
45445         * tests/test-mbmemcasecmp3.sh: New file.
45446         * tests/test-mbmemcasecmp.c: New file.
45447
45448         New module 'mbmemcasecmp'.
45449         * lib/mbmemcasecmp.h: New file.
45450         * lib/mbmemcasecmp.c: New file.
45451         * modules/mbmemcasecmp: New file.
45452
45453 2009-03-09  Bruno Haible  <bruno@clisp.org>
45454
45455         Tests for module 'unicase/ulc-casecoll'.
45456         * modules/unicase/ulc-casecoll-tests: New file.
45457         * tests/unicase/test-ulc-casecoll1.sh: New file.
45458         * tests/unicase/test-ulc-casecoll2.sh: New file.
45459         * tests/unicase/test-ulc-casecoll.c: New file.
45460
45461         New module 'unicase/ulc-casecoll'.
45462         * lib/unicase.h (ulc_casecoll): New declaration.
45463         * lib/unicase/ulc-casecoll.c: New file.
45464         * modules/unicase/ulc-casecoll: New file.
45465
45466         New module 'unicase/ulc-casexfrm'.
45467         * lib/unicase.h (ulc_casexfrm): New declaration.
45468         * lib/unicase/ulc-casexfrm.c: New file.
45469         * modules/unicase/ulc-casexfrm: New file.
45470
45471 2009-03-09  Bruno Haible  <bruno@clisp.org>
45472
45473         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45474         invocations.
45475
45476         * m4/mbscasecmp.m4: Remove file.
45477         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45478         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45479
45480         * m4/mbscasestr.m4: Remove file.
45481         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45482         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45483
45484         * m4/mbschr.m4: Remove file.
45485         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45486         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45487
45488         * m4/mbscspn.m4: Remove file.
45489         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45490         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45491
45492         * m4/mbslen.m4: Remove file.
45493         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45494         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45495
45496         * m4/mbsncasecmp.m4: Remove file.
45497         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45498         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45499
45500         * m4/mbsnlen.m4: Remove file.
45501         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45502         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45503
45504         * m4/mbspbrk.m4: Remove file.
45505         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45506         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45507
45508         * m4/mbspcasecmp.m4: Remove file.
45509         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45510         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45511
45512         * m4/mbsrchr.m4: Remove file.
45513         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45514         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45515
45516         * m4/mbssep.m4: Remove file.
45517         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45518         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45519
45520         * m4/mbsspn.m4: Remove file.
45521         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45522         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45523
45524         * m4/mbsstr.m4: Remove file.
45525         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45526         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45527
45528         * m4/mbstok_r.m4: Remove file.
45529         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45530         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45531
45532         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45533
45534         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45535         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45536
45537         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45538
45539 2009-03-08  Bruno Haible  <bruno@clisp.org>
45540
45541         Tests for module 'unicase/ulc-casecmp'.
45542         * modules/unicase/ulc-casecmp-tests: New file.
45543         * tests/unicase/test-ulc-casecmp1.sh: New file.
45544         * tests/unicase/test-ulc-casecmp2.sh: New file.
45545         * tests/unicase/test-ulc-casecmp.c: New file.
45546
45547         New module 'unicase/ulc-casecmp'.
45548         * lib/unicase.h (ulc_casecmp): New declaration.
45549         * lib/unicase/ulc-casecmp.c: New file.
45550         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45551         'const SRC_UNIT *'.
45552         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45553         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45554         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45555         * modules/unicase/ulc-casecmp: New file.
45556
45557         Tests for module 'unicase/u32-is-cased'.
45558         * modules/unicase/u32-is-cased-tests: New file.
45559         * tests/unicase/test-u32-is-cased.c: New file.
45560
45561         Tests for module 'unicase/u16-is-cased'.
45562         * modules/unicase/u16-is-cased-tests: New file.
45563         * tests/unicase/test-u16-is-cased.c: New file.
45564
45565         Tests for module 'unicase/u8-is-cased'.
45566         * modules/unicase/u8-is-cased-tests: New file.
45567         * tests/unicase/test-u8-is-cased.c: New file.
45568         * tests/unicase/test-is-cased.h: New file.
45569
45570         New module 'unicase/u32-is-cased'.
45571         * lib/unicase/u32-is-cased.c: New file.
45572         * modules/unicase/u32-is-cased: New file.
45573
45574         New module 'unicase/u16-is-cased'.
45575         * lib/unicase/u16-is-cased.c: New file.
45576         * modules/unicase/u16-is-cased: New file.
45577
45578         New module 'unicase/u8-is-cased'.
45579         * lib/unicase/u8-is-cased.c: New file.
45580         * lib/unicase/u-is-cased.h: New file.
45581         * modules/unicase/u8-is-cased: New file.
45582
45583         Tests for module 'unicase/u32-is-casefolded'.
45584         * modules/unicase/u32-is-casefolded-tests: New file.
45585         * tests/unicase/test-u32-is-casefolded.c: New file.
45586
45587         Tests for module 'unicase/u16-is-casefolded'.
45588         * modules/unicase/u16-is-casefolded-tests: New file.
45589         * tests/unicase/test-u16-is-casefolded.c: New file.
45590
45591         Tests for module 'unicase/u8-is-casefolded'.
45592         * modules/unicase/u8-is-casefolded-tests: New file.
45593         * tests/unicase/test-u8-is-casefolded.c: New file.
45594         * tests/unicase/test-is-casefolded.h: New file.
45595
45596         New module 'unicase/u32-is-casefolded'.
45597         * lib/unicase/u32-is-casefolded.c: New file.
45598         * modules/unicase/u32-is-casefolded: New file.
45599
45600         New module 'unicase/u16-is-casefolded'.
45601         * lib/unicase/u16-is-casefolded.c: New file.
45602         * modules/unicase/u16-is-casefolded: New file.
45603
45604         New module 'unicase/u8-is-casefolded'.
45605         * lib/unicase/u8-is-casefolded.c: New file.
45606         * modules/unicase/u8-is-casefolded: New file.
45607
45608         Tests for module 'unicase/u32-is-titlecase'.
45609         * modules/unicase/u32-is-titlecase-tests: New file.
45610         * tests/unicase/test-u32-is-titlecase.c: New file.
45611
45612         Tests for module 'unicase/u16-is-titlecase'.
45613         * modules/unicase/u16-is-titlecase-tests: New file.
45614         * tests/unicase/test-u16-is-titlecase.c: New file.
45615
45616         Tests for module 'unicase/u8-is-titlecase'.
45617         * modules/unicase/u8-is-titlecase-tests: New file.
45618         * tests/unicase/test-u8-is-titlecase.c: New file.
45619         * tests/unicase/test-is-titlecase.h: New file.
45620
45621         New module 'unicase/u32-is-titlecase'.
45622         * lib/unicase/u32-is-titlecase.c: New file.
45623         * modules/unicase/u32-is-titlecase: New file.
45624
45625         New module 'unicase/u16-is-titlecase'.
45626         * lib/unicase/u16-is-titlecase.c: New file.
45627         * modules/unicase/u16-is-titlecase: New file.
45628
45629         New module 'unicase/u8-is-titlecase'.
45630         * lib/unicase/u8-is-titlecase.c: New file.
45631         * modules/unicase/u8-is-titlecase: New file.
45632
45633         Tests for module 'unicase/u32-is-lowercase'.
45634         * modules/unicase/u32-is-lowercase-tests: New file.
45635         * tests/unicase/test-u32-is-lowercase.c: New file.
45636
45637         Tests for module 'unicase/u16-is-lowercase'.
45638         * modules/unicase/u16-is-lowercase-tests: New file.
45639         * tests/unicase/test-u16-is-lowercase.c: New file.
45640
45641         Tests for module 'unicase/u8-is-lowercase'.
45642         * modules/unicase/u8-is-lowercase-tests: New file.
45643         * tests/unicase/test-u8-is-lowercase.c: New file.
45644         * tests/unicase/test-is-lowercase.h: New file.
45645
45646         New module 'unicase/u32-is-lowercase'.
45647         * lib/unicase/u32-is-lowercase.c: New file.
45648         * modules/unicase/u32-is-lowercase: New file.
45649
45650         New module 'unicase/u16-is-lowercase'.
45651         * lib/unicase/u16-is-lowercase.c: New file.
45652         * modules/unicase/u16-is-lowercase: New file.
45653
45654         New module 'unicase/u8-is-lowercase'.
45655         * lib/unicase/u8-is-lowercase.c: New file.
45656         * modules/unicase/u8-is-lowercase: New file.
45657
45658         Tests for module 'unicase/u32-is-uppercase'.
45659         * modules/unicase/u32-is-uppercase-tests: New file.
45660         * tests/unicase/test-u32-is-uppercase.c: New file.
45661
45662         Tests for module 'unicase/u16-is-uppercase'.
45663         * modules/unicase/u16-is-uppercase-tests: New file.
45664         * tests/unicase/test-u16-is-uppercase.c: New file.
45665
45666         Tests for module 'unicase/u8-is-uppercase'.
45667         * modules/unicase/u8-is-uppercase-tests: New file.
45668         * tests/unicase/test-u8-is-uppercase.c: New file.
45669         * tests/unicase/test-is-uppercase.h: New file.
45670
45671         New module 'unicase/u32-is-uppercase'.
45672         * lib/unicase/u32-is-uppercase.c: New file.
45673         * modules/unicase/u32-is-uppercase: New file.
45674
45675         New module 'unicase/u16-is-uppercase'.
45676         * lib/unicase/u16-is-uppercase.c: New file.
45677         * modules/unicase/u16-is-uppercase: New file.
45678
45679         New module 'unicase/u8-is-uppercase'.
45680         * lib/unicase/u8-is-uppercase.c: New file.
45681         * modules/unicase/u8-is-uppercase: New file.
45682
45683         New module 'unicase/u32-is-invariant'.
45684         * lib/unicase/u32-is-invariant.c: New file.
45685         * modules/unicase/u32-is-invariant: New file.
45686
45687         New module 'unicase/u16-is-invariant'.
45688         * lib/unicase/u16-is-invariant.c: New file.
45689         * modules/unicase/u16-is-invariant: New file.
45690
45691         New module 'unicase/u8-is-invariant'.
45692         * lib/unicase/u8-is-invariant.c: New file.
45693         * lib/unicase/invariant.h: New file.
45694         * lib/unicase/u-is-invariant.h: New file.
45695         * modules/unicase/u8-is-invariant: New file.
45696
45697         Tests for module 'unicase/u32-casecoll'.
45698         * modules/unicase/u32-casecoll-tests: New file.
45699         * tests/unicase/test-u32-casecoll.c: New file.
45700
45701         Tests for module 'unicase/u16-casecoll'.
45702         * modules/unicase/u16-casecoll-tests: New file.
45703         * tests/unicase/test-u16-casecoll.c: New file.
45704
45705         Tests for module 'unicase/u8-casecoll'.
45706         * modules/unicase/u8-casecoll-tests: New file.
45707         * tests/unicase/test-u8-casecoll.c: New file.
45708
45709         New module 'unicase/u32-casecoll'.
45710         * lib/unicase/u32-casecoll.c: New file.
45711         * modules/unicase/u32-casecoll: New file.
45712
45713         New module 'unicase/u16-casecoll'.
45714         * lib/unicase/u16-casecoll.c: New file.
45715         * modules/unicase/u16-casecoll: New file.
45716
45717         New module 'unicase/u8-casecoll'.
45718         * lib/unicase/u8-casecoll.c: New file.
45719         * lib/unicase/u-casecoll.h: New file.
45720         * modules/unicase/u8-casecoll: New file.
45721
45722         New module 'unicase/u32-casexfrm'.
45723         * lib/unicase/u32-casexfrm.c: New file.
45724         * modules/unicase/u32-casexfrm: New file.
45725
45726         New module 'unicase/u16-casexfrm'.
45727         * lib/unicase/u16-casexfrm.c: New file.
45728         * modules/unicase/u16-casexfrm: New file.
45729
45730         New module 'unicase/u8-casexfrm'.
45731         * lib/unicase/u8-casexfrm.c: New file.
45732         * lib/unicase/u-casexfrm.h: New file.
45733         * modules/unicase/u8-casexfrm: New file.
45734
45735         Tests for module 'unicase/u32-casecmp'.
45736         * modules/unicase/u32-casecmp-tests: New file.
45737         * tests/unicase/test-u32-casecmp.c: New file.
45738
45739         Tests for module 'unicase/u16-casecmp'.
45740         * modules/unicase/u16-casecmp-tests: New file.
45741         * tests/unicase/test-u16-casecmp.c: New file.
45742
45743         Tests for module 'unicase/u8-casecmp'.
45744         * modules/unicase/u8-casecmp-tests: New file.
45745         * tests/unicase/test-u8-casecmp.c: New file.
45746         * tests/unicase/test-casecmp.h: New file.
45747
45748         New module 'unicase/u32-casecmp'.
45749         * lib/unicase/u32-casecmp.c: New file.
45750         * modules/unicase/u32-casecmp: New file.
45751
45752         New module 'unicase/u16-casecmp'.
45753         * lib/unicase/u16-casecmp.c: New file.
45754         * modules/unicase/u16-casecmp: New file.
45755
45756         New module 'unicase/u8-casecmp'.
45757         * lib/unicase/u8-casecmp.c: New file.
45758         * lib/unicase/u-casecmp.h: New file.
45759         * modules/unicase/u8-casecmp: New file.
45760
45761         Tests for module 'unicase/u32-casefold'.
45762         * modules/unicase/u32-casefold-tests: New file.
45763         * tests/unicase/test-u32-casefold.c: New file.
45764
45765         Tests for module 'unicase/u16-casefold'.
45766         * modules/unicase/u16-casefold-tests: New file.
45767         * tests/unicase/test-u16-casefold.c: New file.
45768
45769         Tests for module 'unicase/u8-casefold'.
45770         * modules/unicase/u8-casefold-tests: New file.
45771         * tests/unicase/test-u8-casefold.c: New file.
45772
45773         New module 'unicase/u32-casefold'.
45774         * lib/unicase/u32-casefold.c: New file.
45775         * modules/unicase/u32-casefold: New file.
45776
45777         New module 'unicase/u16-casefold'.
45778         * lib/unicase/u16-casefold.c: New file.
45779         * modules/unicase/u16-casefold: New file.
45780
45781         New module 'unicase/u8-casefold'.
45782         * lib/unicase/u8-casefold.c: New file.
45783         * lib/unicase/u-casefold.h: New file.
45784         * modules/unicase/u8-casefold: New file.
45785
45786         New module 'unicase/tocasefold'.
45787         * lib/unicase/casefold.h: New file.
45788         * lib/unicase/tocasefold.c: New file.
45789         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45790         * modules/unicase/tocasefold: New file.
45791
45792         Tests for module 'unicase/u32-totitle'.
45793         * modules/unicase/u32-totitle-tests: New file.
45794         * tests/unicase/test-u32-totitle.c: New file.
45795
45796         Tests for module 'unicase/u16-totitle'.
45797         * modules/unicase/u16-totitle-tests: New file.
45798         * tests/unicase/test-u16-totitle.c: New file.
45799
45800         Tests for module 'unicase/u8-totitle'.
45801         * modules/unicase/u8-totitle-tests: New file.
45802         * tests/unicase/test-u8-totitle.c: New file.
45803
45804         New module 'unicase/u32-totitle'.
45805         * lib/unicase/u32-totitle.c: New file.
45806         * modules/unicase/u32-totitle: New file.
45807
45808         New module 'unicase/u16-totitle'.
45809         * lib/unicase/u16-totitle.c: New file.
45810         * modules/unicase/u16-totitle: New file.
45811
45812         New module 'unicase/u8-totitle'.
45813         * lib/unicase/u8-totitle.c: New file.
45814         * lib/unicase/u-totitle.h: New file.
45815         * modules/unicase/u8-totitle: New file.
45816
45817         Tests for module 'unicase/u32-tolower'.
45818         * modules/unicase/u32-tolower-tests: New file.
45819         * tests/unicase/test-u32-tolower.c: New file.
45820
45821         Tests for module 'unicase/u16-tolower'.
45822         * modules/unicase/u16-tolower-tests: New file.
45823         * tests/unicase/test-u16-tolower.c: New file.
45824
45825         Tests for module 'unicase/u8-tolower'.
45826         * modules/unicase/u8-tolower-tests: New file.
45827         * tests/unicase/test-u8-tolower.c: New file.
45828
45829         New module 'unicase/u32-tolower'.
45830         * lib/unicase/u32-tolower.c: New file.
45831         * modules/unicase/u32-tolower: New file.
45832
45833         New module 'unicase/u16-tolower'.
45834         * lib/unicase/u16-tolower.c: New file.
45835         * modules/unicase/u16-tolower: New file.
45836
45837         New module 'unicase/u8-tolower'.
45838         * lib/unicase/u8-tolower.c: New file.
45839         * modules/unicase/u8-tolower: New file.
45840
45841         Tests for module 'unicase/u32-toupper'.
45842         * modules/unicase/u32-toupper-tests: New file.
45843         * tests/unicase/test-u32-toupper.c: New file.
45844
45845         Tests for module 'unicase/u16-toupper'.
45846         * modules/unicase/u16-toupper-tests: New file.
45847         * tests/unicase/test-u16-toupper.c: New file.
45848
45849         Tests for module 'unicase/u8-toupper'.
45850         * modules/unicase/u8-toupper-tests: New file.
45851         * tests/unicase/test-u8-toupper.c: New file.
45852
45853         New module 'unicase/u32-toupper'.
45854         * lib/unicase/u32-toupper.c: New file.
45855         * modules/unicase/u32-toupper: New file.
45856
45857         New module 'unicase/u16-toupper'.
45858         * lib/unicase/u16-toupper.c: New file.
45859         * modules/unicase/u16-toupper: New file.
45860
45861         New module 'unicase/u8-toupper'.
45862         * lib/unicase/u8-toupper.c: New file.
45863         * modules/unicase/u8-toupper: New file.
45864
45865         New module 'unicase/u32-casemap'.
45866         * lib/unicase/u32-casemap.c: New file.
45867         * modules/unicase/u32-casemap: New file.
45868
45869         New module 'unicase/u16-casemap'.
45870         * lib/unicase/u16-casemap.c: New file.
45871         * modules/unicase/u16-casemap: New file.
45872
45873         New module 'unicase/u8-casemap'.
45874         * lib/unicase/unicasemap.h: New file.
45875         * lib/unicase/u8-casemap.c: New file.
45876         * lib/unicase/u-casemap.h: New file.
45877         * modules/unicase/u8-casemap: New file.
45878
45879         New module 'unicase/special-casing'.
45880         * lib/unicase/special-casing.h: New file.
45881         * lib/unicase/special-casing.c: New file.
45882         * lib/unicase/special-casing-table.gperf: New file, generated by
45883         gen-uni-tables.c.
45884         * modules/unicase/special-casing: New file.
45885
45886         Tests for module 'unicase/locale-language'.
45887         * modules/unicase/locale-language-tests: New file.
45888         * tests/unicase/test-locale-language.sh: New file.
45889         * tests/unicase/test-locale-language.c: New file.
45890
45891         New module 'unicase/locale-language'.
45892         * lib/unicase/locale-language.c: New file.
45893         * lib/unicase/locale-languages.gperf: New file.
45894         * modules/unicase/locale-language: New file.
45895
45896         Generate more tables for case conversion and case folding.
45897         * lib/gen-uni-tables.c (SCC_*): New enum items.
45898         (struct special_casing_rule): New type.
45899         (casing_rules, num_casing_rules, allocated_casing_rules): New
45900         variables.
45901         (add_casing_rule, fill_casing_rules): New functions.
45902         (struct casefold_rule): New type.
45903         (casefolding_rules, num_casefolding_rules,
45904         allocated_casefolding_rules): New variables.
45905         (fill_casefolding_rules): New function.
45906         (unicode_casefold): New variable.
45907         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45908         sort_casing_rules, output_casing_rules): New functions.
45909         (main): Accept to more arguments: SpecialCasing.txt and
45910         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45911         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45912         Output mapping for casefolding.
45913
45914         * lib/unicase.h: Include stdbool.h, uninorm.h.
45915         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45916         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45917         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45918         arguments.
45919         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45920         resultp arguments.
45921         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45922         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45923         resultp arguments.
45924         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45925         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45926         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45927         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45928         declarations.
45929         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45930
45931 2009-03-08  Bruno Haible  <bruno@clisp.org>
45932
45933         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45934         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45935         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45936         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45937
45938 2009-03-07  Bruno Haible  <bruno@clisp.org>
45939
45940         Adjust u*_normcmp, u*_normcoll API.
45941         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45942         u16_normcoll, u32_normcoll): Change failure conventions.
45943         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45944         errno and return -1.
45945         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45946
45947 2009-03-07  Bruno Haible  <bruno@clisp.org>
45948
45949         Tests for module 'uninorm/u32-normcoll'.
45950         * modules/uninorm/u32-normcoll-tests: New file.
45951         * tests/uninorm/test-u32-normcoll.c: New file.
45952
45953         Tests for module 'uninorm/u16-normcoll'.
45954         * modules/uninorm/u16-normcoll-tests: New file.
45955         * tests/uninorm/test-u16-normcoll.c: New file.
45956
45957         Tests for module 'uninorm/u8-normcoll'.
45958         * modules/uninorm/u8-normcoll-tests: New file.
45959         * tests/uninorm/test-u8-normcoll.c: New file.
45960
45961 2009-03-07  Bruno Haible  <bruno@clisp.org>
45962
45963         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45964         tests/uninorm/test-u32-normcmp.c.
45965         * tests/uninorm/test-u32-normcmp.c: Include it.
45966         (test_nonascii): New function, extracted from main. Add some more
45967         tests.
45968         (main): Invoke test_ascii and test_nonascii.
45969         * modules/uninorm/u32-normcmp-tests (Files): Add
45970         tests/uninorm/test-u32-normcmp.h.
45971         (Depends-on): Remove uninorm/u32-normcmp.
45972
45973         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45974         tests/uninorm/test-u16-normcmp.c.
45975         * tests/uninorm/test-u16-normcmp.c: Include it.
45976         (test_nonascii): New function, extracted from main. Add some more
45977         tests.
45978         (main): Invoke test_ascii and test_nonascii.
45979         * modules/uninorm/u16-normcmp-tests (Files): Add
45980         tests/uninorm/test-u16-normcmp.h.
45981         (Depends-on): Remove uninorm/u16-normcmp.
45982
45983         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45984         tests/uninorm/test-u8-normcmp.c.
45985         * tests/uninorm/test-u8-normcmp.c: Include it.
45986         (test_nonascii): New function, extracted from main. Add some more
45987         tests.
45988         (main): Invoke test_ascii and test_nonascii.
45989         * modules/uninorm/u8-normcmp-tests (Files): Add
45990         tests/uninorm/test-u8-normcmp.h.
45991         (Depends-on): Remove uninorm/u8-normcmp.
45992
45993 2009-03-07  Bruno Haible  <bruno@clisp.org>
45994
45995         New module 'uninorm/u32-normcoll'.
45996         * lib/uninorm/u32-normcoll.c: New file.
45997         * modules/uninorm/u32-normcoll: New file.
45998
45999         New module 'uninorm/u16-normcoll'.
46000         * lib/uninorm/u16-normcoll.c: New file.
46001         * modules/uninorm/u16-normcoll: New file.
46002
46003         New module 'uninorm/u8-normcoll'.
46004         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46005         declarations.
46006         * lib/uninorm/u8-normcoll.c: New file.
46007         * lib/uninorm/u-normcoll.h: New file.
46008         * modules/uninorm/u8-normcoll: New file.
46009
46010         New module 'uninorm/u32-normxfrm'.
46011         * lib/uninorm/u32-normxfrm.c: New file.
46012         * modules/uninorm/u32-normxfrm: New file.
46013
46014         New module 'uninorm/u16-normxfrm'.
46015         * lib/uninorm/u16-normxfrm.c: New file.
46016         * modules/uninorm/u16-normxfrm: New file.
46017
46018         New module 'uninorm/u8-normxfrm'.
46019         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46020         declarations.
46021         * lib/uninorm/u8-normxfrm.c: New file.
46022         * lib/uninorm/u-normxfrm.h: New file.
46023         * modules/uninorm/u8-normxfrm: New file.
46024
46025 2009-03-07  Bruno Haible  <bruno@clisp.org>
46026
46027         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46028         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46029         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46030
46031 2009-03-07  Bruno Haible  <bruno@clisp.org>
46032
46033         New module 'memxfrm'.
46034         * lib/memxfrm.h: New file.
46035         * lib/memxfrm.c: New file.
46036         * modules/memxfrm: New file.
46037
46038 2009-03-07  Bruno Haible  <bruno@clisp.org>
46039
46040         New module 'memcmp2'.
46041         * lib/memcmp2.h: New file.
46042         * lib/memcmp2.c: New file.
46043         * modules/memcmp2: New file.
46044
46045 2009-03-07  Bruno Haible  <bruno@clisp.org>
46046
46047         Tests for module 'uninorm/decomposing-form'.
46048         * modules/uninorm/decomposing-form-tests: New file.
46049         * tests/uninorm/test-decomposing-form.c: New file.
46050
46051         New module 'uninorm/decomposing-form'.
46052         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46053         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46054         Add 'decomposing_variant' field.
46055         * lib/uninorm/decomposing-form.c: New file.
46056         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46057         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46058         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46059         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46060         * modules/uninorm/decomposing-form: New file.
46061         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46062         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46063
46064 2009-03-07  Bruno Haible  <bruno@clisp.org>
46065
46066         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46067         strings.
46068
46069 2009-03-06  Bruno Haible  <bruno@clisp.org>
46070
46071         Tests for module 'uninorm/u32-normcmp'.
46072         * tests/uninorm/test-u32-normcmp.c: New file.
46073         * modules/uninorm/u32-normcmp-tests: New file.
46074
46075         Tests for module 'uninorm/u16-normcmp'.
46076         * tests/uninorm/test-u16-normcmp.c: New file.
46077         * modules/uninorm/u16-normcmp-tests: New file.
46078
46079         Tests for module 'uninorm/u8-normcmp'.
46080         * tests/uninorm/test-u8-normcmp.c: New file.
46081         * modules/uninorm/u8-normcmp-tests: New file.
46082
46083         New module 'uninorm/u32-normcmp'.
46084         * lib/uninorm/u32-normcmp.c: New file.
46085         * modules/uninorm/u32-normcmp: New file.
46086
46087         New module 'uninorm/u16-normcmp'.
46088         * lib/uninorm/u16-normcmp.c: New file.
46089         * modules/uninorm/u16-normcmp: New file.
46090
46091         New module 'uninorm/u8-normcmp'.
46092         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46093         declarations.
46094         * lib/uninorm/u8-normcmp.c: New file.
46095         * lib/uninorm/u-normcmp.h: New file.
46096         * modules/uninorm/u8-normcmp: New file.
46097
46098 2009-03-06  Bruno Haible  <bruno@clisp.org>
46099
46100         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46101         Reported by Eric Blake.
46102
46103 2009-03-06  Eric Blake  <ebb9@byu.net>
46104             Bruno Haible  <bruno@clisp.org>
46105
46106         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46107         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46108         condition.
46109         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46110         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46111         condition.
46112         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46113
46114 2009-03-06  Eric Blake  <ebb9@byu.net>
46115
46116         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46117         to avoid compiler warnings.
46118         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46119
46120 2009-03-05  Bruno Haible  <bruno@clisp.org>
46121
46122         * tests/test-ftell.c (main): Disable test beyond end of file on
46123         FreeMiNT.
46124         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46125
46126 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46127
46128         * lib/filevercmp.c: Move hidden files up in ordering.
46129         * tests/test-filevercmp.c: Add tests for hidden files.
46130
46131 2009-03-04  Bruno Haible  <bruno@clisp.org>
46132
46133         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46134         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46135         AM_CFLAGS.
46136         Reported by Simon Josefsson.
46137
46138 2009-03-03  Bruno Haible  <bruno@clisp.org>
46139
46140         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46141         Reported by Simon Josefsson.
46142
46143         * doc/ld-version-script.texi: Update node reference.
46144
46145 2009-03-03  Bruno Haible  <bruno@clisp.org>
46146
46147         * modules/visibility (License): Change to 'unlimited'.
46148         Suggested by Simon Josefsson.
46149
46150 2009-03-03  Jim Meyering  <meyering@redhat.com>
46151
46152         unlinkdir: cannot_unlink_dir may modify process state
46153         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46154         it's neither thread-safe nor appropriate for use in a library.
46155
46156 2009-03-03  Eric Blake  <ebb9@byu.net>
46157
46158         test-closein: silence test under Darwin
46159         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46160         care if it dies from EPIPE or EBADF.
46161
46162 2009-03-03  Bruno Haible  <bruno@clisp.org>
46163
46164         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46165         earlier.
46166         * doc/visibility.texi: Fix @node and @section.
46167
46168 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46169
46170         * doc/gnulib.texi: Link to sections for ld version script and
46171         visibility.
46172         * doc/visibility.texi: Add @node and @section.
46173         * modules/ld-version-script: New module.
46174         * m4/ld-version-script.m4: New file.
46175         * doc/ld-version-script.texi: New file.
46176
46177 2009-03-02  David Lutterkort  <lutter@redhat.com>
46178
46179         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46180         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46181
46182 2009-03-02  Bruno Haible  <bruno@clisp.org>
46183
46184         * doc/visibility.texi: Mention libtool's -export-symbols option.
46185
46186 2009-03-02  Jim Meyering  <meyering@redhat.com>
46187
46188         announce-gen: new option: --no-print-checksums
46189         * build-aux/announce-gen (usage): Describe it.
46190         (print_checksums): Print a newline here, not in the [*] footnote.
46191         (main): Honor it.
46192
46193 2009-03-01  Bruno Haible  <bruno@clisp.org>
46194
46195         Use socklen_t in the native Windows replacements prototypes.
46196         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46197         instead of 'int'.
46198         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46199         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46200         * modules/getsockopt (Depends-on): Add socklen.
46201         * modules/setsockopt (Depends-on): Add socklen.
46202
46203 2009-03-01  Bruno Haible  <bruno@clisp.org>
46204
46205         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46206         least 4.2.
46207
46208 2009-03-01  Eric Blake  <ebb9@byu.net>
46209             Bruno Haible  <bruno@clisp.org>
46210
46211         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46212         error messages.
46213         * lib/wait-process.c (wait_subprocess): Omit error message about
46214         deadly signal sent to the child of termsigp != NULL.
46215
46216 2009-03-01  Eric Blake  <ebb9@byu.net>
46217
46218         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46219
46220 2009-03-01  Bruno Haible  <bruno@clisp.org>
46221
46222         Avoid a gcc warning.
46223         * tests/test-sched.c (b): Make global.
46224         Reported by Eric Blake.
46225
46226 2009-01-19  Martin Lambers  <marlam@marlam.de>
46227
46228         Provide POSIX semantics for socket timeout options on W32.
46229         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46230         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46231         * modules/setsockopt: Depend on sys_time module for struct timeval.
46232         * modules/getsockopt: Depend on sys_time module for struct timeval.
46233
46234 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46235
46236         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46237         __USE_GNU, for consistency with netdb.in.h.
46238         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46239
46240 2009-03-01  Bruno Haible  <bruno@clisp.org>
46241
46242         More support for FreeMiNT.
46243         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46244         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46245
46246 2009-03-01  Bruno Haible  <bruno@clisp.org>
46247
46248         More support for FreeMiNT.
46249         * lib/fpurge.c (fpurge): Correct last commit.
46250         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46251
46252 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46253
46254         Fix unportable awk script in vc-list-files.
46255         * build-aux/vc-list-files: In the replacement awk script, use
46256         substr with a second argument of 1, not zero.
46257         Report by Simon Josefsson.
46258
46259 2009-02-28  Bruno Haible  <bruno@clisp.org>
46260
46261         More support for FreeMiNT.
46262         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46263         to FreeMiNT today.
46264         * lib/fwriting.c (fwriting): Likewise.
46265         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46266
46267 2009-02-28  Bruno Haible  <bruno@clisp.org>
46268
46269         * tests/test-freadseek.c (main): Disable test beyond end of file on
46270         FreeMiNT.
46271         * tests/test-ftello.c (main): Likewise.
46272         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46273
46274 2009-02-28  Bruno Haible  <bruno@clisp.org>
46275
46276         Add tentative support for FreeMiNT.
46277         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46278         * lib/fpurge.c (fpurge): Likewise.
46279         * lib/freadable.c (freadable): Likewise.
46280         * lib/freading.c (freading): Likewise.
46281         * lib/freadptr.c (freadptr): Likewise.
46282         * lib/freadseek.c (freadptrinc): Likewise.
46283         * lib/fseeko.c (rpl_fseeko): Likewise.
46284         * lib/fseterr.c (fseterr): Likewise.
46285         * lib/fwritable.c (fwritable): Likewise.
46286         * lib/fwriting.c (fwriting): Likewise.
46287         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46288         Hourihane.
46289         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46290
46291 2009-02-28  Bruno Haible  <bruno@clisp.org>
46292
46293         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46294         SIGCHLD.
46295         Reported by Jim Meyering.
46296
46297 2009-02-28  Bruno Haible  <bruno@clisp.org>
46298
46299         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46300         Mention the results of these tests on various platforms.
46301         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46302         order.
46303         * doc/posix-functions/printf.texi: Likewise.
46304         * doc/posix-functions/snprintf.texi: Likewise.
46305         * doc/posix-functions/sprintf.texi: Likewise.
46306         * doc/posix-functions/vfprintf.texi: Likewise.
46307         * doc/posix-functions/vprintf.texi: Likewise.
46308         * doc/posix-functions/vsnprintf.texi: Likewise.
46309         * doc/posix-functions/vsprintf.texi: Likewise.
46310         * doc/glibc-functions/obstack_printf.texi: Likewise.
46311         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46312
46313 2009-02-28  Bruno Haible  <bruno@clisp.org>
46314
46315         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46316         Reported by Loïc Minier <lool@dooz.org>.
46317
46318 2009-02-27  Bruno Haible  <bruno@clisp.org>
46319
46320         * gnulib-tool (func_import): Make the sed expression used to create the
46321         sed script for updating the .gitignore file POSIX compliant.
46322         Reported by Eric Blake.
46323
46324 2009-02-27  Bruno Haible  <bruno@clisp.org>
46325
46326         * gnulib-tool (sed): Don't alias as "sed --posix".
46327         Reported by Eric Blake.
46328
46329 2009-02-27  Bruno Haible  <bruno@clisp.org>
46330
46331         Avoid test link errors.
46332         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46333         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46334         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46335         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46337
46338 2009-02-27  Bruno Haible  <bruno@clisp.org>
46339
46340         Avoid spurious "(cached)" in configure output.
46341         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46342         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46343         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46344         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46345         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46346         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46347         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46348         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46349         Reported by Eric Blake.
46350
46351 2009-02-27  Eric Blake  <ebb9@byu.net>
46352
46353         printf: fix regression in previous patch
46354         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46355
46356 2009-02-27  Bruno Haible  <bruno@clisp.org>
46357
46358         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46359         value.
46360         * lib/stdint.in.h: Likewise.
46361         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46362
46363 2009-02-27  Eric Blake  <ebb9@byu.net>
46364
46365         doc: mention more functions added in cygwin 1.7.0
46366         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46367         addition.
46368         * doc/posix-functions/open_wmemstream.texi: Likewise.
46369         * doc/posix-functions/wcsnlen.texi: Likewise.
46370         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46371         * doc/posix-functions/wcstod.texi: Likewise.
46372         * doc/posix-functions/wcstof.texi: Likewise.
46373         * doc/posix-functions/wcstoimax.texi: Likewise.
46374         * doc/posix-functions/wcstok.texi: Likewise.
46375         * doc/posix-functions/wcstoumax.texi: Likewise.
46376
46377         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46378         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46379         * doc/posix-functions/fprintf.texi: Update.
46380         * doc/posix-functions/printf.texi: Update.
46381         * doc/posix-functions/snprintf.texi: Update.
46382         * doc/posix-functions/sprintf.texi: Update.
46383         * doc/posix-functions/vfprintf.texi: Update.
46384         * doc/posix-functions/vprintf.texi: Update.
46385         * doc/posix-functions/vsnprintf.texi: Update.
46386         * doc/posix-functions/vsprintf.texi: Update.
46387         * doc/glibc-functions/obstack_printf.texi: Update.
46388         * doc/glibc-functions/obstack_vprintf.texi: Update.
46389
46390 2009-02-26  Eric Blake  <ebb9@byu.net>
46391
46392         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46393         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46394         compilation bug by using runtime conversion.
46395         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46396         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46397         * modules/ceill-tests (Files): Use nan.h.
46398         * modules/floorl-tests (Files): Likewise.
46399         * modules/frexpl-tests (Files): Likewise.
46400         * modules/isnanl-tests (Files): Likewise.
46401         * modules/ldexpl-tests (Files): Likewise.
46402         * modules/roundl-tests (Files): Likewise.
46403         * modules/truncl-tests (Files): Likewise.
46404         * tests/test-ceill.c (main): Use a working NaN.
46405         * tests/test-floorl.c (main): Likewise.
46406         * tests/test-frexpl.c (main): Likewise.
46407         * tests/test-isnan.c (test_long_double): Likewise.
46408         * tests/test-isnanl.h (main): Likewise.
46409         * tests/test-ldexpl.h (main): Likewise.
46410         * tests/test-roundl.h (main): Likewise.
46411         * tests/test-truncl.h (main): Likewise.
46412         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46413
46414 2009-02-26  Eric Blake  <ebb9@byu.net>
46415             Bruno Haible  <bruno@clisp.org>
46416
46417         Work around a *printf bug with %ls on Solaris.
46418         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46419         precision is specified, sprintf stops converting the wide string
46420         argument when the number of bytes that have been produced by this
46421         conversion equals or exceeds the precision.
46422         * doc/posix-functions/fprintf.texi: Update.
46423         * doc/posix-functions/printf.texi: Update.
46424         * doc/posix-functions/snprintf.texi: Update.
46425         * doc/posix-functions/sprintf.texi: Update.
46426         * doc/posix-functions/vfprintf.texi: Update.
46427         * doc/posix-functions/vprintf.texi: Update.
46428         * doc/posix-functions/vsnprintf.texi: Update.
46429         * doc/posix-functions/vsprintf.texi: Update.
46430         * doc/glibc-functions/obstack_printf.texi: Update.
46431         * doc/glibc-functions/obstack_vprintf.texi: Update.
46432
46433 2009-02-26  Eric Blake  <ebb9@byu.net>
46434
46435         stdlib: favor compiler check of random.h
46436         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46437         to avoid an ObjC random.h installed by Swarm.
46438
46439 2009-02-26  Bruno Haible  <bruno@clisp.org>
46440
46441         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46442         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46443         Reported by Gary V. Vaughan <gary@gnu.org>.
46444
46445 2009-02-26  Bruno Haible  <bruno@clisp.org>
46446
46447         Fix *printf behaviour regarding the %ls directive.
46448         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46449         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46450         NEED_PRINTF_DIRECTIVE_LS.
46451         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46452         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46453         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46454         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46455         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46456         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46457         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46458         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46459         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46460         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46461         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46462         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46463         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46464         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46465         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46466         * doc/posix-functions/fprintf.texi: Update.
46467         * doc/posix-functions/printf.texi: Update.
46468         * doc/posix-functions/snprintf.texi: Update.
46469         * doc/posix-functions/sprintf.texi: Update.
46470         * doc/posix-functions/vfprintf.texi: Update.
46471         * doc/posix-functions/vprintf.texi: Update.
46472         * doc/posix-functions/vsnprintf.texi: Update.
46473         * doc/posix-functions/vsprintf.texi: Update.
46474         * doc/glibc-functions/obstack_printf.texi: Update.
46475         * doc/glibc-functions/obstack_vprintf.texi: Update.
46476         Reported by Eric Blake.
46477
46478 2009-02-25  Bruno Haible  <bruno@clisp.org>
46479
46480         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46481         with known value.
46482         Reported by Gary V. Vaughan <gary@gnu.org>.
46483
46484 2009-02-25  Bruno Haible  <bruno@clisp.org>
46485
46486         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46487         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46488         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46489         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46490         Reported by Gary V. Vaughan <gary@gnu.org>.
46491
46492 2009-02-25  Bruno Haible  <bruno@clisp.org>
46493
46494         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46495         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46496         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46497         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46498         Reported by Gary V. Vaughan <gary@gnu.org>.
46499
46500 2009-02-25  Eric Blake  <ebb9@byu.net>
46501
46502         tests: skip fseek/ftell tests if ungetc is broken
46503         * m4/ungetc.m4: New file.
46504         * modules/fseek-tests: Split test, so ungetc dependency is
46505         separate from rest of test.
46506         * modules/fseeko-tests: Likewise.
46507         * modules/ftell-tests: Likewise.
46508         * modules/ftello-tests: Likewise.
46509         * tests/test-fseek.c (main): Isolate ungetc dependency.
46510         * tests/test-fseeko.c (main): Likewise.
46511         * tests/test-ftell.c (main): Likewise.
46512         * tests/test-ftello.c (main): Likewise.
46513         * tests/test-fseek2.sh: New file.
46514         * tests/test-fseeko2.sh: Likewise.
46515         * tests/test-ftell2.sh: Likewise.
46516         * tests/test-ftello2.sh: Likewise.
46517
46518 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46519
46520         test-getaddrinfo: fix usage of skip return code 77
46521         * tests/test-gettaddrinfo.c: Return skip code 77 only
46522         for first occurance of skip (4x77 is not 77)
46523
46524 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46525
46526         strtod: avoid C99 decl-after-statement
46527         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46528
46529 2009-02-24  Eric Blake  <ebb9@byu.net>
46530
46531         strtod: detect HP-UX 11.31 bug
46532         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46533         Reported by Gary V. Vaughan.
46534
46535 2009-02-23  Bruno Haible  <bruno@clisp.org>
46536
46537         Fix invalid read past end of memory block.
46538         * lib/vasnprintf.c (DCHAR_SET): Define.
46539         (local_wcslen): Define only when needed.
46540         (local_strnlen, local_wcsnlen): New functions.
46541         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46542         directives that involve a conversion ourselves.
46543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46544         wcsnlen, mbrtowc, wcrtomb.
46545         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46546         * tests/test-vasprintf-posix.c (test_function): Likewise.
46547         * tests/test-snprintf-posix.h (test_function): Likewise.
46548         * tests/test-sprintf-posix.h (test_function): Likewise.
46549         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46550
46551 2009-02-22  Bruno Haible  <bruno@clisp.org>
46552
46553         Implement new clarified decomposition of Hangul syllables.
46554         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46555         of type LTV, return only a pairwise decomposition.
46556         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46557         Likewise.
46558         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46559         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46560         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46561
46562 2009-02-22  Bruno Haible  <bruno@clisp.org>
46563
46564         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46565         zero-length results and shrink excess allocated memory.
46566         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46567         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46568         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46569         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46570         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46571         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46572         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46573         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46574         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46575         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46576         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46577         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46578
46579 2009-02-21  Bruno Haible  <bruno@clisp.org>
46580
46581         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46582         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46583         spaces after a period. Put a space between a macro name and its
46584         argument list. Trivial rewordings.
46585         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46586         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46587         (main): Return 0 explicitly.
46588
46589 2009-02-21  Bruno Haible  <bruno@clisp.org>
46590
46591         Tests for module 'uninorm/filter'.
46592         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46593         * modules/uninorm/filter-tests: New file.
46594
46595         New module 'uninorm/filter'.
46596         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46597         uninorm_filter_flush, uninorm_filter_free): New declarations.
46598         * lib/uninorm/uninorm-filter.c: New file.
46599         * modules/uninorm/filter: New file.
46600
46601 2009-02-21  Bruno Haible  <bruno@clisp.org>
46602
46603         Tests for module 'uninorm/nfkc'.
46604         * tests/uninorm/test-nfkc.c: New file.
46605         * tests/uninorm/test-u8-nfkc.c: New file.
46606         * tests/uninorm/test-u16-nfkc.c: New file.
46607         * tests/uninorm/test-u32-nfkc.c: New file.
46608         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46609         * tests/uninorm/test-u32-nfkc-big.c: New file.
46610         * modules/uninorm/nfkc-tests: New file.
46611
46612         New module 'uninorm/nfkc'.
46613         * lib/uninorm/nfkc.c: New file.
46614         * modules/uninorm/nfkc: New file.
46615
46616         Tests for module 'uninorm/nfkd'.
46617         * tests/uninorm/test-nfkd.c: New file.
46618         * tests/uninorm/test-u8-nfkd.c: New file.
46619         * tests/uninorm/test-u16-nfkd.c: New file.
46620         * tests/uninorm/test-u32-nfkd.c: New file.
46621         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46622         * tests/uninorm/test-u32-nfkd-big.c: New file.
46623         * modules/uninorm/nfkd-tests: New file.
46624
46625         New module 'uninorm/nfkd'.
46626         * lib/uninorm/nfkd.c: New file.
46627         * modules/uninorm/nfkd: New file.
46628
46629         Tests for module 'uninorm/nfc'.
46630         * tests/uninorm/test-nfc.c: New file.
46631         * tests/uninorm/test-u8-nfc.c: New file.
46632         * tests/uninorm/test-u16-nfc.c: New file.
46633         * tests/uninorm/test-u32-nfc.c: New file.
46634         * tests/uninorm/test-u32-nfc-big.sh: New file.
46635         * tests/uninorm/test-u32-nfc-big.c: New file.
46636         * modules/uninorm/nfc-tests: New file.
46637
46638         New module 'uninorm/nfc'.
46639         * lib/uninorm/nfc.c: New file.
46640         * modules/uninorm/nfc: New file.
46641
46642         Tests for module 'uninorm/nfd'.
46643         * tests/uninorm/test-nfd.c: New file.
46644         * tests/uninorm/test-u8-nfd.c: New file.
46645         * tests/uninorm/test-u16-nfd.c: New file.
46646         * tests/uninorm/test-u32-nfd.c: New file.
46647         * tests/uninorm/test-u32-nfd-big.sh: New file.
46648         * tests/uninorm/test-u32-nfd-big.c: New file.
46649         * tests/uninorm/test-u32-normalize-big.h: New file.
46650         * tests/uninorm/test-u32-normalize-big.c: New file.
46651         * tests/uninorm/NormalizationTest.txt: New file, created from
46652         Unicode 5.1.0 NormalizationTest.txt.
46653         * modules/uninorm/nfd-tests: New file.
46654
46655         New module 'uninorm/nfd'.
46656         * lib/uninorm/nfd.c: New file.
46657         * modules/uninorm/nfd: New file.
46658
46659         New module 'uninorm/u32-normalize'.
46660         * lib/uninorm/u32-normalize.c: New file.
46661         * modules/uninorm/u32-normalize: New file.
46662
46663         New module 'uninorm/u16-normalize'.
46664         * lib/uninorm/u16-normalize.c: New file.
46665         * modules/uninorm/u16-normalize: New file.
46666
46667         New module 'uninorm/u8-normalize'.
46668         * lib/uninorm/u8-normalize.c: New file.
46669         * lib/uninorm/normalize-internal.h: New file.
46670         * lib/uninorm/u-normalize-internal.h: New file.
46671         * modules/uninorm/u8-normalize: New file.
46672
46673         New module 'uninorm/decompose-internal'.
46674         * lib/uninorm/decompose-internal.c: New file.
46675         * modules/uninorm/decompose-internal: New file.
46676
46677         Tests for module 'uninorm/composition'.
46678         * tests/uninorm/test-composition.c: New file.
46679         * modules/uninorm/composition-tests: New file.
46680
46681         New module 'uninorm/composition'.
46682         * lib/uninorm/composition.c: New file.
46683         * lib/uninorm/composition-table.gperf: New file, generated by
46684         gen-uni-tables.
46685         * modules/uninorm/composition: New file.
46686
46687         Tests for module 'uninorm/compat-decomposition'.
46688         * tests/uninorm/test-compat-decomposition.c: New file.
46689         * modules/uninorm/compat-decomposition-tests: New file.
46690
46691         New module 'uninorm/compat-decomposition'.
46692         * lib/uninorm/decompose-internal.h: New file.
46693         * lib/uninorm/compat-decomposition.c: New file.
46694         * modules/uninorm/compat-decomposition: New file.
46695
46696         Tests for module 'uninorm/canonical-decomposition'.
46697         * tests/uninorm/test-canonical-decomposition.c: New file.
46698         * modules/uninorm/canonical-decomposition-tests: New file.
46699
46700         New module 'uninorm/canonical-decomposition'.
46701         * lib/uninorm/canonical-decomposition.c: New file.
46702         * modules/uninorm/canonical-decomposition: New file.
46703
46704         Tests for module 'uninorm/decomposition'.
46705         * tests/uninorm/test-decomposition.c: New file.
46706         * modules/uninorm/decomposition-tests: New file.
46707
46708         New module 'uninorm/decomposition'.
46709         * lib/uninorm/decomposition.c: New file.
46710         * modules/uninorm/decomposition: New file.
46711
46712         New module 'uninorm/decomposition-table'.
46713         * lib/uninorm/decomposition-table.h: New file.
46714         * lib/uninorm/decomposition-table.c: New file.
46715         * lib/uninorm/decomposition-table1.h: New file, generated by
46716         gen-uni-tables.
46717         * lib/uninorm/decomposition-table2.h: New file, generated by
46718         gen-uni-tables.
46719         * modules/uninorm/decomposition-table: New file.
46720
46721         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46722         (UC_DECOMP_*): New enumeration items.
46723         (get_decomposition): New function.
46724         (struct decomp_table): New type.
46725         (output_decomposition, output_decomposition_tables): New functions.
46726         (unicode_composition_exclusions): New variable.
46727         (fill_composition_exclusions, debug_output_composition_tables): New
46728         functions.
46729         (main): Accept one more argument. Invoke fill_composition_exclusions.
46730         Output decomposition and composition tables.
46731
46732         New module 'uninorm/base'.
46733         * lib/uninorm.h: New file.
46734         * lib/unictype.h: Update comment.
46735         * modules/uninorm/base: New file.
46736
46737 2009-02-21  David Lutterkort  <lutter@redhat.com>
46738
46739         Tests for module 'safe-alloc'.
46740         * tests/test-safe-alloc.c: New file.
46741         * modules/safe-alloc-tests: New file.
46742
46743         New module 'safe-alloc'.
46744         * lib/safe-alloc.h: New file.
46745         * lib/safe-alloc.c: New file.
46746         * m4/safe-alloc.m4: New file.
46747         * modules/safe-alloc: New file.
46748         * doc/safe-alloc.texi: New file.
46749         * doc/gnulib.texi: Include it.
46750         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46751         safe-alloc.
46752
46753 2009-02-18  Bruno Haible  <bruno@clisp.org>
46754
46755         Fix link error on non-glibc systems.
46756         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46757         variable.
46758         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46759
46760 2009-02-18  Jim Meyering  <meyering@redhat.com>
46761
46762         fts: avoid used-uninitialized error due to recent change
46763         * lib/fts.c (fts_read): Guard uses of the new member,
46764         parent->fts_n_dirs_remaining, since it's not relevant for
46765         the parent of a directory specified on the command-line.
46766
46767 2009-02-17  James Youngman  <jay@gnu.org>
46768             Bruno Haible  <bruno@clisp.org>
46769
46770         * m4/include_next.m4: Reformulate comment.
46771
46772 2009-02-16  Jim Meyering  <meyering@redhat.com>
46773
46774         fts: add #if guards so that the fts_lgpl module still builds
46775         * lib/fts.c: Guard just-added hash-table-using parts with
46776         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46777         Reported by Simon Josefsson.
46778
46779 2009-02-15  Bruno Haible  <bruno@clisp.org>
46780
46781         * modules/array-mergesort-tests: New file.
46782         * tests/test-array-mergesort.c: New file.
46783
46784         New module 'array-mergesort'.
46785         * modules/array-mergesort: New file.
46786         * lib/array-mergesort.h: New file.
46787
46788 2009-02-15  Bruno Haible  <bruno@clisp.org>
46789
46790         Fix 2009-02-07 commit.
46791         * lib/gen-uni-tables.c (output_predicate, output_category,
46792         output_combclass, output_bidi_category, output_decimal_digit,
46793         output_digit, output_numeric, output_mirror, output_scripts,
46794         output_ident_category, output_simple_mapping): Fix format directives.
46795         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46796
46797 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46798
46799         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46800         fixes are available from IBM.
46801
46802 2009-02-13  Jim Meyering  <meyering@redhat.com>
46803
46804         fts: arrange not to stat non-directories in more cases
46805         This makes GNU find (when it doesn't need to stat each file)
46806         *much* more efficient at traversing reiserfs file systems.
46807         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46808         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46809         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46810         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46811         (leaf_optimization_applies): New function.
46812         (LCO_hash, LCO_compare): New helper functions.
46813         (link_count_optimize_ok): New function.
46814         (fts_stat): Initialize new member (if dir).
46815         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46816         we've just stat'ed a directory.  Skip the stat call when possible.
46817         ---
46818         Note this AFS-related exchange:
46819         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46820         and note find's pioctl call in find/fstype.c.
46821         But that is necessary only if you want to enable the
46822         optimization for AFS, and for now, I don't.
46823
46824         fts: move a function definition "up" (no semantic change)
46825         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46826         "up" to precede upcoming use of a related function.
46827
46828 2009-02-11  Jim Meyering  <meyering@redhat.com>
46829
46830         fts: correct internal computation of nlinks (optimization-related)
46831         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46832         whether the current entry is a directory, so don't test it.
46833
46834 2009-02-10  Bruno Haible  <bruno@clisp.org>
46835
46836         Tests for module 'uniwbrk/ulc-wordbreaks'.
46837         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46838         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46839         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46840
46841         Tests for module 'uniwbrk/u32-wordbreaks'.
46842         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46843         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46844
46845         Tests for module 'uniwbrk/u16-wordbreaks'.
46846         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46847         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46848
46849         Tests for module 'uniwbrk/u8-wordbreaks'.
46850         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46851         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46852
46853 2009-02-10  Bruno Haible  <bruno@clisp.org>
46854
46855         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46856         property.
46857         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46858         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46859         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46860
46861 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46862
46863         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46864         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46865
46866 2009-02-10  Bruno Haible  <bruno@clisp.org>
46867
46868         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46869         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46870         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46871         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46872         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46873         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46874
46875 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46876
46877         * lib/sockets.h (gl_fd_to_handle): New function.
46878
46879         * tests/test-sockets.c: Call gl_fd_to_handle.
46880
46881 2009-02-09  Bruno Haible  <bruno@clisp.org>
46882
46883         * doc/havelib.texi: Document the conventions on bi-arch systems.
46884
46885 2009-02-08  Bruno Haible  <bruno@clisp.org>
46886
46887         Document the AC_LIB_LINKFLAGS macro.
46888         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46889         * doc/gnulib.texi: Include it.
46890
46891 2009-02-08  Bruno Haible  <bruno@clisp.org>
46892
46893         Fix wrong order of sections, compared to TOC.
46894         * doc/gnulib.texi: Include relocatable-maint.texi after the
46895         "Regular expressions" node, not before.
46896
46897 2009-02-08  Bruno Haible  <bruno@clisp.org>
46898
46899         Tests for module 'unicase/totitle'.
46900         * modules/unicase/totitle-tests: New file.
46901
46902         Tests for module 'unicase/tolower'.
46903         * modules/unicase/tolower-tests: New file.
46904
46905         Tests for module 'unicase/toupper'.
46906         * modules/unicase/toupper-tests: New file.
46907         * tests/unicase/test-mapping-part1.h: New file.
46908         * tests/unicase/test-mapping-part2.h: New file.
46909
46910         New module 'unicase/totitle'.
46911         * modules/unicase/totitle: New file.
46912         * lib/unicase/totitle.c: New file.
46913
46914         New module 'unicase/tolower'.
46915         * modules/unicase/tolower: New file.
46916         * lib/unicase/tolower.c: New file.
46917
46918         New module 'unicase/toupper'.
46919         * modules/unicase/toupper: New file.
46920         * lib/unicase/toupper.c: New file.
46921         * lib/unicase/simple-mapping.h: New file.
46922
46923         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46924         (mapping_table): New structure.
46925         (output_simple_mapping): New function.
46926         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46927         * modules/gen-uni-tables (Description): Update.
46928         * lib/unicase/toupper.h: New file, automatically generated by
46929         gen-uni-tables.
46930         * lib/unicase/tolower.h: New file, automatically generated by
46931         gen-uni-tables.
46932         * lib/unicase/totitle.h: New file, automatically generated by
46933         gen-uni-tables.
46934         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46935         gen-uni-tables.
46936         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46937         gen-uni-tables.
46938         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46939         gen-uni-tables.
46940
46941         New module 'unicase/base'.
46942         * modules/unicase/base: New file.
46943         * lib/unicase.h: New file.
46944
46945 2009-02-08  Bruno Haible  <bruno@clisp.org>
46946
46947         New module 'uniwbrk/ulc-wordbreaks'.
46948         * modules/uniwbrk/ulc-wordbreaks: New file.
46949         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46950
46951         New module 'uniwbrk/u32-wordbreaks'.
46952         * modules/uniwbrk/u32-wordbreaks: New file.
46953         * lib/uniwbrk/u32-wordbreaks.c: New file.
46954
46955         New module 'uniwbrk/u16-wordbreaks'.
46956         * modules/uniwbrk/u16-wordbreaks: New file.
46957         * lib/uniwbrk/u16-wordbreaks.c: New file.
46958
46959         New module 'uniwbrk/u8-wordbreaks'.
46960         * modules/uniwbrk/u8-wordbreaks: New file.
46961         * lib/uniwbrk/u8-wordbreaks.c: New file.
46962         * lib/uniwbrk/u-wordbreaks.h: New file.
46963
46964         New module 'uniwbrk/table'.
46965         * modules/uniwbrk/table: New file.
46966         * lib/uniwbrk/wbrktable.h: New file.
46967         * lib/uniwbrk/wbrktable.c: New file.
46968
46969         New module 'uniwbrk/wordbreak-property'.
46970         * modules/uniwbrk/wordbreak-property: New file.
46971         * lib/uniwbrk/wordbreak-property.c: New file.
46972
46973         * lib/gen-uni-tables.c (WBP_*): New enum items.
46974         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46975         (unicode_org_wbp): New variable.
46976         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46977         New functions.
46978         (wbp_table): New structure.
46979         (output_wbp, output_wbrk_tables): New functions.
46980         (main): Accept additional argument. Invoke fill_org_wbp,
46981         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46982         output_wbrk_tables.
46983         * modules/gen-uni-tables (Description): Update.
46984         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46985         gen-uni-tables.
46986
46987         New module 'uniwbrk/base'.
46988         * modules/uniwbrk/base: New file.
46989         * lib/uniwbrk.h: New file.
46990
46991 2009-02-08  Bruno Haible  <bruno@clisp.org>
46992
46993         Update to Unicode 5.1.0.
46994         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46995         U+2185..U+2188.
46996         (is_property_default_ignorable_code_point): Don't include characters
46997         of category Cc or Cs and not-a-characters.
46998         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46999         U+0D79, U+109E, U+109F, U+A60C.
47000         * lib/unictype/bidi_of.h: Regenerated.
47001         * lib/unictype/blocks.h: Regenerated.
47002         * lib/unictype/categ_C.h: Regenerated.
47003         * lib/unictype/categ_Cf.h: Regenerated.
47004         * lib/unictype/categ_Cn.h: Regenerated.
47005         * lib/unictype/categ_L.h: Regenerated.
47006         * lib/unictype/categ_Ll.h: Regenerated.
47007         * lib/unictype/categ_Lm.h: Regenerated.
47008         * lib/unictype/categ_Lo.h: Regenerated.
47009         * lib/unictype/categ_Lu.h: Regenerated.
47010         * lib/unictype/categ_M.h: Regenerated.
47011         * lib/unictype/categ_Mc.h: Regenerated.
47012         * lib/unictype/categ_Me.h: Regenerated.
47013         * lib/unictype/categ_Mn.h: Regenerated.
47014         * lib/unictype/categ_N.h: Regenerated.
47015         * lib/unictype/categ_Nd.h: Regenerated.
47016         * lib/unictype/categ_Nl.h: Regenerated.
47017         * lib/unictype/categ_No.h: Regenerated.
47018         * lib/unictype/categ_P.h: Regenerated.
47019         * lib/unictype/categ_Pd.h: Regenerated.
47020         * lib/unictype/categ_Pe.h: Regenerated.
47021         * lib/unictype/categ_Pf.h: Regenerated.
47022         * lib/unictype/categ_Pi.h: Regenerated.
47023         * lib/unictype/categ_Po.h: Regenerated.
47024         * lib/unictype/categ_Ps.h: Regenerated.
47025         * lib/unictype/categ_S.h: Regenerated.
47026         * lib/unictype/categ_Sk.h: Regenerated.
47027         * lib/unictype/categ_Sm.h: Regenerated.
47028         * lib/unictype/categ_So.h: Regenerated.
47029         * lib/unictype/categ_of.h: Regenerated.
47030         * lib/unictype/combining.h: Regenerated.
47031         * lib/unictype/ctype_alnum.h: Regenerated.
47032         * lib/unictype/ctype_alpha.h: Regenerated.
47033         * lib/unictype/ctype_graph.h: Regenerated.
47034         * lib/unictype/ctype_lower.h: Regenerated.
47035         * lib/unictype/ctype_print.h: Regenerated.
47036         * lib/unictype/ctype_punct.h: Regenerated.
47037         * lib/unictype/ctype_upper.h: Regenerated.
47038         * lib/unictype/decdigit.h: Regenerated.
47039         * lib/unictype/digit.h: Regenerated.
47040         * lib/unictype/mirror.h: Regenerated.
47041         * lib/unictype/numeric.h: Regenerated.
47042         * lib/unictype/pr_alphabetic.h: Regenerated.
47043         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47044         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47045         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47046         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47047         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47048         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47049         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47050         * lib/unictype/pr_combining.h: Regenerated.
47051         * lib/unictype/pr_dash.h: Regenerated.
47052         * lib/unictype/pr_decimal_digit.h: Regenerated.
47053         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47054         * lib/unictype/pr_deprecated.h: Regenerated.
47055         * lib/unictype/pr_diacritic.h: Regenerated.
47056         * lib/unictype/pr_extender.h: Regenerated.
47057         * lib/unictype/pr_format_control.h: Regenerated.
47058         * lib/unictype/pr_grapheme_base.h: Regenerated.
47059         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47060         * lib/unictype/pr_grapheme_link.h: Regenerated.
47061         * lib/unictype/pr_id_continue.h: Regenerated.
47062         * lib/unictype/pr_id_start.h: Regenerated.
47063         * lib/unictype/pr_ideographic.h: Regenerated.
47064         * lib/unictype/pr_ignorable_control.h: Regenerated.
47065         * lib/unictype/pr_lowercase.h: Regenerated.
47066         * lib/unictype/pr_math.h: Regenerated.
47067         * lib/unictype/pr_numeric.h: Regenerated.
47068         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47069         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47070         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47071         * lib/unictype/pr_other_id_continue.h: Regenerated.
47072         * lib/unictype/pr_other_lowercase.h: Regenerated.
47073         * lib/unictype/pr_other_math.h: Regenerated.
47074         * lib/unictype/pr_punctuation.h: Regenerated.
47075         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47076         * lib/unictype/pr_soft_dotted.h: Regenerated.
47077         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47078         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47079         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47080         * lib/unictype/pr_uppercase.h: Regenerated.
47081         * lib/unictype/pr_xid_continue.h: Regenerated.
47082         * lib/unictype/pr_xid_start.h: Regenerated.
47083         * lib/unictype/pr_zero_width.h: Regenerated.
47084         * lib/unictype/scripts.h: Regenerated.
47085         * lib/unictype/scripts_byname.gperf: Regenerated.
47086         * lib/unictype/sy_java_ident.h: Regenerated.
47087         * lib/unilbrk/lbrkprop1.h: Regenerated.
47088         * lib/unilbrk/lbrkprop2.h: Regenerated.
47089         * tests/unictype/test-categ_C.c: Regenerated.
47090         * tests/unictype/test-categ_Cf.c: Regenerated.
47091         * tests/unictype/test-categ_Cn.c: Regenerated.
47092         * tests/unictype/test-categ_L.c: Regenerated.
47093         * tests/unictype/test-categ_Ll.c: Regenerated.
47094         * tests/unictype/test-categ_Lm.c: Regenerated.
47095         * tests/unictype/test-categ_Lo.c: Regenerated.
47096         * tests/unictype/test-categ_Lu.c: Regenerated.
47097         * tests/unictype/test-categ_M.c: Regenerated.
47098         * tests/unictype/test-categ_Mc.c: Regenerated.
47099         * tests/unictype/test-categ_Me.c: Regenerated.
47100         * tests/unictype/test-categ_Mn.c: Regenerated.
47101         * tests/unictype/test-categ_N.c: Regenerated.
47102         * tests/unictype/test-categ_Nd.c: Regenerated.
47103         * tests/unictype/test-categ_Nl.c: Regenerated.
47104         * tests/unictype/test-categ_No.c: Regenerated.
47105         * tests/unictype/test-categ_P.c: Regenerated.
47106         * tests/unictype/test-categ_Pd.c: Regenerated.
47107         * tests/unictype/test-categ_Pe.c: Regenerated.
47108         * tests/unictype/test-categ_Pf.c: Regenerated.
47109         * tests/unictype/test-categ_Pi.c: Regenerated.
47110         * tests/unictype/test-categ_Po.c: Regenerated.
47111         * tests/unictype/test-categ_Ps.c: Regenerated.
47112         * tests/unictype/test-categ_S.c: Regenerated.
47113         * tests/unictype/test-categ_Sk.c: Regenerated.
47114         * tests/unictype/test-categ_Sm.c: Regenerated.
47115         * tests/unictype/test-categ_So.c: Regenerated.
47116         * tests/unictype/test-ctype_alnum.c: Regenerated.
47117         * tests/unictype/test-ctype_alpha.c: Regenerated.
47118         * tests/unictype/test-ctype_graph.c: Regenerated.
47119         * tests/unictype/test-ctype_lower.c: Regenerated.
47120         * tests/unictype/test-ctype_print.c: Regenerated.
47121         * tests/unictype/test-ctype_punct.c: Regenerated.
47122         * tests/unictype/test-ctype_upper.c: Regenerated.
47123         * tests/unictype/test-decdigit.h: Regenerated.
47124         * tests/unictype/test-digit.h: Regenerated.
47125         * tests/unictype/test-numeric.h: Regenerated.
47126         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47127         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47128         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47129         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47130         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47131         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47132         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47133         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47134         * tests/unictype/test-pr_combining.c: Regenerated.
47135         * tests/unictype/test-pr_dash.c: Regenerated.
47136         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47137         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47138         * tests/unictype/test-pr_deprecated.c: Regenerated.
47139         * tests/unictype/test-pr_diacritic.c: Regenerated.
47140         * tests/unictype/test-pr_extender.c: Regenerated.
47141         * tests/unictype/test-pr_format_control.c: Regenerated.
47142         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47143         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47144         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47145         * tests/unictype/test-pr_id_continue.c: Regenerated.
47146         * tests/unictype/test-pr_id_start.c: Regenerated.
47147         * tests/unictype/test-pr_ideographic.c: Regenerated.
47148         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47149         * tests/unictype/test-pr_lowercase.c: Regenerated.
47150         * tests/unictype/test-pr_math.c: Regenerated.
47151         * tests/unictype/test-pr_numeric.c: Regenerated.
47152         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47153         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47154         Regenerated.
47155         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47156         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47157         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47158         * tests/unictype/test-pr_other_math.c: Regenerated.
47159         * tests/unictype/test-pr_punctuation.c: Regenerated.
47160         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47161         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47162         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47163         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47164         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47165         * tests/unictype/test-pr_uppercase.c: Regenerated.
47166         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47167         * tests/unictype/test-pr_xid_start.c: Regenerated.
47168         * tests/unictype/test-pr_zero_width.c: Regenerated.
47169
47170         Update to Unicode 5.1.0.
47171         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47172         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47173         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47174         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47175         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47176         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47177         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47178         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47179         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47180         (nonspacing_table_ind): Update.
47181         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47182
47183         Update to Unicode 5.1.0.
47184         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47185         code transform.
47186         * lib/uniname/uniname.c (unicode_character_name,
47187         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47188         * lib/uniname/uninames.h: Regenerated.
47189         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47190
47191 2009-02-07  Bruno Haible  <bruno@clisp.org>
47192
47193         Merge gen-ctype and gen-lbrk into a single program.
47194         * lib/gen-uni-tables.c: New file, incorporating
47195         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47196         Add directory prefixes to the names of the generated files.
47197         * lib/unictype/gen-ctype.c: Remove file.
47198         * lib/unilbrk/gen-lbrk.c: Remove file.
47199         * modules/gen-uni-tables: New file.
47200         * modules/unictype/gen-ctype: Remove file.
47201         * modules/unilbrk/gen-lbrk: Remove file.
47202
47203 2009-02-07  Bruno Haible  <bruno@clisp.org>
47204
47205         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47206
47207         New module 'unistr/u32-strcoll'.
47208         * modules/unistr/u32-strcoll: New file.
47209         * lib/unistr/u32-strcoll.c: New file.
47210
47211         New module 'unistr/u16-strcoll'.
47212         * modules/unistr/u16-strcoll: New file.
47213         * lib/unistr/u16-strcoll.c: New file.
47214
47215         New module 'unistr/u8-strcoll'.
47216         * modules/unistr/u8-strcoll: New file.
47217         * lib/unistr/u8-strcoll.c: New file.
47218         * lib/unistr/u-strcoll.h: New file.
47219
47220 2009-02-07  Bruno Haible  <bruno@clisp.org>
47221
47222         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47223         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47224         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47225         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47226         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47227         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47228
47229 2009-02-07  Bruno Haible  <bruno@clisp.org>
47230
47231         Make 64-bit clean.
47232         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47233         output_combclass, output_bidi_category, output_decimal_digit,
47234         output_digit, output_numeric, output_mirror, output_scripts,
47235         output_ident_category): Use proper width specifier in format strings.
47236
47237 2009-02-07  Bruno Haible  <bruno@clisp.org>
47238
47239         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47240         failure behaviour.
47241
47242 2009-02-07  Jim Meyering  <meyering@redhat.com>
47243
47244         regex: avoid compilation failure with upcoming gcc-4.4
47245         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47246         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47247         "... error: integer overflow in preprocessor expression".
47248
47249 2009-02-05  Ben Pfaff  <blp@gnu.org>
47250
47251         Fix link errors on Windows when close module is used.
47252         * modules/close: Add $(LIB_CLOSE) to Link section.
47253         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47254         $(LIB_CLOSE) on Windows.
47255
47256 2009-02-05  Jim Meyering  <meyering@redhat.com>
47257
47258         still avoid unused-parameter warnings, but do it cleanly
47259         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47260         (get_fs_usage): Cast to void instead.
47261         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47262         (dev_from_mount_options, read_file_system_list): Cast to void.
47263         Prompted by Bruno Haible.
47264
47265 2009-02-04  Jim Meyering  <meyering@redhat.com>
47266
47267         fsusage.c: correct copyright year
47268         * lib/fsusage.c: Reflect year in which the change is pushed into
47269
47270         avoid misc. warnings
47271         * lib/fsusage.c (UNUSED_PARAM): Define.
47272         (get_fs_usage): Mark parameter "disk" as unused.
47273         * lib/getugroups.c (getgrent): Use "void" in prototype.
47274         * lib/mountlist.c: Mark unused parameters.
47275         (read_file_system_list): Declare a local with "const".
47276         * lib/nanosleep.c (getnow): Declare static.
47277         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47278
47279         dirfd: set errno upon failure
47280         * lib/dirfd.c: Include <errno.h>.
47281         Set errno to ENOTSUP when returning -1.
47282         * modules/dirfd (Depends-on): Add errno.
47283         Suggested by John Kodis <kodis@comcast.net>.
47284
47285 2009-02-01  Bruno Haible  <bruno@clisp.org>
47286
47287         Don't assume sizeof (long) >= sizeof (void *).
47288         * lib/memcmp.c: Include stdint.h.
47289         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47290         srcp2 to 'const byte *'.
47291         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47292         types to uintptr_t.
47293         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47294         * modules/memcmp (Depends-on): Add stdint.
47295         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47296
47297 2009-01-30  Eric Blake  <ebb9@byu.net>
47298
47299         fix more require-before-expand issues
47300         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47301         expand, AC_PROG_AWK.
47302         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47303
47304 2009-01-28  Eric Blake  <ebb9@byu.net>
47305
47306         version-etc: use consistent URL formatting
47307         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47308         Improve formatting.  Use fputs for string without %.
47309
47310 2009-01-28  Jim Meyering  <meyering@redhat.com>
47311
47312         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47313         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47314         "underquoted definition of NAME" from autoconf-2.59.
47315
47316 2009-01-28  Bruno Haible  <bruno@clisp.org>
47317
47318         * doc/gnulib.texi: Add "Obsolete modules" to index.
47319
47320 2009-01-28  Jim Meyering  <meyering@redhat.com>
47321
47322         useless-if-before-free: recognize more variants
47323         * build-aux/useless-if-before-free: Also recognize e.g.,
47324         if (NULL != p) free (p);
47325
47326 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47327
47328         test-getaddrinfo: skip (don't fail) this test when there's no network
47329         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47330         on the presumption that it means you lack network access.
47331
47332 2009-01-26  Jim Meyering  <meyering@redhat.com>
47333
47334         fflush: avoid warnings on modern systems
47335         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47336         pos and result, into scopes where they're used.
47337
47338 2009-01-26  Eric Blake  <ebb9@byu.net>
47339
47340         Silence warning reintroduced by recent extensions patch.
47341         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47342         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47343         autoconf.
47344
47345         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47346         * m4/00gnulib.m4: New file.
47347         * gnulib-tool (func_get_filelist): Always use it.
47348         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47349         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47350
47351 2009-01-25  Bruno Haible  <bruno@clisp.org>
47352
47353         Make test-quotearg work on MacOS X and AIX.
47354         * tests/test-quotearg.sh: New file.
47355         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47356         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47357         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47358         include <libintl.h>.
47359         (fake_locale): Remove variable.
47360         (gettext, dgettext, dcgettext): Remove functions.
47361         (main): Instead of setting a fake locale, set a real locale. Call
47362         textdomain and bindtextdomain.
47363         * modules/quotearg-tests (Files): Add the new files.
47364         (Depends-on): Add gettext, setenv, unsetenv.
47365         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47366         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47367         Augment TESTS_ENVIRONMENT.
47368
47369 2009-01-25  Bruno Haible  <bruno@clisp.org>
47370
47371         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47372         fr_FR.ISO8859-1 locale on MacOS X.
47373         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47374         ja_JP.eucJP locale on MacOS X.
47375         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47376         zh_CN.GB18030 locale on MacOS X.
47377
47378 2009-01-25  Bruno Haible  <bruno@clisp.org>
47379
47380         Avoid link errors on MacOS X 10.3.
47381         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47382         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47383
47384 2009-01-25  Bruno Haible  <bruno@clisp.org>
47385
47386         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47387         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47388         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47389         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47390         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47391         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47392         posix_spawnattr_init, posix_spawnattr_setsigmask,
47393         posix_spawnattr_setflags, posix_spawnattr_destroy.
47394
47395         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47396         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47397         * modules/execute (Files): Remove m4/posix_spawn.m4.
47398         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47399         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47400         posix_spawnattr_init, posix_spawnattr_setsigmask,
47401         posix_spawnattr_setflags, posix_spawnattr_destroy.
47402
47403 2009-01-25  Bruno Haible  <bruno@clisp.org>
47404
47405         * lib/glthread/threadlib.c: Include <stdlib.h>.
47406
47407 2009-01-25  Bruno Haible  <bruno@clisp.org>
47408
47409         * lib/glthread/threadlib.c (dummy): New declaration.
47410
47411 2009-01-25  Bruno Haible  <bruno@clisp.org>
47412
47413         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47414         multibyte characters also for the GB18030 encoding. Don't crash when
47415         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47416
47417 2009-01-25  Bruno Haible  <bruno@clisp.org>
47418
47419         Avoid redefining 'struct random_data' on OSF/1 5.1.
47420         * lib/stdlib.in.h: Include <random.h> if it exists.
47421         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47422         HAVE_RANDOM_H. Include <random.h> when testing whether
47423         'struct random_data' exists.
47424         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47425
47426 2009-01-25  Bruno Haible  <bruno@clisp.org>
47427
47428         Don't install charset.alias on MacOS X >= 10.3.
47429         * lib/localcharset.c (DARWIN7): New macro.
47430         (get_charset_aliases): Hardcode the result for Darwin7.
47431         * modules/localcharset (install-exec-local): Don't install
47432         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47433
47434 2009-01-25  Bruno Haible  <bruno@clisp.org>
47435
47436         Don't install charset.alias on mingw and Cygwin.
47437         * modules/localcharset (install-exec-local): Don't install
47438         charset.alias on mingw and Cygwin, if the file does not yet exist.
47439         The result for these platforms is hardcoded in localcharset.c.
47440
47441 2009-01-25  Bruno Haible  <bruno@clisp.org>
47442
47443         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47444         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47445         before requiring AC_USE_SYSTEM_EXTENSIONS.
47446
47447 2009-01-25  Jim Meyering  <meyering@redhat.com>
47448
47449         c-strtod: avoid warnings
47450         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47451         "assignment discards qualifiers from pointer target type" warnings.
47452
47453 2009-01-24  Bruno Haible  <bruno@clisp.org>
47454
47455         Add support for non-UTF-8 locales on MacOS X.
47456         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47457         canonical encodings. For Darwin 7 and newer, don't map traditional
47458         encodings to UTF-8.
47459         Reported by Vincent Lefevre <vincent@vinc17.org>
47460         at <http://savannah.gnu.org/bugs/?25235>.
47461
47462 2009-01-24  Bruno Haible  <bruno@clisp.org>
47463
47464         * doc/gnulib.texi (Obsolete modules): New section.
47465         Reported by Mike Frysinger <vapier@gentoo.org>.
47466
47467 2009-01-24  Bruno Haible  <bruno@clisp.org>
47468
47469         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47470         (%.dvi): New rule.
47471
47472 2009-01-24  Bruno Haible  <bruno@clisp.org>
47473
47474         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47475         Reported by Eric Blake.
47476
47477 2009-01-24  Bruno Haible  <bruno@clisp.org>
47478
47479         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47480         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47481         Reported by Gary V. Vaughan <gary@gnu.org>.
47482
47483 2009-01-24  Bruno Haible  <bruno@clisp.org>
47484
47485         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47486
47487 2009-01-23  Bruno Haible  <bruno@clisp.org>
47488
47489         Make c-strtod, c-strtold usable in libraries.
47490         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47491         (C_STRTOD): Call strdup instead of xstrdup.
47492         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47493         * modules/c-strtold (Depends-on): Likewise.
47494         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47495         * NEWS: Mention the change.
47496         Reported by Michael Gold <mgold@ncf.ca>.
47497
47498 2009-01-23  Jim Meyering  <meyering@redhat.com>
47499
47500         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47501         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47502         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47503
47504 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47505
47506         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47507         GNU CoreUtils.
47508         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47509         * modules/version-etc (Description): Update.
47510
47511 2009-01-22  Bruno Haible  <bruno@clisp.org>
47512
47513         Cache the C locale object.
47514         * lib/c-strtod.c (c_locale_cache): New variable.
47515         (c_locale): New function.
47516         (C_STRTOD): Use it, and don't call freelocale.
47517         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47518         Suggested by Paolo Bonzini.
47519
47520 2009-01-21  Bruno Haible  <bruno@clisp.org>
47521
47522         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47523         conditions other than overflow.
47524
47525 2009-01-21  Bruno Haible  <bruno@clisp.org>
47526
47527         * lib/c-strtod.c: Include errno.h.
47528         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47529         value from STRTOD_L and STRTOD.
47530
47531 2009-01-21  Bruno Haible  <bruno@clisp.org>
47532         and Jim Meyering  <meyering@redhat.com>
47533
47534         nanosleep: skip configure test (fail it) for apple universal builds
47535         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47536         universal builds, assume that nanosleep does not work.
47537         * modules/nanosleep (Depends-on): Add multiarch.
47538
47539         mktime: skip configure test (fail it) for apple universal builds
47540         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47541         universal builds, assume that mktime does not work.
47542         * modules/mktime (Depends-on): Add multiarch.
47543
47544 2009-01-21  Eric Blake  <ebb9@byu.net>
47545
47546         multiarch: avoid expand-before-require warning
47547         * modules/multiarch (configure.ac): Require, rather than expand,
47548         gl_MULTIARCH.
47549         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47550         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47551         enforce that all clients require it.  Partial reversion of
47552         2008-12-29 patch.
47553
47554         error: avoid expand-before-require warning
47555         * modules/errno (configure.ac): Require, rather than expand,
47556         gl_HEADER_ERRNO_H.
47557         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47558         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47559         enforce that all clients require it.
47560
47561         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47562         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47563         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47564         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47565
47566 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47567
47568         Revert:
47569         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47570
47571         regex: do not depend on obsolete modules.
47572         * modules/regex: Remove memcmp and memmove.
47573
47574 2009-01-20  Bruno Haible  <bruno@clisp.org>
47575
47576         Make the 'link' module link on Windows NT 4.
47577         * lib/link.c (_WIN32_WINNT): Don't define.
47578         (CreateHardLinkFuncType): New type.
47579         (CreateHardLinkFunc, initialized): New variables.
47580         (initialize): New function.
47581         (link): Invoke CreateHardLink indirectly through the function pointer.
47582
47583 2009-01-20  Bruno Haible  <bruno@clisp.org>
47584
47585         Fix compilation failure on mingw.
47586         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47587
47588 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47589
47590         * doc/c-strtod.texi: Mention a couple of restrictions.
47591
47592 2009-01-20  Jim Meyering  <meyering@redhat.com>
47593
47594         gettimeofday: move more declarations out of functions
47595         * lib/gettimeofday.c: Move extern declarations of tzset and
47596         gmtime out of containing functions.  Prompted by Bruno Haible.
47597
47598 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47599
47600         regex: do not depend on obsolete modules.
47601         * modules/regex: Remove memcmp and memmove.
47602
47603 2009-01-19  Bruno Haible  <bruno@clisp.org>
47604
47605         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47606         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47607         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47608         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47609         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47610
47611 2009-01-19  Bruno Haible  <bruno@clisp.org>
47612
47613         * tests/test-link.c: Include <errno.h>.
47614         (main): Exit with code 77 when a hard link cannot be created due to
47615         the file system.
47616         * tests/test-link.sh: Skip test when a hard link cannot be created due
47617         to the file system.
47618         Suggested by Eric Blake.
47619
47620 2009-01-19  Martin Lambers  <marlam@marlam.de>
47621
47622         * modules/link-tests: New file.
47623         * tests/test-link.sh: New file.
47624         * tests/test-link.c: New file.
47625
47626 2009-01-19  Eric Blake  <ebb9@byu.net>
47627
47628         doc: mention another function added in cygwin 1.7.0
47629         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47630         Another new function in cygwin 1.7.
47631
47632 2009-01-19  Bruno Haible  <bruno@clisp.org>
47633
47634         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47635         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47636         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47637         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47638         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47639         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47640         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47641         * m4/md4.m4 (gl_MD4): Likewise.
47642         * m4/md5.m4 (gl_MD5): Likewise.
47643         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47644         * m4/sha1.m4 (gl_SHA1): Likewise.
47645         * m4/sha256.m4 (gl_SHA256): Likewise.
47646         * m4/sha512.m4 (gl_SHA512): Likewise.
47647
47648 2009-01-19  Bruno Haible  <bruno@clisp.org>
47649
47650         * modules/uniname/uniname-tests (Depends-on): Add progname.
47651         * tests/uniname/test-uninames.c: Include progname.h.
47652         (main): Call set_program_name.
47653
47654         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47655         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47656         (main): Call set_program_name.
47657
47658         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47659         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47660         (main): Call set_program_name.
47661
47662         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47663         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47664         (main): Call set_program_name.
47665
47666         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47667         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47668         (main): Call set_program_name.
47669
47670         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47671         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47672         (main): Call set_program_name.
47673
47674         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47675         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47676         (main): Call set_program_name.
47677
47678         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47679         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47680         (main): Call set_program_name.
47681
47682         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47683         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47684         (main): Call set_program_name.
47685
47686 2009-01-19  Eric Blake  <ebb9@byu.net>
47687
47688         test-unistd: test previous patch
47689         * tests/test-unistd.c: Test *_FILENO macros.
47690
47691         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47692         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47693         Guarantee a definition.
47694         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47695         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47696         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47697         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47698         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47699         Likewise.
47700         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47701         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47702         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47703         Likewise.
47704         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47705         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47706         (STDERR_FILENO): Likewise.
47707         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47708         (STDERR_FILENO): Likewise.
47709         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47710         (STDERR_FILENO): Likewise.
47711         Reported by Elbert Pol.
47712
47713 2009-01-19  Eric Blake  <ebb9@byu.net>
47714
47715         doc: mention more functions added in cygwin 1.7.0
47716         * doc/posix-functions/abort.texi (abort): Update wording related
47717         to cygwin.
47718         * doc/posix-functions/daylight.texi (daylight): Likewise.
47719         * doc/posix-functions/optarg.texi (optarg): Likewise.
47720         * doc/posix-functions/optarg.texi (opterr): Likewise.
47721         * doc/posix-functions/optarg.texi (optind): Likewise.
47722         * doc/posix-functions/optarg.texi (optopt): Likewise.
47723         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47724         worked in 1.5.x, and was withdrawn in 1.7.
47725         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47726         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47727         cygwin versions.
47728         * doc/posix-functions/perror.texi (perror): Likewise.
47729         * doc/posix-functions/printf.texi (printf): Likewise.
47730         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47731         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47732         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47733         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47734         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47735         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47736         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47737         Likewise.
47738         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47739         Likewise.
47740         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47741         this function.
47742         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47743         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47744         Likewise.
47745         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47746         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47747         * doc/posix-functions/confstr.texi (confstr): Likewise.
47748         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47749         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47750         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47751         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47752         * doc/posix-functions/fputws.texi (fputws): Likewise.
47753         * doc/posix-functions/fwide.texi (fwide): Likewise.
47754         * doc/posix-functions/getwc.texi (getwc): Likewise.
47755         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47756         * doc/posix-functions/putwc.texi (putwc): Likewise.
47757         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47758         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47759         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47760         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47761         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47762         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47763         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47764         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47765         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47766         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47767         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47768
47769 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47770
47771         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47772         * lib/ioctl.c: Include <sys/ioctl.h>.
47773
47774 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47775
47776         * modules/getdate-tests (Depends-on): Add progname.
47777         * tests/test-getdate.c: Use progname module, to avoid link errors
47778         on non-glibc systems.
47779
47780 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47781
47782         * modules/filenamecat-tests (Depends-on): Add progname.
47783         * modules/fstrcmp-tests (Depends-on): Likewise.
47784
47785         * tests/test-filenamecat.c: Use progname module, to avoid link
47786         errors on non-glibc systems.
47787         * tests/test-fstrcmp.c: Likewise.
47788
47789 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47790
47791         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47792         * lib/gettimeofday.c: Move extern declaration out of function.
47793
47794 2009-01-18  Bruno Haible  <bruno@clisp.org>
47795
47796         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47797         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47798         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47799
47800 2009-01-18  Bruno Haible  <bruno@clisp.org>
47801
47802         * lib/strftime.c (MEMPCPY): Remove unused macro.
47803         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47804
47805 2009-01-18  Martin Lambers  <marlam@marlam.de>
47806
47807         New module 'link'.
47808         * lib/unistd.in.h (link): New declaration.
47809         * lib/link.c: New file.
47810         * m4/link.m4: New file.
47811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47812         HAVE_LINK.
47813         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47814         * modules/link: New file.
47815         * doc/posix-functions/link.texi: Mention the new module.
47816
47817 2009-01-18  Bruno Haible  <bruno@clisp.org>
47818
47819         * tests/test-avltree_list.c (main): Call set_program_name.
47820         * tests/test-avltree_oset.c (main): Likewise.
47821         * tests/test-obstack-printf.c: Include progname.h.
47822         (main): Call set_program_name.
47823         * tests/test-quotearg.c: Include progname.h.
47824         (main): Call set_program_name.
47825         * tests/test-xmemdup0.c: Include progname.h.
47826         (main): Call set_program_name.
47827
47828 2009-01-18  Bruno Haible  <bruno@clisp.org>
47829
47830         New module 'alphasort'.
47831         * lib/dirent.in.h (alphasort): New declaration.
47832         * lib/alphasort.c: New file, from glibc with modifications.
47833         * m4/alphasort.m4: New file.
47834         * modules/alphasort: New file.
47835         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47836         HAVE_ALPHASORT.
47837         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47838         HAVE_ALPHASORT.
47839         * doc/posix-functions/alphasort.texi: Mention the new module and the
47840         portability problems.
47841
47842 2009-01-18  Bruno Haible  <bruno@clisp.org>
47843
47844         New module 'scandir'.
47845         * lib/dirent.in.h (scandir): New declaration.
47846         * lib/scandir.c: New file, from glibc with modifications.
47847         * m4/scandir.m4: New file.
47848         * modules/scandir: New file.
47849         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47850         HAVE_SCANDIR.
47851         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47852         HAVE_SCANDIR.
47853         * doc/posix-functions/scandir.texi: Mention the new module and the
47854         portability problems.
47855
47856 2009-01-17  Bruno Haible  <bruno@clisp.org>
47857
47858         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47859         Update documentation.
47860         (func_remove_suffix): Escape all dots in the suffix. Update
47861         documentation.
47862         (func_filter_filelist): Update documentation.
47863         Reported by Ralf Wildenhues.
47864
47865 2009-01-17  Bruno Haible  <bruno@clisp.org>
47866
47867         * modules/dprintf-posix-tests: New file.
47868         * tests/test-dprintf-posix.sh: New file.
47869         * tests/test-dprintf-posix.c: New file.
47870
47871         New modules 'dprintf', 'dprintf-posix'.
47872         * lib/stdio.in.h (dprintf): New declaration.
47873         * lib/dprintf.c: New file.
47874         * m4/dprintf.m4: New file.
47875         * m4/dprintf-posix.m4: New file.
47876         * modules/dprintf: New file.
47877         * modules/dprintf-posix: New file.
47878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47879         HAVE_DPRINTF, REPLACE_DPRINTF.
47880         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47881         HAVE_DPRINTF, REPLACE_DPRINTF.
47882         * doc/posix-functions/dprintf.texi: Mention the new modules.
47883
47884 2009-01-17  Bruno Haible  <bruno@clisp.org>
47885
47886         * modules/vdprintf-posix-tests: New file.
47887         * tests/test-vdprintf-posix.sh: New file.
47888         * tests/test-vdprintf-posix.c: New file.
47889
47890         New modules 'vdprintf', 'vdprintf-posix'.
47891         * lib/stdio.in.h (vdprintf): New declaration.
47892         * lib/vdprintf.c: New file.
47893         * m4/vdprintf.m4: New file.
47894         * m4/vdprintf-posix.m4: New file.
47895         * modules/vdprintf: New file.
47896         * modules/vdprintf-posix: New file.
47897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47898         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47899         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47900         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47901         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47902
47903 2009-01-17  Bruno Haible  <bruno@clisp.org>
47904
47905         Fix replacement of fopen on mingw.
47906         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47907         mingw.
47908
47909 2009-01-17  Bruno Haible  <bruno@clisp.org>
47910
47911         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47912         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47913
47914 2009-01-17  Bruno Haible  <bruno@clisp.org>
47915
47916         Avoid test-fflush2.sh failure on mingw.
47917         * tests/test-fflush2.c: Include binary-io.h.
47918         (main): Put standard input into binary mode.
47919         * modules/fflush-tests (Depends-on): Add binary-io.
47920
47921 2009-01-17  Bruno Haible  <bruno@clisp.org>
47922
47923         * lib/wchar.in.h: In another particular situation, include only the
47924         system's <wchar.h> file.
47925         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47926         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47927         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47928
47929 2009-01-17  Bruno Haible  <bruno@clisp.org>
47930
47931         Support for stripping executables in --enable-relocatable.
47932         * build-aux/install-reloc: Expect one more argument, or an environment
47933         variable RELOC_STRIP_PROG. If set, strip the destination program and
47934         its wrapper.
47935         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47936         RELOC_STRIP_PROG.
47937         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47938         to set RELOCATABLE_STRIP.
47939         * NEWS: Mention the new Makefile requirement.
47940
47941 2009-01-17  Bruno Haible  <bruno@clisp.org>
47942
47943         * build-aux/install-reloc: Remove debugging information left over by
47944         C compiler on MacOS X.
47945
47946 2009-01-17  Bruno Haible  <bruno@clisp.org>
47947
47948         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47949         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47950         _NSGetExecutablePath.
47951
47952 2009-01-16  Jim Meyering  <meyering@redhat.com>
47953
47954         strerror: avoid warnings about discarding "const"
47955         * lib/strerror.c (rpl_strerror): Instead of returning a const
47956         string from each and every "case", use a variable, and add a single
47957         cast after the switch.
47958
47959 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47960
47961         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47962
47963 2009-01-16  Bruno Haible  <bruno@clisp.org>
47964
47965         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47966         array initializer syntax that also works in C++ mode.
47967         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47968
47969 2009-01-16  Jim Meyering  <meyering@redhat.com>
47970
47971         poll: suppress a warning
47972         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47973         to ignore "...unsigned expression < 0 is always false" warnings.
47974
47975 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47976
47977         poll: remove declarations of unused variables
47978         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47979         sockbuf and optlen.
47980
47981 2009-01-15  Bruno Haible  <bruno@clisp.org>
47982
47983         Make fflush-after-ungetc POSIX compliant on BSD systems.
47984         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47985         (clear_ungetc_buffer): Implement also for other systems.
47986         (rpl_fflush): On glibc systems, invoke
47987         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47988         clear_ungetc_buffer after fetching the stream's position, not before.
47989
47990 2009-01-15  Bruno Haible  <bruno@clisp.org>
47991
47992         Make fflush-after-ungetc POSIX compliant on glibc systems.
47993         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47994         after ungetc.
47995         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47996         (rpl_fflush): On glibc systems, simply call the system's fflush
47997         function after clearing the ungetc buffer.
47998         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47999         Instead, lseek only to the end of file, then use the system's fseeko
48000         for the rest. On glibc systems, reset the EOF indicator bit.
48001
48002 2009-01-15  Jim Meyering  <meyering@redhat.com>
48003
48004         openmp.m4: revert quote-adding change, for portability to older autoconf
48005         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48006         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48007         Simon Josefsson noticed the problem when using autoconf-2.61.
48008
48009 2009-01-15  Bruno Haible  <bruno@clisp.org>
48010
48011         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48012         * tests/test-fflush2.c (ASSERT): Always fail.
48013         (main): Add two tests for fflush() after ungetc(), taking into account
48014         the Austin Group's clarification.
48015         Suggested by Eric Blake.
48016
48017 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48018
48019         mktime.m4: remove K&R-style function prototypes
48020         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48021         for the Sun C++ compiler.
48022
48023 2009-01-14  Bruno Haible  <bruno@clisp.org>
48024
48025         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48026         while including <wchar.h>.
48027         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48028         the system's <wchar.h> file.
48029         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48030
48031 2009-01-14  Bruno Haible  <bruno@clisp.org>
48032
48033         * m4/csharp.m4: Don't mention gettext on the serial number line.
48034         * m4/csharpexec.m4: Likewise.
48035         * m4/eaccess.m4: Likewise.
48036         * m4/javaexec.m4: Likewise.
48037         * m4/sig_atomic_t.m4: Likewise.
48038         * m4/tmpdir.m4: Likewise.
48039         * m4/intldir.m4: Bump gettext version.
48040         * m4/lib-ld.m4: Likewise.
48041
48042 2009-01-14  Bruno Haible  <bruno@clisp.org>
48043
48044         * lib/progname.c (set_program_name): Add more comments.
48045         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48046
48047 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48048
48049         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48050         were sys/stat.h does not define it.
48051
48052 2009-01-14  Jim Meyering  <meyering@redhat.com>
48053
48054         many *.m4 files: improve m4 quoting
48055         99% of this change was performed by running the following commands:
48056         git ls-files | grep '\.m4$' | xargs perl -pi \
48057           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48058           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48059           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48060           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48061         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48062         The remainder were to add Copyright dates, increment serial numbers,
48063         undo some changes in comments, exclude m4/intl.m4, and add quotes
48064         around the "1" in ",1" where the unusual spacing prohibited the
48065         above regexps from doing the job.  For more details, see
48066         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48067         * m4/acl.m4: Modified.
48068         * m4/afs.m4: Likewise.
48069         * m4/alloca.m4: Likewise.
48070         * m4/argp.m4: Likewise.
48071         * m4/argz.m4: Likewise.
48072         * m4/atexit.m4: Likewise.
48073         * m4/bison-i18n.m4: Likewise.
48074         * m4/bison.m4: Likewise.
48075         * m4/byteswap.m4: Likewise.
48076         * m4/c-stack.m4: Likewise.
48077         * m4/c-strtod.m4: Likewise.
48078         * m4/calloc.m4: Likewise.
48079         * m4/canonicalize-lgpl.m4: Likewise.
48080         * m4/chown.m4: Likewise.
48081         * m4/clock_time.m4: Likewise.
48082         * m4/codeset.m4: Likewise.
48083         * m4/copy-file.m4: Likewise.
48084         * m4/csharp.m4: Likewise.
48085         * m4/csharpcomp.m4: Likewise.
48086         * m4/csharpexec.m4: Likewise.
48087         * m4/d-ino.m4: Likewise.
48088         * m4/d-type.m4: Likewise.
48089         * m4/dirfd.m4: Likewise.
48090         * m4/double-slash-root.m4: Likewise.
48091         * m4/eaccess.m4: Likewise.
48092         * m4/eealloc.m4: Likewise.
48093         * m4/environ.m4: Likewise.
48094         * m4/errno_h.m4: Likewise.
48095         * m4/euidaccess.m4: Likewise.
48096         * m4/execute.m4: Likewise.
48097         * m4/fatal-signal.m4: Likewise.
48098         * m4/fchdir.m4: Likewise.
48099         * m4/fcntl_h.m4: Likewise.
48100         * m4/fileblocks.m4: Likewise.
48101         * m4/filenamecat.m4: Likewise.
48102         * m4/findprog.m4: Likewise.
48103         * m4/flexmember.m4: Likewise.
48104         * m4/fnmatch.m4: Likewise.
48105         * m4/fopen.m4: Likewise.
48106         * m4/fpending.m4: Likewise.
48107         * m4/fprintf-posix.m4: Likewise.
48108         * m4/free.m4: Likewise.
48109         * m4/frexp.m4: Likewise.
48110         * m4/frexpl.m4: Likewise.
48111         * m4/fsusage.m4: Likewise.
48112         * m4/ftruncate.m4: Likewise.
48113         * m4/gc-camellia.m4: Likewise.
48114         * m4/gc-random.m4: Likewise.
48115         * m4/gc.m4: Likewise.
48116         * m4/getaddrinfo.m4: Likewise.
48117         * m4/getcwd-abort-bug.m4: Likewise.
48118         * m4/getcwd-path-max.m4: Likewise.
48119         * m4/getdate.m4: Likewise.
48120         * m4/getdomainname.m4: Likewise.
48121         * m4/getgroups.m4: Likewise.
48122         * m4/gethostname.m4: Likewise.
48123         * m4/gethrxtime.m4: Likewise.
48124         * m4/getline.m4: Likewise.
48125         * m4/getloadavg.m4: Likewise.
48126         * m4/getndelim2.m4: Likewise.
48127         * m4/getpass.m4: Likewise.
48128         * m4/gettext.m4: Likewise.
48129         * m4/gettime.m4: Likewise.
48130         * m4/gettimeofday.m4: Likewise.
48131         * m4/gnulib-common.m4: Likewise.
48132         * m4/group-member.m4: Likewise.
48133         * m4/host-os.m4: Likewise.
48134         * m4/iconv.m4: Likewise.
48135         * m4/iconv_open.m4: Likewise.
48136         * m4/inet_ntop.m4: Likewise.
48137         * m4/inet_pton.m4: Likewise.
48138         * m4/inline.m4: Likewise.
48139         * m4/intldir.m4: Likewise.
48140         * m4/intlmacosx.m4: Likewise.
48141         * m4/intmax.m4: Likewise.
48142         * m4/intmax_t.m4: Likewise.
48143         * m4/inttypes.m4: Likewise.
48144         * m4/inttypes_h.m4: Likewise.
48145         * m4/inttypes-pri.m4: Likewise.
48146         * m4/isapipe.m4: Likewise.
48147         * m4/isnand.m4: Likewise.
48148         * m4/isnanf.m4: Likewise.
48149         * m4/isnanl.m4: Likewise.
48150         * m4/javacomp.m4: Likewise.
48151         * m4/javaexec.m4: Likewise.
48152         * m4/jm-winsz1.m4: Likewise.
48153         * m4/jm-winsz2.m4: Likewise.
48154         * m4/lchown.m4: Likewise.
48155         * m4/lcmessage.m4: Likewise.
48156         * m4/ldexpl.m4: Likewise.
48157         * m4/lib-ld.m4: Likewise.
48158         * m4/lib-link.m4: Likewise.
48159         * m4/libsigsegv.m4: Likewise.
48160         * m4/link-follow.m4: Likewise.
48161         * m4/localcharset.m4: Likewise.
48162         * m4/locale-fr.m4: Likewise.
48163         * m4/locale-ja.m4: Likewise.
48164         * m4/locale-tr.m4: Likewise.
48165         * m4/locale-zh.m4: Likewise.
48166         * m4/lock.m4: Likewise.
48167         * m4/longlong.m4: Likewise.
48168         * m4/ls-mntd-fs.m4: Likewise.
48169         * m4/lstat.m4: Likewise.
48170         * m4/malloc.m4: Likewise.
48171         * m4/mathl.m4: Likewise.
48172         * m4/mbrtowc.m4: Likewise.
48173         * m4/mbstate_t.m4: Likewise.
48174         * m4/mbswidth.m4: Likewise.
48175         * m4/memchr.m4: Likewise.
48176         * m4/memcmp.m4: Likewise.
48177         * m4/memcpy.m4: Likewise.
48178         * m4/memmem.m4: Likewise.
48179         * m4/memmove.m4: Likewise.
48180         * m4/mempcpy.m4: Likewise.
48181         * m4/memrchr.m4: Likewise.
48182         * m4/memset.m4: Likewise.
48183         * m4/minmax.m4: Likewise.
48184         * m4/mkdir-slash.m4: Likewise.
48185         * m4/mkdtemp.m4: Likewise.
48186         * m4/mktime.m4: Likewise.
48187         * m4/mmap-anon.m4: Likewise.
48188         * m4/mountlist.m4: Likewise.
48189         * m4/nanosleep.m4: Likewise.
48190         * m4/nls.m4: Likewise.
48191         * m4/nocrash.m4: Likewise.
48192         * m4/open.m4: Likewise.
48193         * m4/openat.m4: Likewise.
48194         * m4/openmp.m4: Likewise.
48195         * m4/pathmax.m4: Likewise.
48196         * m4/perl.m4: Likewise.
48197         * m4/physmem.m4: Likewise.
48198         * m4/pipe.m4: Likewise.
48199         * m4/po.m4: Likewise.
48200         * m4/poll.m4: Likewise.
48201         * m4/posixtm.m4: Likewise.
48202         * m4/posixver.m4: Likewise.
48203         * m4/printf-frexp.m4: Likewise.
48204         * m4/printf-frexpl.m4: Likewise.
48205         * m4/printf-posix.m4: Likewise.
48206         * m4/printf-posix-rpl.m4: Likewise.
48207         * m4/printf.m4: Likewise.
48208         * m4/progtest.m4: Likewise.
48209         * m4/putenv.m4: Likewise.
48210         * m4/readline.m4: Likewise.
48211         * m4/readlink.m4: Likewise.
48212         * m4/readutmp.m4: Likewise.
48213         * m4/realloc.m4: Likewise.
48214         * m4/regex.m4: Likewise.
48215         * m4/relocatable.m4: Likewise.
48216         * m4/relocatable-lib.m4: Likewise.
48217         * m4/rename-dest-slash.m4: Likewise.
48218         * m4/rename.m4: Likewise.
48219         * m4/rmdir-errno.m4: Likewise.
48220         * m4/rmdir.m4: Likewise.
48221         * m4/roundf.m4: Likewise.
48222         * m4/roundl.m4: Likewise.
48223         * m4/rpmatch.m4: Likewise.
48224         * m4/save-cwd.m4: Likewise.
48225         * m4/selinux-selinux-h.m4: Likewise.
48226         * m4/setenv.m4: Likewise.
48227         * m4/settime.m4: Likewise.
48228         * m4/sig2str.m4: Likewise.
48229         * m4/sig_atomic_t.m4: Likewise.
48230         * m4/signalblocking.m4: Likewise.
48231         * m4/signbit.m4: Likewise.
48232         * m4/sigpipe.m4: Likewise.
48233         * m4/sockets.m4: Likewise.
48234         * m4/sockpfaf.m4: Likewise.
48235         * m4/st_dm_mode.m4: Likewise.
48236         * m4/stat-time.m4: Likewise.
48237         * m4/stdbool.m4: Likewise.
48238         * m4/stdint.m4: Likewise.
48239         * m4/stdint_h.m4: Likewise.
48240         * m4/stpcpy.m4: Likewise.
48241         * m4/stpncpy.m4: Likewise.
48242         * m4/strcase.m4: Likewise.
48243         * m4/strchrnul.m4: Likewise.
48244         * m4/strcspn.m4: Likewise.
48245         * m4/strdup.m4: Likewise.
48246         * m4/strftime.m4: Likewise.
48247         * m4/strndup.m4: Likewise.
48248         * m4/strnlen.m4: Likewise.
48249         * m4/strpbrk.m4: Likewise.
48250         * m4/strptime.m4: Likewise.
48251         * m4/strsep.m4: Likewise.
48252         * m4/strtod.m4: Likewise.
48253         * m4/strtoimax.m4: Likewise.
48254         * m4/strtok_r.m4: Likewise.
48255         * m4/strtol.m4: Likewise.
48256         * m4/strtoll.m4: Likewise.
48257         * m4/strtoul.m4: Likewise.
48258         * m4/strtoull.m4: Likewise.
48259         * m4/strtoumax.m4: Likewise.
48260         * m4/strverscmp.m4: Likewise.
48261         * m4/threadlib.m4: Likewise.
48262         * m4/timegm.m4: Likewise.
48263         * m4/tm_gmtoff.m4: Likewise.
48264         * m4/tmpdir.m4: Likewise.
48265         * m4/tmpfile.m4: Likewise.
48266         * m4/tzset.m4: Likewise.
48267         * m4/uintmax_t.m4: Likewise.
48268         * m4/unlinkdir.m4: Likewise.
48269         * m4/unlocked-io.m4: Likewise.
48270         * m4/uptime.m4: Likewise.
48271         * m4/userspec.m4: Likewise.
48272         * m4/utimbuf.m4: Likewise.
48273         * m4/utime.m4: Likewise.
48274         * m4/utimes-null.m4: Likewise.
48275         * m4/utimes.m4: Likewise.
48276         * m4/vararrays.m4: Likewise.
48277         * m4/vasnprintf.m4: Likewise.
48278         * m4/vfprintf-posix.m4: Likewise.
48279         * m4/vprintf-posix.m4: Likewise.
48280         * m4/wait-process.m4: Likewise.
48281         * m4/wchar_t.m4: Likewise.
48282         * m4/wint_t.m4: Likewise.
48283         * m4/write-any-file.m4: Likewise.
48284         * m4/yield.m4: Likewise.
48285
48286 2009-01-13  Bruno Haible  <bruno@clisp.org>
48287
48288         Avoid test-copy-file.sh failures when ACL support insufficient.
48289         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48290         TESTS_ENVIRONMENT.
48291         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48292         Reported by Jim Meyering.
48293
48294 2009-01-13  Bruno Haible  <bruno@clisp.org>
48295
48296         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48297         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48298         * modules/unistdio/u8-printf-parse (Files): Likewise.
48299         * modules/unistdio/u32-printf-parse (Files): Likewise.
48300         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48301
48302 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48303
48304         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48305         and m4/inttypes_h.m4 too.
48306
48307 2009-01-12  Eric Blake  <ebb9@byu.net>
48308
48309         tests: IRIX 6.2 cc can't compile -0.0 into .data
48310         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48311         rather than at compile-time.
48312         * tests/test-floorl.c (minus_zero): Likewise.
48313         * tests/test-frexpl.c (minus_zero): Likewise.
48314         * tests/test-isnan.c (minus_zerol): Likewise.
48315         * tests/test-isnanl.h (minus_zero): Likewise.
48316         * tests/test-ldexpl.c (minus_zero): Likewise.
48317         * tests/test-roundl.c (minus_zero): Likewise.
48318         * tests/test-signbit.c (minus_zerol): Likewise.
48319         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48320         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48321         * tests/test-truncl.c (minus_zero): Likewise.
48322         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48323         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48324         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48325
48326 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48327
48328         regex: fix glibc bug 9697
48329         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48330         handling.
48331
48332 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48333
48334         regex: fix glibc bug 697
48335         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48336         being NULL also if there are no backreferences.
48337
48338 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48339
48340         regex: merge glibc changes
48341         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48342         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48343         re_string_skip_chars, re_string_reconstruct): Likewise.
48344         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48345
48346 2009-01-07  Jim Meyering  <meyering@redhat.com>
48347
48348         poll: filter through cppi
48349         * lib/poll.c: Indent cpp directives to reflect nesting.
48350
48351 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48352
48353         poll: don't return uninitialized
48354         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48355
48356 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48357
48358         avoid compile failure on AIX 6.1
48359         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48360         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48361
48362 2009-01-04  Jim Meyering  <meyering@redhat.com>
48363
48364         remove duplicate inclusion of <stdio.h>
48365         * tests/test-fprintf-posix.c: Likewise.
48366         * tests/test-printf-posix.c: Likewise.
48367         * tests/test-snprintf-posix.c: Likewise.
48368         * tests/test-sprintf-posix.c: Likewise.
48369         * tests/test-vasprintf-posix.c: Likewise.
48370         * tests/test-vfprintf-posix.c: Likewise.
48371         * tests/test-vprintf-posix.c: Likewise.
48372         * tests/test-vsnprintf-posix.c: Likewise.
48373         * tests/test-vsprintf-posix.c: Likewise.
48374
48375 2009-01-03  Jim Meyering  <meyering@redhat.com>
48376
48377         gnulib-tool: fix sed-based filtering
48378         * gnulib-tool (func_filter_filelist): Remove extra backslash
48379         in sed_fff_filter definition.
48380
48381 2009-01-02  Jim Meyering  <meyering@redhat.com>
48382
48383         strftime: avoid compilation failure on Solaris 2.6
48384         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48385         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48386         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48387         be available.  Reported by Tom G. Christensen.  Details in
48388         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48389
48390 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48391             Bruno Haible  <bruno@clisp.org>
48392
48393         Speed up gnulib-tool by doing more string processing through shell
48394         built-ins.
48395         * gnulib-tool (fast_func_append): New variable.
48396         (func_remove_prefix, func_remove_suffix): New functions.
48397         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48398         (func_filter_filelist): New function.
48399         (func_get_dependencies): Use func_remove_suffix instead of sed.
48400         (func_get_automake_snippet): Use func_filter_filelist instead of a
48401         subshell and sed invocation.
48402
48403 2009-01-01  Bruno Haible  <bruno@clisp.org>
48404
48405         Fix a security bug.
48406         * gnulib-tool (func_import, import, update): Don't allow the characters
48407         '"', '$', '`', '\' in macro arguments that become part of commands that
48408         are evaluated.
48409
48410 2009-01-01  Bruno Haible  <bruno@clisp.org>
48411
48412         * gnulib-tool (func_reset_sigpipe): Add more comments.
48413
48414 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48415
48416         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48417         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48418         already know the answer.
48419
48420 2009-01-01  Jim Meyering  <meyering@redhat.com>
48421
48422         * lib/version-etc.c (version_etc_va): Update copyright year.
48423
48424 2008-12-30  Bruno Haible  <bruno@clisp.org>
48425
48426         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48427         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48428         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48429
48430 2008-12-29  Eric Blake  <ebb9@byu.net>
48431
48432         multiarch: avoid autoconf AC_REQUIRE bug
48433         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48434         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48435         2.63 and older.
48436         Reported by Bruno Haible, and analyzed in
48437         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48438
48439 2008-12-29  Bruno Haible  <bruno@clisp.org>
48440
48441         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48442         files in subdirectories correctly.
48443         Reported by Ralf Wildenhues.
48444
48445 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48446
48447         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48448         rather than 'join FILE -', for Solaris join.
48449
48450 2008-12-29  Bruno Haible  <bruno@clisp.org>
48451
48452         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48453         quoting.
48454         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48455         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48456         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48457         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48458         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48459         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48460         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48461         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48462         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48463         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48464         * m4/nls.m4 (AM_NLS): Likewise.
48465         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48466         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48467         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48468         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48469         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48470         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48471         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48472         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48473         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48474         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48475         * m4/xsize.m4 (gl_XSIZE): Likewise.
48476         Suggested by Jim Meyering.
48477
48478 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48479
48480         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48481         * lib/parse-duration.c: use a switch instead of cascading if's.
48482
48483 2008-12-29  Eric Blake  <ebb9@byu.net>
48484
48485         wchar.h: supply WEOF on Irix 5.3
48486         * lib/wchar.in.h (wint_t): Also supply WEOF.
48487         * lib/wctype.in.h (wint_t): Likewise.
48488         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48489         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48490         Reported by Tom G. Christensen.
48491
48492 2008-12-26  Bruno Haible  <bruno@clisp.org>
48493
48494         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48495         i486, i586, i686.
48496
48497 2008-12-26  Bruno Haible  <bruno@clisp.org>
48498
48499         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48500
48501 2008-12-26  Bruno Haible  <bruno@clisp.org>
48502
48503         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48504         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48505         not __STDC_CONSTANT_MACROS.
48506         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48507
48508 2008-12-25  Bruno Haible  <bruno@clisp.org>
48509
48510         Add support for universal builds to vasnprintf.
48511         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48512         universal builds, guess no.
48513         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48514         * modules/vasprintf-posix (Depends-on): Likewise.
48515         * modules/fprintf-posix (Depends-on): Likewise.
48516         * modules/vfprintf-posix (Depends-on): Likewise.
48517         * modules/snprintf-posix (Depends-on): Likewise.
48518         * modules/vsnprintf-posix (Depends-on): Likewise.
48519         * modules/sprintf-posix (Depends-on): Likewise.
48520         * modules/vsprintf-posix (Depends-on): Likewise.
48521         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48522         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48523         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48524         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48525         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48526         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48527         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48528
48529         Add support for universal builds to <inttypes.h>.
48530         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48531         _SCNu64_PREFIX): In Apple
48532         universal builds, define directly, using _LP64.
48533         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48534         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48535         * modules/inttypes (Depends-on): Add multiarch.
48536         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48537
48538         Add support for universal builds to <stdint.h>.
48539         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48540         universal builds, define directly, using _LP64.
48541         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48542         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48543         and size_t.
48544         * modules/stdint (Depends-on): Add multiarch.
48545         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48546
48547         New module 'multiarch'.
48548         * modules/multiarch: New file.
48549         * m4/multiarch.m4: New file.
48550
48551 2008-12-25  Bruno Haible  <bruno@clisp.org>
48552
48553         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48554
48555 2008-12-25  Bruno Haible  <bruno@clisp.org>
48556
48557         * modules/btowc (License): Relicense under LGPLv2+.
48558         * modules/mbsinit (License): Likewise.
48559         * modules/mbrtowc (License): Likewise.
48560         * modules/wcrtomb (License): Likewise.
48561         * modules/streq (License): Likewise.
48562         Reported by David Lutterkort <lutter@redhat.com>.
48563
48564 2008-12-23  Bruno Haible  <bruno@clisp.org>
48565
48566         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48567
48568 2008-12-23  Bruno Haible  <bruno@clisp.org>
48569
48570         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48571         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48572         GETADDRINFO_LIB, not in LIBS.
48573         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48574         * modules/canon-host (Link): Likewise.
48575         * NEWS: Mention the change.
48576         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48577         GETADDRINFO_LIB.
48578
48579 2008-12-22  Bruno Haible  <bruno@clisp.org>
48580
48581         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48582         * doc/posix-functions/iswalpha_l.texi: Likewise.
48583         * doc/posix-functions/iswblank_l.texi: Likewise.
48584         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48585         * doc/posix-functions/iswctype_l.texi: Likewise.
48586         * doc/posix-functions/iswdigit_l.texi: Likewise.
48587         * doc/posix-functions/iswgraph_l.texi: Likewise.
48588         * doc/posix-functions/iswlower_l.texi: Likewise.
48589         * doc/posix-functions/iswprint_l.texi: Likewise.
48590         * doc/posix-functions/iswpunct_l.texi: Likewise.
48591         * doc/posix-functions/iswspace_l.texi: Likewise.
48592         * doc/posix-functions/iswupper_l.texi: Likewise.
48593         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48594         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48595         * doc/posix-functions/open_wmemstream.texi: Likewise.
48596         * doc/posix-functions/swscanf.texi: Likewise.
48597         * doc/posix-functions/towctrans_l.texi: Likewise.
48598         * doc/posix-functions/towlower.texi: Likewise.
48599         * doc/posix-functions/towlower_l.texi: Likewise.
48600         * doc/posix-functions/towupper.texi: Likewise.
48601         * doc/posix-functions/towupper_l.texi: Likewise.
48602         * doc/posix-functions/vfwprintf.texi: Likewise.
48603         * doc/posix-functions/vfwscanf.texi: Likewise.
48604         * doc/posix-functions/vswscanf.texi: Likewise.
48605         * doc/posix-functions/vwprintf.texi: Likewise.
48606         * doc/posix-functions/vwscanf.texi: Likewise.
48607         * doc/posix-functions/wcpcpy.texi: Likewise.
48608         * doc/posix-functions/wcpncpy.texi: Likewise.
48609         * doc/posix-functions/wcscasecmp.texi: Likewise.
48610         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48611         * doc/posix-functions/wcscoll_l.texi: Likewise.
48612         * doc/posix-functions/wcsdup.texi: Likewise.
48613         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48614         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48615         * doc/posix-functions/wcsnlen.texi: Likewise.
48616         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48617         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48618         * doc/posix-functions/wctrans_l.texi: Likewise.
48619         * doc/posix-functions/wctype_l.texi: Likewise.
48620         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48621         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48622         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48623         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48624         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48625         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48626         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48627         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48628         * doc/glibc-functions/wcschrnul.texi: Likewise.
48629         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48630         * doc/glibc-functions/wcstod_l.texi: Likewise.
48631         * doc/glibc-functions/wcstof_l.texi: Likewise.
48632         * doc/glibc-functions/wcstol_l.texi: Likewise.
48633         * doc/glibc-functions/wcstold_l.texi: Likewise.
48634         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48635         * doc/glibc-functions/wcstoq.texi: Likewise.
48636         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48637         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48638         * doc/glibc-functions/wcstouq.texi: Likewise.
48639         * doc/glibc-functions/wmempcpy.texi: Likewise.
48640
48641 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48642             Eric Blake  <ebb9@byu.net>
48643             Paolo Bonzini  <bonzini@gnu.org>
48644             Bruno Haible  <bruno@clisp.org>
48645
48646         Make c-stack work on Haiku.
48647         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48648         (c_stack_action): Use SA_ONSTACK flag.
48649
48650 2008-12-22  Bruno Haible  <bruno@clisp.org>
48651
48652         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48653
48654 2008-12-22  Bruno Haible  <bruno@clisp.org>
48655
48656         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48657         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48658         being overridden.
48659         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48660         New macros.
48661         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48662         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48663         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48664         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48665
48666 2008-12-22  Bruno Haible  <bruno@clisp.org>
48667
48668         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48669         from test code.
48670
48671 2008-12-22  Eric Blake  <ebb9@byu.net>
48672
48673         Avoid gcc warnings on cygwin.
48674         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48675         Avoid unused variable.
48676         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48677         Likewise.
48678
48679 2008-12-22  Bruno Haible  <bruno@clisp.org>
48680
48681         Remove HAVE_MBRTOWC conditionals.
48682         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48683         (mbscasecmp): Assume mbrtowc function.
48684         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48685         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48686         * lib/mbschr.c: Include mbuiter.h unconditionally.
48687         (mbschr): Assume mbrtowc function.
48688         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48689         (mbscspn): Assume mbrtowc function.
48690         * lib/mbslen.c: Include mbuiter.h unconditionally.
48691         (mbslen): Assume mbrtowc function.
48692         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48693         (mbsncasecmp): Assume mbrtowc function.
48694         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48695         (mbsnlen): Assume mbrtowc function.
48696         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48697         (mbspbrk): Assume mbrtowc function.
48698         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48699         (mbspcasecmp): Assume mbrtowc function.
48700         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48701         (mbsrchr): Assume mbrtowc function.
48702         * lib/mbssep.c: Include mbuiter.h unconditionally.
48703         (mbssep): Assume mbrtowc function.
48704         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48705         (mbsspn): Assume mbrtowc function.
48706         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48707         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48708         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48709         (mbstok_r): Assume mbrtowc function.
48710         * lib/propername.c: Include mbuiter.h unconditionally.
48711         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48712         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48713         (trim2): Assume mbrtowc function.
48714         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48715         (mbsnwidth): Assume mbrtowc function.
48716         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48717         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48718         fallback definitions.
48719         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48720
48721 2008-12-22  Bruno Haible  <bruno@clisp.org>
48722
48723         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48724
48725 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48726
48727         * modules/regex: Request emulations for the mb*/wc* functions we need.
48728         * m4/regex.m4: Don't look for those functions here.
48729         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48730
48731 2008-12-22  Bruno Haible  <bruno@clisp.org>
48732
48733         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48734
48735 2008-12-21  Bruno Haible  <bruno@clisp.org>
48736
48737         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48738         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48739         (Include): Remove conditionalization.
48740         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48741         (Include): Remove conditionalization.
48742         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48743         (Include): Remove conditionalization.
48744         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48745         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48746         * NEWS: Mention the change.
48747         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48748         via Sergey Poznyakoff <gray@gnu.org.ua>.
48749
48750 2008-12-21  Bruno Haible  <bruno@clisp.org>
48751
48752         * MODULES.html.sh (Extended multibyte and wide character utilities
48753         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48754         wcrtomb, wcsrtombs.
48755         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48756         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48757         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48758         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48759
48760 2008-12-21  Bruno Haible  <bruno@clisp.org>
48761
48762         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48763
48764 2008-12-21  Bruno Haible  <bruno@clisp.org>
48765
48766         * modules/wcsnrtombs-tests: New file.
48767         * tests/test-wcsnrtombs1.sh: New file.
48768         * tests/test-wcsnrtombs2.sh: New file.
48769         * tests/test-wcsnrtombs3.sh: New file.
48770         * tests/test-wcsnrtombs4.sh: New file.
48771         * tests/test-wcsnrtombs.c: New file.
48772
48773         New module 'wcsnrtombs'.
48774         * lib/wchar.in.h (wcsnrtombs): New declaration.
48775         * lib/wcsnrtombs.c: New file.
48776         * lib/wcsrtombs-state.c: New file.
48777         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48778         (internal_state): Remove variable.
48779         * m4/wcsnrtombs.m4: New file.
48780         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48781         compilation units.
48782         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48783         HAVE_WCSNRTOMBS.
48784         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48785         HAVE_WCSNRTOMBS.
48786         * modules/wcsnrtombs: New file.
48787         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48788         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48789
48790 2008-12-21  Bruno Haible  <bruno@clisp.org>
48791
48792         * modules/wcsrtombs-tests: New file.
48793         * tests/test-wcsrtombs1.sh: New file.
48794         * tests/test-wcsrtombs2.sh: New file.
48795         * tests/test-wcsrtombs3.sh: New file.
48796         * tests/test-wcsrtombs4.sh: New file.
48797         * tests/test-wcsrtombs.c: New file.
48798
48799         New module 'wcsrtombs'.
48800         * lib/wchar.in.h (wcsrtombs): New declaration.
48801         * lib/wcsrtombs.c: New file.
48802         * m4/wcsrtombs.m4: New file.
48803         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48804         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48805         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48806         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48807         * modules/wcsrtombs: New file.
48808         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48809         bugs.
48810
48811 2008-12-21  Bruno Haible  <bruno@clisp.org>
48812
48813         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48814         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48815         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48816         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48817         if not correct.
48818         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48819         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48820         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48821         m4/locale-zh.m4, m4/codeset.m4.
48822         * doc/posix-functions/wcrtomb.texi: Document the bug.
48823
48824 2008-12-21  Bruno Haible  <bruno@clisp.org>
48825
48826         Work around a btowc() bug on IRIX 6.5.
48827         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48828         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48829         REPLACE_WTOBC if not.
48830         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48831         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48832         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48833
48834 2008-12-21  Bruno Haible  <bruno@clisp.org>
48835
48836         * modules/wcrtomb-tests: New file.
48837         * tests/test-wcrtomb.sh: New file.
48838         * tests/test-wcrtomb.c: New file.
48839
48840         New module 'wcrtomb'.
48841         * lib/wchar.in.h (wcrtomb): New declaration.
48842         * lib/wcrtomb.c: New file.
48843         * m4/wcrtomb.m4: New file.
48844         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48845         HAVE_WCRTOMB.
48846         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48847         HAVE_WCRTOMB.
48848         * modules/wcrtomb: New file.
48849         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48850
48851 2008-12-21  Bruno Haible  <bruno@clisp.org>
48852
48853         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48854         * modules/mbsrtowcs (Files): Likewise.
48855         * modules/wctob (Files): Likewise.
48856         * modules/c-strcase-tests (Files): Likewise.
48857         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48858         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48859         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48860         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48861         * modules/vasnprintf-posix-tests (Files): Likewise.
48862
48863 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48864
48865         gitlog-to-changelog: pass all command-line arguments to git-log
48866         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48867         it is sometimes convenient to filter the commits in various ways.
48868         gitlog-to-changelog only allows --since to specify a start date,
48869         but git-log itself supports many other filtering mechanisms.
48870         At the moment, I want to filter by branch name.  Rather than
48871         adding a --branch option to gitlog-to-changelog, it seems more
48872         flexible to simply pass all options directly to git-log and let
48873         git do the work.  Notice that this effectively makes --since a
48874         redundant option for gitlog-to-changelog, but removing it would
48875         require current usage to change since calls would then require
48876         an additional '--'.
48877
48878 2008-12-21  Bruno Haible  <bruno@clisp.org>
48879
48880         * modules/mbsnrtowcs-tests: New file.
48881         * tests/test-mbsnrtowcs1.sh: New file.
48882         * tests/test-mbsnrtowcs2.sh: New file.
48883         * tests/test-mbsnrtowcs3.sh: New file.
48884         * tests/test-mbsnrtowcs4.sh: New file.
48885         * tests/test-mbsnrtowcs.c: New file.
48886
48887         New module 'mbsnrtowcs'.
48888         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48889         * lib/mbsnrtowcs.c: New file.
48890         * lib/mbsrtowcs-state.c: New file.
48891         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48892         (internal_state): Remove variable.
48893         * m4/mbsnrtowcs.m4: New file.
48894         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48895         compilation units.
48896         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48897         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48898         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48899         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48900         * modules/mbsnrtowcs: New file.
48901         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48902         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48903         portability problem.
48904
48905 2008-12-21  Bruno Haible  <bruno@clisp.org>
48906
48907         Work around mbsrtowcs bug.
48908         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48909         (gl_FUNC_MBSRTOWCS): Invoke it.
48910         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48911         m4/locale-zh.m4.
48912         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48913
48914 2008-12-21  Bruno Haible  <bruno@clisp.org>
48915
48916         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48917
48918 2008-12-21  Bruno Haible  <bruno@clisp.org>
48919
48920         Update doc for AIX.
48921         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48922         16-bit wchar_t type.
48923         * doc/posix-functions/btowc.texi: Likewise.
48924         * doc/posix-functions/fgetwc.texi: Likewise.
48925         * doc/posix-functions/fgetws.texi: Likewise.
48926         * doc/posix-functions/fputwc.texi: Likewise.
48927         * doc/posix-functions/fputws.texi: Likewise.
48928         * doc/posix-functions/fwide.texi: Likewise.
48929         * doc/posix-functions/fwprintf.texi: Likewise.
48930         * doc/posix-functions/fwscanf.texi: Likewise.
48931         * doc/posix-functions/getwchar.texi: Likewise.
48932         * doc/posix-functions/getwc.texi: Likewise.
48933         * doc/posix-functions/iswalnum.texi: Likewise.
48934         * doc/posix-functions/iswalpha.texi: Likewise.
48935         * doc/posix-functions/iswblank.texi: Likewise.
48936         * doc/posix-functions/iswcntrl.texi: Likewise.
48937         * doc/posix-functions/iswctype.texi: Likewise.
48938         * doc/posix-functions/iswdigit.texi: Likewise.
48939         * doc/posix-functions/iswgraph.texi: Likewise.
48940         * doc/posix-functions/iswlower.texi: Likewise.
48941         * doc/posix-functions/iswprint.texi: Likewise.
48942         * doc/posix-functions/iswpunct.texi: Likewise.
48943         * doc/posix-functions/iswspace.texi: Likewise.
48944         * doc/posix-functions/iswupper.texi: Likewise.
48945         * doc/posix-functions/iswxdigit.texi: Likewise.
48946         * doc/posix-functions/mbrtowc.texi: Likewise.
48947         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48948         * doc/posix-functions/mbstowcs.texi: Likewise.
48949         * doc/posix-functions/mbtowc.texi: Likewise.
48950         * doc/posix-functions/putwchar.texi: Likewise.
48951         * doc/posix-functions/putwc.texi: Likewise.
48952         * doc/posix-functions/swprintf.texi: Likewise.
48953         * doc/posix-functions/tolower.texi: Likewise.
48954         * doc/posix-functions/toupper.texi: Likewise.
48955         * doc/posix-functions/towctrans.texi: Likewise.
48956         * doc/posix-functions/ungetwc.texi: Likewise.
48957         * doc/posix-functions/vswprintf.texi: Likewise.
48958         * doc/posix-functions/wcrtomb.texi: Likewise.
48959         * doc/posix-functions/wcscat.texi: Likewise.
48960         * doc/posix-functions/wcschr.texi: Likewise.
48961         * doc/posix-functions/wcscmp.texi: Likewise.
48962         * doc/posix-functions/wcscoll.texi: Likewise.
48963         * doc/posix-functions/wcscpy.texi: Likewise.
48964         * doc/posix-functions/wcscspn.texi: Likewise.
48965         * doc/posix-functions/wcsftime.texi: Likewise.
48966         * doc/posix-functions/wcslen.texi: Likewise.
48967         * doc/posix-functions/wcsncat.texi: Likewise.
48968         * doc/posix-functions/wcsncmp.texi: Likewise.
48969         * doc/posix-functions/wcsncpy.texi: Likewise.
48970         * doc/posix-functions/wcspbrk.texi: Likewise.
48971         * doc/posix-functions/wcsrchr.texi: Likewise.
48972         * doc/posix-functions/wcsrtombs.texi: Likewise.
48973         * doc/posix-functions/wcsspn.texi: Likewise.
48974         * doc/posix-functions/wcsstr.texi: Likewise.
48975         * doc/posix-functions/wcstod.texi: Likewise.
48976         * doc/posix-functions/wcstof.texi: Likewise.
48977         * doc/posix-functions/wcstoimax.texi: Likewise.
48978         * doc/posix-functions/wcstok.texi: Likewise.
48979         * doc/posix-functions/wcstold.texi: Likewise.
48980         * doc/posix-functions/wcstoll.texi: Likewise.
48981         * doc/posix-functions/wcstol.texi: Likewise.
48982         * doc/posix-functions/wcstombs.texi: Likewise.
48983         * doc/posix-functions/wcstoull.texi: Likewise.
48984         * doc/posix-functions/wcstoul.texi: Likewise.
48985         * doc/posix-functions/wcstoumax.texi: Likewise.
48986         * doc/posix-functions/wcswidth.texi: Likewise.
48987         * doc/posix-functions/wcsxfrm.texi: Likewise.
48988         * doc/posix-functions/wctob.texi: Likewise.
48989         * doc/posix-functions/wctomb.texi: Likewise.
48990         * doc/posix-functions/wctrans.texi: Likewise.
48991         * doc/posix-functions/wctype.texi: Likewise.
48992         * doc/posix-functions/wcwidth.texi: Likewise.
48993         * doc/posix-functions/wmemchr.texi: Likewise.
48994         * doc/posix-functions/wmemcmp.texi: Likewise.
48995         * doc/posix-functions/wmemcpy.texi: Likewise.
48996         * doc/posix-functions/wmemmove.texi: Likewise.
48997         * doc/posix-functions/wmemset.texi: Likewise.
48998         * doc/posix-functions/wprintf.texi: Likewise.
48999         * doc/posix-functions/wscanf.texi: Likewise.
49000
49001 2008-12-21  Bruno Haible  <bruno@clisp.org>
49002
49003         Update doc for HP-UX 11.11.
49004         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49005         in HP-UX version 11.00, not in all versions of HP-UX 11.
49006         * doc/posix-functions/fwide.texi: Likewise.
49007         * doc/posix-functions/fwprintf.texi: Likewise.
49008         * doc/posix-functions/fwscanf.texi: Likewise.
49009         * doc/posix-functions/inet_ntop.texi: Likewise.
49010         * doc/posix-functions/inet_pton.texi: Likewise.
49011         * doc/posix-functions/mbrlen.texi: Likewise.
49012         * doc/posix-functions/mbrtowc.texi: Likewise.
49013         * doc/posix-functions/mbsinit.texi: Likewise.
49014         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49015         * doc/posix-functions/swprintf.texi: Likewise.
49016         * doc/posix-functions/swscanf.texi: Likewise.
49017         * doc/posix-functions/towctrans.texi: Likewise.
49018         * doc/posix-functions/vfwprintf.texi: Likewise.
49019         * doc/posix-functions/vswprintf.texi: Likewise.
49020         * doc/posix-functions/vwprintf.texi: Likewise.
49021         * doc/posix-functions/wcrtomb.texi: Likewise.
49022         * doc/posix-functions/wcsrtombs.texi: Likewise.
49023         * doc/posix-functions/wcsstr.texi: Likewise.
49024         * doc/posix-functions/wctob.texi: Likewise.
49025         * doc/posix-functions/wctrans.texi: Likewise.
49026         * doc/posix-functions/wmemchr.texi: Likewise.
49027         * doc/posix-functions/wmemcmp.texi: Likewise.
49028         * doc/posix-functions/wmemcpy.texi: Likewise.
49029         * doc/posix-functions/wmemmove.texi: Likewise.
49030         * doc/posix-functions/wmemset.texi: Likewise.
49031         * doc/posix-functions/wprintf.texi: Likewise.
49032         * doc/posix-functions/wscanf.texi: Likewise.
49033
49034 2008-12-21  Bruno Haible  <bruno@clisp.org>
49035
49036         Work around a portability problem.
49037         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49038         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49039
49040 2008-12-20  Bruno Haible  <bruno@clisp.org>
49041
49042         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49043         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49044         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49045         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49046         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49047
49048         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49049         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49050         set.
49051         (GNULIB_defined_mbstate_t): New macro.
49052         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49053         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49054         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49055         reuses the system's mbrtowc function but works around the bugs.
49056         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49057         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49058         macros.
49059         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49060         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49061         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49062         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49063         REPLACE_MBSINIT if mbsinit needs to be overridden.
49064         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49065         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49066         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49067         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49068         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49069         m4/locale-zh.m4.
49070         (Depends): Add mbsinit.
49071         * modules/mbsinit (Depends): Add mbrtowc.
49072         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49073
49074 2008-12-20  Bruno Haible  <bruno@clisp.org>
49075
49076         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49077         so that there are no conversion errors on AIX.
49078         * tests/test-mbsrtowcs.c (main): LIkewise.
49079
49080 2008-12-20  Bruno Haible  <bruno@clisp.org>
49081
49082         Work around wctob bug on Solaris <= 9.
49083         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49084         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49085         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49086         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49087         * modules/wctob (Files): Add m4/locale-fr.m4.
49088         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49089
49090 2008-12-20  Bruno Haible  <bruno@clisp.org>
49091
49092         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49093         /dev/null.
49094         * tests/test-select-in.sh: Likewise.
49095         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49096
49097 2008-12-20  Bruno Haible  <bruno@clisp.org>
49098
49099         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49100         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49101         Cygwin 1.5.x.
49102
49103 2008-12-20  Bruno Haible  <bruno@clisp.org>
49104
49105         Ensure mbstate_t is defined on HP-UX 11.11.
49106         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49107         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49108         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49109         AC_USE_SYSTEM_EXTENSIONS.
49110         * modules/fnmatch (Depends-on): Add extensions.
49111         * modules/mbrlen (Depends-on): Likewise.
49112         * modules/mbrtowc (Depends-on): Likewise.
49113         * modules/mbsinit (Depends-on): Likewise.
49114         * modules/mbsrtowcs (Depends-on): Likewise.
49115         * modules/mbswidth (Depends-on): Likewise.
49116         * modules/quotearg (Depends-on): Likewise.
49117         * modules/strftime (Depends-on): Likewise.
49118
49119 2008-12-20  Bruno Haible  <bruno@clisp.org>
49120
49121         Ensure wctob is declared on IRIX 6.5.
49122         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49123         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49124         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49125         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49126         of HAVE_WCTOB.
49127         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49128         HAVE_WCTOB.
49129         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49130
49131 2008-12-19  Bruno Haible  <bruno@clisp.org>
49132
49133         * modules/mbsrtowcs-tests: New file.
49134         * tests/test-mbsrtowcs1.sh: New file.
49135         * tests/test-mbsrtowcs2.sh: New file.
49136         * tests/test-mbsrtowcs3.sh: New file.
49137         * tests/test-mbsrtowcs4.sh: New file.
49138         * tests/test-mbsrtowcs.c: New file.
49139
49140         New module 'mbsrtowcs'.
49141         * lib/wchar.in.h (mbsrtowcs): New declaration.
49142         * lib/mbsrtowcs.c: New file.
49143         * m4/mbsrtowcs.m4: New file.
49144         * modules/mbsrtowcs: New file.
49145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49146         HAVE_MBSRTOWCS.
49147         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49148         HAVE_MBSRTOWCS.
49149         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49150
49151 2008-12-19  Bruno Haible  <bruno@clisp.org>
49152
49153         New module 'mbrlen'.
49154         * lib/wchar.in.h (mbrlen): New declaration.
49155         * lib/mbrlen.c: New file.
49156         * m4/mbrlen.m4: New file.
49157         * modules/mbrlen: New file.
49158         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49159         HAVE_MBRLEN.
49160         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49161         HAVE_MBRLEN.
49162         * doc/posix-functions/mbrlen.texi: Document the new module.
49163
49164 2008-12-19  Bruno Haible  <bruno@clisp.org>
49165
49166         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49167         * modules/mbrtowc (Depends-on): Add verify.
49168         Suggested by Paul Eggert.
49169
49170 2008-12-18  Bruno Haible  <bruno@clisp.org>
49171
49172         * modules/mbsinit-tests: New file.
49173         * tests/test-mbsinit.sh: New file.
49174         * tests/test-mbsinit.c: New file.
49175
49176 2008-12-18  Bruno Haible  <bruno@clisp.org>
49177
49178         * modules/mbrtowc-tests: New file.
49179         * tests/test-mbrtowc1.sh: New file.
49180         * tests/test-mbrtowc2.sh: New file.
49181         * tests/test-mbrtowc3.sh: New file.
49182         * tests/test-mbrtowc4.sh: New file.
49183         * tests/test-mbrtowc.c: New file.
49184
49185         New module 'mbrtowc'.
49186         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49187         mbsinit and mbrtowc.
49188         (mbrtowc): New declaration.
49189         * lib/mbrtowc.c: New file.
49190         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49191         * modules/mbrtowc: New file.
49192         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49193         HAVE_MBRTOWC.
49194         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49195         HAVE_MBRTOWC.
49196         * doc/posix-functions/mbrtowc.texi: Document the new module.
49197
49198 2008-12-18  Bruno Haible  <bruno@clisp.org>
49199
49200         New module 'wctob'.
49201         * lib/wchar.in.h (wctob): New declaration.
49202         * lib/wctob.c: New file.
49203         * m4/wctob.m4: New file.
49204         * modules/wctob: New file.
49205         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49206         HAVE_WCTOB.
49207         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49208         * doc/posix-functions/wctob.texi: Document the new module.
49209
49210 2008-12-18  Bruno Haible  <bruno@clisp.org>
49211
49212         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49213         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49214
49215 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49216
49217         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49218         G. Christensen" <tgc@jupiterrise.com>.
49219
49220         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49221         G. Christensen" <tgc@jupiterrise.com>.
49222
49223         * lib/flock.c: Need to include string.h.  Reported by "Tom
49224         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49225         <ebb9@byu.net>.
49226
49227 2008-12-18  Bruno Haible  <bruno@clisp.org>
49228
49229         * m4/locale-ja.m4: New file, from GNU gettext.
49230
49231 2008-12-17  Bruno Haible  <bruno@clisp.org>
49232
49233         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49234         Suggested by Eric Blake.
49235
49236 2008-12-17  Bruno Haible  <bruno@clisp.org>
49237
49238         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49239
49240 2008-12-17  Bruno Haible  <bruno@clisp.org>
49241
49242         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49243         * modules/mbsinit (Depends-on): Add verify.
49244         Suggested by Paul Eggert.
49245
49246 2008-12-17  Bruno Haible  <bruno@clisp.org>
49247
49248         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49249         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49250         gl_FUNC_MBRTOWC.
49251         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49252         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49253         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49254         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49255         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49256         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49257         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49258         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49259         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49260         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49261         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49262         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49263         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49264         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49265         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49266         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49267         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49268         * modules/trim (configure.ac): Likewise.
49269
49270 2008-12-17  Bruno Haible  <bruno@clisp.org>
49271
49272         * modules/btowc-tests: New file.
49273         * tests/test-btowc1.sh: New file.
49274         * tests/test-btowc2.sh: New file.
49275         * tests/test-btowc.c: New file.
49276
49277         New module 'btowc'.
49278         * lib/wchar.in.h (btowc): New declaration.
49279         * lib/btowc.c: New file.
49280         * m4/btowc.m4: New file.
49281         * modules/btowc: New file.
49282         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49283         HAVE_BTOWC.
49284         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49285         * doc/posix-functions/btowc.texi: Document the new module.
49286
49287 2008-12-17  Bruno Haible  <bruno@clisp.org>
49288
49289         New module 'mbsinit'.
49290         * lib/wchar.in.h (mbsinit): New declaration.
49291         * lib/mbsinit.c: New file.
49292         * m4/mbsinit.m4: New file.
49293         * modules/mbsinit: New file.
49294         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49295         HAVE_MBSINIT.
49296         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49297         HAVE_MBSINIT.
49298         * doc/posix-functions/mbsinit.texi: Document the new module.
49299
49300 2008-12-16  Bruno Haible  <bruno@clisp.org>
49301
49302         * lib/unistd.in.h: Add comment.
49303         * tests/test-environ.c: Don't include <stdlib.h>.
49304
49305 2008-12-16  Bruno Haible  <bruno@clisp.org>
49306
49307         * lib/parse-duration.h (parse_duration): Document return value
49308         convention.
49309         * lib/parse-duration.c: Include specification header first. Add
49310         comments.
49311         (_): Remove macro.
49312         (parse_year_month_day, parse_hour_minute_second): Move side effects
49313         outside of strchr call.
49314         (parse_non_iso8601): Move side effects outside of isspace call.
49315         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49316         call.
49317
49318 2008-12-16  Bruno Haible  <bruno@clisp.org>
49319
49320         * tests/test-parse-duration.sh: Produce no output when the test
49321         succeeds.
49322
49323 2008-12-16  Bruno Haible  <bruno@clisp.org>
49324
49325         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49326         expressions.
49327
49328 2008-12-15  Bruno Haible  <bruno@clisp.org>
49329
49330         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49331         * doc/glibc-functions/flistxattr.texi: Likewise.
49332         * doc/glibc-functions/fopencookie.texi: Likewise.
49333         * doc/glibc-functions/fremovexattr.texi: Likewise.
49334         * doc/glibc-functions/fsetxattr.texi: Likewise.
49335         * doc/glibc-functions/getxattr.texi: Likewise.
49336         * doc/glibc-functions/lgetxattr.texi: Likewise.
49337         * doc/glibc-functions/listxattr.texi: Likewise.
49338         * doc/glibc-functions/llistxattr.texi: Likewise.
49339         * doc/glibc-functions/lremovexattr.texi: Likewise.
49340         * doc/glibc-functions/lsetxattr.texi: Likewise.
49341         * doc/glibc-functions/removexattr.texi: Likewise.
49342         * doc/glibc-functions/setxattr.texi: Likewise.
49343         * doc/posix-functions/open_memstream.texi: Likewise.
49344
49345 2008-12-15  Eric Blake  <ebb9@byu.net>
49346
49347         Update doc for cygwin 1.7.
49348         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49349         functions.
49350         * doc/posix-functions/fchmodat.texi: Likewise.
49351         * doc/posix-functions/fchownat.texi: Likewise.
49352         * doc/posix-functions/fdopendir.texi: Likewise.
49353         * doc/posix-functions/fmemopen.texi: Likewise.
49354         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49355         * doc/posix-functions/fstatat.texi: Likewise.
49356         * doc/posix-functions/futimens.texi: Likewise.
49357         * doc/posix-functions/gai_strerror.texi: Likewise.
49358         * doc/posix-functions/getaddrinfo.texi: Likewise.
49359         * doc/posix-functions/getnameinfo.texi: Likewise.
49360         * doc/posix-functions/if_freenameindex.texi: Likewise.
49361         * doc/posix-functions/if_indextoname.texi: Likewise.
49362         * doc/posix-functions/if_nameindex.texi: Likewise.
49363         * doc/posix-functions/if_nametoindex.texi: Likewise.
49364         * doc/posix-functions/insque.texi: Likewise.
49365         * doc/posix-functions/linkat.texi: Likewise.
49366         * doc/posix-functions/llrint.texi: Likewise.
49367         * doc/posix-functions/llrintf.texi: Likewise.
49368         * doc/posix-functions/llrintl.texi: Likewise.
49369         * doc/posix-functions/lockf.texi: Likewise.
49370         * doc/posix-functions/lrintl.texi: Likewise.
49371         * doc/posix-functions/mkdirat.texi: Likewise.
49372         * doc/posix-functions/mkfifoat.texi: Likewise.
49373         * doc/posix-functions/mknodat.texi: Likewise.
49374         * doc/posix-functions/mq_close.texi: Likewise.
49375         * doc/posix-functions/mq_getattr.texi: Likewise.
49376         * doc/posix-functions/mq_notify.texi: Likewise.
49377         * doc/posix-functions/mq_open.texi: Likewise.
49378         * doc/posix-functions/mq_receive.texi: Likewise.
49379         * doc/posix-functions/mq_send.texi: Likewise.
49380         * doc/posix-functions/mq_setattr.texi: Likewise.
49381         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49382         * doc/posix-functions/mq_timedsend.texi: Likewise.
49383         * doc/posix-functions/mq_unlink.texi: Likewise.
49384         * doc/posix-functions/open_memstream.texi: Likewise.
49385         * doc/posix-functions/openat.texi: Likewise.
49386         * doc/posix-functions/posix_fadvise.texi: Likewise.
49387         * doc/posix-functions/posix_fallocate.texi: Likewise.
49388         * doc/posix-functions/posix_madvise.texi: Likewise.
49389         * doc/posix-functions/posix_memalign.texi: Likewise.
49390         * doc/posix-functions/posix_openpt.texi: Likewise.
49391         * doc/posix-functions/readlinkat.texi: Likewise.
49392         * doc/posix-functions/remque.texi: Likewise.
49393         * doc/posix-functions/renameat.texi: Likewise.
49394         * doc/posix-functions/rintl.texi: Likewise.
49395         * doc/posix-functions/sem_unlink.texi: Likewise.
49396         * doc/posix-functions/shm_open.texi: Likewise.
49397         * doc/posix-functions/shm_unlink.texi: Likewise.
49398         * doc/posix-functions/signgam.texi: Likewise.
49399         * doc/posix-functions/sigset.texi: Likewise.
49400         * doc/posix-functions/stpcpy.texi: Likewise.
49401         * doc/posix-functions/stpncpy.texi: Likewise.
49402         * doc/posix-functions/strerror.texi: Likewise.
49403         * doc/posix-functions/strtod.texi: Likewise.
49404         * doc/posix-functions/symlinkat.texi: Likewise.
49405         * doc/posix-functions/unlinkat.texi: Likewise.
49406         * doc/posix-functions/utimensat.texi: Likewise.
49407         * doc/glibc-functions/bindresvport.texi: Likewise.
49408         * doc/glibc-functions/dn_expand.texi: Likewise.
49409         * doc/glibc-functions/exp10.texi: Likewise.
49410         * doc/glibc-functions/exp10f.texi: Likewise.
49411         * doc/glibc-functions/fgetxattr.texi: Likewise.
49412         * doc/glibc-functions/flistxattr.texi: Likewise.
49413         * doc/glibc-functions/fopencookie.texi: Likewise.
49414         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49415         * doc/glibc-functions/fremovexattr.texi: Likewise.
49416         * doc/glibc-functions/fsetxattr.texi: Likewise.
49417         * doc/glibc-functions/getifaddrs.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/pow10.texi: Likewise.
49425         * doc/glibc-functions/pow10f.texi: Likewise.
49426         * doc/glibc-functions/rcmd_af.texi: Likewise.
49427         * doc/glibc-functions/removexattr.texi: Likewise.
49428         * doc/glibc-functions/res_init.texi: Likewise.
49429         * doc/glibc-functions/res_mkquery.texi: Likewise.
49430         * doc/glibc-functions/res_query.texi: Likewise.
49431         * doc/glibc-functions/res_querydomain.texi: Likewise.
49432         * doc/glibc-functions/res_send.texi: Likewise.
49433         * doc/glibc-functions/rresvport_af.texi: Likewise.
49434         * doc/glibc-functions/setxattr.texi: Likewise.
49435         * doc/glibc-functions/strcasestr.texi: Likewise.
49436
49437 2008-12-15  Bruno Haible  <bruno@clisp.org>
49438
49439         Fix compilation error on OSF/1 4.0.
49440         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49441         <sys/time.h>, simply delegate to the system header.
49442         Reported by Daniel Richard G. <oss@teragram.com>.
49443
49444 2008-12-15  Bruno Haible  <bruno@clisp.org>
49445
49446         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49447         * doc/posix-functions/fchmodat.texi: Likewise.
49448         * doc/posix-functions/fchownat.texi: Likewise.
49449         * doc/posix-functions/fdopendir.texi: Likewise.
49450         * doc/posix-functions/fstatat.texi: Likewise.
49451         * doc/posix-functions/mkdirat.texi: Likewise.
49452         * doc/posix-functions/unlinkat.texi: Likewise.
49453
49454 2008-12-14  Bruno Haible  <bruno@clisp.org>
49455
49456         Update doc for POSIX:2008.
49457         * doc/posix-functions/faccessat.texi: New file.
49458         * doc/posix-functions/fchmodat.texi: New file.
49459         * doc/posix-functions/fchownat.texi: New file.
49460         * doc/posix-functions/fdopendir.texi: New file.
49461         * doc/posix-functions/fstatat.texi: New file.
49462         * doc/posix-functions/futimens.texi: New file.
49463         * doc/posix-functions/linkat.texi: New file.
49464         * doc/posix-functions/mkdirat.texi: New file.
49465         * doc/posix-functions/mkfifoat.texi: New file.
49466         * doc/posix-functions/mknodat.texi: New file.
49467         * doc/posix-functions/open_wmemstream.texi: New file.
49468         * doc/posix-functions/openat.texi: New file.
49469         * doc/posix-functions/psiginfo.texi: New file.
49470         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49471         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49472         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49473         * doc/posix-functions/readlinkat.texi: New file.
49474         * doc/posix-functions/renameat.texi: New file.
49475         * doc/posix-functions/strerror_l.texi: New file.
49476         * doc/posix-functions/symlinkat.texi: New file.
49477         * doc/posix-functions/unlinkat.texi: New file.
49478         * doc/posix-functions/utimensat.texi: New file.
49479         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49480
49481 2008-12-14  Bruno Haible  <bruno@clisp.org>
49482
49483         Update doc for POSIX:2008.
49484         * doc/posix-functions/alphasort.texi: Renamed from
49485         doc/glibc-functions/alphasort.texi.
49486         * doc/posix-functions/dirfd.texi: Renamed from
49487         doc/glibc-functions/dirfd.texi.
49488         * doc/posix-functions/dprintf.texi: Renamed from
49489         doc/glibc-functions/dprintf.texi.
49490         * doc/posix-functions/duplocale.texi: Renamed from
49491         doc/glibc-functions/duplocale.texi.
49492         * doc/posix-functions/fexecve.texi: Renamed from
49493         doc/glibc-functions/fexecve.texi.
49494         * doc/posix-functions/fmemopen.texi: Renamed from
49495         doc/glibc-functions/fmemopen.texi.
49496         * doc/posix-functions/freelocale.texi: Renamed from
49497         doc/glibc-functions/freelocale.texi.
49498         * doc/posix-functions/getdate_err.texi: Renamed from
49499         doc/glibc-functions/getdate_err.texi.
49500         * doc/posix-functions/isalnum_l.texi: Renamed from
49501         doc/glibc-functions/isalnum_l.texi.
49502         * doc/posix-functions/isalpha_l.texi: Renamed from
49503         doc/glibc-functions/isalpha_l.texi.
49504         * doc/posix-functions/isblank_l.texi: Renamed from
49505         doc/glibc-functions/isblank_l.texi.
49506         * doc/posix-functions/iscntrl_l.texi: Renamed from
49507         doc/glibc-functions/iscntrl_l.texi.
49508         * doc/posix-functions/isdigit_l.texi: Renamed from
49509         doc/glibc-functions/isdigit_l.texi.
49510         * doc/posix-functions/isgraph_l.texi: Renamed from
49511         doc/glibc-functions/isgraph_l.texi.
49512         * doc/posix-functions/islower_l.texi: Renamed from
49513         doc/glibc-functions/islower_l.texi.
49514         * doc/posix-functions/isprint_l.texi: Renamed from
49515         doc/glibc-functions/isprint_l.texi.
49516         * doc/posix-functions/ispunct_l.texi: Renamed from
49517         doc/glibc-functions/ispunct_l.texi.
49518         * doc/posix-functions/isspace_l.texi: Renamed from
49519         doc/glibc-functions/isspace_l.texi.
49520         * doc/posix-functions/isupper_l.texi: Renamed from
49521         doc/glibc-functions/isupper_l.texi.
49522         * doc/posix-functions/iswalnum_l.texi: Renamed from
49523         doc/glibc-functions/iswalnum_l.texi.
49524         * doc/posix-functions/iswalpha_l.texi: Renamed from
49525         doc/glibc-functions/iswalpha_l.texi.
49526         * doc/posix-functions/iswblank_l.texi: Renamed from
49527         doc/glibc-functions/iswblank_l.texi.
49528         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49529         doc/glibc-functions/iswcntrl_l.texi.
49530         * doc/posix-functions/iswctype_l.texi: Renamed from
49531         doc/glibc-functions/iswctype_l.texi.
49532         * doc/posix-functions/iswdigit_l.texi: Renamed from
49533         doc/glibc-functions/iswdigit_l.texi.
49534         * doc/posix-functions/iswgraph_l.texi: Renamed from
49535         doc/glibc-functions/iswgraph_l.texi.
49536         * doc/posix-functions/iswlower_l.texi: Renamed from
49537         doc/glibc-functions/iswlower_l.texi.
49538         * doc/posix-functions/iswprint_l.texi: Renamed from
49539         doc/glibc-functions/iswprint_l.texi.
49540         * doc/posix-functions/iswpunct_l.texi: Renamed from
49541         doc/glibc-functions/iswpunct_l.texi.
49542         * doc/posix-functions/iswspace_l.texi: Renamed from
49543         doc/glibc-functions/iswspace_l.texi.
49544         * doc/posix-functions/iswupper_l.texi: Renamed from
49545         doc/glibc-functions/iswupper_l.texi.
49546         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49547         doc/glibc-functions/iswxdigit_l.texi.
49548         * doc/posix-functions/isxdigit_l.texi: Renamed from
49549         doc/glibc-functions/isxdigit_l.texi.
49550         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49551         doc/glibc-functions/mbsnrtowcs.texi.
49552         * doc/posix-functions/mkdtemp.texi: Renamed from
49553         doc/glibc-functions/mkdtemp.texi.
49554         * doc/posix-functions/newlocale.texi: Renamed from
49555         doc/glibc-functions/newlocale.texi.
49556         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49557         doc/glibc-functions/nl_langinfo_l.texi.
49558         * doc/posix-functions/open_memstream.texi: Renamed from
49559         doc/glibc-functions/open_memstream.texi.
49560         * doc/posix-functions/opterr.texi: Renamed from
49561         doc/glibc-functions/opterr.texi.
49562         * doc/posix-functions/optind.texi: Renamed from
49563         doc/glibc-functions/optind.texi.
49564         * doc/posix-functions/optopt.texi: Renamed from
49565         doc/glibc-functions/optopt.texi.
49566         * doc/posix-functions/psignal.texi: Renamed from
49567         doc/glibc-functions/psignal.texi.
49568         * doc/posix-functions/scandir.texi: Renamed from
49569         doc/glibc-functions/scandir.texi.
49570         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49571         doc/glibc-functions/sched_get_priority_min.texi.
49572         * doc/posix-functions/signgam.texi: Renamed from
49573         doc/glibc-functions/signgam.texi.
49574         * doc/posix-functions/stpcpy.texi: Renamed from
49575         doc/glibc-functions/stpcpy.texi.
49576         * doc/posix-functions/stpncpy.texi: Renamed from
49577         doc/glibc-functions/stpncpy.texi.
49578         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49579         doc/glibc-functions/strcasecmp_l.texi.
49580         * doc/posix-functions/strcoll_l.texi: Renamed from
49581         doc/glibc-functions/strcoll_l.texi.
49582         * doc/posix-functions/strfmon_l.texi: Renamed from
49583         doc/glibc-functions/strfmon_l.texi.
49584         * doc/posix-functions/strftime_l.texi: Renamed from
49585         doc/glibc-functions/strftime_l.texi.
49586         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49587         doc/glibc-functions/strncasecmp_l.texi.
49588         * doc/posix-functions/strndup.texi: Renamed from
49589         doc/glibc-functions/strndup.texi.
49590         * doc/posix-functions/strnlen.texi: Renamed from
49591         doc/glibc-functions/strnlen.texi.
49592         * doc/posix-functions/strsignal.texi: Renamed from
49593         doc/glibc-functions/strsignal.texi.
49594         * doc/posix-functions/strxfrm_l.texi: Renamed from
49595         doc/glibc-functions/strxfrm_l.texi.
49596         * doc/posix-functions/timer_gettime.texi: Renamed from
49597         doc/glibc-functions/timer_gettime.texi.
49598         * doc/posix-functions/tolower_l.texi: Renamed from
49599         doc/glibc-functions/tolower_l.texi.
49600         * doc/posix-functions/toupper_l.texi: Renamed from
49601         doc/glibc-functions/toupper_l.texi.
49602         * doc/posix-functions/towctrans_l.texi: Renamed from
49603         doc/glibc-functions/towctrans_l.texi.
49604         * doc/posix-functions/towlower_l.texi: Renamed from
49605         doc/glibc-functions/towlower_l.texi.
49606         * doc/posix-functions/towupper_l.texi: Renamed from
49607         doc/glibc-functions/towupper_l.texi.
49608         * doc/posix-functions/uselocale.texi: Renamed from
49609         doc/glibc-functions/uselocale.texi.
49610         * doc/posix-functions/vdprintf.texi: Renamed from
49611         doc/glibc-functions/vdprintf.texi.
49612         * doc/posix-functions/wcpcpy.texi:
49613         Renamed from doc/glibc-functions/wcpcpy.texi.
49614         * doc/posix-functions/wcpncpy.texi: Renamed from
49615         doc/glibc-functions/wcpncpy.texi.
49616         * doc/posix-functions/wcscasecmp.texi: Renamed from
49617         doc/glibc-functions/wcscasecmp.texi.
49618         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49619         doc/glibc-functions/wcscasecmp_l.texi.
49620         * doc/posix-functions/wcscoll_l.texi: Renamed from
49621         doc/glibc-functions/wcscoll_l.texi.
49622         * doc/posix-functions/wcsdup.texi: Renamed from
49623         doc/glibc-functions/wcsdup.texi.
49624         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49625         doc/glibc-functions/wcsncasecmp.texi.
49626         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49627         doc/glibc-functions/wcsncasecmp_l.texi.
49628         * doc/posix-functions/wcsnlen.texi: Renamed from
49629         doc/glibc-functions/wcsnlen.texi.
49630         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49631         doc/glibc-functions/wcsnrtombs.texi.
49632         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49633         doc/glibc-functions/wcsxfrm_l.texi.
49634         * doc/posix-functions/wctrans_l.texi: Renamed from
49635         doc/glibc-functions/wctrans_l.texi.
49636         * doc/posix-functions/wctype_l.texi: Renamed from
49637         doc/glibc-functions/wctype_l.texi.
49638         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49639         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49640         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49641         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49642         these subsections.
49643         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49644         Remove sections.
49645
49646 2008-12-14  Bruno Haible  <bruno@clisp.org>
49647
49648         Update doc for POSIX:2008.
49649         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49650
49651 2008-12-14  Bruno Haible  <bruno@clisp.org>
49652
49653         Update doc for POSIX:2008.
49654         * doc/pastposix-functions/bcmp.texi: Renamed from
49655         doc/posix-functions/bcmp.texi.
49656         * doc/pastposix-functions/bcopy.texi: Renamed from
49657         doc/posix-functions/bcopy.texi.
49658         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49659         doc/posix-functions/bsd_signal.texi.
49660         * doc/pastposix-functions/bzero.texi: Renamed from
49661         doc/posix-functions/bzero.texi.
49662         * doc/pastposix-functions/ecvt.texi: Renamed from
49663         doc/posix-functions/ecvt.texi.
49664         * doc/pastposix-functions/fcvt.texi: Renamed from
49665         doc/posix-functions/fcvt.texi.
49666         * doc/pastposix-functions/ftime.texi: Renamed from
49667         doc/posix-functions/ftime.texi.
49668         * doc/pastposix-functions/gcvt.texi: Renamed from
49669         doc/posix-functions/gcvt.texi.
49670         * doc/pastposix-functions/getcontext.texi: Renamed from
49671         doc/posix-functions/getcontext.texi.
49672         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49673         doc/posix-functions/gethostbyaddr.texi.
49674         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49675         doc/posix-functions/gethostbyname.texi.
49676         * doc/pastposix-functions/getwd.texi: Renamed from
49677         doc/posix-functions/getwd.texi.
49678         * doc/pastposix-functions/h_errno.texi: Renamed from
49679         doc/posix-functions/h_errno.texi.
49680         * doc/pastposix-functions/index.texi: Renamed from
49681         doc/posix-functions/index.texi.
49682         * doc/pastposix-functions/makecontext.texi: Renamed from
49683         doc/posix-functions/makecontext.texi.
49684         * doc/pastposix-functions/mktemp.texi: Renamed from
49685         doc/posix-functions/mktemp.texi.
49686         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49687         doc/posix-functions/pthread_attr_getstackaddr.texi.
49688         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49689         doc/posix-functions/pthread_attr_setstackaddr.texi.
49690         * doc/pastposix-functions/rindex.texi: Renamed from
49691         doc/posix-functions/rindex.texi.
49692         * doc/pastposix-functions/scalb.texi: Renamed from
49693         doc/posix-functions/scalb.texi.
49694         * doc/pastposix-functions/setcontext.texi: Renamed from
49695         doc/posix-functions/setcontext.texi.
49696         * doc/pastposix-functions/swapcontext.texi: Renamed from
49697         doc/posix-functions/swapcontext.texi.
49698         * doc/pastposix-functions/ualarm.texi: Renamed from
49699         doc/posix-functions/ualarm.texi.
49700         * doc/pastposix-functions/usleep.texi: Renamed from
49701         doc/posix-functions/usleep.texi.
49702         * doc/pastposix-functions/vfork.texi: Renamed from
49703         doc/posix-functions/vfork.texi.
49704         * doc/pastposix-functions/wcswcs.texi: Renamed from
49705         doc/posix-functions/wcswcs.texi.
49706         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49707         (Function Substitutes): Update.
49708
49709 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49710
49711         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49712         m4/strerror.m4.
49713
49714 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49715             Bruno Haible  <bruno@clisp.org>
49716
49717         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49718
49719 2008-12-13  Bruno Haible  <bruno@clisp.org>
49720
49721         * modules/strtoull (Depends-on): Remove unistd.
49722
49723 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49724
49725         * modules/strtoull (Depends-on): Add stdlib.
49726
49727 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49728
49729         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49730
49731 2008-12-10  Jim Meyering  <meyering@redhat.com>
49732
49733         gl_ASSERT: don't say assertions are disabled when they're not
49734         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49735         "checking whether to enable assertions... no", when they are in
49736         fact enabled.  This is solely a bug in the output of configure.
49737         In spite of saying "no", NDEBUG was not defined in that case.
49738         Also, as noted by Eric Blake, leave assertions enabled upon
49739         --enable-assert=INVALID.
49740
49741 2008-12-10  Bruno Haible  <bruno@clisp.org>
49742
49743         Change MODULES.html to refer to POSIX:2008 where possible.
49744         * MODULES.html.sh (POSIX2008_URL): New variable.
49745         (posix_headers): Remove sys/timeb, ucontext.
49746         (posix2001_headers): New variable.
49747         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49748         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49749         index, makecontext, mktemp, pthread_attr_getstackaddr,
49750         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49751         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49752         (posix2001_functions): New variable.
49753         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49754         otherwise.
49755
49756 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49757
49758         add missing include to parse-duration.c
49759         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49760         * modules/parse-duration (Depends-on): Add xalloc.
49761
49762         fix sed script reading maint.mk
49763         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49764         (syntax-check-rules): Use it.
49765
49766 2008-12-09  Bruno Haible  <bruno@clisp.org>
49767
49768         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49769         MacOS X 10.4/PowerPC.
49770         Reported by Simon Josefsson.
49771
49772 2008-12-08  Jim Meyering  <meyering@redhat.com>
49773
49774         work around mingw's lack of some S_IF definitions
49775         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49776         Reported by Simon Josefsson.
49777
49778 2008-12-08  Bruno Haible  <bruno@clisp.org>
49779
49780         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49781         applied to variables. Needed on MacOS X 10.4/PowerPC.
49782         Reported by Simon Josefsson.
49783
49784 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49785         and Eric Blake  <ebb9@byu.net>
49786
49787         assert: honor --enable-assert
49788         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49789         order to honor --enable-assert, rather than treating it as a
49790         synonym for --disable-assert.
49791
49792 2008-12-08  Jim Meyering  <meyering@redhat.com>
49793
49794         * lib/posixtm.c: Remove now-useless declaration of mktime.
49795
49796         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49797
49798 2008-12-07  Bruno Haible  <bruno@clisp.org>
49799
49800         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49801         test_once): Mark functions as static.
49802         * tests/test-tls.c (test_tls): Likewise.
49803
49804 2008-12-07  Bruno Haible  <bruno@clisp.org>
49805
49806         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49807         iconv_register_autodetect.
49808
49809 2008-12-07  Jim Meyering  <meyering@redhat.com>
49810
49811         posixtm.c: avoid a warning
49812         * lib/posixtm.c (posixtime): Don't initialize tm0.
49813         It's no longer needed to placate gcc4's -Wuninitialized,
49814         and the attempt to placate would elicit a new warning.
49815
49816         unicodeio.c: mark unused parameters
49817         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49818         (fallback_failure_callback): Likewise.
49819
49820 2008-12-07  Bruno Haible  <bruno@clisp.org>
49821
49822         * gnulib-tool (func_create_testdir): When building the tests
49823         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49824         Reported by Simon Josefsson.
49825
49826 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49827
49828         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49829
49830 2008-12-06  Bruno Haible  <bruno@clisp.org>
49831
49832         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49833         Suggested by Eric Blake.
49834
49835 2008-12-06  Bruno Haible  <bruno@clisp.org>
49836
49837         Fix a c-stack test failure on MacOS X.
49838         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49839         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49840         handler for SIGBUS as well.
49841         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49842         install a signal handler for SIGBUS as well.
49843         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49844
49845 2008-12-06  Bruno Haible  <bruno@clisp.org>
49846
49847         Advocacy documentation.
49848         * doc/gnulib-intro.texi (Benefits): New section.
49849         * doc/gnulib.texi: Update.
49850
49851 2008-12-06  Bruno Haible  <bruno@clisp.org>
49852
49853         Document the 'manywarnings' module.
49854         * doc/manywarnings.texi: New file.
49855         * doc/gnulib.texi: Include it.
49856
49857 2008-12-05  Eric Blake  <ebb9@byu.net>
49858
49859         tests: silence some gcc warnings
49860         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49861         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49862         type mismatches.
49863
49864 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49865             Bruno Haible  <bruno@clisp.org>
49866
49867         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49868
49869 2008-11-29  Jim Meyering  <meyering@redhat.com>
49870
49871         unicodeio.c: mark unused parameters
49872         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49873         (fallback_failure_callback): Likewise.
49874
49875         fts: fix a thinko
49876         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49877         (set_stat_type): Return S_IF*-valued "type" directly.
49878         Prompted by James Youngman's spotting a related bug.
49879         Confirmed by further testing through find.
49880
49881         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49882         * lib/fts.c (D_TYPE): Define.
49883         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49884         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49885         (s_ifmt_shift_bits): New function.
49886         (set_stat_type): New function.
49887         (fts_build): When not calling fts_stat, call set_stat_type
49888         to propagate dirent.d_type info to fts_read caller.
49889         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49890         fts_statp->st_mode type information may be valid.
49891
49892 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49893
49894         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49895         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49896         <sds@gnu.org>.
49897
49898 2008-11-20  Bruno Haible  <bruno@clisp.org>
49899
49900         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49901         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49902         INCLUDE_NEXT.
49903         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49904         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49905         * modules/math (Makefile.am): Substitute
49906         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49907         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49908
49909 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49910             Bruno Haible  <bruno@clisp.org>
49911
49912         * lib/stdint.in.h: Define all type macros so that their expansion is
49913         a single typedef'ed token. Fixes a compilation failure in Boost which
49914         does "using ::int8_t;".
49915
49916 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49917
49918         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49919         gl_MANYWARN_ALL_GCC.
49920         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49921         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49922         * modules/manywarnings: New file.
49923         * MODULES.html.sh: Mention manywarnings module.
49924
49925 2008-11-18  Bruno Haible  <bruno@clisp.org>
49926
49927         * doc/gnulib-tool.texi (Unit tests): New section.
49928
49929 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49930
49931         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49932         paths like 'lib/po/foo.po'.
49933
49934 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49935
49936         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49937         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49938
49939 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49940
49941         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49942         parameter works.
49943
49944 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49945
49946         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49947
49948 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49949
49950         * modules/parse-duration-tests: New file.
49951         * tests/test-parse-duration.sh: New file.
49952         * tests/test-parse-duration.c: New file.
49953
49954         New module 'parse-duration'.
49955         * lib/parse-duration.h: New file.
49956         * lib/parse-duration.c: New file.
49957         * modules/parse-duration: New file.
49958
49959 2008-11-17  Bruno Haible  <bruno@clisp.org>
49960
49961         * tests/test-select-out.sh: Comment out the first pipe test.
49962         Reported by Simon Josefsson.
49963
49964 2008-11-17  Bruno Haible  <bruno@clisp.org>
49965
49966         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49967         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49968         gl_HOSTENT.
49969
49970 2008-11-17  Bruno Haible  <bruno@clisp.org>
49971
49972         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49973         -lnetwork and -lnet. Needed for Haiku and BeOS.
49974
49975 2008-11-16  Bruno Haible  <bruno@clisp.org>
49976
49977         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49978
49979 2008-11-16  Bruno Haible  <bruno@clisp.org>
49980
49981         Avoid test failure on Haiku.
49982         * tests/test-fsync.c: Include <errno.h>.
49983         (main): Don't require that fsync (0) fails.
49984
49985 2008-11-15  Bruno Haible  <bruno@clisp.org>
49986
49987         New module 'hostent'.
49988         * modules/hostent: New file.
49989         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49990
49991 2008-11-15  Bruno Haible  <bruno@clisp.org>
49992
49993         New module 'servent'.
49994         * modules/servent: New file.
49995         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49996
49997 2008-11-15  Bruno Haible  <bruno@clisp.org>
49998
49999         Avoid generating same test program with two different rules.
50000         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50001         test-frexp to test-frexp-nolibm.
50002         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50003         test-frexpl to test-frexpl-nolibm.
50004
50005 2008-11-15  Bruno Haible  <bruno@clisp.org>
50006
50007         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50008         $(FREXPL_LIBM).
50009
50010 2008-11-15  Bruno Haible  <bruno@clisp.org>
50011
50012         * lib/netdb.in.h: Activate the definitions also when the system's
50013         <netdb.h> has 'struct addrinfo'.
50014         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50015         EAI_OVERFLOW or AI_NUMERICSERV.
50016         * doc/posix-headers/netdb.texi: Document the problem.
50017
50018 2008-11-15  Bruno Haible  <bruno@clisp.org>
50019
50020         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50021
50022         Make the 'sched' module work on platforms where <sched.h> exists but
50023         is incomplete (such as Haiku).
50024         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50025         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50026         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50027         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50028         HAVE_STRUCT_SCHED_PARAM.
50029         * modules/sched (Depends-on): Add include_next.
50030         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50031         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50032         * doc/posix-headers/sched.texi: Document the issue.
50033
50034 2008-11-13  Jim Meyering  <meyering@redhat.com>
50035
50036         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50037         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50038         test would fail due to the difference in the Report bugs to ...
50039         line.  The expected address is empty, "<>", while the actual
50040         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50041
50042 2008-11-12  Bruno Haible  <bruno@clisp.org>
50043
50044         lstat: don't compile lstat.c on systems lacking lstat
50045         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50046         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50047         Reported by Daniel P. Berrange via Jim Meyering.
50048
50049 2008-11-12  Jim Meyering  <meyering@redhat.com>
50050
50051         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50052
50053 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50054
50055         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50056         instead.
50057
50058 2008-11-12  Bruno Haible  <bruno@clisp.org>
50059
50060         * lib/unicodeio.c: Include unistr.h.
50061         (utf8_wctomb): Remove function.
50062         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50063
50064 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50065
50066         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50067         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50068         <bruno@clisp.org>.
50069         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50070
50071 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50072
50073         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50074         * doc/gnulib.texi: Add section for warnings.
50075
50076 2008-11-11  Bruno Haible  <bruno@clisp.org>
50077
50078         * lib/sockets.h: Add a comment.
50079
50080 2008-11-11  Karl Berry  <karl@gnu.org>
50081
50082         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50083
50084 2008-11-11  Eric Blake  <ebb9@byu.net>
50085
50086         fdl.texi: avoid git symlinks
50087         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50088
50089 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50090
50091         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50092
50093 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50094
50095         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50096         (gl_WARN_ADD): Substitute $2 if literal.
50097
50098 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50099
50100         * m4/warning.m4: Remove.
50101
50102 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50103
50104         * m4/warnings.m4: Almost complete rewrite. :-)
50105
50106 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50107
50108         * modules/warnings: New module.
50109         * m4/warnings.m4: New file.
50110         * MODULES.html.sh: Mention warnings module.
50111         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50112         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50113
50114 2008-11-10  Eric Blake  <ebb9@byu.net>
50115
50116         fdl.texi: make a symlink to the latest version
50117         * doc/standards.texi: Revert today's earlier change.
50118         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50119         * doc/fdl.texi: ...and replace this with a symlink to the newer
50120         fdl-1.3.texi.
50121
50122 2008-11-10  Bruno Haible  <bruno@clisp.org>
50123
50124         * tests/test-select-fd.c (main): Accept the result file name as fourth
50125         argument.
50126         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50127         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50128
50129 2008-11-10  Bruno Haible  <bruno@clisp.org>
50130
50131         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50132         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50133         as autoconf-substituted macros.
50134         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50135         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50136         gl_NETDB_H_DEFAULTS. Set these variables.
50137         * modules/netdb (Makefile.am): Substitute these variables.
50138
50139 2008-11-10  Eric Blake  <ebb9@byu.net>
50140
50141         standards.texi: include correct file for FDL 1.3
50142         * doc/standards.texi (GNU Free Documentation License): Change
50143         include file to pull in FDL 1.3, not 1.2.
50144
50145         fdl.texi: revert accidental change to license
50146         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50147
50148 2008-11-10  Bruno Haible  <bruno@clisp.org>
50149
50150         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50151         cross-compiling guesses also when the native compile gives no result.
50152
50153 2008-11-10  Bruno Haible  <bruno@clisp.org>
50154
50155         * lib/spawni.c (__spawni): Force variable into the stack.
50156
50157 2008-11-10  Bruno Haible  <bruno@clisp.org>
50158
50159         Add support for Haiku.
50160         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50161         glibc and BeOS, but also on Haiku.
50162         * lib/fpurge.c (fpurge): Likewise.
50163         * lib/freadable.c (freadable): Likewise.
50164         * lib/freadahead.c (freadahead): Likewise.
50165         * lib/freading.c (freading): Likewise.
50166         * lib/freadptr.c (freadptr): Likewise.
50167         * lib/freadseek.c (freadptrinc): Likewise.
50168         * lib/fseeko.c (rpl_fseeko): Likewise.
50169         * lib/fseterr.c (fseterr): Likewise.
50170         * lib/fwritable.c (fwritable): Likewise.
50171         * lib/fwriting.c (fwriting): Likewise.
50172         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50173
50174 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50175
50176         * lib/config.charset: Treat Haiku like BeOS.
50177
50178 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50179
50180         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50181         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50182
50183 2008-11-08  Bruno Haible  <bruno@clisp.org>
50184
50185         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50186         AC_CACHE_CHECK.
50187
50188 2008-11-08  Bruno Haible  <bruno@clisp.org>
50189
50190         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50191
50192 2008-11-08  Bruno Haible  <bruno@clisp.org>
50193
50194         * tests/test-select-fd.c: New file.
50195         * tests/test-select-in.sh: New file.
50196         * tests/test-select-out.sh: New file.
50197         * tests/test-select-stdin.c: New file.
50198         * modules/select-tests (Files): Add the new files.
50199         (Depends-on): Add gettimeofday.
50200         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50201         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50202         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50203
50204 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50205             Bruno Haible  <bruno@clisp.org>
50206
50207         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50208
50209 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50210
50211         * build-aux/pmccabe2html: Added support for C++ source files.
50212
50213 2008-11-05  Ben Pfaff  <blp@gnu.org>
50214
50215         Fix lib/close.c build on Windows.
50216         * modules/close (Files): Add lib/w32sock.h.
50217
50218 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50219
50220         Accept Bison's NEWS format.
50221         * build-aux/announce-gen (print_news_deltas): Tweak
50222         $re_prefix.
50223
50224 2008-11-04  Bruno Haible  <bruno@clisp.org>
50225
50226         * modules/random_r (Maintainer): Add glibc.
50227
50228 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50229
50230         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50231         by karl@freefriends.org (Karl Berry).
50232         * doc/alloca.texi: Likewise.
50233         * doc/c-ctype.texi: Likewise.
50234         * doc/c-strcase.texi: Likewise.
50235         * doc/c-strcaseeq.texi: Likewise.
50236         * doc/c-strcasestr.texi: Likewise.
50237         * doc/c-strstr.texi: Likewise.
50238         * doc/c-strtod.texi: Likewise.
50239         * doc/c-strtold.texi: Likewise.
50240         * doc/ctime.texi: Likewise.
50241         * doc/error.texi: Likewise.
50242         * doc/fdl.texi: Likewise.
50243         * doc/gcd.texi: Likewise.
50244         * doc/getdate.texi: Likewise.
50245         * doc/gnulib-intro.texi: Likewise.
50246         * doc/gnulib-tool.texi: Likewise.
50247         * doc/gnulib.texi: Likewise.
50248         * doc/inet_ntoa.texi: Likewise.
50249         * doc/maintain.texi: Likewise.
50250         * doc/make-stds.texi: Likewise.
50251         * doc/quote.texi: Likewise.
50252         * doc/regexprops-generic.texi: Likewise.
50253         * doc/standards.texi: Likewise.
50254         * doc/verify.texi: Likewise.
50255         * doc/visibility.texi: Likewise.
50256         * doc/gnulib.texi (GNU Free Documentation License): Include
50257         fdl-1.3.texi instead of fdl.texi.
50258
50259 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50260
50261         * doc/fdl-1.3.texi: New file, from
50262         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50263         * modules/fdl-1.3: Add.
50264         * MODULES.html.sh: Add fdl-1.3.
50265
50266 2008-11-03  Bruno Haible  <bruno@clisp.org>
50267
50268         Make determination of absolute name of header file work with AIX xlc.
50269         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50270         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50271         preprocessing.
50272         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50273         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50274
50275 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50276
50277         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50278         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50279         <ludo@gnu.org>.
50280
50281 2008-11-02  Bruno Haible  <bruno@clisp.org>
50282
50283         Mark 'strpbrk' obsolete.
50284         * modules/strpbrk (Status, Notice): New sections.
50285         * modules/strtok_r (Depends-on): Add strpbrk.
50286
50287 2008-11-02  Bruno Haible  <bruno@clisp.org>
50288
50289         Mark 'strdup' obsolete.
50290         * modules/strdup (Status, Notice): New sections.
50291         * modules/findprog (Depends-on): Add strdup.
50292         * modules/getaddrinfo (Depends-on): Likewise.
50293         * modules/localename (Depends-on): Likewise.
50294         * modules/relocatable-lib (Depends-on): Likewise.
50295         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50296         * modules/relocatable-prog (Depends-on): Likewise.
50297         * modules/trim (Depends-on): Likewise.
50298         * modules/unictype/gen-ctype (Depends-on): Likewise.
50299         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50300
50301 2008-11-02  Bruno Haible  <bruno@clisp.org>
50302
50303         Mark 'strcspn' obsolete.
50304         * modules/strcspn (Status, Notice): New sections.
50305
50306 2008-11-02  Bruno Haible  <bruno@clisp.org>
50307
50308         Mark 'rmdir' obsolete.
50309         * modules/rmdir (Status, Notice): New sections.
50310         * modules/clean-temp (Depends-on): Add rmdir.
50311         * modules/openat (Depends-on): Likewise.
50312
50313 2008-11-02  Bruno Haible  <bruno@clisp.org>
50314
50315         Mark 'raise' obsolete.
50316         * modules/raise (Status, Notice): New sections.
50317         (Include): Specify <signal.h>.
50318         * modules/stdio (Depends-on): Add raise.
50319         * modules/write (Depends-on): Likewise.
50320
50321 2008-11-02  Bruno Haible  <bruno@clisp.org>
50322
50323         Mark 'memset' obsolete.
50324         * modules/memset (Status, Notice): New sections.
50325
50326 2008-11-02  Bruno Haible  <bruno@clisp.org>
50327
50328         Mark 'memmove' obsolete.
50329         * modules/memmove (Status, Notice): New sections.
50330         * modules/argp (Depends-on): Add memmove.
50331         * modules/argz (Depends-on): Likewise.
50332         * modules/canonicalize (Depends-on): Likewise.
50333         * modules/canonicalize-lgpl (Depends-on): Likewise.
50334         * modules/fts (Depends-on): Likewise.
50335         * modules/getcwd (Depends-on): Likewise.
50336         * modules/human (Depends-on): Likewise.
50337         * modules/regex (Depends-on): Likewise.
50338         * modules/striconveh (Depends-on): Likewise.
50339         * modules/trim (Depends-on): Likewise.
50340         * modules/unistr/u8-move (Depends-on): Likewise.
50341         * modules/unistr/u16-move (Depends-on): Likewise.
50342         * modules/unistr/u32-move (Depends-on): Likewise.
50343
50344 2008-11-02  Bruno Haible  <bruno@clisp.org>
50345
50346         Mark 'memcpy' obsolete.
50347         * modules/memcpy (Status, Notice): New sections.
50348
50349 2008-11-02  Bruno Haible  <bruno@clisp.org>
50350
50351         Mark 'memcmp' obsolete.
50352         * modules/memcmp (Status, Notice): New sections.
50353         * modules/argmatch (Depends-on): Add memchr.
50354         * modules/backupfile (Depends-on): Likewise.
50355         * modules/c-strcasestr (Depends-on): Likewise.
50356         * modules/crypto/des (Depends-on): Likewise.
50357         * modules/csharpcomp (Depends-on): Likewise.
50358         * modules/fnmatch (Depends-on): Likewise.
50359         * modules/git-merge-changelog (Depends-on): Likewise.
50360         * modules/isnand (Depends-on): Likewise.
50361         * modules/isnand-nolibm (Depends-on): Likewise.
50362         * modules/isnanf (Depends-on): Likewise.
50363         * modules/isnanf-nolibm (Depends-on): Likewise.
50364         * modules/isnanl (Depends-on): Likewise.
50365         * modules/isnanl-nolibm (Depends-on): Likewise.
50366         * modules/mbchar (Depends-on): Likewise.
50367         * modules/memcoll (Depends-on): Likewise.
50368         * modules/quotearg (Depends-on): Likewise.
50369         * modules/regex (Depends-on): Likewise.
50370         * modules/relocatable-prog (Depends-on): Likewise.
50371         * modules/same (Depends-on): Likewise.
50372         * modules/signbit (Depends-on): Likewise.
50373         * modules/strcasestr-simple (Depends-on): Likewise.
50374         * modules/unictype/gen-ctype (Depends-on): Likewise.
50375         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50376         * modules/uniname/uniname (Depends-on): Likewise.
50377         * modules/unistr/u8-cmp (Depends-on): Likewise.
50378
50379 2008-11-02  Bruno Haible  <bruno@clisp.org>
50380
50381         Mark 'memchr' obsolete.
50382         * modules/memchr (Status, Notice): New sections.
50383         * modules/argp (Depends-on): Add memchr.
50384         * modules/base64 (Depends-on): Likewise.
50385         * modules/c-strcasestr (Depends-on): Likewise.
50386         * modules/chdir-long (Depends-on): Likewise.
50387         * modules/fnmatch (Depends-on): Likewise.
50388         * modules/getsubopt (Depends-on): Likewise.
50389         * modules/git-merge-changelog (Depends-on): Likewise.
50390         * modules/glob (Depends-on): Likewise.
50391         * modules/strcasestr-simple (Depends-on): Likewise.
50392         * modules/strnlen (Depends-on): Likewise.
50393
50394 2008-11-02  Bruno Haible  <bruno@clisp.org>
50395
50396         Mark 'atexit' obsolete.
50397         * modules/atexit (Status, Notice): New sections.
50398         * modules/chdir-long (Depends-on): Add atexit.
50399         * modules/wait-process (Depends-on): Likewise.
50400
50401 2008-11-02  Bruno Haible  <bruno@clisp.org>
50402
50403         * gnulib-tool: New option --with-obsolete.
50404         (func_usage): Document it.
50405         (func_modules_transitive_closure): Drop obsolete dependencies if
50406         incobsolete is not true.
50407         (func_import): Read and save the incobsolete variable to the cache.
50408
50409 2008-11-02  Bruno Haible  <bruno@clisp.org>
50410
50411         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50412         * gnulib-tool: New option --extract-status.
50413         (func_usage): Document it.
50414         (sed_extract_prog): Recognize it.
50415         (func_get_status): New function.
50416
50417 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50418
50419         * modules/sockets (License): Change from LGPL to LGPLv2+.
50420
50421 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50422
50423         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50424
50425 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50426
50427         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50428         Mention times and sys_times.
50429         * modules/sys_times, modules/sys_times-tests: New modules.
50430         * modules/times, modules/times-tests: Likewise
50431         * m4/sys_times_h.m4: New file.
50432         * lib/sys_times.in.h: Likewise
50433         * lib/times.c: Likewise.
50434         * tests/test-sys_times.c: Likewise.
50435         * tests/test-times.c: Likewise.
50436         * doc/posix-headers/sys_times.texi: Update.
50437         * doc/posix-functions/times.texi: Update.
50438
50439 2008-10-28  Jim Meyering  <meyering@redhat.com>
50440
50441         * modules/tempname (Depends-on): Add lstat.
50442
50443         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50444
50445 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50446
50447         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50448         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50449         using idiom used elsewhere in gnulib.
50450
50451 2008-10-27  Jim Meyering  <meyering@redhat.com>
50452
50453         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50454
50455 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50456
50457         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50458         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50459         programs.
50460         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50461
50462 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50463
50464         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50465
50466 2008-10-27  Bruno Haible  <bruno@clisp.org>
50467
50468         * tests/test-lstat.c: Include <stdio.h>.
50469
50470 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50471
50472         * modules/lstat-tests: New module.
50473         * tests/test-lstat.c: New file.
50474
50475 2008-10-26  Jim Meyering  <meyering@redhat.com>
50476
50477         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50478
50479 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50480             Bruno Haible  <bruno@clisp.org>
50481
50482         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50483         * modules/configmake (Include): Add a note that the include must come
50484         after all system headers.
50485         * lib/javaversion.c: Include configmake.h after all other includes.
50486
50487 2008-10-26  Bruno Haible  <bruno@clisp.org>
50488
50489         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50490         HAVE_STRUCT_RANDOM_DATA to 1.
50491         (gl_STDLIB_H): Simplify.
50492
50493 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50494
50495         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50496         substitute HAVE_STRUCT_RANDOM_DATA.
50497         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50498         random_data.
50499         * modules/stdlib (Makefile.am): Substitute
50500         HAVE_STRUCT_RANDOM_DATA.
50501
50502 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50503
50504         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50505         * doc/gnulib-intro.texi (Copyright): Likewise.
50506
50507 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50508
50509         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50510         findings.
50511
50512 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50513             Bruno Haible  <bruno@clisp.org>
50514
50515         * lib/unistd.in.h: Include <winsock2.h>.
50516         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50517         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50518         Provide dummy declarations.
50519         (gethostname): Override.
50520         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50521         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50522         gl_PREREQ_SYS_H_WINSOCK2.
50523         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50524         * doc/posix-functions/gethostname.texi: More details.
50525
50526 2008-10-25  Bruno Haible  <bruno@clisp.org>
50527
50528         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50529         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50530         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50531
50532         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50533         here ...
50534         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50535         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50536         gl_UNISTD_H_DEFAULTS.
50537
50538 2008-10-25  Eric Blake  <ebb9@byu.net>
50539
50540         signbit: avoid spurious compiler failure
50541         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50542         declarations inside function.
50543
50544 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50545             Bruno Haible  <bruno@clisp.org>
50546
50547         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50548         * modules/random_r (Depends-on): Add stdint.
50549
50550 2008-10-24  Bruno Haible  <bruno@clisp.org>
50551
50552         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50553         Eggert.
50554         * modules/strerror (License): Likewise.
50555
50556 2008-10-24  Jim Meyering  <meyering@redhat.com>
50557
50558         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50559         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50560
50561 2008-10-24  Eric Blake  <ebb9@byu.net>
50562
50563         getgroups: fix compilation when getgroups is available
50564         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50565         but with <config.h> override of getgroups disabled.
50566
50567 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50568
50569         * doc/gnulib.texi (Header files): Add note about C++ problems.
50570         Explained by Bruno Haible <bruno@clisp.org>.
50571
50572 2008-10-23  Bruno Haible  <bruno@clisp.org>
50573
50574         Define a dummy SA_NODEFER macro on Interix.
50575         * lib/signal.in.h (SA_NODEFER): Define fallback.
50576         Reported by Aleksey Cheusov <cheusov@tut.by> via
50577         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50578
50579 2008-10-23  Bruno Haible  <bruno@clisp.org>
50580
50581         * modules/freadahead (License): Change to LGPLv2+.
50582         Suggested by Simon Josefsson.
50583
50584 2008-10-23  Jim Meyering  <meyering@redhat.com>
50585
50586         random_r: new module
50587         * modules/random_r: New file.
50588         * m4/random_r.m4: New file.
50589         * lib/random_r.c: New file, from glibc.
50590         * modules/random_r-tests: New file.
50591         * tests/test-random_r.c: New file.
50592         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50593          Declare.
50594         (RAND_MAX): Define.
50595         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50596         * modules/stdlib: Substitute them, too.
50597         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50598         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50599         * doc/glibc-functions/random_r.texi: Likewise.
50600         * doc/glibc-functions/setstate_r.texi: Likewise.
50601         * doc/glibc-functions/srandom_r.texi: Likewise.
50602         * config/srclist.txt: Mention it.
50603
50604 2008-10-23  David Lutterkort  <lutter@redhat.com>
50605
50606         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50607         link requirement
50608
50609 2008-10-23  Jim Meyering  <meyering@redhat.com>
50610
50611         selinux-h: mark parameters of stub functions as intentionally unused
50612         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50613         * lib/se-context.in.h: Likewise.
50614
50615 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50616
50617         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50618
50619 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50620
50621         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50622
50623 2008-10-22  Eric Blake  <ebb9@byu.net>
50624
50625         glthread/thread: avoid compiler warning
50626         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50627         Add unreachable abort to silence compiler.
50628
50629 2008-10-22  Eric Blake  <ebb9@byu.net>
50630
50631         netdb: also supply struct addrinfo for cygwin 1.5.x
50632         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50633         older cygwin.
50634         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50635         cygwin.
50636         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50637
50638 2008-10-22  Bruno Haible  <bruno@clisp.org>
50639
50640         * users.txt: Update entry about pspp.
50641
50642 2008-10-21  Bruno Haible  <bruno@clisp.org>
50643
50644         Simplification.
50645         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50646         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50647
50648         Simplification.
50649         * lib/ioctl.c (ioctl): Don't undefine.
50650         * lib/socket.c (socket): Don't undefine.
50651
50652         Remove unused module indicator macros.
50653         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50654         GNULIB_$1 as a C macro.
50655
50656         * doc/posix-functions/close.texi: Undo last change.
50657         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50658         Windows platforms.
50659
50660 2008-10-21  Bruno Haible  <bruno@clisp.org>
50661
50662         Add gethostname() declaration to <unistd.h>.
50663         * lib/unistd.in.h (gethostname): New declaration.
50664         * lib/gethostname.c: Include <unistd.h>.
50665         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50666         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50668         and HAVE_GETHOSTNAME.
50669         * modules/gethostname (Depends-on): Add unistd.
50670         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50671         (Include): Specify <unistd.h>.
50672         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50673         HAVE_GETHOSTNAME.
50674         * tests/test-gethostname.c: Include <unistd.h> first.
50675
50676 2008-10-21  Bruno Haible  <bruno@clisp.org>
50677
50678         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50679         * modules/select-tests (Depends-on): Likewise.
50680         Reported by Simon Josefsson.
50681
50682 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50683
50684         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50685         * lib/accept.c: New file, based on winsock.c.
50686         * lib/bind.c: New file, based on winsock.c.
50687         * lib/connect.c: New file, based on winsock.c.
50688         * lib/getpeername.c: New file, based on winsock.c.
50689         * lib/getsockname.c: New file, based on winsock.c.
50690         * lib/getsockopt.c: New file, based on winsock.c.
50691         * lib/ioctl.c: New file, based on winsock.c.
50692         * lib/listen.c: New file, based on winsock.c.
50693         * lib/recv.c: New file, based on winsock.c.
50694         * lib/recvfrom.c: New file, based on winsock.c.
50695         * lib/send.c: New file, based on winsock.c.
50696         * lib/sendto.c: New file, based on winsock.c.
50697         * lib/setsockopt.c: New file, based on winsock.c.
50698         * lib/shutdown.c: New file, based on winsock.c.
50699         * lib/socket.c: New file, based on winsock.c.
50700         * lib/w32sock.h: New file, based on winsock.c.
50701         * lib/winsock.c: Remove file.
50702         * modules/accept: Likewise.
50703         * modules/bind: Likewise.
50704         * modules/connect: Likewise.
50705         * modules/getpeername: Likewise.
50706         * modules/getsockname: Likewise.
50707         * modules/getsockopt: Likewise.
50708         * modules/ioctl: Likewise.
50709         * modules/listen: Likewise.
50710         * modules/recv: Likewise.
50711         * modules/recvfrom: Likewise.
50712         * modules/send: Likewise.
50713         * modules/sendto: Likewise.
50714         * modules/setsockopt: Likewise.
50715         * modules/shutdown: Likewise.
50716         * modules/socket: Use socket.c instead of winsock.c.
50717         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50718         * doc/posix-functions/accept.texi: Doc fix.
50719         * doc/posix-functions/bind.texi: Doc fix.
50720         * doc/posix-functions/close.texi: Doc fix.
50721         * doc/posix-functions/connect.texi: Doc fix.
50722         * doc/posix-functions/getpeername.texi: Doc fix.
50723         * doc/posix-functions/getsockname.texi: Doc fix.
50724         * doc/posix-functions/getsockopt.texi: Doc fix.
50725         * doc/posix-functions/ioctl.texi: Doc fix.
50726         * doc/posix-functions/listen.texi: Doc fix.
50727         * doc/posix-functions/recv.texi: Doc fix.
50728         * doc/posix-functions/recvfrom.texi: Doc fix.
50729         * doc/posix-functions/send.texi: Doc fix.
50730         * doc/posix-functions/sendto.texi: Doc fix.
50731         * doc/posix-functions/setsockopt.texi: Doc fix.
50732         * doc/posix-functions/shutdown.texi: Doc fix.
50733         * doc/posix-functions/socket.texi: Doc fix.
50734
50735 2008-10-20  Bruno Haible  <bruno@clisp.org>
50736
50737         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50738         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50739         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50740         as an alias for SIGABRT.
50741         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50742         (sigaction): Map it to SIGABRT.
50743         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50744
50745 2008-10-20  Bruno Haible  <bruno@clisp.org>
50746
50747         * lib/fts.c: Don't include lstat.h.
50748         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50749
50750         Move the lstat() declaration to <sys/stat.h>.
50751         * lib/lstat.h: Remove file.
50752         * lib/sys_stat.in.h: Add special invocation convention.
50753         (lstat): New declaration.
50754         * lib/lstat.c (orig_lstat): New function.
50755         (rpl_lstat): Use orig_lstat instead of lstat.
50756         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50757         AC_C_INLINE. Set REPLACE_LSTAT.
50758         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50759         and REPLACE_LSTAT.
50760         * modules/lstat (Files): Remove lib/lstat.h.
50761         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50762         (Include): Specify <sys/stat.h> instead of lstat.h.
50763         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50764         REPLACE_LSTAT.
50765         * NEWS: Mention the change.
50766
50767 2008-10-20  Bruno Haible  <bruno@clisp.org>
50768
50769         * modules/posix_spawn-tests: New file.
50770         * tests/test-posix_spawn3.c: New file.
50771
50772 2008-10-20  Bruno Haible  <bruno@clisp.org>
50773
50774         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50775         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50776         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50777         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50778         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50779
50780 2008-10-20  Bruno Haible  <bruno@clisp.org>
50781
50782         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50783         of posix_spawn on AIX 5.3.
50784
50785 2008-10-20  Bruno Haible  <bruno@clisp.org>
50786
50787         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50788
50789 2008-10-20  Bruno Haible  <bruno@clisp.org>
50790
50791         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50792         of AC_LANG_PROGRAM.
50793
50794 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50795
50796         * lib/netdb.in.h: Don't define GNU specific constants until they
50797         are supported or needed.  Reported by Bruno Haible
50798         <bruno@clisp.org>.
50799
50800 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50801
50802         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50803
50804 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50805
50806         * lib/getaddrinfo.h: Remove file.
50807         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50808         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50809         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50810         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50811         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50812         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50813         * tests/test-getaddrinfo.c: Likewise.
50814         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50815         * NEWS: Mention change.
50816
50817 2008-10-19  Bruno Haible  <bruno@clisp.org>
50818
50819         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50820
50821 2008-10-19  Bruno Haible  <bruno@clisp.org>
50822
50823         * lib/wait-process.c: Include simply <sys/wait.h>.
50824         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50825         WIFSTOPPED): Remove fallback definitions.
50826         * modules/wait-process (Depends-on): Add sys_wait.
50827
50828         New module 'sys_wait'.
50829         * modules/sys_wait: New file.
50830         * lib/sys_wait.in.h: New file, partially copied from
50831         lib/wait-process.c.
50832         * m4/sys_wait_h.m4: New file.
50833         * doc/posix-headers/sys_wait.texi: Mention the new module.
50834
50835 2008-10-19  Bruno Haible  <bruno@clisp.org>
50836
50837         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50838
50839 2008-10-19  Bruno Haible  <bruno@clisp.org>
50840
50841         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50842         * lib/wait-process.c (WAIT_T): Remove type.
50843         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50844         (wait_subprocess): Update.
50845
50846 2008-10-19  Bruno Haible  <bruno@clisp.org>
50847
50848         New module 'atoll'.
50849         * modules/atoll: New file.
50850         * lib/stdlib.in.h (atoll): New declaration.
50851         * lib/atoll.c: New file, from glibc with modifications.
50852         * m4/atoll.m4: New file.
50853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50854         HAVE_ATOLL.
50855         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50856         * doc/posix-functions/atoll.texi: Mention the new module.
50857
50858 2008-10-19  Bruno Haible  <bruno@clisp.org>
50859
50860         Add strtoull() declaration to <stdlib.h>.
50861         * lib/stdlib.in.h (strtoull): New declaration.
50862         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50863         Set HAVE_STRTOULL.
50864         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50865         HAVE_STRTOULL.
50866         * modules/strtoull (Depends-on): Add stdlib.
50867         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50868         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50869         HAVE_STRTOULL.
50870
50871 2008-10-19  Bruno Haible  <bruno@clisp.org>
50872
50873         Add strtoll() declaration to <stdlib.h>.
50874         * lib/stdlib.in.h (strtoll): New declaration.
50875         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50876         Set HAVE_STRTOLL.
50877         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50878         HAVE_STRTOLL.
50879         * modules/strtoll (Depends-on): Add stdlib.
50880         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50881         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50882
50883 2008-10-19  Bruno Haible  <bruno@clisp.org>
50884
50885         * modules/bcopy (Depends-on): Add strings.
50886         (Include): Specify <strings.h>.
50887
50888 2008-10-19  Bruno Haible  <bruno@clisp.org>
50889
50890         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50891
50892 2008-10-19  Bruno Haible  <bruno@clisp.org>
50893
50894         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50895         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50896         mingw.
50897
50898 2008-10-19  Bruno Haible  <bruno@clisp.org>
50899
50900         * lib/atanl.c: Don't include isnanl.h.
50901         * lib/cosl.c: Likewise.
50902         * lib/ldexpl.c: Likewise.
50903         * lib/logl.c: Likewise.
50904         * lib/sinl.c: Likewise.
50905         * lib/sqrtl.c: Likewise.
50906         * lib/tanl.c: Likewise.
50907
50908         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50909         * lib/isnanf.h: Remove file.
50910         * lib/isnand.h: Remove file.
50911         * lib/isnanl.h: Remove file.
50912         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50913         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50914         macros.
50915         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50916         HAVE_ISNANF, don't define it as a C macro.
50917         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50918         HAVE_ISNAND, don't define it as a C macro.
50919         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50920         HAVE_ISNANL, don't define it as a C macro.
50921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50922         HAVE_ISNAN[FDL].
50923         * modules/isnanf (Files): Remove lib/isnanf.h.
50924         (Depends-on): Add math.
50925         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50926         (Include): Specify <math.h> instead of isnanf.h.
50927         * modules/isnand (Files): Remove lib/isnand.h.
50928         (Depends-on): Add math.
50929         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50930         (Include): Specify <math.h> instead of isnand.h.
50931         * modules/isnanl (Files): Remove lib/isnanl.h.
50932         (Depends-on): Add math.
50933         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50934         (Include): Specify <math.h> instead of isnanl.h.
50935         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50936         HAVE_ISNAN[FDL].
50937         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50938         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50939         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50940         * NEWS: Mention the change.
50941
50942 2008-10-18  Bruno Haible  <bruno@clisp.org>
50943
50944         Add getusershell(), setusershell(), endusershell() declarations to
50945         <unistd.h>.
50946         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50947         declarations.
50948         * lib/getusershell.c: Include unistd.h.
50949         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50950         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50951         HAVE_GETUSERSHELL.
50952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50953         and HAVE_GETUSERSHELL.
50954         * modules/getusershell (Depends-on): Add unistd, extensions.
50955         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50956         (Include): Specify <unistd.h>.
50957         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50958         HAVE_GETUSERSHELL.
50959
50960 2008-10-18  Bruno Haible  <bruno@clisp.org>
50961
50962         Add a getloadavg() declaration to <stdlib.h>.
50963         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50964         getloadavg declaration.
50965         (getloadavg): New declaration.
50966         * lib/getloadavg.c: Include <stdlib.h> first.
50967         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50968         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50969         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50971         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50972         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50973         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50974         (Include): Specify <stdlib.h>.
50975         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50976         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50977
50978 2008-10-18  Bruno Haible  <bruno@clisp.org>
50979
50980         * lib/dirchownmod.c: Don't include lchmod.h.
50981
50982         Move the lchmod() declaration to <sys/stat.h>.
50983         * lib/lchmod.h: Remove file.
50984         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50985         (lchmod): New declaration, moved here from lib/lchown.h.
50986         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50987         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50988         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50989         and HAVE_LCHMOD.
50990         * modules/lchmod (Files): Remove lib/lchmod.h.
50991         (Depends-on): Add sys_stat, extensions.
50992         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50993         (Include): Specify <sys/stat.h> instead of lchmod.h.
50994         * modules/sys_stat (Depends-on): Add link-warning.
50995         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50996         definition of GL_LINK_WARNING.
50997         * NEWS: Mention the change.
50998
50999 2008-10-18  Bruno Haible  <bruno@clisp.org>
51000
51001         * lib/fchdir.c: Don't include dirfd.h.
51002         * lib/fts.c: Likewise.
51003         * lib/getcwd.c: Likewise.
51004         * lib/glob.c: Likewise.
51005
51006         Move the dirfd() declaration to <dirent.h>.
51007         * lib/dirfd.h: Remove file.
51008         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51009         (dirfd): New declaration.
51010         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51011         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51012         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51013         HAVE_DECL_DIRFD.
51014         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51015         HAVE_DECL_DIRFD.
51016         * modules/dirfd (Files): Remove lib/dirfd.h.
51017         (Depends-on): Add dirent, extensions.
51018         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51019         (Include): Specify <dirent.h> instead of dirfd.h.
51020         * modules/dirent (Depends-on): Add link-warning.
51021         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51022         definition of GL_LINK_WARNING.
51023         * NEWS: Mention the change.
51024
51025 2008-10-18  Bruno Haible  <bruno@clisp.org>
51026
51027         Move the euidaccess() declaration to <unistd.h>.
51028         * lib/euidaccess.h: Remove file.
51029         * lib/unistd.in.h (euidaccess): New declaration.
51030         * lib/euidaccess.c: Don't include euidaccess.h.
51031         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51032         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51034         and HAVE_EUIDACCESS.
51035         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51036         (Depends-on): Add unistd.
51037         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51038         (Include): Specify <unistd.h> instead of euidaccess.h.
51039         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51040         HAVE_EUIDACCESS.
51041         * NEWS: Mention the change.
51042
51043 2008-10-18  Bruno Haible  <bruno@clisp.org>
51044
51045         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51046
51047         Move the getdomainname() declaration to <unistd.h>.
51048         * lib/getdomainname.h: Remove file.
51049         * lib/unistd.in.h (getdomainname): New declaration.
51050         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51051         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51052         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51053         HAVE_GETDOMAINNAME.
51054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51055         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51056         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51057         (Depends-on): Add unistd, extensions.
51058         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51059         (Includes): Specify <unistd.h> instead of getdomainname.h.
51060         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51061         HAVE_GETDOMAINNAME.
51062         * NEWS: Mention the change.
51063
51064 2008-10-18  Bruno Haible  <bruno@clisp.org>
51065
51066         * modules/dirent: New file.
51067         * m4/dirent_h.m4: New file.
51068         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51069         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51070         * modules/fchdir (Files): Remove lib/dirent.in.h.
51071         (Depends-on): Add dirent.
51072         (Makefile.am): Move rules to modules/dirent.
51073         * doc/posix-headers/dirent.texi: Mention the new module.
51074
51075 2008-10-18  Bruno Haible  <bruno@clisp.org>
51076
51077         Avoid -Wunused-parameter warnings in public gnulib header files.
51078         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51079         macro.
51080         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51081
51082 2008-10-18  Bruno Haible  <bruno@clisp.org>
51083
51084         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51085         * doc/glibc-functions/error.texi: Mention the module 'error'.
51086         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51087         * doc/glibc-functions/getdomainname.texi: Mention the module
51088         'getdomainname'.
51089         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51090         * doc/glibc-functions/getpagesize.texi: Mention the module
51091         'getpagesize'.
51092         * doc/glibc-functions/getusershell.texi: Mention the module
51093         'getusershell'.
51094         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51095         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51096         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51097         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51098         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51099         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51100         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51101         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51102         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51103         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51104         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51105         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51106         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51107         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51108
51109 2008-10-17  Bruno Haible  <bruno@clisp.org>
51110
51111         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51112         HP-UX and IRIX, use -0.0L.
51113         * tests/test-ceill.c (minus_zero): Likewise.
51114         * tests/test-floorl.c (minus_zero): Likewise.
51115         * tests/test-frexpl.c (minus_zero): Likewise.
51116         * tests/test-isnan.c (minus_zerol): Likewise.
51117         * tests/test-isnanl.h (minus_zero): Likewise.
51118         * tests/test-ldexpl.c (minus_zero): Likewise.
51119         * tests/test-roundl.c (minus_zero): Likewise.
51120         * tests/test-signbit.c (minus_zerol): Likewise.
51121         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51122         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51123         * tests/test-truncl.c (minus_zero): Likewise.
51124         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51125         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51126         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51127         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51128
51129 2008-10-17  Bruno Haible  <bruno@clisp.org>
51130
51131         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51132         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51133         that it gets activated only for gcc >= 3.0.
51134         * lib/dirent.in.h: Likewise.
51135         * lib/errno.in.h: Likewise.
51136         * lib/fcntl.in.h: Likewise.
51137         * lib/float.in.h: Likewise.
51138         * lib/iconv.in.h: Likewise.
51139         * lib/inttypes.in.h: Likewise.
51140         * lib/locale.in.h: Likewise.
51141         * lib/math.in.h: Likewise.
51142         * lib/netdb.in.h: Likewise.
51143         * lib/netinet_in.in.h: Likewise.
51144         * lib/search.in.h: Likewise.
51145         * lib/signal.in.h: Likewise.
51146         * lib/spawn.in.h: Likewise.
51147         * lib/stdarg.in.h: Likewise.
51148         * lib/stdint.in.h: Likewise.
51149         * lib/stdio.in.h: Likewise.
51150         * lib/stdlib.in.h: Likewise.
51151         * lib/string.in.h: Likewise.
51152         * lib/strings.in.h: Likewise.
51153         * lib/sys_file.in.h: Likewise.
51154         * lib/sys_ioctl.in.h: Likewise.
51155         * lib/sys_select.in.h: Likewise.
51156         * lib/sys_socket.in.h: Likewise.
51157         * lib/sys_stat.in.h: Likewise.
51158         * lib/sys_time.in.h: Likewise.
51159         * lib/sysexits.in.h: Likewise.
51160         * lib/time.in.h: Likewise.
51161         * lib/unistd.in.h: Likewise.
51162         * lib/wchar.in.h: Likewise.
51163         * lib/wctype.in.h: Likewise.
51164         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51165
51166 2008-10-17  Jim Meyering  <meyering@redhat.com>
51167
51168         ignore-value: don't depend on inline module
51169         * modules/ignore-value (Depends-on): Remove 'inline'.
51170         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51171         Suggestion from Bruno Haible.
51172
51173 2008-10-17  Bruno Haible  <bruno@clisp.org>
51174
51175         New implementation of condition variables for Win32.
51176         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51177         (gl_linked_waitqueue_t): New type.
51178         (gl_cond_t): Use it.
51179         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51180         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51181         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51182         (glthread_cond_init_func, glthread_cond_wait_func,
51183         glthread_cond_timedwait_func, glthread_cond_signal_func,
51184         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51185         Reimplemented on the basis of gl_linked_waitqueue_t.
51186         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51187         gl_waitqueue_t.
51188         (gl_rwlock_t): Update.
51189         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51190
51191 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51192
51193         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51194         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51195
51196 2008-10-17  Jim Meyering  <meyering@redhat.com>
51197
51198         ignore-value: new module
51199         * modules/ignore-value: New file.
51200         * lib/ignore-value.h: New file.
51201         * MODULES.html.sh (Compiler warning management): New section,
51202         just for this module.  More to come.
51203
51204 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51205
51206         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51207         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51208         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51209
51210 2008-10-16  Jim Meyering  <meyering@redhat.com>
51211
51212         openat-die.c: avoid 'no previous prototype' warning
51213         * lib/openat-die.c: Include "openat.h".
51214         Reported by Reuben Thomas <rrt@sc3d.org>.
51215
51216 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51217
51218         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51219         * lib/netdb.in.h: Fix typo.
51220         Reported by Bruno Haible  <bruno@clisp.org>
51221
51222         * lib/netdb.in.h: Include sys/socket.h for platforms without
51223         netdb.h, to get structures like hostent on MinGW.
51224         * modules/netdb (Depends-on): Add sys_socket.
51225
51226 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51227
51228         * modules/netdb, modules/netdb-tests: New file.
51229         * m4/netdb_h.m4: New file.
51230         * lib/netdb.in.h: Add, currently just an empty file pending
51231         definitions.
51232         * tests/test-netdb.c: New file.
51233         * doc/posix-headers/netdb.texi: Mention that we replace it if
51234         needed.
51235         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51236         netdb.
51237
51238 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51239
51240         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51241         with code.
51242
51243 2008-10-13  Bruno Haible  <bruno@clisp.org>
51244
51245         * lib/glthread/cond.c (glthread_cond_wait_func,
51246         glthread_cond_timedwait_func): Add a comment.
51247
51248 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51249
51250         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51251         * tests/test-select.c: Likewise,
51252
51253 2008-10-13  Bruno Haible  <bruno@clisp.org>
51254
51255         * lib/glthread/cond.c (glthread_cond_wait_func,
51256         glthread_cond_timedwait_func): Fix variable name.
51257         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51258
51259 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51260
51261         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51262         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51263         struct sockaddr.sa_len.
51264         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51265
51266 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51267
51268         * build-aux/pmccabe2html: Add css and css_url parameters.
51269
51270 2008-10-12  Bruno Haible  <bruno@clisp.org>
51271
51272         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51273         calling aclx_get.
51274         Reported by Rainer Tammer <tammer@tammer.net>.
51275
51276 2008-10-12  Bruno Haible  <bruno@clisp.org>
51277
51278         Use msvcrt aware primitives for creation/termination of Win32 threads.
51279         * lib/glthread/thread.c: Include <process.h>.
51280         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51281         (wrapper_func): Update signature.
51282         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51283
51284 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51285             Bruno Haible  <bruno@clisp.org>
51286
51287         Provide a Win32 implementation of the 'cond' module.
51288         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51289         * lib/glthread/cond.c (glthread_cond_init_func,
51290         glthread_cond_wait_func, glthread_cond_timedwait_func,
51291         glthread_cond_signal_func, glthread_cond_broadcast_func,
51292         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51293         * modules/cond (Dependencies): Add gettimeofday.
51294
51295 2008-10-11  Bruno Haible  <bruno@clisp.org>
51296
51297         Make sleep work on older versions of mingw.
51298         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51299         only whether it exists.
51300         * doc/posix-functions/sleep.texi: Mention the problem with older
51301         versions of mingw.
51302
51303 2008-10-11  Bruno Haible  <bruno@clisp.org>
51304
51305         New module 'shutdown'.
51306         * modules/shutdown: New file.
51307         * lib/sys_socket.in.h (shutdown): New declaration.
51308         * lib/winsock.c (shutdown): New function.
51309         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51310         GNULIB_SHUTDOWN.
51311         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51312         * doc/posix-functions/shutdown.texi: Document the new module.
51313
51314 2008-10-11  Jim Meyering  <meyering@redhat.com>
51315
51316         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51317
51318 2008-10-11  Bruno Haible  <bruno@clisp.org>
51319
51320         New module 'fclose'.
51321         * modules/fclose: New file.
51322         * lib/stdio.in.h (fclose): New declaration.
51323         * lib/fclose.c: New file.
51324         * m4/fclose.m4: New file.
51325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51326         REPLACE_FCLOSE.
51327         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51328         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51329         REPLACE_FCLOSE.
51330         * modules/close (Depends-on): fclose.
51331         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51332
51333 2008-10-11  Bruno Haible  <bruno@clisp.org>
51334
51335         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51336         set errno and don't call _close.
51337
51338 2008-10-10  Bruno Haible  <bruno@clisp.org>
51339
51340         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51341         ACL, not afterwards. Fixes test failure on Cygwin.
51342
51343 2008-10-09  Ben Pfaff  <blp@gnu.org>
51344
51345         * build-aux/announce-gen: Fix gnulib version related part of usage
51346         message.  Die with a useful error message if no tarballs are
51347         found.
51348
51349 2008-10-10  Jim Meyering  <meyering@redhat.com>
51350
51351         bootstrap: use git's --depth=N option only if it's supported
51352         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51353         recognize the --depth option.  Reported by Pádraig Brady.
51354
51355 2008-10-09  Bruno Haible  <bruno@clisp.org>
51356
51357         New module 'ioctl'.
51358         * modules/ioctl: New file.
51359         * lib/sys_socket.in.h (ioctl): Remove declaration.
51360         * lib/winsock.c: Include <sys/ioctl.h>.
51361         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51362         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51363         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51364         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51365         * doc/posix-functions/ioctl.texi: Mention the new module.
51366
51367 2008-10-09  Bruno Haible  <bruno@clisp.org>
51368
51369         New module 'sys_ioctl'.
51370         * lib/sys_ioctl.in.h: New file.
51371         * m4/sys_ioctl_h.m4: New file.
51372         * modules/sys_ioctl: New file.
51373         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51374
51375 2008-10-09  Bruno Haible  <bruno@clisp.org>
51376
51377         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51378         * lib/winsock.c: Include <stdarg.h>.
51379         (rpl_ioctl): Change to second argument 'int' and then varargs.
51380
51381 2008-10-09  Bruno Haible  <bruno@clisp.org>
51382
51383         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51384         when the sys_socket module is present and the system has <winsock2.h>.
51385
51386 2008-10-09  Bruno Haible  <bruno@clisp.org>
51387
51388         * doc/posix-functions/close.texi: Mention module 'close' instead of
51389         module 'sys_socket'.
51390
51391 2008-10-09  Bruno Haible  <bruno@clisp.org>
51392
51393         * doc/glibc-headers/sys_ioctl.texi: New file.
51394         * doc/gnulib.texi: Include it.
51395
51396 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51397             Bruno Haible  <bruno@clisp.org>
51398
51399         Combine the two replacements of 'close'.
51400         * lib/sys_socket.in.h (close): Define to a reminder to include
51401         <unistd.h>.
51402         (_gl_close_fd_maybe_socket): New declaration.
51403         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51404         * lib/winsock.c (close): Remove undefinition.
51405         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51406         needed for the gnulib module 'close'.
51407         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51408         define to an error symbol or to a warning, if suitable.
51409         * lib/close.c: Include <sys/socket.h>.
51410         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51411         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51412         UNISTD_H_HAVE_WINSOCK2_H.
51413         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51415         UNISTD_H_HAVE_WINSOCK2_H.
51416         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51417         (configure.ac): Set a module indicator.
51418         (Makefile.am): Substitute GNULIB_CLOSE.
51419         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51420         * modules/poll-tests (Depends-on): Add close.
51421         * modules/select-tests (Depends-on): Likewise.
51422
51423 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51424             Bruno Haible  <bruno@clisp.org>
51425
51426         New module 'close'.
51427         * modules/close: New file.
51428         * lib/unistd.in.h (close): Move declaration out of the
51429         FCHDIR_REPLACEMENT scope.
51430         (_gl_unregister_fd): New declaration.
51431         * lib/close.c: New file.
51432         * lib/fchdir.c (rpl_close): Remove function.
51433         * m4/close.m4: New file.
51434         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51435         close.
51436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51437         REPLACE_CLOSE.
51438         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51439         REPLACE_CLOSE.
51440         * modules/fchdir (Depends-on): Add close.
51441
51442 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51443             Bruno Haible  <bruno@clisp.org>
51444
51445         * lib/fcntl.in.h (open): Simplify conditionals.
51446         (_gl_register_fd): New declaration.
51447         * lib/fchdir.c (rpl_open): Remove function.
51448         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51449         also.
51450         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51451         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51452         open.
51453
51454 2008-10-09  Jim Meyering  <meyering@redhat.com>
51455
51456         GNUmakefile: use the more name-space-friendly "_version"
51457         * top/GNUmakefile (_dummy): Update.
51458         (_version): Rename from "version".
51459
51460 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51461             Bruno Haible  <bruno@clisp.org>
51462
51463         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51464         rpl_close.
51465         (_gl_register_fd): New function, extracted from rpl_open.
51466         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51467         (rpl_open, rpl_opendir): Use _gl_register_fd.
51468
51469 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51470
51471         Fix organization of 'open' replacement.
51472         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51473         (gl_FUNC_OPEN): Use it.
51474         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51475
51476 2008-10-08  Bruno Haible  <bruno@clisp.org>
51477
51478         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51479
51480 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51481
51482         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51483         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51484         listen).
51485
51486 2008-10-08  Eric Blake  <ebb9@byu.net>
51487
51488         GNUmakefile: add 'make version' target
51489         * top/GNUmakefile (_curr-ver): Split version update rules...
51490         (version): ...into a target.
51491
51492 2008-10-07  Bruno Haible  <bruno@clisp.org>
51493
51494         Use a more portable replacement expression for -0.0L.
51495         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51496         instead of -0.0L. Fix m4 quotation.
51497
51498         * tests/test-signbit.c: Include <float.h>.
51499         (minus_zero): New variable.
51500         (test_signbitl): Use minus_zero instead of -zero.
51501         * modules/signbit-tests (Depends-on): Add float.
51502
51503         * tests/test-ceill.c: Include <float.h>.
51504         (zero): Remove variable.
51505         (minus_zero): New variable.
51506         (main): Use minus_zero instead of -zero.
51507         * modules/ceill-tests (Depends-on): Add float.
51508
51509         * tests/test-floorl.c: Include <float.h>.
51510         (zero): Remove variable.
51511         (minus_zero): New variable.
51512         (main): Use minus_zero instead of -zero.
51513         * modules/floorl-tests (Depends-on): Add float.
51514
51515         * tests/test-roundl.c: Include <float.h>.
51516         (zero): Remove variable.
51517         (minus_zero): New variable.
51518         (main): Use minus_zero instead of -zero.
51519         * modules/roundl-tests (Depends-on): Add float.
51520
51521         * tests/test-truncl.c: Include <float.h>.
51522         (zero): Remove variable.
51523         (minus_zero): New variable.
51524         (main): Use minus_zero instead of -zero.
51525         * modules/truncl-tests (Depends-on): Add float.
51526
51527         * tests/test-frexpl.c (zero): Remove variable.
51528         (minus_zero): New variable.
51529         (main): Use minus_zero instead of -zero.
51530         * modules/frexpl-tests (Depends-on): Add float.
51531
51532         * tests/test-isnan.c (zerol): Remove variable.
51533         (minus_zerol): New variable.
51534         (test_long_double): Use minus_zerol instead of -zerol.
51535         * modules/isnan-tests (Depends-on): Add float.
51536
51537         * tests/test-isnanl.h (zero): Remove variable.
51538         (minus_zero): New variable.
51539         (main): Use minus_zero instead of -zero.
51540         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51541         * modules/isnanl-tests (Depends-on): Add float.
51542
51543         * tests/test-ldexpl.c (zero): Remove variable.
51544         (minus_zero): New variable.
51545         (main): Use minus_zero instead of -zero.
51546         * modules/ldexpl-tests (Depends-on): Add float.
51547
51548         * tests/test-snprintf-posix.h (zerol): Remove variable.
51549         (minus_zerol): New variable.
51550         (test_function): Use minus_zerol instead of -zerol.
51551         * modules/snprintf-posix-tests (Depends-on): Add float.
51552         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51553
51554         * tests/test-sprintf-posix.h (zerol): Remove variable.
51555         (minus_zerol): New variable.
51556         (test_function): Use minus_zerol instead of -zerol.
51557         * modules/sprintf-posix-tests (Depends-on): Add float.
51558         * modules/vsprintf-posix-tests (Depends-on): Add float.
51559
51560         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51561         (minus_zerol): New variable.
51562         (test_function): Use minus_zerol instead of -zerol.
51563         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51564
51565         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51566         (minus_zerol): New variable.
51567         (test_function): Use minus_zerol instead of -zerol.
51568         * modules/vasprintf-posix-tests (Depends-on): Add float.
51569
51570 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51571
51572         * MODULES.html.sh (Support for building documentation): Mention
51573         pmccabe2html.  Sort entries.
51574
51575         Add pmccabe2html module, from gnupdf.
51576         * build-aux/pmccabe.css: New file.
51577         * build-aux/pmccabe2html: New file.
51578         * m4/pmccabe2html.m4: New file.
51579         * modules/pmccabe2html: New file.
51580
51581 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51582
51583         flock: new module
51584         * MODULES.html.sh: Add to list of modules.
51585         * lib/flock.c: flock implementation for Windows and Unix systems
51586         which have fcntl.
51587         * doc/glibc-functions/flock.texi: Update documentation.
51588         * lib/sys_file.in.h: <sys/file.h> header file.
51589         * m4/flock.m4: M4 macros.
51590         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51591         * modules/flock: flock module.
51592         * modules/flock-tests: flock tests module.
51593         * modules/sys_file: sys/file.h module.
51594         * tests/test-flock.c: test suite for flock.
51595
51596 2008-10-06  Jim Meyering  <meyering@redhat.com>
51597
51598         bootstrap: check for LT_INIT more portably still ;-)
51599         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51600         Spotted by Bruno Haible.
51601
51602 2008-10-06  Eric Blake  <ebb9@byu.net>
51603
51604         test-signbit: avoid tripping Irix cc bug on -0.0L
51605         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51606         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51607         entire testsuite consistent and avoids an Irix 6.2 bug.
51608
51609 2008-10-05  Bruno Haible  <bruno@clisp.org>
51610             Jim Meyering  <jim@meyering.net>
51611
51612         Add an option for ignoring EPIPE during close_stdout.
51613         * lib/closeout.h: Include <stdbool.h>.
51614         (close_stdout_set_ignore_EPIPE): New declaration.
51615         * lib/closeout.c: Include <stdbool.h>.
51616         (ignore_EPIPE): New variable.
51617         (close_stdout_set_ignore_EPIPE): New function.
51618         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51619         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51620         failure.
51621         * modules/closeout (Depends-on): Add stdbool.
51622
51623 2008-10-05  Bruno Haible  <bruno@clisp.org>
51624
51625         * modules/accept: New file.
51626         * modules/bind: New file.
51627         * modules/connect: New file.
51628         * modules/getpeername: New file.
51629         * modules/getsockname: New file.
51630         * modules/getsockopt: New file.
51631         * modules/listen: New file.
51632         * modules/recv: New file.
51633         * modules/recvfrom: New file.
51634         * modules/send: New file.
51635         * modules/sendto: New file.
51636         * modules/setsockopt: New file.
51637         * modules/socket: New file.
51638         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51639         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51640         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51641         the particular module is requested. Add a link warning when the
51642         particular module is not requested.
51643         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51644         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51645         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51646         the particular module is requested.
51647         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51648         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51649         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51650         * modules/sys_socket (Depends-on): Add link-warning.
51651         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51652         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51653         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51654         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51655         GL_LINK_WARNING.
51656         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51657         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51658         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51659         * doc/posix-functions/getpeername.texi: Mention the new module
51660         'getpeername'.
51661         * doc/posix-functions/getsockname.texi: Mention the new module
51662         'getsockname'.
51663         * doc/posix-functions/getsockopt.texi: Mention the new module
51664         'getsockopt'.
51665         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51666         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51667         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51668         * doc/posix-functions/send.texi: Mention the new module 'send'.
51669         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51670         * doc/posix-functions/setsockopt.texi: Mention the new module
51671         'setsockopt'.
51672         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51673         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51674         listen, connect, accept.
51675         * modules/select-tests (Depends-on): Likewise.
51676
51677 2008-10-05  Bruno Haible  <bruno@clisp.org>
51678
51679         * lib/winsock.c (strerror): Remove unused #undef.
51680         (rpl_close): Remove unused local variable.
51681
51682         * modules/sys_socket (Depends-on); Add errno.
51683
51684 2008-10-05  Bruno Haible  <bruno@clisp.org>
51685
51686         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51687         (select): Add a link warning when the 'select' module is not used.
51688         * modules/sys_select (Depends-on): Add link-warning.
51689         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51690         Suggested by Paolo Bonzini.
51691
51692 2008-10-05  Jim Meyering  <meyering@redhat.com>
51693
51694         bootstrap: check for LT_INIT more portably
51695         * build-aux/bootstrap: Avoid using grep -E, since it's not
51696         portable enough.  Suggestion from Bruno Haible.
51697
51698 2008-10-05  Bruno Haible  <bruno@clisp.org>
51699
51700         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51701         as being fixed by gnulib.
51702
51703 2008-10-05  Bruno Haible  <bruno@clisp.org>
51704
51705         * modules/select-tests: New file, mostly copied from
51706         modules/sys_select-tests.
51707         * tests/test-select.c: New file, mostly copied from
51708         tests/test-sys_select.c.
51709         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51710         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51711         (Makefile.am): Remove test_sys_select_LDADD.
51712
51713         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51714         to an undefined symbol, for an error message.
51715         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51716         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51717         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51718         winsock-select.c here.
51719         * modules/sys_select (Files): Remove lib/winsock-select.c.
51720         (Depends-on): Remove alloca.
51721         (Makefile.am): Substitute GNULIB_SELECT.
51722         * modules/select: New file.
51723         * doc/posix-functions/select.texi: Update.
51724
51725 2008-10-05  Bruno Haible  <bruno@clisp.org>
51726
51727         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51728         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51729         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51730         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51731         getdtablesize.
51732         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51733         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51734
51735 2008-10-05  Bruno Haible  <bruno@clisp.org>
51736
51737         * modules/getdtablesize-tests: New file.
51738         * tests/test-getdtablesize.c: New file.
51739
51740         New module 'getdtablesize'.
51741         * lib/unistd.in.h (getdtablesize): New declaration.
51742         * lib/getdtablesize.c: New file.
51743         * m4/getdtablesize.m4: New file.
51744         * modules/getdtablesize: New file.
51745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51746         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51747         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51748         HAVE_GETDTABLESIZE.
51749         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51750
51751 2008-10-05  Bruno Haible  <bruno@clisp.org>
51752
51753         * modules/sched (Makefile.am): Fix typo.
51754         Reported by Simon Josefsson.
51755
51756 2008-10-05  Jim Meyering  <meyering@redhat.com>
51757
51758         bootstrap: check for LT_INIT, too
51759         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51760         are deprecated.  Suggestion from Ralf Wildenhues.
51761
51762 2008-10-05  Bruno Haible  <bruno@clisp.org>
51763
51764         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51765         overriding them by ours.
51766         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51767
51768 2008-10-05  Jim Meyering  <meyering@redhat.com>
51769
51770         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51771         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51772         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51773
51774 2008-10-04  Bruno Haible  <bruno@clisp.org>
51775
51776         * modules/dup2 (License): Change to LGPLv2+.
51777         * modules/sleep (License): Likewise.
51778         * modules/perror (License): Likewise.
51779         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51780         Blake.
51781         * modules/signal (License): Likewise.
51782         * modules/sigprocmask (License): Likewise.
51783         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51784         Meyering.
51785
51786 2008-10-04  Bruno Haible  <bruno@clisp.org>
51787
51788         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51789         Reported by Rainer Tammer <tammer@tammer.net>.
51790
51791 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51792             Bruno Haible  <bruno@clisp.org>
51793
51794         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51795         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51796         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51797
51798 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51799
51800         filevercmp: new module
51801         * lib/filevercmp.h: New function filevercmp comparing version strings.
51802         * lib/filevercmp.c: Implementation of filevercmp function.
51803         * modules/filevercmp: Module metadata.
51804         * tests/test-filevercmp.c: Unit test for new module.
51805         * modules/filevercmp-tests: Unit test metadata.
51806         * MODULES.html.sh: Add filevercmp module.
51807
51808 2008-10-03  Bruno Haible  <bruno@clisp.org>
51809
51810         * lib/c-ctype.h: Add comment.
51811         Reported by Jim Meyering.
51812
51813 2008-10-02  Bruno Haible  <bruno@clisp.org>
51814
51815         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51816
51817 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51818
51819         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51820         name of bootstrap.conf accordingly.
51821
51822 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51823
51824         * build-aux/bootstrap: Install git-merge-changelog configuration
51825         items into .gitconfig if needed.
51826
51827 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51828
51829         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51830         git repository, and initialize/update it accordingly.
51831
51832 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51833
51834         * modules/fsync-tests: New file.
51835         * tests/test-fsync.c: New file.
51836
51837         New module 'fsync'.
51838         * lib/fsync.c: New file.
51839         * m4/fsync.m4: New file.
51840         * modules/fsync: New file.
51841         * lib/unistd.in.h (fsync): New declaration.
51842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51843         GNULIB_FSYNC and HAVE_FSYNC.
51844         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51845         * MODULES.html.sh (posix_functions): Add fsync.
51846         * doc/posix-functions/fsync.texi: Mention the new module.
51847
51848 2008-10-02  Jim Meyering  <meyering@redhat.com>
51849
51850         fts.c: sync with similar code from coreutils' remove.c
51851         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51852         Guard also with "#if defined __linux__", since for now at least,
51853         this code is Linux-kernel-specific.
51854
51855 2008-10-02  Jim Meyering  <meyering@redhat.com>
51856
51857         fts: bug fixes
51858         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51859         Include <sys/vfs.h>, not <sys/statfs.h>.
51860
51861         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51862         Include <sys/vfs.h>, not <sys/statfs.h>.
51863
51864 2008-10-01  Bruno Haible  <bruno@clisp.org>
51865
51866         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51867         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51868         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51869         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51870         * doc/posix-functions/posix_spawnp.texi: Likewise.
51871         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51872         whether posix_spawn actually works.
51873         * m4/pipe.m4 (gl_PIPE): Likewise.
51874         * modules/execute (Files): Add m4/posix_spawn.m4.
51875         * modules/pipe (Files): Add m4/posix_spawn.m4.
51876         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51877
51878 2008-10-01  Jim Meyering  <meyering@redhat.com>
51879
51880         remove trailing spaces
51881         * NEWS: Likewise.
51882         * lib/poll.c (poll): Likewise.
51883         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51884         * lib/winsock.c (rpl_close): Likewise.
51885         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51886         * modules/yield: Likewise.
51887         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51888         * tests/test-sys_select.c (connect_to_socket): Likewise.
51889
51890         fts.c: adjust a new interface to be more generally useful
51891         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51892         (fts_build): Adjust caller.
51893
51894 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51895
51896         * modules/cond-tests: New file.
51897         * tests/test-cond.c: New file.
51898
51899 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51900             Bruno Haible  <bruno@clisp.org>
51901
51902         * modules/cond (Dependencies): Add errno, time.
51903         * lib/glthread/cond.h: Include <time.h>.
51904         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51905         across platforms.
51906
51907 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51908             Bruno Haible  <bruno@clisp.org>
51909
51910         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51911
51912 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51913             Bruno Haible  <bruno@clisp.org>
51914
51915         * modules/tls-tests (Depends-on): Add thread, yield.
51916         (configure.ac): Remove all checks.
51917         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51918         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51919         gl_thread_self): Remove definitions. Include glthread/thread.h and
51920         glthread/yield.h instead.
51921         (test_tls): Pass an additional NULL argument to gl_thread_join.
51922
51923 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51924             Bruno Haible  <bruno@clisp.org>
51925
51926         * modules/lock-tests (Depends-on): Add thread, yield.
51927         (configure.ac): Remove all checks.
51928         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51929         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51930         gl_thread_self): Remove definitions. Include glthread/thread.h and
51931         glthread/yield.h instead.
51932         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51933         additional NULL argument to gl_thread_join.
51934
51935 2008-09-30  Bruno Haible  <bruno@clisp.org>
51936
51937         Fix the Win32 implementation of the 'thread' module.
51938         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51939         pointer type.
51940         (gl_thread_self): Invoke gl_thread_self_func.
51941         (gl_thread_self_func): New declaration.
51942         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51943         (do_init_self_key, init_self_key): New functions.
51944         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51945         Remove some fields.
51946         (running_threads, running_lock): Remove variables.
51947         (get_current_thread_handle): New function.
51948         (gl_thread_self_func, wrapper_func, glthread_create_func,
51949         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51950         simplified.
51951
51952 2008-09-30  Bruno Haible  <bruno@clisp.org>
51953
51954         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51955         files.
51956
51957 2008-09-30  Jim Meyering  <meyering@redhat.com>
51958
51959         fts.m4: correct the test for statfs.f_type
51960         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51961         when checking for statfs.f_type.
51962
51963 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51964
51965         tests: avoid some compiler warnings
51966         * tests/test-memchr.c (main): Pass NULL indirectly.
51967         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51968
51969 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51970
51971         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51972         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51973         exactly specified dayshifts.
51974         (dayshift): New rule.
51975         (rel): Add dayshift.
51976         (relative_time_table) [tomorrow, yesterday, today, now]:
51977         Use tDAY_SHIFT in place of tDAY_UNIT.
51978         * tests/test-getdate.c: Add tests for now-disallowed countable
51979         dayshifts, e.g., "4 yesterday ago".
51980
51981 2008-09-29  Bruno Haible  <bruno@clisp.org>
51982
51983         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51984         * tests/test-posix_spawn1.in.sh: Renamed from
51985         tests/test-posix_spawn.in.sh.
51986         * tests/test-posix_spawn2.c: New file.
51987         * tests/test-posix_spawn2.in.sh: New file.
51988         * modules/posix_spawnp-tests (Files): Update.
51989         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51990
51991 2008-09-29  Bruno Haible  <bruno@clisp.org>
51992
51993         Propagate effects of putenv/setenv/unsetenv to child processes.
51994         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51995         * lib/pipe.c (create_pipe): Likewise.
51996
51997 2008-09-29  Bruno Haible  <bruno@clisp.org>
51998
51999         Enable use of shell scripts as executables in mingw.
52000         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52001         run the program as a shell script.
52002         * lib/pipe.c (create_pipe): Likewise.
52003         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52004         resulting array.
52005
52006 2008-09-29  Eric Blake  <ebb9@byu.net>
52007
52008         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52009
52010 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52011
52012         * doc/posix-functions/accept.texi: Update mingw problems.
52013         * doc/posix-functions/bind.texi: Update mingw problems.
52014         * doc/posix-functions/close.texi: Update mingw problems.
52015         * doc/posix-functions/connect.texi: Update mingw problems.
52016         * doc/posix-functions/getpeername.texi: Update mingw problems.
52017         * doc/posix-functions/getsockname.texi: Update mingw problems.
52018         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52019         * doc/posix-functions/ioctl.texi: Update mingw problems.
52020         * doc/posix-functions/listen.texi: Update mingw problems.
52021         * doc/posix-functions/recv.texi: Update mingw problems.
52022         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52023         * doc/posix-functions/select.texi: Update mingw problems.
52024         * doc/posix-functions/send.texi: Update mingw problems.
52025         * doc/posix-functions/sendto.texi: Update mingw problems.
52026         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52027         * doc/posix-functions/socket.texi: Update mingw problems.
52028
52029 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52030             Bruno Haible  <bruno@clisp.org>
52031
52032         * lib/sys_select.in.h: Include sys/time.h.
52033         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52034         * modules/sys_select: Depend on sys_time.
52035         * tests/test-sys_select.c: Test that sys/select.h defines struct
52036         timeval fully.
52037
52038 2008-09-29  Bruno Haible  <bruno@clisp.org>
52039
52040         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52041         * lib/sys_select.in.h: Likewise.
52042
52043 2008-09-29  Bruno Haible  <bruno@clisp.org>
52044
52045         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52046
52047 2008-09-29  Bruno Haible  <bruno@clisp.org>
52048
52049         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52050         Set LIBSOCKET instead of augmenting LIBS.
52051         * modules/sockets (Link): New section.
52052         * modules/sockets-tests (test_sockets_LDADD): New variable.
52053         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52054         * modules/poll-tests (test_poll_LDADD): New variable.
52055         * NEWS: Document the change.
52056
52057 2008-09-29  Bruno Haible  <bruno@clisp.org>
52058
52059         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52060         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52061         ARPA_INET_H directly.
52062         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52063
52064 2008-09-28  Bruno Haible  <bruno@clisp.org>
52065
52066         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52067         from gl_HEADER_SYS_SOCKET.
52068         (gl_HEADER_SYS_SOCKET): Invoke it.
52069         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52070
52071 2008-09-28  Bruno Haible  <bruno@clisp.org>
52072
52073         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52074         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52075         Needed on OSF/1 4.0.
52076
52077 2008-09-28  Bruno Haible  <bruno@clisp.org>
52078
52079         Override open more carefully.
52080         * lib/open.c (orig_open): New function.
52081         (rpl_open): Use orig_open instead of open.
52082         * lib/fcntl.in.h: Add special invocation convention.
52083         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52084         (gl_FUNC_OPEN): Invoke it.
52085
52086         Override freopen more carefully.
52087         * lib/freopen.c (orig_freopen): New function.
52088         (rpl_freopen): Use orig_freopen instead of freopen.
52089         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52090         (gl_FUNC_FREOPEN): Invoke it.
52091
52092         Override fopen more carefully.
52093         * lib/fopen.c (orig_fopen): New function.
52094         (rpl_fopen): Use orig_fopen instead of fopen.
52095         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52096         (gl_FUNC_FOPEN): Invoke it.
52097         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52098
52099 2008-09-28  Bruno Haible  <bruno@clisp.org>
52100
52101         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52102         SIGPIPE.
52103
52104 2008-09-28  Bruno Haible  <bruno@clisp.org>
52105
52106         * tests/test-sigaction.c (handler, main): Disable the check whether
52107         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52108         glibc systems with LinuxThreads.
52109
52110 2008-09-28  Bruno Haible  <bruno@clisp.org>
52111
52112         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52113
52114         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52115         with AIX xlc.
52116         * lib/fcntl.in.h (open): Likewise.
52117         Reported by Rainer Tammer <tammer@tammer.net>.
52118
52119 2008-09-28  Bruno Haible  <bruno@clisp.org>
52120
52121         * modules/posix_spawnp-tests: New file.
52122         * tests/test-posix_spawn.c: New file.
52123         * tests/test-posix_spawn.in.sh: New file.
52124
52125         New module 'posix_spawnp'.
52126         * modules/posix_spawnp: New file.
52127         * lib/spawnp.c: New file, from GNU libc with modifications.
52128         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52129
52130         New module 'posix_spawn'.
52131         * modules/posix_spawn: New file.
52132         * lib/spawn.c: New file, from GNU libc with modifications.
52133         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52134
52135         New module 'posix_spawnattr_destroy'.
52136         * modules/posix_spawnattr_destroy: New file.
52137         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52138         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52139         module.
52140
52141         New module 'posix_spawnattr_setsigmask'.
52142         * modules/posix_spawnattr_setsigmask: New file.
52143         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52144         modifications.
52145         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52146         new module.
52147
52148         New module 'posix_spawnattr_getsigmask'.
52149         * modules/posix_spawnattr_getsigmask: New file.
52150         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52151         modifications.
52152         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52153         new module.
52154
52155         New module 'posix_spawnattr_setsigdefault'.
52156         * modules/posix_spawnattr_setsigdefault: New file.
52157         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52158         modifications.
52159         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52160         new module.
52161
52162         New module 'posix_spawnattr_getsigdefault'.
52163         * modules/posix_spawnattr_getsigdefault: New file.
52164         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52165         modifications.
52166         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52167         new module.
52168
52169         New module 'posix_spawnattr_setschedpolicy'.
52170         * modules/posix_spawnattr_setschedpolicy: New file.
52171         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52172         modifications.
52173         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52174         new module.
52175
52176         New module 'posix_spawnattr_getschedpolicy'.
52177         * modules/posix_spawnattr_getschedpolicy: New file.
52178         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52179         modifications.
52180         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52181         new module.
52182
52183         New module 'posix_spawnattr_setschedparam'.
52184         * modules/posix_spawnattr_setschedparam: New file.
52185         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52186         modifications.
52187         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52188         new module.
52189
52190         New module 'posix_spawnattr_getschedparam'.
52191         * modules/posix_spawnattr_getschedparam: New file.
52192         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52193         modifications.
52194         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52195         new module.
52196
52197         New module 'posix_spawnattr_setpgroup'.
52198         * modules/posix_spawnattr_setpgroup: New file.
52199         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52200         modifications.
52201         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52202         module.
52203
52204         New module 'posix_spawnattr_getpgroup'.
52205         * modules/posix_spawnattr_getpgroup: New file.
52206         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52207         modifications.
52208         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52209         module.
52210
52211         New module 'posix_spawnattr_setflags'.
52212         * modules/posix_spawnattr_setflags: New file.
52213         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52214         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52215         module.
52216
52217         New module 'posix_spawnattr_getflags'.
52218         * modules/posix_spawnattr_getflags: New file.
52219         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52220         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52221         module.
52222
52223         New module 'posix_spawnattr_init'.
52224         * modules/posix_spawnattr_init: New file.
52225         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52226         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52227         module.
52228
52229         New module 'posix_spawn_file_actions_destroy'.
52230         * modules/posix_spawn_file_actions_destroy: New file.
52231         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52232         modifications.
52233         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52234         the new module.
52235
52236         New module 'posix_spawn_file_actions_addopen'.
52237         * modules/posix_spawn_file_actions_addopen: New file.
52238         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52239         modifications.
52240         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52241         the new module.
52242
52243         New module 'posix_spawn_file_actions_adddup2'.
52244         * modules/posix_spawn_file_actions_adddup2: New file.
52245         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52246         modifications.
52247         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52248         the new module.
52249
52250         New module 'posix_spawn_file_actions_addclose'.
52251         * modules/posix_spawn_file_actions_addclose: New file.
52252         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52253         modifications.
52254         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52255         the new module.
52256
52257         New module 'posix_spawn_file_actions_init'.
52258         * modules/posix_spawn_file_actions_init: New file.
52259         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52260         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52261         new module.
52262
52263         New module 'posix_spawn-internal'.
52264         * modules/posix_spawn-internal: New file.
52265         * lib/spawn_int.h: New file, from GNU libc with modifications.
52266         * lib/spawni.c: New file, from GNU libc with modifications.
52267         * m4/posix_spawn.m4: New file.
52268
52269         New module 'spawn'.
52270         * modules/spawn: New file.
52271         * lib/spawn.in.h: New file, from GNU libc with modifications.
52272         * m4/spawn_h.m4: New file.
52273         * doc/posix-headers/spawn.texi: Mention the new module.
52274
52275 2008-09-28  Bruno Haible  <bruno@clisp.org>
52276
52277         * modules/sched-tests: New file.
52278         * tests/test-sched.c: New file.
52279
52280         New module 'sched'.
52281         * modules/sched: New file.
52282         * lib/sched.in.h: New file.
52283         * m4/sched_h.m4: New file.
52284         * doc/posix-headers/sched.texi: Mention the new module.
52285
52286 2008-09-27  Eric Blake  <ebb9@byu.net>
52287
52288         Fix previous patch, and tweak references to $0.
52289         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52290         (func_version, func_gnulib_dir): Don't call this program
52291         gnulib-tool.
52292         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52293         with using $0 in function.
52294         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52295         (func_fatal_error): Reuse the name the user invoked us with.
52296
52297 2008-09-27  Bruno Haible  <bruno@clisp.org>
52298
52299         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52300         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52301         (gl_ICONV_H): Not here.
52302         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52303         instead of assigning ICONV_H directly.
52304
52305         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52306         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52307         WCHAR_H directly.
52308
52309 2008-09-27  Bruno Haible  <bruno@clisp.org>
52310
52311         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52312         * modules/arpa_inet (Depends-on): Add link-warning.
52313         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52314         * modules/unistd (Makefile.am): Likewise.
52315
52316 2008-09-26  Bruno Haible  <bruno@clisp.org>
52317
52318         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52319         variables.
52320         (func_version): Essentially copied from gnulib-tool.
52321         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52322         func_readlink): Copied from gnulib-tool.
52323
52324 2008-09-26  Bruno Haible  <bruno@clisp.org>
52325
52326         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52327         invoking git-version-gen.
52328
52329 2008-09-26  Bruno Haible  <bruno@clisp.org>
52330
52331         * posix-modules: Update to directory names changed on 2008-01-19.
52332         Remove commas in output before splitting into words. No more need to
52333         avoid 'ftruncate' since 2007-02-19.
52334
52335 2008-09-26  Bruno Haible  <bruno@clisp.org>
52336
52337         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52338
52339 2008-09-26  Bruno Haible  <bruno@clisp.org>
52340
52341         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52342         * modules/fwriteerror (Depends-on): Add errno.
52343
52344 2008-09-26  Bruno Haible  <bruno@clisp.org>
52345
52346         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52347         * tests/test-vc-list-files-cvs.sh: Likewise.
52348
52349 2008-09-26  Bruno Haible  <bruno@clisp.org>
52350
52351         * doc/posix-headers/sys_resource.texi: Reorder items.
52352
52353 2008-09-26  Jim Meyering  <meyering@redhat.com>
52354
52355         fts: tweak inode comparison function
52356         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52357         inode numbers, as documented.
52358
52359         fts: sort dirent entries on inode number before traversing
52360         This avoids a quadratic, seek-related performance penalty when
52361         operating on a directory containing many entries (measurable at 10k;
52362         3.5 hours at 2 million entries with a cold cache) on certain types
52363         of file systems, including ext3 and ext4, but not tmpfs.
52364         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52365         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52366         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52367         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52368         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52369         (fts_build): Set the stat.st_ino member from D_INO.
52370         If it is likely to be useful, sort dirent entries on inode number.
52371
52372         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52373         and the struct statfs.f_type member.
52374         * modules/fts (Depends-on): Add d-ino.
52375
52376 2008-09-26  Bruno Haible  <bruno@clisp.org>
52377
52378         * modules/sigpipe-die (Depends-on): Add sigpipe.
52379
52380         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52381         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52382         and GNULIB_STDIO_H_SIGPIPE are set.
52383         * lib/stdio-write.c: New file.
52384         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52385         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52386         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52387         REPLACE_STDIO_WRITE_FUNCS.
52388         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52389         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52390         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52391         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52392         * modules/stdio (Files): Add lib/stdio-write.c.
52393         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52394         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52395         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52396         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52397         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52398         REPLACE_FPRINTF_POSIX.
52399         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52400         REPLACE_PRINTF_POSIX.
52401         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52402         REPLACE_VFPRINTF_POSIX.
52403         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52404         REPLACE_VPRINTF_POSIX.
52405         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52406         SIGPIPE issue.
52407         * doc/posix-functions/fputc.texi: Likewise.
52408         * doc/posix-functions/fputs.texi: Likewise.
52409         * doc/posix-functions/fwrite.texi: Likewise.
52410         * doc/posix-functions/printf.texi: Likewise.
52411         * doc/posix-functions/putc.texi: Likewise.
52412         * doc/posix-functions/putchar.texi: Likewise.
52413         * doc/posix-functions/puts.texi: Likewise.
52414         * doc/posix-functions/vfprintf.texi: Likewise.
52415         * doc/posix-functions/vprintf.texi: Likewise.
52416
52417         * modules/safe-write (Depends-on): Add write.
52418
52419         * modules/sigpipe-tests: New file.
52420         * tests/test-sigpipe.c: New file.
52421         * tests/test-sigpipe.sh: New file.
52422
52423         * modules/write: New file.
52424         * lib/unistd.in.h: Include <sys/types.h>.
52425         (write): New declaration.
52426         * lib/write.c: New file.
52427         * m4/write.m4: New file.
52428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52429         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52430         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52431         GNULIB_WRITE, REPLACE_WRITE.
52432         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52433         and the SIGPIPE issue.
52434
52435         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52436         (raise): New declaration.
52437         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52438         (ext_signal): New function.
52439         (rpl_raise): New function.
52440         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52441         GNULIB_SIGNAL_H_SIGPIPE.
52442         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52443         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52444
52445         * modules/sigpipe: New file.
52446         * m4/sigpipe.m4: New file.
52447
52448 2008-09-25  Derek Price  <derek@ximbiot.com>
52449             Bruno Haible  <bruno@clisp.org>
52450
52451         * gnulib-tool (func_import): Report all license incompatibilities, not
52452         just the first one.
52453
52454 2008-09-25  Bruno Haible  <bruno@clisp.org>
52455
52456         * gnulib-tool (func_import): When computing the edits, consider not
52457         only the Makefile.ams that exist but also those that will be generated.
52458
52459 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52460
52461         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52462         fixes gnulib-tool --test warning about duplicate dependency.
52463
52464 2008-09-25  Bruno Haible  <bruno@clisp.org>
52465
52466         * gnulib-tool: Don't ask the user to perform edits in the generated
52467         Makefile.ams.
52468         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52469         apply to the Makefile.am being generated.
52470         (func_emit_tests_Makefile_am): Execute edits that apply to the
52471         Makefile.am being generated.
52472         (func_import): Setup list of Makefile.am edits before emitting the
52473         Makefile.ams, not at the end.
52474         (func_create_testdir): Update.
52475         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52476
52477 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52478
52479         * gnulib-tool (func_import): Store the --tests-base option in the
52480         comment in gnulib-cache.m4.
52481
52482 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52483
52484         * NEWS: Document increased portability that sys_select now provides.
52485
52486         * lib/sys_select.in.h: Install select wrapper.
52487         * lib/sys_socket.in.h: Use more descriptive name when there is no
52488         select wrapper.
52489         * lib/winsock-select.c: New.
52490         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52491         Require gl_HEADER_SYS_SOCKET.
52492         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52493         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52494         * tests/test-sys_select.c: Add functional tests.
52495
52496 2008-09-24  Eric Blake  <ebb9@byu.net>
52497
52498         open, fopen: close fd leak in last patch
52499         * lib/open.c (rpl_open): Close fd before returning error.
52500         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52501         * doc/posix-functions/open.texi (open): Document that Irix also
52502         has the bug.
52503         * doc/posix-functions/fopen.texi (fopen): Likewise.
52504         Reported by Paolo Bonzini.
52505
52506 2008-09-24  Bruno Haible  <bruno@clisp.org>
52507
52508         Ensure that a filename ending in a slash cannot be used to access a
52509         non-directory.
52510         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52511         to check whether it's really a directory.
52512         * lib/fopen.c: Include fcntl.h, unistd.h.
52513         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52514         and fdopen().
52515         * modules/fopen (Depends-on): Add unistd.
52516         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52517         * tests/test-fopen.c (main): Likewise.
52518         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52519         * doc/posix-functions/fopen.texi: Likewise.
52520         Reported by Eric Blake.
52521
52522 2008-09-23  Eric Blake  <ebb9@byu.net>
52523
52524         c-stack: avoid compiler optimizations when provoking overflow
52525         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52526         recursion harder to optimize, to ensure a stack overflow occurs.
52527         * tests/test-c-stack.c (recurse): Likewise.
52528         Borrowed from libsigsegv.
52529
52530         c-stack: work around Irix sigaltstack bug
52531         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52532         whether sigaltstack uses wrong end of stack_t (copied in part from
52533         libsigsegv).
52534         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52535         Irix bug, without requiring an over-allocation.
52536         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52537         bug.
52538
52539         fopen: document mingw bug on directories
52540         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52541         not allowing a stream visiting a directory, even though reading
52542         from such a stream is not portable.
52543
52544 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52545
52546         * lib/poll.c: Rewrite.
52547         * modules/poll: Depend on alloca.
52548
52549 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52550
52551         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52552         instead define prototypes for a full set of wrappers.  Ensure
52553         that Cygwin does not use the compatibility code, which is only
52554         for MinGW.
52555         * lib/winsock.c: New.
52556         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52557         * modules/sys_socket: Add lib/winsock.c.
52558
52559         * modules/poll-tests: Add errno and perror.
52560         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52561
52562 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52563
52564         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52565
52566 2008-09-23  Bruno Haible  <bruno@clisp.org>
52567
52568         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52569         * doc/glibc-functions/*: Likewise.
52570
52571 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52572
52573         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52574         success.
52575
52576 2008-09-22  Eric Blake  <ebb9@byu.net>
52577             Bruno Haible  <bruno@clisp.org>
52578
52579         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52580         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52581         supply %A but mishandle pseudo-NaN.
52582         Reported by Simon Josefsson.
52583
52584 2008-09-21  Bruno Haible  <bruno@clisp.org>
52585
52586         * tests/test-lock.c (main): Tweak skip message.
52587         * tests/test-tls.c (main): Likewise.
52588
52589 2008-09-21  Bruno Haible  <bruno@clisp.org>
52590
52591         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52592         whether 'struct sigaction' has sa_sigaction here...
52593         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52594         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52595
52596 2008-09-21  Bruno Haible  <bruno@clisp.org>
52597
52598         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52599         section.
52600         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52601         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52602         the new section.
52603         (Support for obsolete systems lacking POSIX:2001): New section.
52604         (String handling <string.h>): Move strdup to the new section.
52605         Suggested by Simon Josefsson and Paolo Bonzini.
52606
52607 2008-09-21  Bruno Haible  <bruno@clisp.org>
52608
52609         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52610         exponents in %e and %g results on 'long double'. Needed for mingw's
52611         improved *printf functions.
52612         * tests/test-vasprintf-posix.c (test_function): Likewise.
52613         * tests/test-snprintf-posix.h (test_function): Likewise.
52614         * tests/test-sprintf-posix.h (test_function): Likewise.
52615         Reported by Eric Blake.
52616
52617 2008-09-21  Bruno Haible  <bruno@clisp.org>
52618
52619         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52620         * tests/test-sprintf-posix.h (test_function): Likewise.
52621
52622 2008-09-21  Bruno Haible  <bruno@clisp.org>
52623
52624         * modules/getpass (Depends-on): Add strdup-posix.
52625
52626         New module 'strdup-posix'.
52627         * modules/strdup-posix: New file.
52628         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52629         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52630         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52631         REPLACE_STRDUP.
52632         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52633         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52634         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52635         strdup-posix.
52636
52637         * modules/strdup (Depends-on): Remove malloc-posix.
52638
52639 2008-09-20  Bruno Haible  <bruno@clisp.org>
52640
52641         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52642         Wildenhues.
52643
52644 2008-09-20  Bruno Haible  <bruno@clisp.org>
52645
52646         Ensure that wint_t gets defined on IRIX 5.3.
52647         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52648         * lib/wctype.in.h (wint_t): Likewise.
52649         (__wctype_wint_t): Remove type.
52650         (isw*): Use wint_t instead of __wctype_wint_t.
52651         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52652         * modules/wchar (Files): Add m4/wint_t.m4.
52653         (Makefile.am): Substitute HAVE_WINT_T.
52654         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52655         * tests/test-wctype.c: Check that wint_t is defined.
52656         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52657         * doc/posix-headers/wctype.texi: Likewise.
52658         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52659
52660 2008-09-18  Bruno Haible  <bruno@clisp.org>
52661
52662         * gnulib-tool (func_exit): Update comment.
52663
52664 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52665
52666         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52667         assumes strdup exists and does not depend on strdup to return
52668         ENOMEM on out of memory conditions.
52669
52670 2008-09-18  Bruno Haible  <bruno@clisp.org>
52671
52672         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52673         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52674         digits for the exponent.
52675
52676 2008-09-18  Jim Meyering  <meyering@redhat.com>
52677             Bruno Haible  <bruno@clisp.org>
52678
52679         * lib/vasnprintf.c (decimal_point_char): Define also if
52680         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52681
52682 2008-09-16  Bruno Haible  <bruno@clisp.org>
52683         and Eric Blake  <ebb9@byu.net>
52684
52685         vasnprintf: support Irix 5.3
52686         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52687         that mishandle long double infinity.
52688         Reported by Tom G. Christensen.
52689
52690 2008-09-16  Bruno Haible  <bruno@clisp.org>
52691
52692         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52693         Solaris 9.
52694         * doc/glibc-functions/alphasort.texi: Likewise.
52695         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52696
52697 2008-09-16  Jim Meyering  <meyering@redhat.com>
52698
52699         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52700         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52701         a umask modification leak out of a subshell.  Otherwise, the
52702         opensolaris /bin/sh would be accepted and thus cause unwarranted
52703         failures in the coreutils test suite.
52704
52705 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52706
52707         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52708         to succeed.
52709
52710 2008-09-16  Jim Meyering  <meyering@redhat.com>
52711
52712         avoid spurious test failure when library is built without ACL support
52713         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52714         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52715         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52716         * tests/test-copy-acl.sh: Likewise.
52717
52718 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52719
52720         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52721         based on character occurrence counts.
52722
52723 2008-09-15  Eric Blake  <ebb9@byu.net>
52724
52725         tests: avoid some compiler warnings
52726         * tests/test-memchr.c (main): Pass NULL indirectly.
52727         * tests/test-closein.c (main): Avoid unused variable.
52728
52729 2008-09-15  Bruno Haible  <bruno@clisp.org>
52730
52731         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52732         are missing on OpenBSD 4.0 individually.
52733         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52734
52735 2008-09-15  Bruno Haible  <bruno@clisp.org>
52736
52737         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52738         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52739         * doc/posix-functions/perror.texi: Likewise.
52740         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52741         is missing.
52742         Reported by Eric Blake.
52743
52744         * lib/errno.in.h: Use replacement values >= 2000.
52745         Reported by Eric Blake.
52746
52747 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52748
52749         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52750         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52751         limit.
52752         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52753         compareseq was aborted.
52754
52755 2008-09-14  Bruno Haible  <bruno@clisp.org>
52756
52757         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52758         yvec_edit_count.
52759         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52760         (fstrcmp_bounded): Simplify result computation accordingly.
52761
52762 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52763
52764         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52765         (fstrcmp): Define in terms of fstrcmp_bounded.
52766         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52767         lower_bound argument.
52768         Return quickly if the result is certainly < lower_bound.
52769         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52770
52771 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52772
52773         * lib/diffseq.h (EARLY_ABORT): New macro.
52774         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52775         evaluates to true.
52776
52777 2008-09-14  Bruno Haible  <bruno@clisp.org>
52778
52779         * modules/perror-tests: New file.
52780         * tests/test-perror.sh: New file.
52781         * tests/test-perror.c: New file.
52782
52783         New module 'perror'.
52784         * lib/stdio.in.h (perror): New declaration.
52785         * lib/perror.c: New file.
52786         * m4/perror.m4: New file.
52787         * modules/perror: New file.
52788         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52789         * doc/posix-functions/perror.texi: Mention the perror module.
52790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52791         REPLACE_PERROR.
52792         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52793         REPLACE_PERROR.
52794
52795 2008-09-14  Bruno Haible  <bruno@clisp.org>
52796
52797         * modules/stdio (Makefile.am): Reorder to match the order in
52798         lib/stdio.in.h.
52799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52800
52801 2008-09-13  Bruno Haible  <bruno@clisp.org>
52802
52803         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52804
52805 2008-09-13  Bruno Haible  <bruno@clisp.org>
52806
52807         Extend strerror to cover the added errno values.
52808         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52809         (rpl_strerror): Provide error messages for the added errno values and
52810         for the WSA* values.
52811         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52812         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52813         strerror.
52814         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52815         * modules/strerror (Depends-on): Add errno.
52816         * doc/posix-functions/strerror.texi: Document the change.
52817         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52818         and EOVERFLOW.
52819
52820 2008-09-13  Bruno Haible  <bruno@clisp.org>
52821
52822         * modules/EOVERFLOW: Remove file.
52823         * m4/eoverflow.m4: Remove file.
52824         * modules/EOVERFLOW-tests: Remove file.
52825         * tests/test-EOVERFLOW.c: Remove file.
52826         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52827         * modules/ftell (Depends-on): Likewise.
52828         * modules/getdelim (Depends-on): Likewise.
52829         * modules/getugroups (Depends-on): Likewise.
52830         * modules/poll (Depends-on): Likewise.
52831         * modules/snprintf (Depends-on): Likewise.
52832         * modules/sprintf-posix (Depends-on): Likewise.
52833         * modules/vasnprintf (Depends-on): Likewise.
52834         * modules/vasprintf (Depends-on): Likewise.
52835         * modules/vfprintf-posix (Depends-on): Likewise.
52836         * modules/vsnprintf (Depends-on): Likewise.
52837         * modules/vsprintf-posix (Depends-on): Likewise.
52838         * modules/xvasprintf (Depends-on): Likewise.
52839         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52840         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52841         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52842         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52843         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52844         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52845         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52846         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52847         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52848         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52849         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52850         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52851         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52852         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52853         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52854         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52855         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52856         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52857         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52858         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52859         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52860         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52861         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52862         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52863         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52864         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52865         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52866         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52867         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52868         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52869         * MODULES.html.sh: Remove EOVERFLOW.
52870         * NEWS: Mention the change.
52871
52872 2008-09-13  Bruno Haible  <bruno@clisp.org>
52873
52874         * modules/errno-tests: New file.
52875         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52876
52877         * lib/errno.in.h: New file.
52878         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52879         * modules/errno: New file.
52880         * doc/posix-headers/errno.texi: Update documentation.
52881         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52882
52883 2008-09-13  Bruno Haible  <bruno@clisp.org>
52884
52885         * tests/test-poll.c: Use #if for native Windows, rather than testing
52886         __MSVCRT__.
52887
52888 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52889             Bruno Haible  <bruno@clisp.org>
52890
52891         * lib/glob.c: Don't include <pwd.h> on native Windows.
52892         (WINDOWS32): New macro.
52893         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52894
52895 2008-09-13  Bruno Haible  <bruno@clisp.org>
52896
52897         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52898         (ETIMEDOUT): Remove macro.
52899         (glthread_cond_timedwait_multithreaded): New declaration.
52900         (glthread_cond_timedwait): Use it.
52901         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52902         (glthread_cond_timedwait_multithreaded): New function.
52903
52904 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52905
52906         * modules/poll-tests: Do not check for io.h.
52907         * tests/test-poll.c: Check for __MSVCRT__ instead.
52908
52909 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52910
52911         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52912         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52913         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52914
52915 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52916
52917         * modules/poll-tests: New.
52918         * tests/test-poll.c: New.
52919
52920 2008-09-12  Eric Blake  <ebb9@byu.net>
52921
52922         frexp: test for NetBSD failure on -0.0
52923         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52924         not all, bugs from NetBSD 3.0 have been fixed.
52925         * doc/posix-functions/frexp.texi (frexp): Document bug.
52926         Reported by Thomas Klausner.
52927
52928         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52929         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52930         literal -0.0.
52931         Reported by Jonathan C. Patschke <jp@centtech.com>.
52932
52933 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52934
52935         * lib/glthread/cond.h: Use dummy implementation also if
52936         USE_WIN32_THREADS.
52937
52938 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52939
52940         * modules/fnmatch-posix (License): Change to LGPLv2+.
52941         * modules/fnmatch-gnu (License): Likewise.
52942
52943 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52944
52945         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52946
52947 2008-09-11  Jim Meyering  <meyering@redhat.com>
52948
52949         * users.txt: Add gtk-vnc.
52950
52951 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52952
52953         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52954         rotate amounts.
52955
52956         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52957         required for 16-bit and 8-bit rotates.
52958         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52959         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52960         UINT8_MAX instead of hard-coded constants.
52961         Suggested by Paul Eggert.
52962
52963 2008-09-07  Bruno Haible  <bruno@clisp.org>
52964
52965         * tests/test-striconveh.c (main): Check behaviour when converting from
52966         UTF-7.
52967
52968         Make striconveh work better with stateful encodings.
52969         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52970         that iconv does not increment the inptr when returning -1/EINVAL.
52971
52972 2008-09-07  Bruno Haible  <bruno@clisp.org>
52973
52974         * build-aux/config.rpath: Update according to libtool-2.2.6.
52975         * build-aux/config.libpath: Likewise.
52976
52977 2008-09-06  Bruno Haible  <bruno@clisp.org>
52978
52979         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52980         * lib/freadptr.c (freadptr): Likewise.
52981         * lib/freadseek.c (freadptrinc): Likewise.
52982         Reported by Simon Josefsson.
52983
52984 2008-09-06  Bruno Haible  <bruno@clisp.org>
52985
52986         * modules/freadptr (License): Change to LGPLv2+.
52987         * modules/freadseek (License): Likewise.
52988         Suggested by Eric Blake.
52989
52990         * modules/memchr2 (License): Change to LGPLv2+.
52991         Approved by Eric Blake.
52992
52993 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52994             Bruno Haible  <bruno@clisp.org>
52995
52996         Make gnulib-tool work with native 'sed' on AIX.
52997         * gnulib-tool (sed_noop): New variable.
52998         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52999         func_add_or_update, func_create_testdir): Use it to initialize sed
53000         script variables.
53001         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53002
53003 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53004             Bruno Haible  <bruno@clisp.org>
53005
53006         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53007         also works after #include directives.
53008
53009 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53010
53011         getdate.y: reject an out-of-range timezone value
53012         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53013         the range [-24...+24].  When specified with only one or two digits,
53014         * tests/test-getdate.c: Tests for the fix.
53015         * doc/getdate.texi: Document this change.
53016
53017 2008-09-03  Bruno Haible  <bruno@clisp.org>
53018
53019         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53020
53021 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53022
53023         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53024         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53025         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53026         Blake <ebb9@byu.net>.
53027
53028         * tests/test-bitrotate.c: Add more test vectors.
53029
53030 2008-09-02  Eric Blake  <ebb9@byu.net>
53031
53032         vasnprintf-posix: handle large precision via %.*d
53033         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53034         when handling it ourselves.
53035         * tests/test-vasnprintf-posix.c (test_function): Add test.
53036         * tests/test-snprintf-posix.h (test_function): Likewise.
53037         * tests/test-sprintf-posix.h (test_function): Likewise.
53038         * tests/test-vasprintf-posix.c (test_function): Likewise.
53039         Reported by Alain Guibert.
53040
53041 2008-09-01  Eric Blake  <ebb9@byu.net>
53042
53043         c-stack: make configure-time check more robust
53044         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53045         successful sigaction call.
53046         Reported by Tom G. Christensen.
53047
53048 2008-09-01  Bruno Haible  <bruno@clisp.org>
53049
53050         New module 'findprog-lgpl'.
53051         * modules/findprog-lgpl: New file.
53052         * lib/findprog-lgpl.c: New file.
53053         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53054         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53055         to decide whether to use strdup or xstrdup, concatenated_filename or
53056         xconcatenated_filename.
53057
53058 2008-09-01  Bruno Haible  <bruno@clisp.org>
53059
53060         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53061         'xconcat-filename' (GPL).
53062         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53063         (License): Change to LGPLv2+.
53064         * modules/xconcat-filename: New file.
53065         * lib/concat-filename.h (concatenated_filename): Change specification.
53066         (xconcatenated_filename): New declaration.
53067         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53068         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53069         memory situations.
53070         * lib/xconcat-filename.c: New file.
53071         * NEWS: Mention the change.
53072         * lib/findprog.c: Include concat-filename.h, not filename.h.
53073         (find_in_path): Use xconcatenated_filename instead of
53074         concatenated_filename.
53075         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53076         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53077         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53078         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53079         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53080         instead of concatenated_filename.
53081         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53082         (execute_java_class): Use xconcatenated_filename instead of
53083         concatenated_filename.
53084         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53085         * modules/javacomp (Depends-on): Likewise.
53086         * modules/javaexec (Depends-on): Likewise.
53087
53088 2008-09-01  Bruno Haible  <bruno@clisp.org>
53089
53090         Split module 'filename' into 'filename' and 'concat-filename'.
53091         * modules/filename: Keep only lib/filename.h.
53092         (License): Change to LGPLv2+.
53093         * modules/concat-filename: New file, extracted from modules/filename.
53094         * lib/filename.h (concatenated_filename): Remove declaration.
53095         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53096         * lib/concat-filename.c: Include concat-filename.h.
53097         * NEWS: Mention the change.
53098
53099 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53100
53101         * lib/bitrotate.h (rotl8, rotr8): Add.
53102
53103         * modules/bitrotate (configure.ac): Need
53104         AC_REQUIRE([AC_C_INLINE]).
53105         (Description): Mention stdint.h.  Reported by Bruno Haible
53106         <bruno@clisp.org>.
53107
53108         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53109         Paolo Bonzini <bonzini@gnu.org>.
53110
53111 2008-08-31  Bruno Haible  <bruno@clisp.org>
53112
53113         Assume Solaris specific bi-arch conventions on Solaris systems.
53114         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53115         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53116         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53117         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53118         like acl_libdirstem.
53119         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53120         acl_libdirstem.
53121         * NEWS: Mention the change.
53122         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53123
53124 2008-08-31  Jim Meyering  <meyering@redhat.com>
53125
53126         * lib/strftime.h: Add comments describing the two added arguments.
53127
53128         remove duplicate #include directives
53129         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53130         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53131
53132 2008-08-31  Bruno Haible  <bruno@clisp.org>
53133
53134         New module 'sigpipe-die'.
53135         * modules/sigpipe-die: New file.
53136         * lib/sigpipe-die.h: New file.
53137         * lib/sigpipe-die.c: New file.
53138         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53139
53140 2008-08-31  Bruno Haible  <bruno@clisp.org>
53141
53142         Don't override previously installed signal handlers.
53143         * lib/fatal-signal.c (saved_sigactions): New variable.
53144         (uninstall_handlers): Reset the signal to the saved handler, not
53145         to SIG_DFL (except when ignored).
53146         (install_handlers): Save the previous handlers.
53147
53148 2008-08-30  Bruno Haible  <bruno@clisp.org>
53149
53150         * gnulib-tool (func_reset_sigpipe): New function.
53151         (func_get_automake_snippet, func_modules_transitive_closure,
53152         func_import): Invoke it before a join command that reads from stdin,
53153         to avoid "echo: write error: Broken pipe" error messages on stderr.
53154         Reported by Sam Steingold <sds@gnu.org>.
53155
53156 2008-08-30  Bruno Haible  <bruno@clisp.org>
53157
53158         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53159         Code copied from m4/open.m4.
53160         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53161         access and the filename ends in a slash. Code copied from lib/open.c.
53162         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53163         * tests/test-fopen.c (main): Check against bug with trailing slash.
53164
53165 2008-08-29  Bruno Haible  <bruno@clisp.org>
53166
53167         Avoid some "gcc -pedantic" warnings.
53168         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53169         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53170         * lib/dirent.in.h: Likewise.
53171         * lib/fcntl.in.h: Likewise.
53172         * lib/float.in.h: Likewise.
53173         * lib/iconv.in.h: Likewise.
53174         * lib/inttypes.in.h: Likewise.
53175         * lib/locale.in.h: Likewise.
53176         * lib/math.in.h: Likewise.
53177         * lib/netinet_in.in.h: Likewise.
53178         * lib/search.in.h: Likewise.
53179         * lib/signal.in.h: Likewise.
53180         * lib/stdarg.in.h: Likewise.
53181         * lib/stdint.in.h: Likewise.
53182         * lib/stdio.in.h: Likewise.
53183         * lib/stdlib.in.h: Likewise.
53184         * lib/string.in.h: Likewise.
53185         * lib/strings.in.h: Likewise.
53186         * lib/sys_select.in.h: Likewise.
53187         * lib/sys_socket.in.h: Likewise.
53188         * lib/sys_stat.in.h: Likewise.
53189         * lib/sys_time.in.h: Likewise.
53190         * lib/sysexits.in.h: Likewise.
53191         * lib/time.in.h: Likewise.
53192         * lib/unistd.in.h: Likewise.
53193         * lib/wchar.in.h: Likewise.
53194         * lib/wctype.in.h: Likewise.
53195         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53196         * modules/fchdir (Makefile.am): Likewise.
53197         * modules/fcntl (Makefile.am): Likewise.
53198         * modules/float (Makefile.am): Likewise.
53199         * modules/iconv_open (Makefile.am): Likewise.
53200         * modules/inttypes (Makefile.am): Likewise.
53201         * modules/locale (Makefile.am): Likewise.
53202         * modules/math (Makefile.am): Likewise.
53203         * modules/netinet_in (Makefile.am): Likewise.
53204         * modules/search (Makefile.am): Likewise.
53205         * modules/signal (Makefile.am): Likewise.
53206         * modules/stdarg (Makefile.am): Likewise.
53207         * modules/stdint (Makefile.am): Likewise.
53208         * modules/stdio (Makefile.am): Likewise.
53209         * modules/stdlib (Makefile.am): Likewise.
53210         * modules/string (Makefile.am): Likewise.
53211         * modules/strings (Makefile.am): Likewise.
53212         * modules/sys_select (Makefile.am): Likewise.
53213         * modules/sys_socket (Makefile.am): Likewise.
53214         * modules/sys_stat (Makefile.am): Likewise.
53215         * modules/sys_time (Makefile.am): Likewise.
53216         * modules/sysexits (Makefile.am): Likewise.
53217         * modules/time (Makefile.am): Likewise.
53218         * modules/unistd (Makefile.am): Likewise.
53219         * modules/wchar (Makefile.am): Likewise.
53220         * modules/wctype (Makefile.am): Likewise.
53221         Reported by Reuben Thomas <rrt@sc3d.org>.
53222
53223 2008-08-29  Bruno Haible  <bruno@clisp.org>
53224
53225         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53226         any more.
53227
53228 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53229
53230         * MODULES.html.sh (Misc): Add bitrotate.
53231
53232         * modules/bitrotate: New file.
53233
53234         * lib/bitrotate.h: New file.
53235
53236         * modules/bitrotate-tests: New file.
53237
53238         * tests/test-bitrotate.c: New file.
53239
53240         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53241         on the bitrotate module.
53242
53243         * lib/arctwo.c: Use new bitrotate module.
53244
53245 2008-08-29  Jim Meyering  <meyering@redhat.com>
53246
53247         bootstrap: merge changes from coreutils
53248         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53249         of copied files.  Remove a kludge, now that this is fixed.
53250         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53251         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53252         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53253
53254 2008-08-29  Bruno Haible  <bruno@clisp.org>
53255
53256         * MODULES.html.sh: Remove --cvs-urls option.
53257
53258 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53259
53260         maint.mk: adjust to file name change
53261         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53262
53263 2008-08-28  Jim Meyering  <meyering@redhat.com>
53264
53265         * modules/getndelim2 (License): Relicense to LGPLv2+.
53266         Approved by Richard Stallman for the version of 1995, and by
53267         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53268
53269 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53270
53271         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53272         dummy if one is not available.  Do not touch them if
53273         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53274         (getc_maybe_unlocked): New.
53275         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53276
53277 2008-08-26  Eric Blake  <ebb9@byu.net>
53278
53279         doc/INSTALL: resync from autoconf
53280         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53281         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53282         moving...
53283         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53284         * INSTALL: Regenerate.
53285         * INSTALL.ISO: New file.
53286         * INSTALL.UTF-8: Likewise.
53287
53288 2008-08-26  Jim Meyering  <meyering@redhat.com>
53289
53290         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53291         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53292         these definitions conditional, so that they may be overridden, too.
53293
53294 2008-08-26  Bruno Haible  <bruno@clisp.org>
53295
53296         Generate INSTALL file variants with prettier quotes.
53297         * doc/Makefile (INSTALL_PRELUDE): New macro.
53298         (INSTALL): Use it.
53299         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53300
53301 2008-08-26  Bruno Haible  <bruno@clisp.org>
53302
53303         Run makeinfo in an English locale.
53304         * doc/Makefile (MAKEINFO): New variable.
53305
53306 2008-08-26  Bruno Haible  <bruno@clisp.org>
53307
53308         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53309         Suggested by Eric Blake.
53310
53311 2008-08-25  Bruno Haible  <bruno@clisp.org>
53312
53313         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53314
53315 2008-08-25  Eric Blake  <ebb9@byu.net>
53316
53317         c-stack: test that stack overflow can be caught
53318         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53319         that platform allows handling stack overflow; at least OS/2 EMX
53320         has sigaltstack, but crashes before transferring control to
53321         handler on stack overflow.
53322         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53323         check for HAVE_STACK_OVERFLOW_HANDLING.
53324         Reported by Elbert Pol.
53325
53326 2008-08-25  Bruno Haible  <bruno@clisp.org>
53327
53328         * doc/posix-functions/strftime.texi: Fix description of strftime
53329         module.
53330
53331 2008-08-24  Bruno Haible  <bruno@clisp.org>
53332
53333         * tests/uniwidth/test-uc_width2.c: New file.
53334         * tests/uniwidth/test-uc_width2.sh: New file.
53335         * modules/uniwidth/width-tests (Files): Add the new files.
53336         (TESTS): Add uniwidth/test-uc_width2.sh.
53337         (TESTS_ENVIRONMENT): New variable.
53338         (check_PROGRAMS): Add test-uc_width2.
53339         (test_uc_width2_SOURCES): New variable.
53340
53341         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53342         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53343         not 0x00AB.
53344         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53345
53346 2008-08-22  Eric Blake  <ebb9@byu.net>
53347
53348         test-lock, test-tls: mention why a test is skipped
53349         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53350         skipped.
53351         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53352
53353         count-one-bits: relax license
53354         * modules/count-one-bits (License): Relicense to LGPLv2+.
53355         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53356
53357 2008-08-22  Andreas Schwab  <schwab@suse.de>
53358
53359         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53360         Remove spurious space in assignment.
53361
53362 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53363
53364         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53365         Paul Eggert <eggert@CS.UCLA.EDU>.
53366
53367 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53368
53369         * modules/gettext: Add m4/threadlib.m4.
53370
53371 2008-08-19  Eric Blake  <ebb9@byu.net>
53372
53373         test-c-stack: fix compilation failure on FreeBSD 5.0
53374         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53375         headers before <sys/resource.h>.
53376         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53377         the bug.
53378         Reported by Nelson H. F. Beebe.
53379
53380         strverscmp: migrate from "strverscmp.h" to <string.h>
53381         * modules/string (Makefile.am): Add new hooks.
53382         * modules/strverscmp (Files): Remove strverscmp.h.
53383         (Depends-on): Add string.
53384         (configure.ac): Add indicator.
53385         (Include): Mention new header.
53386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53387         defaults.
53388         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53389         results.
53390         * lib/strverscmp.h: Delete.
53391         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53392         * tests/test-strverscmp.c (includes): Adjust client.
53393         * lib/check-version.c (includes): Likewise.
53394         * NEWS: Document the change.
53395
53396         strverscmp: add unit test
53397         * modules/strverscmp-tests: New file.
53398         * tests/test-strverscmp.c: Likewise.
53399
53400 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53401
53402         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53403         regarding Windows crypto stuff, from Mono.
53404
53405 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53406
53407         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53408         if present, for intel RND.  Return error on failures.
53409
53410 2008-08-18  Ben Pfaff  <blp@gnu.org>
53411
53412         gitlog-to-changelog: give better diagnostic for failed pipe-open
53413         * build-aux/gitlog-to-changelog: Improve error message: suggest
53414         that the version of Git may be too old.
53415
53416 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53417
53418         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53419         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53420
53421 2008-08-18  Bruno Haible  <bruno@clisp.org>
53422
53423         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53424         pthread_in_use().
53425
53426 2008-08-18  Bruno Haible  <bruno@clisp.org>
53427
53428         * lib/glthread/threadlib.c: Include <pthread.h>.
53429
53430 2008-08-18  Bruno Haible  <bruno@clisp.org>
53431
53432         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53433         glthread_recursive_lock_* macros.
53434         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53435         Fix syntax error.
53436
53437 2008-08-18  Bruno Haible  <bruno@clisp.org>
53438
53439         * lib/glthread/thread.c: Avoid forcing a context switch right after
53440         thread creation.
53441
53442 2008-08-17  Bruno Haible  <bruno@clisp.org>
53443
53444         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53445         * lib/glthread/thread.h: Provide Win32 specific implementation.
53446         * modules/thread (Files): Add lib/glthread/thread.c.
53447         (Depends-on): Add lock.
53448         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53449
53450 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53451
53452         New module 'yield'.
53453         * modules/yield: New file.
53454         * lib/glthread/yield.h: New file.
53455         * m4/yield.m4: New file.
53456         * MODULES.html.sh (Multithreading): Add yield.
53457
53458 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53459
53460         New module 'thread'.
53461         * modules/thread: New file.
53462         * lib/glthread/thread.h: New file.
53463         * m4/thread.m4: New file.
53464         * MODULES.html.sh (Multithreading): Add thread.
53465
53466 2008-08-17  Bruno Haible  <bruno@clisp.org>
53467
53468         * lib/glthread/lock.h: Include <stdlib.h> always.
53469         * lib/glthread/tls.h: Likewise.
53470         * lib/glthread/cond.h: Likewise.
53471
53472 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53473
53474         New module 'cond'.
53475         * modules/cond: New file.
53476         * lib/glthread/cond.h: New file.
53477         * lib/glthread/cond.c: New file.
53478         * m4/cond.m4: New file.
53479         * MODULES.html.sh (Multithreading): Add cond.
53480
53481 2008-08-16  Eric Blake  <ebb9@byu.net>
53482
53483         c-stack: fix regression on Irix 5.3 from 2008-06-21
53484         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53485         sa_sigaction...
53486         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53487         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53488         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53489         * modules/signal (Makefile.am): Use the value.
53490         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53491         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53492         * doc/posix-headers/signal.texi (signal.h): Document this
53493         portability issue.
53494         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53495         Reported by Tom G. Christensen.
53496
53497 2008-08-17  Bruno Haible  <bruno@clisp.org>
53498
53499         New module 'threadlib'.
53500         * modules/threadlib: New file.
53501         * lib/glthread/threadlib.c: New file, extracted from
53502         lib/glthread/lock.c.
53503         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53504         functions.
53505         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53506         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53507         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53508         macros.
53509         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53510         (gl_DISABLE_THREADS): Remove macro.
53511         * modules/lock (Files): Remove build-aux/config.rpath.
53512         (Depends-on): Remove havelib. Add threadlib.
53513         (configure.ac-early): Remove section.
53514         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53515         * modules/tls (Depends-on): Remove lock. Add threadlib.
53516         (Link): New section, copied from threadlib.
53517         * MODULES.html.sh (Multithreading): Add threadlib.
53518
53519 2008-08-14  Bruno Haible  <bruno@clisp.org>
53520
53521         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53522         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53523         glthread_rwlock_unlock, glthread_rwlock_destroy,
53524         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53525         glthread_recursive_lock_destroy): Define as macros always.
53526         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53527         glthread_lock_lock.
53528         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53529         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53530         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53531         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53532         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53533         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53534         (glthread_recursive_lock_lock_func): Renamed from
53535         glthread_recursive_lock_lock.
53536         (glthread_recursive_lock_unlock_func): Renamed from
53537         glthread_recursive_lock_unlock.
53538         (glthread_recursive_lock_destroy_func): Renamed from
53539         glthread_recursive_lock_destroy.
53540
53541 2008-08-14  Bruno Haible  <bruno@clisp.org>
53542
53543         * lib/glthread/lock.h: Renamed from lib/lock.h.
53544         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53545         * lib/glthread/tls.h: Renamed from lib/tls.h.
53546         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53547         * lib/fstrcmp.c: Update includes.
53548         * lib/strsignal.c: Update includes.
53549         * modules/lock (Files, Makefile.am): Update.
53550         (Include): Change to "glthread/lock.h".
53551         * modules/tls (Files, Makefile.am): Update.
53552         (Include): Change to "glthread/tls.h".
53553         * tests/test-lock.c: Update includes.
53554         * tests/test-tls.c: Update includes.
53555         * NEWS: Mention the renamed header files.
53556
53557 2008-08-11  Jim Meyering  <meyering@redhat.com>
53558
53559         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53560
53561 2008-08-11  Eric Blake  <ebb9@byu.net>
53562
53563         test-c-stack: avoid C99-ism
53564         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53565         before statement.
53566         Reported by Alain Guibert.
53567
53568 2008-08-10  Jim Meyering  <meyering@redhat.com>
53569
53570         ensure that return value of uinttostr et al are not ignored
53571         * lib/inttostr.h (__GNUC_PREREQ): Define.
53572         (__attribute_warn_unused_result__): Define.
53573         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53574
53575 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53576
53577         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53578         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53579
53580 2008-08-07  Jim Meyering  <meyering@redhat.com>
53581
53582         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53583
53584         * modules/mkstemp (License): Relicense under LGPLv2+.
53585         * modules/tempname (License): Likewise.
53586
53587 2008-08-06  Bruno Haible  <bruno@clisp.org>
53588
53589         * lib/poll.c (poll): Further micro-optimization.
53590
53591 2008-08-06  Jim Meyering  <meyering@redhat.com>
53592
53593         inet_pton.c: use locale-independent tolower
53594         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53595         (inet_pton6): Use c_tolower rather than tolower.
53596         * modules/inet_pton (Depends-on): Add c-ctype.
53597
53598 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53599
53600         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53601         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53602
53603 2008-08-06  Jim Meyering  <meyering@redhat.com>
53604
53605         * modules/inet_pton (License): Relicense under LGPLv2+.
53606
53607 2008-08-03  Bruno Haible  <bruno@clisp.org>
53608
53609         Additional non-aborting API for lock and tls.
53610         * lib/lock.h: Include <errno.h>.
53611         (glthread_lock_init): New macro/function.
53612         (gl_lock_init): Define as wrapper around glthread_lock_init.
53613         (glthread_lock_lock): New macro/function.
53614         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53615         (glthread_lock_unlock): New macro/function.
53616         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53617         (glthread_lock_destroy): New macro/function.
53618         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53619         (glthread_rwlock_init): New macro/function.
53620         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53621         (glthread_rwlock_rdlock): New macro/function.
53622         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53623         (glthread_rwlock_wrlock): New macro/function.
53624         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53625         (glthread_rwlock_unlock): New macro/function.
53626         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53627         (glthread_rwlock_destroy): New macro/function.
53628         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53629         (glthread_recursive_lock_init): New macro/function.
53630         (gl_recursive_lock_init): Define as wrapper around
53631         glthread_recursive_lock_init.
53632         (glthread_recursive_lock_lock): New macro/function.
53633         (gl_recursive_lock_lock): Define as wrapper around
53634         glthread_recursive_lock_lock.
53635         (glthread_recursive_lock_unlock): New macro/function.
53636         (gl_recursive_lock_unlock): Define as wrapper around
53637         glthread_recursive_lock_unlock.
53638         (glthread_recursive_lock_destroy): New macro/function.
53639         (gl_recursive_lock_destroy): Define as wrapper around
53640         glthread_recursive_lock_destroy.
53641         (glthread_once): New macro/function.
53642         (gl_once): Define as wrapper around glthread_once.
53643         Update function declarations.
53644         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53645         glthread_rwlock_init. Return error code.
53646         (glthread_rwlock_rdlock_multithreaded): Renamed from
53647         glthread_rwlock_rdlock. Return error code.
53648         (glthread_rwlock_wrlock_multithreaded): Renamed from
53649         glthread_rwlock_wrlock. Return error code.
53650         (glthread_rwlock_unlock_multithreaded): Renamed from
53651         glthread_rwlock_unlock. Return error code.
53652         (glthread_rwlock_destroy_multithreaded): Renamed from
53653         glthread_rwlock_destroy. Return error code.
53654         (glthread_recursive_lock_init_multithreaded): Renamed from
53655         glthread_recursive_lock_init. Return error code.
53656         (glthread_recursive_lock_lock_multithreaded): Renamed from
53657         glthread_recursive_lock_lock. Return error code.
53658         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53659         glthread_recursive_lock_unlock. Return error code.
53660         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53661         glthread_recursive_lock_destroy. Return error code.
53662         (glthread_once_call): Make static.
53663         (glthread_once_multithreaded): Renamed from glthread_once.
53664         * lib/tls.h: Include <errno.h>.
53665         (glthread_tls_key_init): New macro/function.
53666         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53667         (glthread_tls_set): New macro/function.
53668         (gl_tls_set): Define as wrapper around glthread_tls_set.
53669         (glthread_tls_key_destroy): New macro/function.
53670         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53671         Update function declarations.
53672         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53673         glthread_tls_get.
53674         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53675
53676 2008-08-04  Eric Blake  <ebb9@byu.net>
53677
53678         gnumakefile: use space, not TAB, outside of targets
53679         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53680
53681 2008-08-02  Jim Meyering  <meyering@redhat.com>
53682
53683         getdate.y: avoid locale-dependent date parsing failure
53684         In Turkish locales, getdate would fail to recognize keywords
53685         containing a lowercase "i".  The solution is not to rely on
53686         locale-sensitive case-conversion.
53687         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53688         (lookup_word): Use c_toupper in place of toupper.
53689         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53690         Reported by Vefa Bicakci <bicave@superonline.com> in
53691         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53692         * modules/getdate (Depends-on): Add c-ctype.
53693
53694 2008-08-02  Bruno Haible  <bruno@clisp.org>
53695
53696         * gnulib-tool (func_import): When updating or creating a .gitignore
53697         file, prepend each added line with a slash, and ignore leading slashes
53698         from the existing lines.
53699         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53700
53701 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53702
53703         Portability fix for GNU make 3.79.1.
53704         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53705         versions do not understand.
53706
53707 2008-08-01  Bruno Haible  <bruno@clisp.org>
53708
53709         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53710         * tests/test-isnanf.h (zero): New variable.
53711         (main): Avoid literal -0.0f.
53712         * tests/test-isnand.h (zero): New variable.
53713         (main): Avoid literal -0.0.
53714         * tests/test-isnanl.h (zero): New variable.
53715         (main): Avoid literal -0.0L.
53716         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53717         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53718         -0.0, -0.0L.
53719         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53720         (test_signbitd): Avoid literal -0.0.
53721         (test_signbitl): Avoid literal -0.0L.
53722         * tests/test-ceilf1.c (zero): New variable.
53723         (main): Avoid literal -0.0f.
53724         * tests/test-ceill.c (zero): New variable.
53725         (main): Avoid literal -0.0L.
53726         * tests/test-floorf1.c (zero): New variable.
53727         (main): Avoid literal -0.0f.
53728         * tests/test-floorl.c (zero): New variable.
53729         (main): Avoid literal -0.0L.
53730         * tests/test-roundf1.c (zero): New variable.
53731         (main): Avoid literal -0.0f.
53732         * tests/test-round1.c (zero): New variable.
53733         (main): Avoid literal -0.0.
53734         * tests/test-roundl.c (zero): New variable.
53735         (main): Avoid literal -0.0L.
53736         * tests/test-truncf1.c (zero): New variable.
53737         (main): Avoid literal -0.0f.
53738         * tests/test-trunc1.c (zero): New variable.
53739         (main): Avoid literal -0.0.
53740         * tests/test-truncl.c (zero): New variable.
53741         (main): Avoid literal -0.0L.
53742         * tests/test-frexp.c (zero): New variable.
53743         (main): Avoid literal -0.0.
53744         * tests/test-frexpl.c (zero): New variable.
53745         (main): Avoid literal -0.0L.
53746         * tests/test-ldexpl.c (zero): New variable.
53747         (main): Avoid literal -0.0L.
53748         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53749         (zerod, zerol): New variables.
53750         (test_function): Avoid literals -0.0, -0.0L.
53751         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53752         (zerod, zerol): New variables.
53753         (test_function): Avoid literals -0.0, -0.0L.
53754         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53755         (zerod, zerol): New variables.
53756         (test_function): Avoid literals -0.0, -0.0L.
53757         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53758         (zerod, zerol): New variables.
53759         (test_function): Avoid literals -0.0, -0.0L.
53760         * tests/test-strtod.c (zero): New variable.
53761         (main): Avoid literal -0.0.
53762         Reported by Jonathan C. Patschke <jp@centtech.com>.
53763
53764 2008-07-31  Jim Meyering  <meyering@redhat.com>
53765
53766         sha256.h: correct definition of SHA224_DIGEST_SIZE
53767         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53768         Reported by Paulie Pena IV <paulie4@gmail.com>.
53769         Define as 224 / 8, rather than as a literal.
53770         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53771         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53772         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53773
53774 2008-07-31  Bruno Haible  <bruno@clisp.org>
53775
53776         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53777         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53778         Reported by Jonathan Patschke <jp@centtech.com>.
53779
53780 2008-07-31  Bruno Haible  <bruno@clisp.org>
53781
53782         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53783         Reported by Paolo Bonzini <bonzini@gnu.org>.
53784
53785 2008-07-30  Eric Blake  <ebb9@byu.net>
53786
53787         test-strtod: allow compilation without -lm
53788         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53789         Reported by Dennis Clarke <blastwave@gmail.com>.
53790
53791 2008-07-28  Jim Meyering  <meyering@redhat.com>
53792
53793         bootstrap: work also when there are no .po files in po/
53794         * build-aux/bootstrap (update_po_files): Complete the change
53795         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53796
53797 2008-07-27  Jim Meyering  <meyering@redhat.com>
53798
53799         * users.txt: Add zile.
53800
53801 2008-07-26  Ben Pfaff  <blp@gnu.org>
53802
53803         Add missing dependencies on new m4/exponent[fdl].m4 files.
53804         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53805         * modules/isnand-nolibm: Add m4/exponentd.m4.
53806         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53807         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53808         m4/isnan[fdl].m4, because the macros actually used moved.
53809         Reported by Jim Meyering.
53810
53811 2008-07-14  Ben Pfaff  <blp@gnu.org>
53812
53813         Add isinf module.
53814         * lib/isinf.c: New file.
53815         * lib/math.in.h: Define isinf macro if we have decided to replace
53816         it.
53817         * m4/isinf.m4: New file.
53818         * m4/math_h.m4: Initialize and substitute variables for isinf
53819         module.
53820         * modules/isinf: New file.
53821         * modules/isinf-tests: New file.
53822         * modules/math: Add substitutions for new module.
53823         * tests/test-isinf.c: New file.
53824         * doc/posix-functions/isinf.texi: Mention new module.
53825         * MODULES.html.sh: Mention new module.
53826
53827 2008-07-14  Ben Pfaff  <blp@gnu.org>
53828
53829         Factor out some macros for use by additional modules.
53830         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53831         exponentf.m4.
53832         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53833         exponentd.m4.
53834         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53835         file exponentl.m4.
53836         * m4/exponentf.m4: New file.
53837         * m4/exponentd.m4: New file.
53838         * m4/exponentl.m4: New file.
53839         * modules/isnanf: Use new file m4/exponentf.m4.
53840         * modules/isnand: Use new file m4/exponentd.m4.
53841         * modules/isnanl: Use new file m4/exponentl.m4.
53842
53843 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53844
53845         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53846         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53847         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53848         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53849
53850         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53851         readlink on platforms without PATH_MAX.
53852
53853 2008-07-21  Eric Blake  <ebb9@byu.net>
53854
53855         Warn, not fail, on stale version.
53856         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53857
53858         Don't allow installation with stale devel version number.
53859         * top/GNUmakefile (_is-install-target): New macro.
53860         (_curr-ver): Forbid installation with stale version number.
53861
53862 2008-07-20  Bruno Haible  <bruno@clisp.org>
53863
53864         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53865         TESTS_ENVIRONMENT.
53866         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53867
53868 2008-07-20  Bruno Haible  <bruno@clisp.org>
53869
53870         * lib/c-stack.h (c_stack_action): Add documentation.
53871         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53872
53873 2008-07-20  Bruno Haible  <bruno@clisp.org>
53874
53875         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53876         * modules/readlink (License): Likewise.
53877
53878 2008-07-17  Eric Blake  <ebb9@byu.net>
53879
53880         * modules/c-stack (Link): Fix typo.
53881
53882         Make c-stack use libsigsegv, when available.
53883         * modules/c-stack (Depends-on): Add libsigsegv.
53884         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53885         needed.
53886         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53887         (segv_handler, overflow_handler, c_stack_action)
53888         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53889         implementation when libsigsegv is available, but only when using
53890         the library is necessary.
53891         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53892         comment, explaining why XSI check fails on Linux.
53893         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53894         * tests/test-c-stack2.sh: Tweak skip message.
53895         * NEWS: Document new link-time requirements.
53896
53897 2008-07-16  Eric Blake  <ebb9@byu.net>
53898
53899         c-stack: Expose false positives when not using libsigsegv.
53900         * modules/c-stack-tests (Files): Expand test.
53901         * tests/test-c-stack.c (main): Add means to conditionally trigger
53902         non-overflow SIGSEGV.
53903         * tests/test-c-stack2.sh: New file.
53904
53905 2008-07-14  Bruno Haible  <bruno@clisp.org>
53906
53907         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53908         Reported by Eric Blake.
53909
53910 2008-07-14  Sam Steingold  <sds@gnu.org>
53911             Bruno Haible  <bruno@clisp.org>
53912
53913         New module libsigsegv.
53914         * modules/libsigsegv: New file.
53915         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53916         modifications.
53917         * MODULES.html.sh (Signal handling): New section.
53918
53919 2008-07-14  Bruno Haible  <bruno@clisp.org>
53920
53921         * modules/unictype/ctype-* (Description): Add the word "function".
53922         Improves the resulting doc in MODULES.html.
53923
53924 2008-07-12  Ben Pfaff  <blp@gnu.org>
53925
53926         Add longlong module.
53927         * modules/longlong: New file.
53928
53929 2008-07-12  Bruno Haible  <bruno@clisp.org>
53930
53931         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53932         to empty.
53933
53934 2008-07-10  Ben Pfaff  <blp@gnu.org>
53935
53936         Add isnan module.
53937         * doc/posix-functions/isnan.texi: Mention new module.
53938         * lib/math.in.h: Define isnan macro if we have decided to replace
53939         it.
53940         * m4/isnan.m4: New file.
53941         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53942         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53943         also.
53944         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53945         redundancy.
53946         * m4/math_h.m4: Initialize and substitute variables for isnan
53947         module.
53948         * modules/isnan: New file.
53949         * modules/isnan-tests: New file.
53950         * modules/math: Add substitutions for new module.
53951         * tests/test-isnan.c: New file.
53952         * MODULES.html.sh: Mention new module.
53953
53954 2008-07-10  Ben Pfaff  <blp@gnu.org>
53955
53956         Add isnanf module.
53957         * lib/isnanf.m4: New file.
53958         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53959         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53960         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53961         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53962         * modules/isnanf: New file.
53963         * modules/isnanf-tests: New file.
53964         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53965         files.
53966         * tests/test-isnanf-nolibm.c: factored most of its contents into
53967         new file tests/test-isnanf.h.
53968         * tests/test-isnanf.h: New file.
53969         * tests/test-isnanf.c: New file.
53970         * MODULES.html.sh: Mention new module.
53971         * doc/glibc-functions/isnanf.texi: Mention new module.
53972
53973 2008-07-10  Ben Pfaff  <blp@gnu.org>
53974
53975         Add isnand module.
53976         * lib/isnand.h: New file.
53977         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53978         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53979         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53980         functionality also.
53981         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53982         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53983         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53984         * modules/isnand: New file.
53985         * modules/isnand-tests: New file.
53986         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53987         files.
53988         * tests/test-isnand-nolibm.c: factored most of its contents into
53989         new file tests/test-isnand.h.
53990         * tests/test-isnand.h: New file.
53991         * tests/test-isnand.c: New file.
53992         * MODULES.html.sh: Mention new module.
53993
53994 2008-07-10  Ben Pfaff  <blp@gnu.org>
53995
53996         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53997         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53998         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53999         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54000         * modules/isnanf-nolibm: Update references to renamed files.
54001         * modules/isnand-nolibm: Likewise.
54002         * modules/isnanf-nolibm-tests: Likewise.
54003         * modules/isnand-nolibm-tests: Likewise.
54004         * lib/frexp.c: Likewise.
54005         * lib/isfinite.c: Likewise.
54006         * lib/signbitd.c: Likewise.
54007         * lib/signbitf.c: Likewise.
54008         * lib/vasnprintf.c: Likewise.
54009         * tests/test-ceilf1.c: Likewise.
54010         * tests/test-ceilf2.c: Likewise.
54011         * tests/test-floorf1.c: Likewise.
54012         * tests/test-floorf2.c: Likewise.
54013         * tests/test-frexp.c: Likewise.
54014         * tests/test-round1.c: Likewise.
54015         * tests/test-round2.c: Likewise.
54016         * tests/test-roundf1.c: Likewise.
54017         * tests/test-strtod.c: Likewise.
54018         * tests/test-trunc1.c: Likewise.
54019         * tests/test-trunc2.c: Likewise.
54020         * tests/test-truncf1.c: Likewise.
54021         * tests/test-truncf2.c: Likewise.
54022         * NEWS: Mention the renamed header files.
54023
54024 2008-07-11  Jim Meyering  <meyering@redhat.com>
54025
54026         vc-list-files: make the last-resort awk code more portable
54027         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54028         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54029         does not support it.
54030
54031 2008-07-10  Eric Blake  <ebb9@byu.net>
54032
54033         Work with tar's bootstrap.
54034         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54035         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54036         an m4 comment.
54037
54038 2008-07-09  Jim Meyering  <meyering@redhat.com>
54039
54040         posix-shell.m4: fix typo that made this test malfunction
54041         * m4/posix-shell.m4: Remove capitalization in variable name.
54042
54043 2008-07-08  Bruno Haible  <bruno@clisp.org>
54044
54045         * m4/onceonly.m4: Update comments.
54046         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54047
54048 2008-07-04  Jim Meyering  <meyering@redhat.com>
54049
54050         * users.txt: Add vc-dwim.
54051         (bison, coreutils): Use the gitweb URL.
54052
54053 2008-07-03  Jim Meyering  <meyering@redhat.com>
54054
54055         * users.txt: Add libffcall.  From Sam Steingold.
54056
54057 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54058
54059         getdate.y: do not ignore TZ with relative day, month or year offset
54060         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54061         relative-date-handling, since otherwise, the latter would clobber the
54062         sole output (an updated Start value) of the tz-handling block.
54063         * tests/test-getdate.c: Tests for the fix
54064
54065 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54066
54067         Recognize 'foo_LIBRARIES += libgnu.a'.
54068         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54069         makefile snippet has already specified an installation location,
54070         also using '+='.
54071
54072 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54073
54074         getdate.y: factor out common actions
54075         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54076         Use them in place of open-coded actions.
54077
54078 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54079
54080         Add self-test for getdate module.
54081         * modules/getdate-tests: New file.
54082         * tests/test-getdate.c: New file.
54083
54084 2008-06-29  Bruno Haible  <bruno@clisp.org>
54085
54086         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54087         .gitignore.
54088         Reported by Sylvain Beucler <beuc@beuc.net>.
54089
54090 2008-06-29  Bruno Haible  <bruno@clisp.org>
54091
54092         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54093         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54094
54095 2008-06-29  Bruno Haible  <bruno@clisp.org>
54096
54097         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54098         EXTRA_DIST.
54099         Reported by Sylvain Beucler <beuc@beuc.net>.
54100
54101 2008-06-26  Jim Meyering  <meyering@redhat.com>
54102
54103         make several modules depend on the "open" module
54104         This provides slightly increased consistency when opening-for-write
54105         the name of a non-directory spelled with a trailing slash.
54106         * modules/chdir-safer: Likewise.
54107         * modules/chown: Likewise.
54108         * modules/clean-temp: Likewise.
54109         * modules/copy-file: Likewise.
54110         * modules/fchdir: Likewise.
54111         * modules/fcntl-safer: Likewise.
54112         * modules/pipe: Likewise.
54113         * modules/utime: Likewise.
54114         Prompted by Eric Blake and Bruno Haible.
54115
54116 2008-06-24  Andreas Schwab  <schwab@suse.de>
54117
54118         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54119         literals can be used as initializers for global variables.
54120
54121 2008-06-23  Eric Blake  <ebb9@byu.net>
54122
54123         Make gnulib-cache.m4 easier to diff.
54124         * gnulib-tool (func_import): Allow newlines when reading cached
54125         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54126
54127 2008-06-23  Bruno Haible  <bruno@clisp.org>
54128
54129         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54130         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54131         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54132         m4/signalblocking.m4.
54133         (gl_PREREQ_SIGACTION): Don't invoke it.
54134         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54135         gl_PREREQ_SIG_HANDLER_H.
54136         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54137         Don't check for sigaction here.
54138
54139 2008-06-23  Bruno Haible  <bruno@clisp.org>
54140
54141         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54142         (install_handlers): Don't set the SA_RESETHAND flag.
54143
54144 2008-06-23  Bruno Haible  <bruno@clisp.org>
54145
54146         * m4/sigaction.m4: Comment fixes.
54147         * lib/signal.in.h: Likewise.
54148
54149 2008-06-23  Eric Blake  <ebb9@byu.net>
54150
54151         Fix typo.
54152         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54153
54154         Avoid SA_ namespace.
54155         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54156         Reported by Ralf Wildenhues.
54157
54158         Avoid test failure due to SA_RESTORER.
54159         * tests/test-sigaction.c (SA_MASK): New macro.
54160         (main): Avoid failing due to extension flags being set.
54161         Reported by Jim Meyering.
54162
54163         Revert use of sig-handler.h in sigprocmask.c.
54164         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54165         it requires the existence of struct sigaction.
54166         * lib/sigprocmask.c (handler_t): Restore typedef.
54167         (rpl_signal, old_handlers): Use local type.
54168
54169 2008-06-22  Bruno Haible  <bruno@clisp.org>
54170
54171         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54172         conditionally.
54173         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54174
54175 2008-06-22  Bruno Haible  <bruno@clisp.org>
54176
54177         * doc/posix-functions/siginterrupt.texi: Move note.
54178
54179         * lib/signal.in.h (SA_RESTART): New macro.
54180         * lib/sigaction.c: Update comment.
54181
54182         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54183
54184         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54185         (gl_PREREQ_SIGPROCMASK): Invoke it.
54186         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54187
54188         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54189
54190         * lib/sigprocmask.c: Update a comment.
54191
54192 2008-06-21  Eric Blake  <ebb9@byu.net>
54193
54194         Use sigaction module rather than signal().
54195         * modules/c-stack (Depends-on): Add sigaction.
54196         * modules/fatal-signal (Depends-on): Likewise.
54197         * modules/nanosleep (Depends-on): Likewise.
54198         * modules/sigprocmask (Files): Add sig-handler.h.
54199         * modules/sigaction (Files): Likewise.
54200         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54201         Eggert.
54202         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54203         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54204         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54205         (init_fatal_signals): Likewise.
54206         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54207         (siginterrupt): Delete fallback.
54208         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54209         instead.
54210         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54211         siginterrupt.
54212
54213         New module sigaction, for mingw.
54214         * modules/sigaction: New module...
54215         * modules/sigaction-tests: ...and its test.
54216         * m4/sigaction.m4: New file.
54217         * lib/sigaction.c: Likewise.
54218         * tests/test-sigaction.c: Likewise.
54219         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54220         * modules/signal (Makefile.am): Likewise.
54221         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54222         needed.
54223         * doc/posix-headers/signal.texi (signal.h): Mention provided
54224         types.
54225         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54226         that sigaction is preferable.
54227         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54228         module.
54229         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54230         sigaction.
54231
54232         Improve robustness of sigprocmask by overriding signal.
54233         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54234         is in use.
54235         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54236         (SIGKILL, SIGSTOP): Provide fallbacks.
54237         (rpl_signal): Implement.
54238         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54239         signal can be called inside handlers.
54240
54241         Fix nanosleep module on mingw.
54242         * modules/nanosleep (Depends-on): Add sys_select.
54243         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54244
54245         Fix licensing of sigprocmask.
54246         * modules/raise (License): Relicense as LGPL.
54247
54248 2008-06-21  Bruno Haible  <bruno@clisp.org>
54249
54250         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54251         result if it contains question marks.
54252         Reported by Michael Geng <linux@michaelgeng.de>.
54253
54254 2008-06-19  Bruno Haible  <bruno@clisp.org>
54255
54256         Fix CVS-ism.
54257         * doc/gnulib.texi: Include updated-stamp.texi.
54258         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54259         (updated-stamp.texi): New rule.
54260         (gnulib.info): Depend on it.
54261         * doc/.gitignore: Add updated-stamp.texi.
54262         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54263
54264 2008-06-19  Bruno Haible  <bruno@clisp.org>
54265
54266         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54267         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54268
54269 2008-06-19  Eric Blake  <ebb9@byu.net>
54270
54271         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54272         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54273         Reported by Stepan Kasal.
54274
54275 2008-06-18  Bruno Haible  <bruno@clisp.org>
54276
54277         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54278         Reported by Eric Blake.
54279
54280 2008-06-18  Eric Blake  <ebb9@byu.net>
54281
54282         Work around cygwin 1.5.25 strsignal bug.
54283         * tests/test-strsignal.c: Allow for const char *.
54284         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54285
54286 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54287
54288         * users.txt: Update URL to article and add author/date
54289         information.
54290
54291 2008-06-17  Bruno Haible  <bruno@clisp.org>
54292
54293         New macro gl_DISABLE_THREADS.
54294         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54295         if the user did not pass --enable-threads or --disable-threads option.
54296         (gl_DISABLE_THREADS): New macro.
54297         Reported by Eric Blake <ebb9@byu.net>.
54298
54299 2008-06-17  Bruno Haible  <bruno@clisp.org>
54300
54301         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54302         when the macro ignores it.
54303         Based on a patch by Eric Blake <ebb9@byu.net>.
54304
54305 2008-06-17  Bruno Haible  <bruno@clisp.org>
54306
54307         * modules/tls (License): Change to LGPLv2+.
54308         Reported by Eric Blake.
54309
54310 2008-06-17  Eric Blake  <ebb9@byu.net>
54311
54312         Simplify c-stack prerequisites.
54313         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54314         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54315         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54316         check.
54317         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54318         <sys/resource.h>.
54319
54320         Move c-stack test into testsuite.
54321         * modules/c-stack-tests: New file.
54322         * lib/c-stack.c [DEBUG]: Move test program...
54323         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54324         fail test if sigaltstack is lacking.
54325         * tests/test-c-stack.sh: New driver file.
54326
54327 2008-06-16  Eric Blake  <ebb9@byu.net>
54328
54329         Use raise module consistently.
54330         * modules/fatal-signal (Depends-on): Add raise.
54331         * modules/sigprocmask (Depends-on): Likewise.
54332         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54333         * lib/sigprocmask.c (sigprocmask): Likewise.
54334         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54335         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54336
54337         Fix compliance bug in sigpending.
54338         * lib/sigprocmask.c (sigpending): Return pending array via
54339         parameter, not return value.
54340
54341 2008-06-14  Eric Blake  <ebb9@byu.net>
54342
54343         Improve obstack-printf test code.
54344         * tests/test-obstack-printf.c (test_function): Fix comment, and
54345         simplify usage of obstack_* in macros.  Add a test for coverage.
54346         Reported by Bruno Haible.
54347
54348 2008-06-14  Bruno Haible  <bruno@clisp.org>
54349
54350         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54351         array size as a constant, not as a const variable.
54352         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54353         AC_USE_SYSTEM_EXTENSIONS.
54354         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54355         Test whether the obstack_printf function actually exists.
54356         * modules/obstack-printf (Depends-on): Add extensions.
54357         (Include): Remove obstack.h.
54358         * modules/obstack-printf-posix (Depends-on): Add extensions.
54359         (Include): Remove obstack.h.
54360
54361 2008-06-13  Eric Blake  <ebb9@byu.net>
54362
54363         Add obstack-printf and obstack-printf-posix modules.
54364         * modules/obstack-printf: New file.
54365         * modules/obstack-printf-posix: Likewise.
54366         * MODULES.html.sh (Misc): Mention them.
54367         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54368         Likewise.
54369         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54370         Likewise.
54371         * modules/stdio (Makefile.am): Accomodate new modules.
54372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54373         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54374         Declare.
54375         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54376         functions.
54377         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54378         (gl_REPLACE_OBSTACK_PRINTF): New macros
54379         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54380         * tests/test-obstack-printf.c: New file.
54381         * modules/obstack-printf-tests: Likewise.
54382         * modules/obstack-printf-posix-tests: Likewise.
54383
54384 2008-06-11  Bruno Haible  <bruno@clisp.org>
54385
54386         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54387         * lib/open.c: Include errno.h.
54388         (open): Fail when attempting to write to a file that has a trailing
54389         slash.
54390         * tests/test-open.c (main): Test against trailing slash bug.
54391         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54392
54393 2008-06-10  Bruno Haible  <bruno@clisp.org>
54394
54395         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54396         for $? to work inside the trap command, with various /bin/sh-s.
54397         * tests/test-vc-list-files-cvs.sh: Likewise.
54398
54399 2008-06-10  Bruno Haible  <bruno@clisp.org>
54400
54401         * lib/acl-internal.h: Don't include gettext.h here.
54402         * lib/set-mode-acl.c: Include gettext.h here.
54403         * lib/copy-acl.c: Likewise.
54404
54405 2008-06-10  Bruno Haible  <bruno@clisp.org>
54406
54407         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54408         * lib/wait-process.c (wait_subprocess): Likewise.
54409         * lib/execute.h (execute): Add termsigp argument.
54410         * lib/execute.c (execute): Likewise.
54411         * lib/csharpcomp.c (compile_csharp_using_pnet,
54412         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54413         * lib/csharpexec.c (execute_csharp_using_pnet,
54414         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54415         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54416         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54417         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54418         is_jikes_present): Update.
54419         * lib/javaexec.c (execute_java_class): Update.
54420         * lib/javaversion.c (execute_and_read_line): Update.
54421         * NEWS: Document the changes.
54422         Reported by Eric Blake.
54423
54424 2008-06-10  Eric Blake  <ebb9@byu.net>
54425
54426         Add missing include.
54427         * tests/test-strstr.c (includes): Add <signal.h>.
54428         * tests/test-strcasestr.c (includes): Likewise.
54429         * tests/test-memmem.c (includes): Likewise.
54430
54431 2008-06-10  Bruno Haible  <bruno@clisp.org>
54432
54433         * lib/wait-process.c (wait_subprocess): Add an assertion.
54434
54435 2008-06-10  Bruno Haible  <bruno@clisp.org>
54436
54437         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54438
54439 2008-06-10  Bruno Haible  <bruno@clisp.org>
54440
54441         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54442         using alarm().
54443         * tests/test-strcasestr.c (main): Likewise.
54444         * tests/test-strstr.c (main): Likewise.
54445
54446 2008-06-09  Bruno Haible  <bruno@clisp.org>
54447
54448         Work around the Solaris 10 ACE ACLs ABI change.
54449         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54450         declare if ACL_NO_TRIVIAL is present.
54451         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54452         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54453         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54454         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54455         define if ACL_NO_TRIVIAL is present.
54456         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54457         and use the current ABI.
54458         (file_has_acl): Use same #if condition as elsewhere.
54459         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54460         in use, and use the current ABI.
54461         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54462         Reported by Jim Meyering.
54463
54464 2008-06-09  Eric Blake  <ebb9@byu.net>
54465
54466         Work around environments that (stupidly) ignore SIGALRM.
54467         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54468         before using alarm().
54469         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54470         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54471         Reported by Ian Beckwith <ianb@erislabs.net>.
54472
54473         Produce autobuild blurb earlier in log.
54474         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54475
54476 2008-06-09  Jim Meyering  <meyering@redhat.com>
54477         and OndÅ™ej Vašík  <ovasik@redhat.com>
54478
54479         utimens.c: correct kernel bug work-around
54480         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54481         failure, not success, and the kernel bug we're trying to work
54482         around affects not just the utimensat call, but also the fallback
54483         futimens call.
54484         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54485         not success.
54486         [HAVE_FUTIMENS]: Use the same work-around, here.
54487
54488 2008-06-09  Jim Meyering  <meyering@redhat.com>
54489
54490         add more guards around definition of ACE_-related code
54491         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54492         ALLOW and ACE_OWNER are also defined.
54493
54494 2008-06-08  Bruno Haible  <bruno@clisp.org>
54495
54496         * lib/acl-internal.h: Add me as co-author.
54497         * lib/file-has-acl.c: Likewise.
54498         * lib/set-mode-acl.c: Likewise.
54499         * lib/copy-acl.c: Likewise.
54500
54501 2008-06-08  Bruno Haible  <bruno@clisp.org>
54502
54503         Add support for AIX ACLs.
54504         * lib/acl-internal.h (acl_nontrivial): New declaration.
54505         * lib/file-has-acl.c (acl_nontrivial): New function.
54506         (file_has_acl): Add implementation using AIX 4 ACL API.
54507         * lib/set-mode-acl.c (qset_acl): Likewise.
54508         * lib/copy-acl.c (qcopy_acl): Likewise.
54509
54510 2008-06-08  Bruno Haible  <bruno@clisp.org>
54511
54512         Add support for HP-UX ACLs.
54513         * lib/acl-internal.h (acl_nontrivial): New declaration.
54514         * lib/file-has-acl.c (acl_nontrivial): New function.
54515         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54516         * lib/set-mode-acl.c (qset_acl): Likewise.
54517         * lib/copy-acl.c (qcopy_acl): Likewise.
54518
54519 2008-06-08  Bruno Haible  <bruno@clisp.org>
54520
54521         Add support for Cygwin ACLs.
54522         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54523         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54524         the chmod_or_fchmod call.
54525         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54526
54527 2008-06-08  Bruno Haible  <bruno@clisp.org>
54528
54529         Fix bug with setuid modes in Solaris 10+ code.
54530         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54531         succeeded, when the mode contains some special bits.
54532
54533 2008-06-08  Bruno Haible  <bruno@clisp.org>
54534
54535         Add support for Solaris 7..10 ACLs.
54536         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54537         declarations.
54538         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54539         functions.
54540         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54541         * lib/set-mode-acl.c (qset_acl): Likewise.
54542         * lib/copy-acl.c (qcopy_acl): Likewise.
54543
54544 2008-06-08  Bruno Haible  <bruno@clisp.org>
54545
54546         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54547         declaration.
54548         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54549         (acl_access_nontrivial): Remove MacOS X case.
54550         (file_has_acl): Use acl_extended_nontrivial.
54551         * lib/copy-acl.c (qcopy_acl): Likewise.
54552
54553 2008-06-08  Bruno Haible  <bruno@clisp.org>
54554
54555         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54556
54557 2008-06-08  Jim Meyering  <meyering@redhat.com>
54558
54559         * modules/acl (Maintainer): Add Bruno Haible.
54560
54561 2008-06-07  Bruno Haible  <bruno@clisp.org>
54562
54563         Improve support for Tru64 ACLs.
54564         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54565         ACL on OSF/1.
54566
54567 2008-06-07  Bruno Haible  <bruno@clisp.org>
54568
54569         Add support for MacOS X ACLs.
54570         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54571         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54572         * lib/set-mode-acl.c (qset_acl): Likewise.
54573         * lib/copy-acl.c (qcopy_acl): Likewise.
54574
54575 2008-06-07  Bruno Haible  <bruno@clisp.org>
54576
54577         Fix memory leak introduced on 2008-05-22.
54578         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54579         use.
54580
54581 2008-06-07  Bruno Haible  <bruno@clisp.org>
54582
54583         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54584         to construct an empty ACL.
54585
54586 2008-06-07  Bruno Haible  <bruno@clisp.org>
54587
54588         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54589         precisely.
54590         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54591
54592 2008-06-07  Bruno Haible  <bruno@clisp.org>
54593
54594         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54595         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54596
54597 2008-06-07  Bruno Haible  <bruno@clisp.org>
54598
54599         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54600         regardless of POSIX.
54601         * doc/posix-functions/_longjmp.texi: Likewise.
54602         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54603         SystemV platform in this case.
54604
54605 2008-06-06  Eric Blake  <ebb9@byu.net>
54606
54607         Document abort() bugs.
54608         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54609
54610         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54611         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54612         sigsetjmp.
54613         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54614         siglongjmp, but only as a macro.
54615         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54616         is obsolete.
54617         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54618
54619         Tweak documentation to cover cygwin argz bugs.
54620         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54621         argz bug fix; no code change needed since no cygwin releases
54622         occurred between the last fix and the bug being tested.
54623         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54624         module and recently fixed cygwin bugs.
54625         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54626         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54627         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54628         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54629         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54630         Likewise.
54631         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54632         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54633         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54634         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54635         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54636         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54637         Likewise.
54638
54639         Avoid gcc warning on cygwin.
54640         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54641         !ACL_NO_TRIVIAL]: Avoid unused variable.
54642
54643 2008-06-05  Eric Blake  <ebb9@byu.net>
54644
54645         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54646         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54647         git-version-gen fails to come up with a version.
54648         Reported by Simon Josefsson.
54649
54650 2008-06-05  Jim Meyering  <meyering@redhat.com>
54651             Paul Eggert  <eggert@cs.ucla.edu>
54652
54653         utimens.c: work around a probable Linux kernel bug
54654         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54655         appears to be a kernel bug that causes utimensat to return 280
54656         instead of 0, indicating success.
54657
54658 2008-06-04  Bruno Haible  <bruno@clisp.org>
54659
54660         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54661         2008-06-01 commit.
54662
54663 2008-06-04  Bruno Haible  <bruno@clisp.org>
54664
54665         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54666         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54667         (file_has_acl): Use it. Save errno afterwards.
54668         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54669
54670 2008-06-03  Bruno Haible  <bruno@clisp.org>
54671
54672         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54673         draft code. Simplify #ifs.
54674         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54675         Put Solaris code after POSIX-draft code. Fix comments regarding
54676         Solaris 10, HP-UX. Mention Cygwin.
54677         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54678
54679 2008-06-03  Eric Blake  <ebb9@byu.net>
54680
54681         Provide fallback for older kernels.
54682         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54683         Provide runtime fallback if kernel lacks support.
54684         Reported by Mike Frysinger.
54685
54686 2008-06-02  Bruno Haible  <bruno@clisp.org>
54687
54688         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54689         it exists.
54690
54691 2008-06-02  Bruno Haible  <bruno@clisp.org>
54692
54693         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54694         * lib/copy-acl.c (qcopy_acl): Update comment.
54695
54696 2008-06-02  Bruno Haible  <bruno@clisp.org>
54697
54698         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54699         like ACL APIs.
54700
54701 2008-06-02  Bruno Haible  <bruno@clisp.org>
54702
54703         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54704         * tests/test-set-mode-acl.sh: Likewise.
54705         * tests/test-copy-acl.sh: Likewise.
54706         * tests/test-copy-file.sh: Likewise.
54707
54708 2008-06-02  Bruno Haible  <bruno@clisp.org>
54709
54710         * tests/test-file-has-acl.sh: Remove unused code.
54711
54712 2008-06-01  Bruno Haible  <bruno@clisp.org>
54713
54714         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54715         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54716         messages.
54717         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54718
54719 2008-06-01  Bruno Haible  <bruno@clisp.org>
54720
54721         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54722         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54723         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54724         APIs.
54725         * modules/acl-tests (configure.ac): Remove tests now contained in
54726         m4/acl.m4.
54727
54728 2008-06-02  Jim Meyering  <meyering@redhat.com>
54729
54730         announce-gen: use a better key-server host name
54731         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54732         it may be more consistently reliable.  Suggested by Werner Koch
54733         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54734
54735 2008-06-01  Bruno Haible  <bruno@clisp.org>
54736
54737         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54738         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54739
54740 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54741
54742         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54743
54744 2008-06-01  Bruno Haible  <bruno@clisp.org>
54745
54746         New ACL tests.
54747         * tests/test-file-has-acl.sh: New file.
54748         * tests/test-file-has-acl.c: New file.
54749         * tests/test-set-mode-acl.sh: New file.
54750         * tests/test-set-mode-acl.c: New file.
54751         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54752         * tests/test-copy-acl.c: New file.
54753         * modules/acl-tests: New file, based on modules/copy-file-tests.
54754         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54755         (Depends-on): Add acl-tests.
54756         (configure.ac): Remove checks.
54757         (Makefile.am): Don't create test-sameacls program here any more.
54758
54759 2008-06-01  Bruno Haible  <bruno@clisp.org>
54760
54761         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54762         * tests/test-sameacls.c: Include progname.h.
54763         (main): Invoke set_program_name. Portability fixes for MacOS X,
54764         Solaris, HP-UX.
54765
54766 2008-06-01  Bruno Haible  <bruno@clisp.org>
54767
54768         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54769         function.
54770         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54771
54772 2008-06-01  Bruno Haible  <bruno@clisp.org>
54773
54774         * modules/rpmatch (Depends-on): Add strdup.
54775
54776 2008-06-01  Bruno Haible  <bruno@clisp.org>
54777
54778         * lib/pipe.c: Include unistd-safer.h.
54779         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54780         * modules/pipe (Depends-on): Add unistd-safer.
54781
54782 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54783
54784         * modules/autobuild (configure.ac): Call AB_INIT.
54785
54786 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54787
54788         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54789         Suggested by Bruno Haible <bruno@clisp.org>.
54790
54791 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54792
54793         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54794         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54795         <bruno@clisp.org>.
54796
54797 2008-05-29  Eric Blake  <ebb9@byu.net>
54798
54799         Prefer new POSIX 200x interfaces over futimesat.
54800         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54801         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54802         when available.
54803         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54804
54805 2008-05-28  Bruno Haible  <bruno@clisp.org>
54806
54807         * modules/stpcpy (License): Change to LGPLv2+.
54808         Requested by David Lutterkort <dlutter@redhat.com>.
54809
54810 2008-05-27  Bruno Haible  <bruno@clisp.org>
54811
54812         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54813         current mingw.
54814         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54815
54816 2008-05-27  Bruno Haible  <bruno@clisp.org>
54817
54818         * modules/iconv_open (Link): New section, from module 'iconv'.
54819         * modules/striconv (Link): Likewise.
54820         * modules/striconveh (Link): Likewise.
54821         * modules/xstriconv (Link): Likewise.
54822         * modules/unicodeio (Link): Likewise.
54823         * modules/propername (Link): Likewise.
54824         Reported by Jim Meyering.
54825
54826 2008-05-26  Jim Meyering  <meyering@redhat.com>
54827
54828         sha256: do not artificially restrict buffer length to be < 2^32
54829         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54830         uint32_t to size_t.
54831         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54832         to match.
54833
54834         avoid unaligned access errors, e.g., on sparc
54835         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54836         direct access through a possibly-unaligned uint64* pointer.
54837         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54838         direct access through a possibly-unaligned uint32* pointer.
54839         Prompted by this patch from Tom "spot" Callaway:
54840         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54841
54842         sha512.c: fix typo in comment
54843         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54844
54845 2008-05-25  Bruno Haible  <bruno@clisp.org>
54846
54847         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54848         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54849         (Makefile.am): Update lib_SOURCES.
54850
54851 2008-05-25  Bruno Haible  <bruno@clisp.org>
54852
54853         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54854
54855 2008-05-25  Jim Meyering  <meyering@redhat.com>
54856
54857         useless-if-before-free: freed expr may have white-space differences
54858         * build-aux/useless-if-before-free: Recognize cases in which the
54859         freed expression differs from the tested one in embedded white
54860         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54861         $1 was used, so we can't make any regexp shy.  Improved tests now
54862         detect this.
54863
54864         useless-if-before-free: accept white space in the expression.
54865         * build-aux/useless-if-before-free: For now, any white space
54866         in the expression must be identical in the free argument.
54867
54868         useless-if-before-free: efficiency tweak
54869         * build-aux/useless-if-before-free: Make the expression-matching
54870         regexp "shy".
54871         Make the *outer* regexp shy, not the expr-matching one.
54872
54873         update code-in-comment to accept cast of free arg
54874         * build-aux/useless-if-before-free: Update regexp.
54875
54876 2008-05-25  Bruno Haible  <bruno@clisp.org>
54877
54878         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54879         * modules/copy-file-tests (Files, Makefile.am): Update.
54880         * tests/test-copy-file.c (func_test_copy): Update.
54881
54882 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54883
54884         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54885
54886 2008-05-23  Bruno Haible  <bruno@clisp.org>
54887
54888         Improve support for ACLs on OSF/1.
54889         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54890         Remove fallback for unknown flavors of ACLs.
54891
54892 2008-05-22  Bruno Haible  <bruno@clisp.org>
54893
54894         Add support for ACLs on OSF/1.
54895         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54896         replacements.
54897         (acl_free_text): New macro fallback.
54898         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54899         acl_free.
54900         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54901         acl_free_text function. Require AC_C_INLINE.
54902
54903 2008-05-22  Bruno Haible  <bruno@clisp.org>
54904
54905         Make copy_acl work on MacOS X 10.5.
54906         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54907         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54908         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54909         If MODE_INSIDE_ACL, don't assume that every system has the same text
54910         representation for ACLs as FreeBSD.
54911         * lib/copy-acl.c (copy_acl): Add support for platforms with
54912         !MODE_INSIDE_ACL.
54913         * lib/file-has-acl.c (file_has_acl): Likewise.
54914         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54915         FreeBSD, MacOS X, or IRIX, respectively.
54916
54917 2008-05-22  Bruno Haible  <bruno@clisp.org>
54918
54919         * lib/acl.h: Don't include <sys/acl.h>.
54920         (GETACLCNT): Move fallback to lib/acl-internal.h.
54921         * lib/acl-internal.h: Include <sys/acl.h> here.
54922         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54923
54924 2008-05-22  Bruno Haible  <bruno@clisp.org>
54925
54926         Split off copy_acl function to separate file.
54927         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54928         * lib/acl.c (copy_acl): Moved function to separate file.
54929         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54930         * modules/acl (Files): Add lib/copy-acl.c.
54931         (Makefiles.am): Augment lib_SOURCES.
54932
54933 2008-05-22  Bruno Haible  <bruno@clisp.org>
54934
54935         * modules/copy-file-tests: New file.
54936         * tests/test-copy-file.sh: New file.
54937         * tests/test-copy-file.c: New file.
54938         * tests/test-copy-file-sameacls.c: New file.
54939
54940 2008-05-22  Eric Blake  <ebb9@byu.net>
54941
54942         Avoid gcc warning.
54943         * tests/test-memcmp.c (main): Pass NULL indirectly.
54944
54945 2008-05-21  Bruno Haible  <bruno@clisp.org>
54946
54947         Add reference doc about ACLs.
54948         * doc/acl-resources.txt: New file.
54949         * doc/acl-cygwin.txt: New file.
54950
54951 2008-05-21  Bruno Haible  <bruno@clisp.org>
54952
54953         Avoid one more warning from gcc.
54954         * lib/vasnprintf.c (IF_LINT): Update comments.
54955         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54956
54957 2008-05-21  Jim Meyering  <meyering@redhat.com>
54958
54959         avoid a warning from gcc
54960         * lib/vasnprintf.c (IF_LINT): Define.
54961         (scale10_round_decimal_long_double):
54962         Use it to avoid a "may be used uninitialized" warning.
54963         (scale10_round_decimal_double): Likewise.
54964
54965 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54966
54967         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54968         declared.
54969
54970 2008-05-20  Bruno Haible  <bruno@clisp.org>
54971
54972         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54973         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54974
54975 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54976
54977         * modules/memcmp-tests: New file.
54978         * tests/test-memcmp.c: New file.
54979
54980 2008-05-19  Bruno Haible  <bruno@clisp.org>
54981
54982         * modules/propername (Notice, configure.ac): Put quoted "..." into
54983         --keyword option.
54984         * lib/propername.h: Update comments accordingly.
54985         Reported by Eric Blake.
54986
54987 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54988
54989         * modules/getpass-gnu (Depends-on): Add fseeko.
54990
54991 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54992
54993         * modules/base64-tests: New file.
54994
54995 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54996
54997         * lib/base64.c (base64_decode_ctx): If a decode context structure
54998         was passed in use it to ignore newlines.  If a context structure
54999         was _not_ passed in, continue to treat newlines as garbage (this
55000         is the historical behavior).  Formerly base64_decode.
55001         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55002         takes a decode context structure.
55003         * lib/base64.h (base64_decode): Macro for four-argument calls.
55004         (base64_decode_alloc): Likewise.
55005         * lib/base64.c (base64_decode_ctx): If a decode context structure
55006         was passed in use it to ignore newlines.  If a context structure
55007         was _not_ passed in, continue to treat newlines as garbage (this
55008         is the historical behavior).  Formerly base64_decode.
55009         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55010         takes a decode context structure.
55011         * lib/base64.h (base64_decode): Macro for four-argument calls.
55012         (base64_decode_alloc): Likewise.
55013
55014 2008-05-19  Jim Meyering  <meyering@redhat.com>
55015
55016         avoid a warning from gcc
55017         * lib/trim.c (IF_LINT): Define.
55018         (trim2): Use it to avoid a "may be used uninitialized" warning.
55019
55020         Fix doc typo.
55021         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55022
55023 2008-05-19  Bruno Haible  <bruno@clisp.org>
55024
55025         * doc/glibc-functions/getpass.texi: Document limits of other
55026         implementations.
55027
55028 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55029             Bruno Haible <bruno@clisp.org>
55030
55031         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55032
55033 2008-05-18  Bruno Haible  <bruno@clisp.org>
55034
55035         * modules/propername: New file, from GNU gettext.
55036         * lib/propername.h: New file, from GNU gettext.
55037         * lib/propername.c: New file, from GNU gettext.
55038         * MODULES.html.sh (Internationalization functions): Add propername.
55039
55040 2008-05-16  Jim Meyering  <meyering@redhat.com>
55041             Bruno Haible  <bruno@clisp.org>
55042
55043         Avoid some warnings from "gcc -Wshadow".
55044         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55045
55046 2008-05-15  Eric Blake  <ebb9@byu.net>
55047
55048         Extend previous patch to cygwin 1.7.0.
55049         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55050         fast implementation in cygwin >= 1.7.0.
55051         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55052         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55053
55054 2008-05-15  Bruno Haible  <bruno@clisp.org>
55055
55056         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55057         implementation in glibc >= 2.9.
55058         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55059         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55060
55061 2008-05-15  Bruno Haible  <bruno@clisp.org>
55062
55063         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55064         (Unicode string functions): Add unilbrk/*.
55065         Reported by Karl Berry.
55066
55067 2008-05-15  Eric Blake  <ebb9@byu.net>
55068
55069         Fix violation of <stdbool.h> replacement in regex.
55070         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55071         * lib/regexec.c (re_search_internal): Likewise.
55072         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55073
55074 2008-05-15  Jim Meyering  <meyering@redhat.com>
55075
55076         avoid distracting test output when git or cvs is not found
55077         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55078         * tests/test-vc-list-files-git.sh: Likewise.
55079
55080 2008-05-15  Eric Blake  <ebb9@byu.net>
55081
55082         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55083         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55084         glibc version.
55085         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55086         * doc/posix-functions/strstr.texi (strstr): Likewise.
55087         * lib/str-two-way.h (MAX): Sychronize with glibc.
55088
55089 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55090
55091         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55092         opr.ctx_type.
55093         (calc_first): Initialize constraint field.
55094         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55095         Fix grammar.
55096         (duplicate_node): Merge constraint field for all node types.
55097         (calc_eclosure_iter): Look at constraint field for all node types.
55098         * lib/regex_internal.c (create_cd_newstate): Don't look at
55099         opr.ctx_type.
55100
55101 2008-05-14  Bruno Haible  <bruno@clisp.org>
55102
55103         Help GCC to do better code generation.
55104         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55105         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55106         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55107         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55108         Declare with attribute 'malloc' if supported.
55109
55110 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55111
55112         use "echo STR|wc -c" rather than unportable "expr length STR"
55113         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55114         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55115
55116 2008-05-14  Jim Meyering  <meyering@redhat.com>
55117
55118         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55119         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55120         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55121         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55122         via Collin Lasse.
55123
55124 2008-05-14  Eric Blake  <ebb9@byu.net>
55125
55126         Avoid quadratic growth in gl_LIBSOURCES.
55127         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55128         Suggested by Bruno Haible.
55129
55130         Test xmemdup0.
55131         * modules/xmemdup0-tests: New file.
55132         * tests/test-xmemdup0.c: Likewise.
55133
55134 2008-05-13  Eric Blake  <ebb9@byu.net>
55135
55136         Split xmemdup0 into its own module.
55137         * modules/xmemdup0: New file.
55138         * lib/xmemdup0.h: Likewise.
55139         * lib/xmemdup0.c: Likewise.
55140         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55141         * lib/xalloc.h (xmemdup0): Remove.
55142         * lib/xmalloc.c (xmemdup0): Likewise.
55143
55144 2008-05-13  Eric Blake  <ebb9@byu.net>
55145             Bruno Haible  <bruno@clisp.org>
55146
55147         Reduce number of forks required during autoconf.
55148         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55149         and gl_LIBSOURCES_DIR.
55150         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55151         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55152         m4_syscmd per file.
55153         <m4_foreach_w>: Move...
55154         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55155
55156 2008-05-13  Eric Blake  <ebb9@byu.net>
55157
55158         * gnulib-tool: Fix various comment typos.
55159
55160 2008-05-12  Bruno Haible  <bruno@clisp.org>
55161
55162         Tailor the linebreaking algorithm.
55163         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55164
55165 2008-05-12  Bruno Haible  <bruno@clisp.org>
55166
55167         Update to Unicode 5.0.0.
55168         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55169         LBP_JV, LBP_JT. Redistribute values.
55170         (unilbrk_table): Change size.
55171         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55172         Unicode TR#14 rev. 22.
55173         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55174         LBP_JV, LBP_JT. Redistribute values.
55175         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55176         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55177         Update.
55178         * lib/unilbrk/lbrkprop1.h: Regenerated.
55179         * lib/unilbrk/lbrkprop2.h: Regenerated.
55180         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55181         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55182         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55183         Likewise.
55184         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55185         Likewise.
55186         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55187         result.
55188         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55189         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55190         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55191         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55192         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55193         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55194
55195 2008-05-11  Bruno Haible  <bruno@clisp.org>
55196
55197         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55198
55199 2008-05-11  Bruno Haible  <bruno@clisp.org>
55200
55201         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55202         * modules/unilbrk/gen-lbrk: New file.
55203
55204 2008-05-11  Bruno Haible  <bruno@clisp.org>
55205
55206         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55207         * m4/sha512.m4 (gl_SHA512): Likewise.
55208
55209 2008-05-11  Jim Meyering  <meyering@redhat.com>
55210
55211         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55212         * modules/crypto/sha256: New file.
55213         * modules/crypto/sha512: Likewise.
55214         * lib/sha256.c: Likewise.
55215         * lib/sha256.h: Likewise.
55216         * lib/sha512.c: Likewise.
55217         * lib/sha512.h: Likewise.
55218         * lib/u64.h: Likewise.
55219         * m4/sha256.m4: Likewise.
55220         * m4/sha512.m4: Likewise.
55221         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55222
55223 2008-05-10  Bruno Haible  <bruno@clisp.org>
55224
55225         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55226         (Input/Output <stdio.h>): Add xprintf.
55227         (Signal handling <signal.h>): Add strsignal.
55228         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55229         (Core language properties): Add func.
55230         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55231         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55232         strings.
55233         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55234         (Input/output): New section.
55235         (File system functions): Add openat-die, stat-macros.
55236         (Networking functions): Add sockets.
55237         (Unicode string functions): Add unictype/*.
55238         (Support for building libraries and executables): Add gperf.
55239         (Support for building documentation): Add agpl-3.0.
55240         (Misc): Add nocrash.
55241
55242 2008-05-10  Bruno Haible  <bruno@clisp.org>
55243
55244         * modules/unictype/gen-ctype: New file.
55245
55246 2008-05-10  Jim Meyering  <meyering@redhat.com>
55247
55248         Make chdir-safer.c more efficient on a system with no symlinks.
55249         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55250         also if ELOOP is zero.  Suggested by Bruno Haible.
55251
55252         Make chdir-safer.c slightly safer.
55253         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55254         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55255
55256         Avoid compile failure on systems without ELOOP (like mingw).
55257         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55258         Reported by Bruno Haible.
55259
55260 2008-05-10  Bruno Haible  <bruno@clisp.org>
55261
55262         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55263         (is_utf8_encoding): Use a case-insensitive comparison.
55264         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55265         streq.
55266
55267 2008-05-10  Bruno Haible  <bruno@clisp.org>
55268
55269         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55270         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55271         * lib/unilbrk/ulc-common.h (iconv_string_length,
55272         iconv_string_keeping_offsets): Remove declarations.
55273         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55274         Don't include <iconv.h>, streq.h, xsize.h.
55275         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55276         conversion.
55277         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55278         <iconv.h>, streq.h, xsize.h.
55279         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55280         conversion.
55281         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55282         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55283         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55284         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55285
55286 2008-05-10  Bruno Haible  <bruno@clisp.org>
55287
55288         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55289         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55290
55291         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55292         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55293
55294         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55295         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55296
55297         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55298         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55299
55300         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55301         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55302
55303         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55304         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55305
55306         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55307         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55308
55309         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55310         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55311
55312 2008-05-10  Bruno Haible  <bruno@clisp.org>
55313
55314         Split up 'linebreak' module.
55315         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55316         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55317         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55318         modifications.
55319         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55320         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55321         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55322         lib/linebreak.c.
55323         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55324         lib/linebreak.c.
55325         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55326         lib/linebreak.c.
55327         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55328         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55329         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55330         lib/linebreak.c.
55331         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55332         lib/linebreak.c.
55333         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55334         lib/linebreak.c.
55335         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55336         lib/linebreak.c.
55337         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55338         lib/linebreak.c.
55339         * modules/unilbrk/base: New file.
55340         * modules/unilbrk/tables: New file.
55341         * modules/unilbrk/u8-possible-linebreaks: New file.
55342         * modules/unilbrk/u16-possible-linebreaks: New file.
55343         * modules/unilbrk/u32-possible-linebreaks: New file.
55344         * modules/unilbrk/ulc-common: New file.
55345         * modules/unilbrk/ulc-possible-linebreaks: New file.
55346         * modules/unilbrk/u8-width-linebreaks: New file.
55347         * modules/unilbrk/u16-width-linebreaks: New file.
55348         * modules/unilbrk/u32-width-linebreaks: New file.
55349         * modules/unilbrk/ulc-width-linebreaks: New file.
55350         * lib/linebreak.h: Remove file.
55351         * lib/linebreak.c: Remove file.
55352         * m4/linebreak.m4: Remove file.
55353         * modules/linebreak: Remove file.
55354         * NEWS: Mention the changes.
55355
55356 2008-05-09  Eric Blake  <ebb9@byu.net>
55357
55358         Add xmemdup0.
55359         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55360         implementation.
55361         * lib/xmalloc.c (xmemdup0): New C implementation.
55362
55363 2008-05-08  Bruno Haible  <bruno@clisp.org>
55364
55365         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55366
55367 2008-05-07  Eric Blake  <ebb9@byu.net>
55368
55369         Support cross-compilation of <wctype.h>.
55370         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55371         AC_CACHE_CHECK.
55372
55373 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55374
55375         * build-aux/vc-list-files: Add support for bzr.
55376
55377 2008-05-03  Jim Meyering  <meyering@redhat.com>
55378
55379         avoid failed assertion with tight malloc
55380         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55381
55382 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55383
55384         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55385         are needed from arpa/inet.h.
55386         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55387         Reported by Bruno Haible.
55388
55389 2008-05-02  Jim Meyering  <meyering@redhat.com>
55390
55391         avoid compilation error on FreeBSD 6
55392         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55393
55394 2008-05-01  Jim Meyering  <meyering@redhat.com>
55395
55396         useless-if-before-free: correct --help's exit status description
55397         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55398         for one or more matches, etc.  Reported by Bruno Haible.
55399
55400         vc-list-files: make the stand-alone gnulib test work
55401         * modules/vc-list-files-tests (configure.ac):
55402         Define and AC_SUBST abs_aux_dir.
55403         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55404         $(abs_top_srcdir) to each script and having each of them
55405         duplicate the work of setting PATH, set PATH here, using
55406         the new variable, abs_aux_dir instead.
55407         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55408         * tests/test-vc-list-files-git.sh: Likewise.
55409         Reported by Bruno Haible.
55410
55411 2008-05-01  Bruno Haible  <bruno@clisp.org>
55412
55413         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55414         reallocation. Rename 'done' to 'found_delimiter'.
55415
55416 2008-05-01  Jim Meyering  <meyering@redhat.com>
55417
55418         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55419         * build-aux/vc-list-files: Use `...`, not $(...).
55420
55421 2008-04-30  Jim Meyering  <meyering@redhat.com>
55422
55423         add tests for vc-list-files
55424         * modules/vc-list-files-tests: New module.
55425         * tests/test-vc-list-files-cvs.sh: New file.
55426         * tests/test-vc-list-files-git.sh: New file.
55427
55428         avoid a warning from gcc
55429         * lib/getndelim2.c (IF_LINT): Define.
55430         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55431
55432         vc-list-files: work properly with build-aux/cvsu, too
55433         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55434         to all cvs-based clauses.
55435
55436         vc-list-files: work properly in the CVS+awk case, too
55437         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55438
55439         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55440         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55441         take more than one file argument, so .  Add quotes, just in case $dir
55442         ever contains a shell meta-character.  Prompted by Soren Hansen in
55443         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55444
55445 2008-04-29  Eric Blake  <ebb9@byu.net>
55446
55447         Optimize getndelim2 to use block operations when possible.
55448         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55449         freadseek, and memchr2.
55450         * lib/getndelim2.c (getndelim2): Use them for block reads.
55451
55452 2008-04-29  Bruno Haible  <bruno@clisp.org>
55453
55454         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55455         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55456         * modules/inet_ntop (Depends-on): Add extensions.
55457         * modules/inet_pton (Depends-on): Likewise.
55458         Reported by Simon Josefsson.
55459
55460 2008-04-29  Jim Meyering  <meyering@redhat.com>
55461
55462         When the is more than one match in a block, match all of them.
55463         * build-aux/useless-if-before-free: Iterate through each block
55464         until there are no more matches.
55465
55466         Fix broken useless-if-before-free script.
55467         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55468         the expression to match cast of argument to free-like function.
55469
55470 2008-04-29  Eric Blake  <ebb9@byu.net>
55471
55472         Use new header.
55473         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55474
55475 2008-04-29  Jim Meyering  <meyering@redhat.com>
55476
55477         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55478         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55479         by gnulib to exist and to declare e.g., inet_ntop.
55480         Don't include "inet_ntop.h", now removed.
55481
55482         * m4/arpa_inet_h.m4: Remove trailing blanks.
55483
55484 2008-04-29  Eric Blake  <ebb9@byu.net>
55485
55486         Silence valgrind on safe reads beyond potential array bounds.
55487         * lib/rawmemchr.valgrind: New file.
55488         * lib/strchrnul.valgrind: Likewise.
55489         * modules/rawmemchr (Files): Distribute new file.
55490         * modules/strchrnul (Files): Likewise.
55491         Suggested by Bruno Haible.
55492
55493 2008-04-29  Bruno Haible  <bruno@clisp.org>
55494
55495         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55496         (inet_ntop, inet_pton): Change portability warning's wording.
55497         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55498         Invoke gl_CHECK_NEXT_HEADERS.
55499         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55500         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55501         set ARPA_INET_H.
55502         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55503         * modules/arpa_inet (Description): No longer only for systems that
55504         lack it.
55505         (Depends-on): Add include_next.
55506         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55507         HAVE_ARPA_INET_H.
55508
55509 2008-04-29  Jim Meyering  <meyering@redhat.com>
55510
55511         * modules/mkdir (License): Re-license as LGPLv2+.
55512
55513 2008-04-29  Bruno Haible  <bruno@clisp.org>
55514
55515         * modules/rawmemchr (Maintainer): Set to Eric.
55516         * modules/strchrnul (Maintainer): Likewise.
55517
55518 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55519
55520         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55521         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55522
55523         * modules/arpa_inet (arpa/inet.h): Use them.
55524
55525 2008-04-28  Eric Blake  <ebb9@byu.net>
55526
55527         Test getndelim2.
55528         * modules/getndelim2-tests: New file.
55529         * tests/test-getndelim2.c: Likewise.
55530         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55531         stream.
55532         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55533
55534         * MODULES.html.sh: Document new module.
55535
55536 2008-04-20  Bruno Haible  <bruno@clisp.org>
55537
55538         * lib/c-stack.c (die): Use raise.
55539         * modules/c-stack (Depends-on): Add raise.
55540
55541 2008-04-28  Bruno Haible  <bruno@clisp.org>
55542
55543         Expect rpmatch to be declared.
55544         * lib/yesno.c (rpmatch): Remove declaration.
55545
55546         Declare rpmatch.
55547         * lib/stdlib.in.h (rpmatch): New declaration.
55548         * lib/rpmatch.c: Include <stdlib.h> first.
55549         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55550         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55552         HAVE_RPMATCH.
55553         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55554         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55555         (Include): Set to <stdlib.h>.
55556         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55557         HAVE_RPMATCH.
55558         * NEWS: Document the change.
55559
55560 2008-04-28  Bruno Haible  <bruno@clisp.org>
55561
55562         Change rpmatch to use nl_langinfo when appropriate.
55563         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55564         (N_): New macro.
55565         (localized_pattern): New function/macro.
55566         (try): Remove match, nomatch arguments. Copy the pattern into safe
55567         memory before caching it.
55568         (rpmatch): Use localized_pattern. Add translator comments.
55569         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55570         Suggested by Eric Blake.
55571         * modules/rpmatch (Depends-on): Add stdbool.
55572
55573 2008-04-28  Eric Blake  <ebb9@byu.net>
55574
55575         Add rawmemchr module, matching glibc.
55576         * modules/string (Makefile.am): New indicator.
55577         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55578         * lib/string.in.h (rawmemchr): Declare when appropriate.
55579         * modules/rawmemchr: New file.
55580         * m4/rawmemchr.m4: Likewise.
55581         * lib/rawmemchr.c: Likewise.
55582         * modules/rawmemchr-tests: Likewise.
55583         * tests/test-rawmemchr.c: Likewise.
55584         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55585         module.
55586         * modules/strchrnul (Depends-on): Add rawmemchr.
55587         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55588
55589         Whitespace cleanup.
55590         * tests/test-strchrnul.c: Reindent.
55591         * lib/strchrnul.c: Likewise.
55592
55593         Optimize and test strchrnul.
55594         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55595         * modules/strchrnul-tests: New file.
55596         * tests/test-strchrnul.c: Likewise.
55597
55598         Remove intprops dependency.
55599         * modules/memchr (Depends-on): Remove intprops.
55600         * modules/memrchr (Depends-on): Likewise.
55601         * modules/memchr2 (Depends-on): Likewise.
55602         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55603         * lib/memrchr.c (__memrchr): Likewise.
55604         * lib/memrchr2.c (memchr2): Likewise.
55605         Reported by Simon Josefsson.
55606
55607 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55608
55609         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55610         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55611
55612 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55613
55614         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55615
55616         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55617
55618         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55619
55620         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55621         declarations.
55622         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55623
55624         * m4/inet_pton.m4: Don't check for header files.
55625
55626         * m4/inet_ntop.m4: Don't check for header files.
55627
55628 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55629
55630         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55631         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55632         trigger for cygwin).
55633         Reported by Bruno Haible  <bruno@clisp.org>.
55634
55635 2008-04-28  Bruno Haible  <bruno@clisp.org>
55636
55637         * doc/posix-functions/strdup.texi: Mention mingw problem.
55638
55639 2008-04-27  Bruno Haible  <bruno@clisp.org>
55640
55641         * modules/stat-time-tests (Depends-on): Add sleep.
55642         * tests/test-stat-time.c (force_unlink): New function.
55643         (cleanup): Use it.
55644         (test_mtime): Remove the ctime related tests.
55645         (test_ctime): New function, containing the ctime related tests.
55646         (main): Call test_ctime, except on native Windows platforms.
55647
55648 2008-04-27  Bruno Haible  <bruno@clisp.org>
55649
55650         * lib/rpmatch.c (rpmatch): Add some comments.
55651         Reported by James Youngman <jay@gnu.org>.
55652
55653 2008-04-27  Bruno Haible  <bruno@clisp.org>
55654
55655         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55656         quiet NaNs.
55657
55658 2008-04-27  Bruno Haible  <bruno@clisp.org>
55659
55660         Make test-yesno.sh work on mingw.
55661         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55662         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55663         (main): Set stdin to binary mode.
55664         * modules/yesno-tests (Depends-on): Add binary-io.
55665
55666 2008-04-27  Bruno Haible  <bruno@clisp.org>
55667
55668         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55669         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55670         argument that lie outside the IEEE 854 domain.
55671         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55672         (gl_ISFINITE): Use it.
55673         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55674
55675 2008-04-27  Bruno Haible  <bruno@clisp.org>
55676
55677         Allow local renaming in config.h.
55678         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55679
55680 2008-04-27  Bruno Haible  <bruno@clisp.org>
55681
55682         * lib/memchr.c (__memchr): Change type of 'i'.
55683         * lib/memchr2.c (memchr2): Likewise.
55684
55685 2008-04-26  Eric Blake  <ebb9@byu.net>
55686         and Bruno Haible  <bruno@clisp.org>
55687
55688         Optimize and test memrchr.
55689         * modules/memrchr (Depends-on): Add intprops.
55690         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55691         * modules/memrchr-tests: New file.
55692         * tests/test-memrchr.c: New file.
55693
55694 2008-04-26  Bruno Haible  <bruno@clisp.org>
55695
55696         Add tentative support for DragonFly BSD.
55697         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55698         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55699         fp.
55700         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55701         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55702         * lib/fpurge.c (fpurge): Likewise.
55703         * lib/freadable.c (freaadable): Likewise.
55704         * lib/freadahead.c (freadahead): Likewise.
55705         * lib/freading.c (freading): Likewise.
55706         * lib/freadptr.c (freadptr): Likewise.
55707         * lib/freadseek.c (freadptrinc): Likewise.
55708         * lib/fseeko.c (fseeko): Likewise.
55709         * lib/fseterr.c (fseterr): Likewise.
55710         * lib/fwritable.c (fwritable): Likewise.
55711         * lib/fwriting.c (fwriting): Likewise.
55712
55713 2008-04-26  Bruno Haible  <bruno@clisp.org>
55714
55715         * lib/stdio-impl.h: New file.
55716         * lib/fbufmode.c: Include stdio-impl.h.
55717         (fbufmode): Use fp_, remove redundant #defines.
55718         * lib/fflush.c: Include stdio-impl.h.
55719         (clear_ungetc_buffer): Remove redundant #defines.
55720         * lib/fpurge.c: Include stdio-impl.h.
55721         (fpurge): Remove redundant #defines.
55722         * lib/freadable.c: Include stdio-impl.h.
55723         (freadable): Remove redundant #defines.
55724         * lib/freadahead.c: Include stdio-impl.h.
55725         (freadahead): Remove redundant #defines.
55726         * lib/freading.c: Include stdio-impl.h.
55727         (freading): Remove redundant #defines.
55728         * lib/freadptr.c: Include stdio-impl.h.
55729         (freadptr): Remove redundant #defines.
55730         * lib/freadseek.c: Include stdio-impl.h.
55731         (freadptrinc): Remove redundant #defines.
55732         * lib/fseeko.c: Include stdio-impl.h.
55733         (rpl_fseeko): Remove redundant #defines.
55734         * lib/fseterr.c: Include stdio-impl.h.
55735         (fseterr): Remove redundant #defines.
55736         * lib/fwritable.c: Include stdio-impl.h.
55737         (fwritable: Remove redundant #defines.
55738         * lib/fwriting.c: Include stdio-impl.h.
55739         (fwriting): Remove redundant #defines.
55740         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55741         * modules/fflush (Files): Likewise.
55742         * modules/fpurge (Files): Likewise.
55743         * modules/freadable (Files): Likewise.
55744         * modules/freadahead (Files): Likewise.
55745         * modules/freading (Files): Likewise.
55746         * modules/freadptr (Files): Likewise.
55747         * modules/freadseek (Files): Likewise.
55748         * modules/fseeko (Files): Likewise.
55749         * modules/fseterr (Files): Likewise.
55750         * modules/fwritable (Files): Likewise.
55751         * modules/fwriting (Files): Likewise.
55752
55753 2008-04-26  Bruno Haible  <bruno@clisp.org>
55754
55755         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55756         restore_seek_optimization, update_fpos_cache): New functions, extracted
55757         from rpl_fflush.
55758         (rpl_fflush): Use them.
55759         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55760         (gl_REPLACE_FFLUSH): Use it.
55761
55762 2008-04-26  Bruno Haible  <bruno@clisp.org>
55763
55764         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55765         on Solaris.
55766         * tests/test-xstrtoimax.sh: Likewise.
55767         * tests/test-xstrtoumax.sh: Likewise.
55768         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55769
55770 2008-04-26  Bruno Haible  <bruno@clisp.org>
55771
55772         * modules/memchr-tests: New file.
55773         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55774
55775 2008-04-26  Eric Blake  <ebb9@byu.net>
55776             Bruno Haible  <bruno@clisp.org>
55777
55778         * lib/memchr.c: Include intprops.h.
55779         (__memchr): Optimize parallel detection of matching bytes. Rename local
55780         variables. Add explanatory comments.
55781
55782 2008-04-26  Bruno Haible  <bruno@clisp.org>
55783
55784         Fix module 'memchr', broken since 2000-10-28.
55785         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55786
55787 2008-04-26  Bruno Haible  <bruno@clisp.org>
55788
55789         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55790         comments.
55791
55792 2008-04-25  Eric Blake  <ebb9@byu.net>
55793
55794         Use native fstatat on cygwin 1.7.0.
55795         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55796         first.
55797
55798 2008-04-23  Eric Blake  <ebb9@byu.net>
55799
55800         Improve memchr2 performance.
55801         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55802         NUL bytes.
55803         * modules/memchr2 (Depends-on): Use intprops.h.
55804
55805 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55806
55807         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55808         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55809         <blp@cs.stanford.edu>.
55810
55811 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55812
55813         * lib/arpa_inet.in.h: New file.
55814
55815         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55816         (Makefile.am): Sed in substitute header file.
55817
55818         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55819         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55820
55821         * modules/inet_ntop (configure.ac): Use
55822         gl_ARPA_INET_MODULE_INDICATOR.
55823
55824         * modules/inet_pton (configure.ac): Use
55825         gl_ARPA_INET_MODULE_INDICATOR.
55826
55827 2008-04-22  Jim Meyering  <meyering@redhat.com>
55828
55829         * modules/verify (License): Re-license as LGPLv2+.
55830
55831 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55832
55833         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55834         parameter to void* as per POSIX standard (MinGW uses char*).
55835
55836 2008-04-21  Bruno Haible  <bruno@clisp.org>
55837
55838         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55839         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55840         Define to replacements if REPLACE_ISWCNTRL is 1.
55841         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55842         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55843         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55844         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55845         what it fixes.
55846         * doc/posix-functions/iswalpha.texi: Likewise.
55847         * doc/posix-functions/iswblank.texi: Likewise.
55848         * doc/posix-functions/iswcntrl.texi: Likewise.
55849         * doc/posix-functions/iswdigit.texi: Likewise.
55850         * doc/posix-functions/iswgraph.texi: Likewise.
55851         * doc/posix-functions/iswlower.texi: Likewise.
55852         * doc/posix-functions/iswprint.texi: Likewise.
55853         * doc/posix-functions/iswpunct.texi: Likewise.
55854         * doc/posix-functions/iswspace.texi: Likewise.
55855         * doc/posix-functions/iswupper.texi: Likewise.
55856         * doc/posix-functions/iswxdigit.texi: Likewise.
55857         Reported by Alain Guibert.
55858
55859 2008-04-21  Bruno Haible  <bruno@clisp.org>
55860
55861         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55862         Patch by Alain Guibert.
55863
55864 2008-04-21  Bruno Haible  <bruno@clisp.org>
55865
55866         Fix test failures on mingw.
55867         * tests/test-xstrtol.c (print_no_progname): New function.
55868         (main): Install it in error_print_progname hook.
55869         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55870         * tests/test-xstrtoimax.sh: Likewise.
55871         * tests/test-xstrtoumax.sh: Likewise.
55872
55873 2008-04-21  Bruno Haible  <bruno@clisp.org>
55874
55875         Fix test failure on mingw.
55876         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55877
55878 2008-04-21  Bruno Haible  <bruno@clisp.org>
55879
55880         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55881         Actually assign a value.
55882
55883 2008-04-20  Bruno Haible  <bruno@clisp.org>
55884
55885         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55886         take 2.
55887         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55888         'canonicalize-lgpl' module is also used.
55889         * lib/canonicalize-lgpl.c: Undo last change.
55890         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55891
55892 2008-04-20  Bruno Haible  <bruno@clisp.org>
55893
55894         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55895         config.h. Provide _mkdir based fallback for mingw.
55896         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55897         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55898         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55899         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55900         rather than defining mkdir in config.h.
55901         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55902         (gl_SYS_STAT_H_DEFAULTS): New macro.
55903         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55904         HAVE_IO_H any more.
55905         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55906         HAVE_DECL_MKDIR and HAVE_IO_H.
55907
55908 2008-04-20  Bruno Haible  <bruno@clisp.org>
55909
55910         * lib/isapipe.c: Port to native Windows platforms.
55911
55912 2008-04-20  Bruno Haible  <bruno@clisp.org>
55913
55914         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55915
55916 2008-04-21  Eric Blake  <ebb9@byu.net>
55917
55918         Work around preprocessors that don't handle UINTMAX_MAX.
55919         * lib/memchr2.c (memchr2): Avoid embedded #if.
55920         Reported by Alain Guibert, fix suggested by Bruno Haible.
55921
55922 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55923
55924         * doc/posix-functions/strftime.texi (strftime): Explain better
55925         Windows incompatibility.  Suggested by Micah Cowan
55926         <micah@cowan.name>.
55927
55928 2008-04-20  Bruno Haible  <bruno@clisp.org>
55929
55930         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55931         unistr/u8-mblen.
55932
55933 2008-04-20  Bruno Haible  <bruno@clisp.org>
55934
55935         Fix test failure on platforms with non-GNU iconv.
55936         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55937         (U_TO_U8): Use it, rather than u16_to_u8.
55938         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55939         units at the end of the input string.
55940         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55941
55942 2008-04-20  Bruno Haible  <bruno@clisp.org>
55943
55944         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55945         when the resulting length is 0.
55946         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55947
55948 2008-04-20  Bruno Haible  <bruno@clisp.org>
55949
55950         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55951         works.
55952         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55953
55954 2008-04-20  Bruno Haible  <bruno@clisp.org>
55955
55956         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55957         * modules/tsearch-tests (configure.ac): Test for initstate function.
55958
55959 2008-04-20  Bruno Haible  <bruno@clisp.org>
55960
55961         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55962         for nlink_t if missing.
55963         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55964
55965 2008-04-19  Bruno Haible  <bruno@clisp.org>
55966
55967         Work around snprintf bug on Linux libc5.
55968         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55969         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55970         gl_SNPRINTF_SIZE1.
55971         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55972         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55973         that test failed.
55974         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55975         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55976         * modules/snprintf (Files): Add m4/printf.m4.
55977         * modules/vsnprintf (Files): Likewise.
55978         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55979         * doc/posix-functions/vsnprintf.texi: Likewise.
55980
55981 2008-04-19  Bruno Haible  <bruno@clisp.org>
55982
55983         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55984         from 0.0058 to less than 10^-7.
55985
55986 2008-04-19  Bruno Haible  <bruno@clisp.org>
55987
55988         Fix rounding when a precision is given.
55989         * lib/vasnprintf.c (is_borderline): New function.
55990         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55991         9...9x.
55992         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55993         %e, %g.
55994         * tests/test-vasprintf-posix.c (test_function): Likewise.
55995         * tests/test-snprintf-posix.h (test_function): Likewise.
55996         * tests/test-sprintf-posix.h (test_function): Likewise.
55997         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55998         * tests/test-printf-posix.h (test_function): Likewise.
55999         * tests/test-printf-posix.output: Update.
56000         Reported by John Darrington <john@darrington.wattle.id.au> via
56001         Ben Pfaff <blp@cs.stanford.edu>.
56002
56003 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56004
56005         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56006         Suggested by Bruno Haible <bruno@clisp.org>.
56007
56008 2008-04-17  Bruno Haible  <bruno@clisp.org>
56009
56010         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56011         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56012         implementation.
56013         Patch by Bruce Merry <bmerry@gmail.com>.
56014
56015 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56016
56017         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56018         doesn't work under Windows.
56019
56020 2008-04-16  Bruno Haible  <bruno@clisp.org>
56021
56022         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56023         New macros.
56024         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56025         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56026         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56027         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56028         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56029         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56030         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56031         macros.
56032         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56033         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56034         Northern Sotho, Uighur.
56035
56036 2008-04-16  Bruno Haible  <bruno@clisp.org>
56037
56038         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56039         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56040         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56041         Reported by Daniel Bergström <daniel@octocode.com>.
56042
56043 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56044             Bruno Haible  <bruno@clisp.org>
56045
56046         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56047         function.
56048         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56049         New functions, mostly extracted from gl_locale_name_default.
56050         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56051
56052 2008-04-16  Eric Blake  <ebb9@byu.net>
56053
56054         Adjust strtod detection to catch glibc 2.7 bug.
56055         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56056         Reported by John Gatewood Ham.
56057
56058 2008-04-16  Bruno Haible  <bruno@clisp.org>
56059
56060         Add tentative support for Linux libc5.
56061         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56062         * lib/fpurge.c (fpurge): Likewise.
56063         * lib/freadable.c (freadable): Likewise.
56064         * lib/freadahead.c (freadahead): Likewise.
56065         * lib/freading.c (freading): Likewise.
56066         * lib/freadptr.c (freadptr): Likewise.
56067         * lib/freadseek.c (freadptrinc): Likewise.
56068         * lib/fseeko.c (rpl_fseeko): Likewise.
56069         * lib/fseterr.c (fseterr): Likewise.
56070         * lib/fwritable.c (fwritable): Likewise.
56071         * lib/fwriting.c (fwriting): Likewise.
56072         Reported by Alain Guibert <alguibert+bts@free.fr>.
56073
56074 2008-04-15  Bruno Haible  <bruno@clisp.org>
56075
56076         * modules/mathl (configure.ac): Define module indicator.
56077
56078 2008-04-15  Bruno Haible  <bruno@clisp.org>
56079
56080         * lib/logl.c (logl): Remove unused variables.
56081
56082 2008-04-15  Bruno Haible  <bruno@clisp.org>
56083
56084         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56085         fails.
56086
56087 2008-04-15  Bruno Haible  <bruno@clisp.org>
56088
56089         * lib/trim.c (trim2): Fix argument of isspace() macro.
56090
56091 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56092
56093         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56094         to 0.
56095         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56096
56097 2008-04-14  Bruno Haible  <bruno@clisp.org>
56098
56099         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56100         AC_LANG_PROGRAM argument.
56101         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56102         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56103         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56104         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56105         * m4/math_h.m4 (gl_MATH_H): Likewise.
56106         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56107         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56108         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56109         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56110         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56111         * m4/regex.m4 (gl_REGEX): Likewise.
56112         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56113         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56114         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56115         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56116         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56117         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56118         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56119         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56120
56121 2008-04-14  Jim Meyering  <meyering@redhat.com>
56122
56123         test-strtod: fix typos: s/abs/fabs/
56124         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56125
56126 2008-04-13  Bruno Haible  <bruno@clisp.org>
56127
56128         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56129         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56130         module is also used and while not building the reloc-wrapper.
56131
56132 2008-04-13  Bruno Haible  <bruno@clisp.org>
56133
56134         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56135
56136 2008-04-13  Bruno Haible  <bruno@clisp.org>
56137
56138         Fix AIX compilation failure introduced on 2008-04-02.
56139         * tests/test-frexp.c (exp): Undefine before redefining.
56140         * tests/test-frexpl.c (exp): Likewise.
56141
56142 2008-04-13  Bruno Haible  <bruno@clisp.org>
56143
56144         Work around a HP-UX stdio bug.
56145         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56146         * tests/test-ftello.c (main): Likewise.
56147         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56148         * doc/posix-functions/ftello.texi: Likewise.
56149
56150 2008-04-13  Bruno Haible  <bruno@clisp.org>
56151
56152         Make test-signbit pass on HP-UX/hppa.
56153         * tests/test-signbit.c (minus_zerol): New variable.
56154         (test_signbitl): Use it.
56155
56156 2008-04-13  Bruno Haible  <bruno@clisp.org>
56157
56158         Make truncl work on OSF/1 4.0.
56159         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56160         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56161         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56163         HAVE_DECL_TRUNCL.
56164         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56165         HAVE_DECL_TRUNCL.
56166         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56167
56168 2008-04-13  Bruno Haible  <bruno@clisp.org>
56169
56170         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56171
56172 2008-04-13  Bruno Haible  <bruno@clisp.org>
56173
56174         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56175         expression, so as to avoid HP-UX 11 cc compiler bug.
56176
56177 2008-04-13  Bruno Haible  <bruno@clisp.org>
56178
56179         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56180
56181 2008-04-13  Bruno Haible  <bruno@clisp.org>
56182
56183         * lib/git-merge-changelog.c: Remove empty declaration outside of
56184         functions.
56185
56186 2008-04-13  Bruno Haible  <bruno@clisp.org>
56187
56188         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56189
56190 2008-04-13  Bruno Haible  <bruno@clisp.org>
56191
56192         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56193         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56194         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56195         also if it exists but lacks definitions of the SHUT_* macros.
56196         * modules/sys_socket (Description): Update.
56197         Reported by Elbert Pol <e.pol@chello.nl>.
56198
56199 2008-04-13  Bruno Haible  <bruno@clisp.org>
56200
56201         * lib/localcharset.c (OS2): Don't redefine if already defined.
56202         Reported by Elbert Pol <e.pol@chello.nl>.
56203
56204 2008-04-13  Bruno Haible  <bruno@clisp.org>
56205
56206         * lib/binary-io.h [__EMX__]: Include <io.h>.
56207         Reported by Elbert Pol <e.pol@chello.nl>.
56208
56209 2008-04-12  Bruno Haible  <bruno@clisp.org>
56210
56211         * lib/fpucw.h: Enable the definitions also for x86_64.
56212         Needed for NetBSD/x86_64.
56213         Reported by Thomas Klausner <tk@giga.or.at>.
56214
56215 2008-04-12  Bruno Haible  <bruno@clisp.org>
56216
56217         * tests/test-strtod.c: Include isnand.h.
56218         (main): Use isnand instead of isnan.
56219         Reported by Jim Meyering.
56220
56221 2008-04-12  Bruno Haible  <bruno@clisp.org>
56222
56223         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56224         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56225
56226 2008-04-12  Jim Meyering  <meyering@redhat.com>
56227
56228         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56229
56230 2008-04-12  Bruno Haible  <bruno@clisp.org>
56231
56232         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56233         Reported by Elbert Pol <e.pol@chello.nl>.
56234
56235 2008-04-12  Eric Blake  <ebb9@byu.net>
56236
56237         Work around Solaris 10 math.h bug.
56238         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56239         (gl_MATH_H_DEFAULTS): Set up default.
56240         * modules/math (Makefile.am): Replace new indicators.
56241         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56242         * tests/test-math.c (main): Test this.
56243         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56244         * doc/posix-headers/math.texi (math.h): Mention bug.
56245         Reported by Nelson H. F. Beebe and Jim Meyering.
56246
56247 2008-04-11  Bruno Haible  <bruno@clisp.org>
56248
56249         Adapt to future versions of Apple GCC.
56250         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56251         Reported by Peter O'Gorman <peter@pogma.com>.
56252
56253 2008-04-11  Bruno Haible  <bruno@clisp.org>
56254
56255         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56256
56257 2008-04-11  Bruno Haible  <bruno@clisp.org>
56258
56259         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56260
56261         * modules/getaddrinfo-tests (Makefile.am): Define
56262         test_getaddrinfo_LDADD.
56263
56264 2008-04-11  Bruno Haible  <bruno@clisp.org>
56265
56266         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56267         (init): Fix syntax error.
56268         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56269         is declared.
56270
56271 2008-04-11  Bruno Haible  <bruno@clisp.org>
56272
56273         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56274         * modules/glob (Depends-on): Add stdbool.
56275
56276 2008-04-11  Bruno Haible  <bruno@clisp.org>
56277
56278         * lib/trim.c: Include <string.h>.
56279
56280 2008-04-11  Eric Blake  <ebb9@byu.net>
56281
56282         Avoid compile failure on OS/2.
56283         * lib/regex_internal.h (internal_function): Disable optimization
56284         on OS/2 (__EMX__), where it caused compiler error.
56285         Reported by Elbert Pol.
56286
56287 2008-04-11  Bruno Haible  <bruno@clisp.org>
56288
56289         Flush the standard error stream before aborting. Needed on mingw.
56290         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56291         * tests/test-array_list.c (ASSERT): Likewise.
56292         * tests/test-array_oset.c (ASSERT): Likewise.
56293         * tests/test-avltree_list.c (ASSERT): Likewise.
56294         * tests/test-avltree_oset.c (ASSERT): Likewise.
56295         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56296         * tests/test-binary-io.c (ASSERT): Likewise.
56297         * tests/test-byteswap.c (ASSERT): Likewise.
56298         * tests/test-c-ctype.c (ASSERT): Likewise.
56299         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56300         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56301         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56302         * tests/test-c-strstr.c (ASSERT): Likewise.
56303         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56304         * tests/test-canonicalize.c (ASSERT): Likewise.
56305         * tests/test-carray_list.c (ASSERT): Likewise.
56306         * tests/test-ceilf1.c (ASSERT): Likewise.
56307         * tests/test-ceilf2.c (ASSERT): Likewise.
56308         * tests/test-ceill.c (ASSERT): Likewise.
56309         * tests/test-count-one-bits.c (ASSERT): Likewise.
56310         * tests/test-fbufmode.c (ASSERT): Likewise.
56311         * tests/test-fflush2.c (ASSERT): Likewise.
56312         * tests/test-floorf1.c (ASSERT): Likewise.
56313         * tests/test-floorf2.c (ASSERT): Likewise.
56314         * tests/test-floorl.c (ASSERT): Likewise.
56315         * tests/test-fopen.c (ASSERT): Likewise.
56316         * tests/test-fpending.c (ASSERT): Likewise.
56317         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56318         * tests/test-fpurge.c (ASSERT): Likewise.
56319         * tests/test-freadable.c (ASSERT): Likewise.
56320         * tests/test-freadahead.c (ASSERT): Likewise.
56321         * tests/test-freading.c (ASSERT): Likewise.
56322         * tests/test-freadptr.c (ASSERT): Likewise.
56323         * tests/test-freadptr2.c (ASSERT): Likewise.
56324         * tests/test-freadseek.c (ASSERT): Likewise.
56325         * tests/test-freopen.c (ASSERT): Likewise.
56326         * tests/test-frexp.c (ASSERT): Likewise.
56327         * tests/test-frexpl.c (ASSERT): Likewise.
56328         * tests/test-fseek.c (ASSERT): Likewise.
56329         * tests/test-fseeko.c (ASSERT): Likewise.
56330         * tests/test-fstrcmp.c (ASSERT): Likewise.
56331         * tests/test-ftell.c (ASSERT): Likewise.
56332         * tests/test-ftello.c (ASSERT): Likewise.
56333         * tests/test-func.c (ASSERT): Likewise.
56334         * tests/test-fwritable.c (ASSERT): Likewise.
56335         * tests/test-fwriting.c (ASSERT): Likewise.
56336         * tests/test-getdelim.c (ASSERT): Likewise.
56337         * tests/test-getline.c (ASSERT): Likewise.
56338         * tests/test-i-ring.c (ASSERT): Likewise.
56339         * tests/test-iconv-utf.c (ASSERT): Likewise.
56340         * tests/test-iconv.c (ASSERT): Likewise.
56341         * tests/test-isfinite.c (ASSERT): Likewise.
56342         * tests/test-isnand.c (ASSERT): Likewise.
56343         * tests/test-isnanf.c (ASSERT): Likewise.
56344         * tests/test-isnanl.h (ASSERT): Likewise.
56345         * tests/test-ldexpl.c (ASSERT): Likewise.
56346         * tests/test-linked_list.c (ASSERT): Likewise.
56347         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56348         * tests/test-localename.c (ASSERT): Likewise.
56349         * tests/test-lseek.c (ASSERT): Likewise.
56350         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56351         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56352         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56353         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56354         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56355         * tests/test-mbschr.c (ASSERT): Likewise.
56356         * tests/test-mbscspn.c (ASSERT): Likewise.
56357         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56358         * tests/test-mbspbrk.c (ASSERT): Likewise.
56359         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56360         * tests/test-mbsrchr.c (ASSERT): Likewise.
56361         * tests/test-mbsspn.c (ASSERT): Likewise.
56362         * tests/test-mbsstr1.c (ASSERT): Likewise.
56363         * tests/test-mbsstr2.c (ASSERT): Likewise.
56364         * tests/test-mbsstr3.c (ASSERT): Likewise.
56365         * tests/test-memchr2.c (ASSERT): Likewise.
56366         * tests/test-memmem.c (ASSERT): Likewise.
56367         * tests/test-open.c (ASSERT): Likewise.
56368         * tests/test-printf-frexp.c (ASSERT): Likewise.
56369         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56370         * tests/test-printf-posix.c (ASSERT): Likewise.
56371         * tests/test-quotearg.c (ASSERT): Likewise.
56372         * tests/test-rbtree_list.c (ASSERT): Likewise.
56373         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56374         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56375         * tests/test-round1.c (ASSERT): Likewise.
56376         * tests/test-roundf1.c (ASSERT): Likewise.
56377         * tests/test-roundl.c (ASSERT): Likewise.
56378         * tests/test-signbit.c (ASSERT): Likewise.
56379         * tests/test-sleep.c (ASSERT): Likewise.
56380         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56381         * tests/test-snprintf.c (ASSERT): Likewise.
56382         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56383         * tests/test-stat-time.c (ASSERT): Likewise.
56384         * tests/test-strcasestr.c (ASSERT): Likewise.
56385         * tests/test-strerror.c (ASSERT): Likewise.
56386         * tests/test-striconv.c (ASSERT): Likewise.
56387         * tests/test-striconveh.c (ASSERT): Likewise.
56388         * tests/test-striconveha.c (ASSERT): Likewise.
56389         * tests/test-strsignal.c (ASSERT): Likewise.
56390         * tests/test-strstr.c (ASSERT): Likewise.
56391         * tests/test-strtod.c (ASSERT): Likewise.
56392         * tests/test-trunc1.c (ASSERT): Likewise.
56393         * tests/test-trunc2.c (ASSERT): Likewise.
56394         * tests/test-truncf1.c (ASSERT): Likewise.
56395         * tests/test-truncf2.c (ASSERT): Likewise.
56396         * tests/test-truncl.c (ASSERT): Likewise.
56397         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56398         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56399         * tests/test-vasnprintf.c (ASSERT): Likewise.
56400         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56401         * tests/test-vasprintf.c (ASSERT): Likewise.
56402         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56403         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56404         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56405         * tests/test-vsnprintf.c (ASSERT): Likewise.
56406         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56407         * tests/test-wcwidth.c (ASSERT): Likewise.
56408         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56409         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56410         * tests/test-xvasprintf.c (ASSERT): Likewise.
56411         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56412         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56413         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56414         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56415         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56416         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56417         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56418         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56419         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56420         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56421         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56422         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56423         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56424         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56425         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56426         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56427         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56428         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56429         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56430         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56431         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56432         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56433         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56434         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56435         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56436         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56437         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56438         * tests/unictype/test-combining.c (ASSERT): Likewise.
56439         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56440         * tests/unictype/test-digit.c (ASSERT): Likewise.
56441         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56442         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56443         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56444         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56445         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56446         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56447         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56448         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56449         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56450         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56451         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56452         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56453         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56454         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56455         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56456         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56457         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56458         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56459         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56460         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56461         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56462         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56463         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56464         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56465         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56466         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56467         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56468         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56469         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56470         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56471         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56472         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56473         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56474         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56475         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56476         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56477         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56478         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56479         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56480         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56481         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56482         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56483         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56484         Reported by Eric Blake.
56485
56486 2008-04-11  Bruno Haible  <bruno@clisp.org>
56487
56488         * lib/wchar.in.h: Tweak comment.
56489
56490 2008-04-11  Bruno Haible  <bruno@clisp.org>
56491
56492         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56493         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56494         gl_COMMON.
56495         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56496
56497 2008-04-11  Bruno Haible  <bruno@clisp.org>
56498
56499         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56500
56501 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56502
56503         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56504         of attempting to use non-existing /dev/*random.  Based on patch
56505         from Adam Strzelecki <ono@java.pl> in
56506         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56507
56508 2008-04-08  Bruno Haible  <bruno@clisp.org>
56509
56510         Add tentative support for emx+gcc.
56511         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56512         * lib/fpurge.c (fpurge): Likewise.
56513         * lib/freadable.c (freadable): Likewise.
56514         * lib/freadahead.c (freadahead): Likewise.
56515         * lib/freading.c (freading): Likewise.
56516         * lib/freadptr.c (freadptr): Likewise.
56517         * lib/freadseek.c (freadptrinc): Likewise.
56518         * lib/fseeko.c (rpl_fseeko): Likewise.
56519         * lib/fseterr.c (fseterr): Likewise.
56520         * lib/fwritable.c (fwritable): Likewise.
56521         * lib/fwriting.c (fwriting): Likewise.
56522         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56523
56524 2008-04-09  Eric Blake  <ebb9@byu.net>
56525
56526         Avoid some autoconf warnings.
56527         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56528         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56529         * m4/afs.m4 (gl_AFS): Likewise.
56530         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56531         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56532         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56533         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56534         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56535         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56536         (AC_CHECK_DECLS_ONCE): Likewise.
56537         Rename file...
56538         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56539         gnulib-tool requires autoconf 2.59 or better.
56540         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56541
56542 2008-04-08  Eric Blake  <ebb9@byu.net>
56543
56544         Use 'git describe --match' if present (added in git 1.5.5).
56545         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56546         if possible.
56547
56548 2008-04-08  Bruno Haible  <bruno@clisp.org>
56549
56550         Add tentative support for OpenServer.
56551         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56552         _ptr, _cnt.
56553         * lib/fpurge.c (fpurge): Likewise.
56554         * lib/freadable.c (freadable): Likewise.
56555         * lib/freadahead.c (freadahead): Likewise.
56556         * lib/freading.c (freading): Likewise.
56557         * lib/freadptr.c (freadptr): Likewise.
56558         * lib/freadseek.c (freadptrinc): Likewise.
56559         * lib/fseeko.c (rpl_fseeko): Likewise.
56560         * lib/fseterr.c (fseterr): Likewise.
56561         * lib/fwritable.c (fwritable): Likewise.
56562         * lib/fwriting.c (fwriting): Likewise.
56563         Reported by Roger Cornelius <rac@tenzing.org> and
56564         Brian K. White <brian@aljex.com>.
56565
56566 2008-04-06  Jim Meyering  <meyering@redhat.com>
56567
56568         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56569
56570 2008-04-06  Bruno Haible  <bruno@clisp.org>
56571
56572         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56573         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56574         * tests/test-printf-posix.sh: Likewise.
56575         * tests/test-vfprintf-posix.sh: Likewise.
56576         * tests/test-vprintf-posix.sh: Likewise.
56577         * tests/test-xprintf-posix.sh: Likewise.
56578
56579 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56580
56581         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56582         hide error from 'ls', needed on OS/2.
56583         Report by Elbert Pol <elbert.pol@gmail.com>.
56584
56585 2008-04-04  Eric Blake  <ebb9@byu.net>
56586
56587         Make test-fseeko.c failures meaningful.
56588         * tests/test-fseeko.c: Print line number on failure.
56589         * tests/test-fseek.c: Likewise.
56590         Reported by Nelson H. F. Beebe.
56591
56592         Improve strtod bug detection check.
56593         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56594         required for Solaris 10.
56595         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56596
56597 2008-04-04  Bruno Haible  <bruno@clisp.org>
56598
56599         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56600         by m4/setenv.m4.
56601
56602 2008-04-03  Eric Blake  <ebb9@byu.net>
56603
56604         Ensure sane .version contents.
56605         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56606         version string.
56607         * build-aux/git-version-gen: Improve documentation.
56608
56609         Make GNU make output nicer.
56610         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56611         MAKECMDGOALS to enforce message for all command line targets.  Set
56612         srcdir for use in maint.mk.
56613
56614         Another maintainer tweak.
56615         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56616         a target that regenerates version.
56617
56618 2008-04-03  Jim Meyering  <meyering@redhat.com>
56619
56620         vc-list-files: don't cause coreutils "make po-check" failure
56621         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56622
56623 2008-04-03  Eric Blake  <ebb9@byu.net>
56624
56625         Allow VPATH usage of vc-list-files.
56626         * build-aux/vc-list-files (scriptversion): Add timestamp.
56627         (options): Add --help, --version, -C.
56628         (CVS): Support installed cvsu.
56629
56630 2008-04-02  Bruno Haible  <bruno@clisp.org>
56631
56632         Avoid some "statement with no effect" warnings from gcc.
56633         * tests/test-wctype.c (main): Explicitly ignore unused values.
56634         Reported by Jim Meyering.
56635
56636 2008-04-02  Jim Meyering  <meyering@redhat.com>
56637
56638         Avoid some warnings from "gcc -Wshadow".
56639         * tests/test-frexp.c (exp): Define to a different identifier.
56640         * tests/test-frexpl.c (exp): Likewise.
56641
56642 2008-04-03  Jim Meyering  <meyering@redhat.com>
56643
56644         bootstrap: remove dangling *.[ch] symlinks from lib
56645         * build-aux/bootstrap [dangling symlink removal]: Move find's
56646         -depth option to precede all others, to avoid a warning.
56647         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56648
56649 2008-04-02  Bruno Haible  <bruno@clisp.org>
56650
56651         Avoid some warnings from "gcc -Wshadow".
56652         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56653         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56654         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56655         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56656         Reported by Jim Meyering.
56657
56658 2008-04-01  Bruno Haible  <bruno@clisp.org>
56659
56660         Fix test to work on IRIX 6.5 with cc.
56661         * tests/test-math.c (numeric_equal): New function.
56662         (main): Use it.
56663
56664 2008-04-01  Bruno Haible  <bruno@clisp.org>
56665
56666         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56667
56668 2008-04-01  Bruno Haible  <bruno@clisp.org>
56669
56670         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56671         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56672         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56673         (Depends-on): Remove math.
56674
56675         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56676         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56677         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56678         (Depends-on): Remove math.
56679
56680         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56681         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56682         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56683         (Depends-on): Remove math.
56684         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56685         (Depends-on): Remove math.
56686
56687         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56688         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56689         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56690         (Depends-on): Remove math.
56691         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56692         (Depends-on): Remove math.
56693
56694         * tests/test-round1.c: Include nan.h.
56695         (main): Use NaNd instead of NAN.
56696         * modules/round-tests (Files): Add tests/nan.h.
56697
56698         * tests/test-trunc1.c: Include nan.h.
56699         (main): Use NaNd instead of NAN.
56700         * modules/trunc-tests (Files): Add tests/nan.h.
56701
56702         * tests/test-roundf1.c: Include nan.h.
56703         (main): Use NaNf instead of NAN.
56704         * modules/roundf-tests (Files): Add tests/nan.h.
56705
56706         * tests/test-truncf1.c: Include nan.h.
56707         (main): Use NaNf instead of NAN.
56708         * modules/truncf-tests (Files): Add tests/nan.h.
56709
56710         * tests/test-ceilf1.c: Include nan.h.
56711         (main): Use NaNf instead of NAN.
56712         * modules/ceilf-tests (Files): Add tests/nan.h.
56713
56714         * tests/test-floorf1.c: Include nan.h.
56715         (main): Use NaNf instead of NAN.
56716         * modules/floorf-tests (Files): Add tests/nan.h.
56717
56718         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56719         (main): Use NaNf instead of NAN.
56720         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56721
56722         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56723         (main): Use NaNd instead of NAN.
56724         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56725
56726         * tests/test-frexp.c: Include nan.h.
56727         (main): Use NaNd instead of NAN.
56728         * modules/frexp-tests (Files): Add tests/nan.h.
56729
56730         * lib/isnan.c: Don't include <math.h>.
56731         (FUNC): Don't use NAN macro.
56732         * modules/isnand-nolibm (Depends-on): Remove math.
56733         * modules/isnanf-nolibm (Depends-on): Remove math.
56734         * modules/isnanl (Depends-on): Remove math.
56735         * modules/isnanl-nolibm (Depends-on): Remove math.
56736
56737         * tests/nan.h: New file.
56738
56739 2008-04-01  Eric Blake  <ebb9@byu.net>
56740
56741         Fix typos.
56742         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56743         values to be the right type.
56744
56745         For now, cater to gnulib strtod inaccuracies.
56746         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56747         fractional results.  While not as nice from a QoI perspective, it
56748         is a quicker patch than correctly implementing decimal to binary
56749         rounding.
56750
56751 2008-03-31  Eric Blake  <ebb9@byu.net>
56752
56753         Guarantee a definition of NAN.
56754         * lib/math.in.h (NAN): Define if missing.
56755         * tests/test-math.c (main): Test it.
56756         * doc/posix-headers/math.texi (math.h): Document this.
56757         * lib/isnan.c (rpl_isnand): Use it.
56758         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56759         * tests/test-floorf1.c (NaN): Likewise.
56760         * tests/test-frexp.c (NaN): Likewise.
56761         * tests/test-isnand.c (NaN): Likewise.
56762         * tests/test-isnanf.c (NaN): Likewise.
56763         * tests/test-round1.c (NaN): Likewise.
56764         * tests/test-roundf1.c (NaN): Likewise.
56765         * tests/test-snprintf-posix.h (NaN): Likewise.
56766         * tests/test-sprintf-posix.h (NaN): Likewise.
56767         * tests/test-trunc1.c (NaN): Likewise.
56768         * tests/test-truncf1.c (NaN): Likewise.
56769         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56770         * tests/test-vasprintf-posix.c (NaN): Likewise.
56771         * modules/isnand-nolibm (Depends-on): Add math.
56772         * modules/isnanf-nolibm (Depends-on): Likewise.
56773         * modules/isnanl (Depends-on): Likewise.
56774         * modules/isnanl-nolibm (Depends-on): Likewise.
56775         * modules/snprintf-posix-tests (Depends-on): Likewise.
56776         * modules/sprintf-posix-tests (Depends-on): Likewise.
56777         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56778         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56779         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56780         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56781
56782 2008-03-31  Bruno Haible  <bruno@clisp.org>
56783
56784         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56785         * doc/posix-functions/strtod.texi: Likewise.
56786
56787 2008-03-31  Bruno Haible  <bruno@clisp.org>
56788
56789         * tests/test-strtod.c (main): Don't use C99 syntax.
56790
56791 2008-03-31  Bruno Haible  <bruno@clisp.org>
56792
56793         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56794         Reported by Eric Blake.
56795
56796 2008-03-31  Jim Meyering  <meyering@redhat.com>
56797
56798         Don't compare actual signbit return values.
56799         * tests/test-strtod.c (main): Rather, compare only their
56800         zero/non-zero nature.
56801
56802 2008-03-31  Eric Blake  <ebb9@byu.net>
56803
56804         More strtod documentation.
56805         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56806         failures as distinct bugs.
56807
56808 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56809
56810         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56811         Problem reported by Erik Benada in
56812         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56813
56814 2008-03-30  Bruno Haible  <bruno@clisp.org>
56815
56816         * tests/test-strtod.c: Add comments about which assertion fails on which
56817         platform.
56818         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56819
56820 2008-03-30  Eric Blake  <ebb9@byu.net>
56821
56822         Test signbit behavior on zeros.
56823         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56824         (test_signbitd, test_signbitl): Likewise.
56825
56826         More strtod touchups.
56827         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56828         sign of negative underflow, for now.  Use .5, not .1.
56829         * doc/posix-functions/strtod.texi (strtod): Mention these
56830         limitations.
56831         Reported by Jim Meyering.
56832
56833 2008-03-30  Bruno Haible  <bruno@clisp.org>
56834
56835         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56836         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56837
56838 2008-03-30  Bruno Haible  <bruno@clisp.org>
56839
56840         Avoid failure when attempting to return empty iconv results on some
56841         platforms.
56842         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56843         allocation, don't report ENOMEM when the resulting string is empty.
56844
56845 2008-03-30  Bruno Haible  <bruno@clisp.org>
56846
56847         Fix buffer overrun.
56848         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56849         Don't consider the width for tmp_length. Check count against tmp_length
56850         before doing the padding. Ensure enough allocation during padding.
56851
56852 2008-03-30  Eric Blake  <ebb9@byu.net>
56853
56854         strtod touchups.
56855         * lib/strtod.c (strtod): Avoid compiler warnings.
56856         Reported by Jim Meyering.
56857
56858 2008-03-30  Bruno Haible  <bruno@clisp.org>
56859
56860         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56861         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56862         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56863         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56864         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56865         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56866         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56867         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56868
56869         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56870         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56871         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56872         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56873         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56874         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56875         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56876         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56877
56878         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56879         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56880         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56881         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56882         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56883         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56884         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56885         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56886
56887         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56888         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56889
56890         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56891         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56892
56893         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56894         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56895
56896         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56897         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56898         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56899
56900         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56901         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56902         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56903
56904         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56905         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56906         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56907
56908         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56909         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56910         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56911
56912         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56913         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56914         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56915         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56916         (Depends-on): Add EOVERFLOW.
56917         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56918         (Depends-on): Add EOVERFLOW.
56919         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56920         (Depends-on): Add EOVERFLOW.
56921         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56922         (Depends-on): Add EOVERFLOW.
56923         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56924         (Depends-on): Add EOVERFLOW.
56925         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56926         (Depends-on): Add EOVERFLOW.
56927         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56928         (Depends-on): Add EOVERFLOW.
56929         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56930         (Depends-on): Add EOVERFLOW.
56931
56932         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56933         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56934         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56935
56936         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56937         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56938         * modules/snprintf (Depends-on): Add EOVERFLOW.
56939
56940         * lib/poll.c (EOVERFLOW): Remove fallback.
56941         * modules/poll (Depends-on): Add EOVERFLOW.
56942
56943         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56944         * modules/getugroups (Depends-on): Add EOVERFLOW.
56945
56946         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56947         * modules/getdelim (Depends-on): Add EOVERFLOW.
56948
56949         * lib/ftell.c (EOVERFLOW): Remove fallback.
56950         * modules/ftell (Depends-on): Add EOVERFLOW.
56951
56952         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56953         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56954         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56955
56956         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56957
56958         * modules/EOVERFLOW-tests: New file.
56959         * tests/test-EOVERFLOW.c: New file.
56960
56961         * modules/EOVERFLOW: New file.
56962         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56963
56964 2008-03-30  Bruno Haible  <bruno@clisp.org>
56965
56966         Fix bug introduced on 2007-06-10.
56967         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56968         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56969
56970 2008-03-30  Bruno Haible  <bruno@clisp.org>
56971
56972         Improve freadseek's efficiency after ungetc.
56973         * lib/freadseek.c: Include freadahead.h.
56974         (freadptrinc): New function, extracted from freadseek.
56975         (freadseek): Use it in a loop. Use freadahead to determine the number
56976         of loop iterations.
56977         * modules/freadseek (Depends-on): Add freadahead.
56978         (configure.ac): Require AC_C_INLINE.
56979
56980 2008-03-30  Bruno Haible  <bruno@clisp.org>
56981
56982         * lib/freadseek.c (freadseek): Don't ignore the return value of
56983         freadptr.
56984
56985 2008-03-29  Eric Blake  <ebb9@byu.net>
56986
56987         Add hex float support.
56988         * modules/strtod (Depends-on): Add c-ctype.
56989         (Link): Mention POW_LIB.
56990         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56991         whitespace between 'e' and exponent.
56992         * tests/test-strtod.c (main): Enable hex float tests.
56993         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56994         now provides.
56995
56996         Document various strtod bugs, with some fixes.
56997         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56998         "-0x", "inf", "nan", and hex constants.
56999         * doc/posix-functions/atof.texi (atof): Likewise.
57000         * modules/stdlib (Makefile.am): Support strtod.
57001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57002         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57003         detect additional strtod bugs.
57004         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57005         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57006         bool where appropriate.  Parse 'inf' and 'nan'.
57007         * tests/test-strtod.c: New file.
57008         * modules/strtod (Depends-on): Add stdbool, stdlib.
57009         (configure.ac): Turn on module indicator.
57010         * modules/strtod-tests: New module.
57011
57012 2008-03-29  Eric Blake  <ebb9@byu.net>
57013
57014         Fix ftell on mingw.
57015         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57016         * modules/ftell-tests (Depends-on): Add binary-io.
57017         * modules/ftello-tests (Depends-on): Likewise.
57018         * tests/test-ftell.c (main): Enhance test to cover behavior after
57019         ungetc.  Enforce binary mode.
57020         * tests/test-ftello.c (main): Likewise.
57021
57022         Pass test-freadseek on cygwin.
57023         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57024         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57025         ungetc buffer.
57026
57027         * tests/test-fflush2.c (main): Fix typo.
57028
57029 2008-03-29  Bruno Haible  <bruno@clisp.org>
57030
57031         * tests/test-fflush2.c (main): Temporarily disable the contents of
57032         this test.
57033         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57034         Reported by Eric Blake.
57035
57036 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57037
57038         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57039         (GC_SHA224_DIGEST_SIZE): Add.
57040
57041         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57042         (gc_hash_digest_length): Likewise.
57043         (gc_hash_buffer): Likewise.
57044
57045 2008-03-25  Bruno Haible  <bruno@clisp.org>
57046
57047         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57048         detail which gettext release to use.
57049         Reported by Simon Josefsson.
57050
57051 2008-03-26  Jim Meyering  <meyering@redhat.com>
57052
57053         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57054         * modules/gnumakefile (clean-GNUmakefile): Also, use
57055         test ... && ... || : syntax rather than if-then ... fi.
57056
57057         gnumakefile: Don't double-quote-expand $(VPATH) value.
57058         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57059
57060 2008-03-24  Eric Blake  <ebb9@byu.net>
57061
57062         Alter GNUmakefile to install into top directory.
57063         * modules/maintainer-makefile: Split, and add dependency...
57064         * modules/gnumakefile: to this new module.
57065         * build-aux/GNUmakefile: Move...
57066         * top/GNUmakefile: ...here.
57067         * build-aux/maint.mk: Move...
57068         * top/maint.mk: ...here.
57069         * MODULES.html.sh (Support for maintaining...): Document new
57070         module.
57071
57072 2008-03-23  Bruno Haible  <bruno@clisp.org>
57073
57074         * gnulib-tool: New options --vc-files, --no-vc-files.
57075         (func_usage): Document them.
57076         (vc_files): New variable.
57077         (func_import): Consider vc_files.
57078         (func_create_testdir): Set vc_files to empty.
57079         Suggested by Jim Meyering and Karl Berry.
57080
57081 2008-03-23  Bruno Haible  <bruno@clisp.org>
57082
57083         Fix regex compilation error on HP-UX 11.
57084         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57085         * modules/regex (Files): Add m4/mbstate_t.m4.
57086         Reported by Ton Voon <ton.voon@altinity.com>.
57087
57088 2008-03-23  Bruno Haible  <bruno@clisp.org>
57089
57090         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57091
57092 2008-03-23  Eric Blake  <ebb9@byu.net>
57093             Bruno Haible  <bruno@clisp.org>
57094
57095         Install files from top/ in the destination directory.
57096         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57097         augmentation also for the files from top/.
57098         (func_import, func_create_testdir): Rewrite file names:
57099         top/filename -> filename.
57100
57101 2008-03-23  Bruno Haible  <bruno@clisp.org>
57102
57103         Tweak "gnulib --version" output.
57104         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57105
57106 2008-03-23  Bruno Haible  <bruno@clisp.org>
57107
57108         Tweak "gnulib --version" output.
57109         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57110         rather than contents of ChangeLog, when possible.
57111
57112 2008-03-21  Eric Blake  <ebb9@byu.net>
57113
57114         More --version tweaks.
57115         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57116         date of last ChangeLog entry.
57117
57118 2008-03-21  Jim Meyering  <meyering@redhat.com>
57119
57120         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57121
57122 2008-03-20  Eric Blake  <ebb9@byu.net>
57123
57124         VPATH fix.
57125         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57126
57127 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57128
57129         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57130         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57131
57132 2008-03-20  Eric Blake  <ebb9@byu.net>
57133
57134         Sync GNUmakefile with coreutils.
57135         * build-aux/GNUmakefile (have-Makefile): Rename...
57136         (_have-Makefile): ...to this, for namespace consideration.
57137         (GNUmakefile.cfg): Include, if present.
57138         (_autoreconf): Define a default.
57139         (_is-dist-target): New rule for rebuilds to pick up intra-release
57140         version.
57141         (maint-cfg.mk): Rename...
57142         (cfg.mk): ...to this.
57143
57144 2008-03-18  Jim Meyering  <meyering@redhat.com>
57145
57146         New script and module: mktempd
57147         * MODULES.html.sh (maint+release support): Add mktempd.
57148         * build-aux/mktempd: New file.
57149         * modules/mktempd: New file.
57150
57151 2008-03-15  Jim Meyering  <meyering@redhat.com>
57152
57153         Undo last change.
57154         * lib/sha1.c, lib/md5.c: 63 != ~63.
57155         Reported by Andreas Schwab.
57156
57157         sha1.c, md5.c: Hoist a redundant expression.
57158         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57159         "ctx->buflen" only once, before calling *_process_block.
57160         * lib/md5.c (md5_process_bytes): Likewise.
57161
57162 2008-03-14  Eric Blake  <ebb9@byu.net>
57163
57164         Bump copyright year in files generated by gnulib-tool.
57165         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57166         gnulib-tool, rather than hard-coding it.
57167
57168         Fix 'gnulib-tool --version' output to work with git.
57169         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57170         (startup): ...here.
57171         (func_version): Use it to invoke git-version-gen, rather than
57172         relying on CVS keyword expansion.  Modernize wording.
57173         (cvsdatestamp, last_checkin_date, version): Kill unused
57174         variables.
57175
57176 2008-03-12  Jim Meyering  <meyering@redhat.com>
57177
57178         Recognize optional cast of the argument to free.
57179         * build-aux/useless-if-before-free: Update regexps.
57180
57181         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57182
57183 2008-03-11  Bruno Haible  <bruno@clisp.org>
57184
57185         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57186         by a single package.
57187         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57188         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57189         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57190         Reported by Sam Steingold <sds@gnu.org>.
57191
57192 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57193
57194         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57195         repositories.
57196
57197 2008-03-11  Bruno Haible  <bruno@clisp.org>
57198
57199         Avoid conflicts between local macro definitions.
57200         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57201         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57202
57203 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57204             Bruno Haible  <bruno@clisp.org>
57205
57206         Make va_copy work with some version of xlc on AIX 5.1.
57207         * lib/stdarg.in.h: New file.
57208         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57209         On AIX, use a <stdarg.h> file substitute.
57210         * modules/stdarg (Files): Add lib/stdarg.in.h.
57211         (Depends-on): Add include_next.
57212         (Makefile.am): Build a stdarg.h substitute if requested.
57213         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57214
57215 2008-03-10  Bruno Haible  <bruno@clisp.org>
57216
57217         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57218         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57219         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57220
57221 2008-03-10  Bruno Haible  <bruno@clisp.org>
57222
57223         * modules/stdlib (Depends-on): Add include_next, remove
57224         absolute-header.
57225
57226 2008-03-09  Bruno Haible  <bruno@clisp.org>
57227
57228         * lib/freadahead.h (freadahead): Document more precisely.
57229         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57230         the sum of both buffer sizes.
57231         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57232         * NEWS: Document the change.
57233
57234 2008-03-09  Bruno Haible  <bruno@clisp.org>
57235
57236         Extend freadptr to return also the buffer size.
57237         * lib/freadptr.h (freadptr): Add sizep argument.
57238         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57239         (freadptr): Add sizep argument. Determine buffer size like freadahead
57240         does.
57241         * tests/test-freadptr.c: Don't include freadahead.h.
57242         (main): Adapt for new calling convention of freadptr.
57243         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57244         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57245         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57246         tests/test-freadptr2.sh.
57247         (Depends): Remove freadahead.
57248         (TESTS): Add test-freadptr2.sh.
57249         (check_PROGRAMS): Add test-freadptr2.
57250
57251 2008-03-09  Bruno Haible  <bruno@clisp.org>
57252
57253         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57254         Report and solution by Simon Josefsson.
57255
57256 2008-03-06  Bruno Haible  <bruno@clisp.org>
57257
57258         Make fflush after ungetc work on BSD platforms.
57259         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57260         * tests/test-fflush2.c: New file.
57261         * tests/test-fflush2.sh: New file.
57262         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57263         tests/test-fflush2.c.
57264         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57265         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57266
57267 2008-03-06  Eric Blake  <ebb9@byu.net>
57268
57269         Likewise for ftello.
57270         * modules/ftello (Dependencies): Add extensions.
57271         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57272
57273 2008-03-06  Bruno Haible  <bruno@clisp.org>
57274
57275         * modules/fseeko (Dependencies): Add extensions.
57276         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57277         Needed on glibc systems.
57278
57279 2008-03-06  Bruno Haible  <bruno@clisp.org>
57280
57281         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57282         email address.
57283         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57284
57285 2008-03-06  Bruno Haible  <bruno@clisp.org>
57286
57287         * users.txt: Add libgnupdf.
57288
57289 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57290
57291         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57292         (Header File Substitutes, Function Substitutes,
57293         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57294         (Build robot for gnulib): Fix typo.
57295
57296 2008-03-06  Bruno Haible  <bruno@clisp.org>
57297
57298         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57299         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57300
57301 2008-03-06  Bruno Haible  <bruno@clisp.org>
57302
57303         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57304         * doc/gnulib.texi: Include it.
57305
57306 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57307
57308         * modules/func (License): Change license to unlimited; there was
57309         no LGPL parts in the module anyway.
57310
57311 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57312
57313         * modules/__func__: Renamed to modules/func.
57314         * modules/__func__-tests: Renamed to modules/func-tests.
57315         * tests/test-__func__.c: Renamed to tests/test-func.c.
57316         * m4/__func__.m4: Renamed to m4/func.m4.
57317         * doc/gnulib.texi (__func__): Section renamed to func.
57318         Suggested by Eric Blake <ebb9@byu.net>.
57319
57320 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57321
57322         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57323         about __func__.  Make example self-contained.  Suggested by Eric
57324         Blake <ebb9@byu.net>.
57325
57326         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57327         Suggested by Eric Blake <ebb9@byu.net>.
57328
57329 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57330
57331         * modules/__func__: New file.
57332         * modules/__func__-tests: New file.
57333         * tests/test-__func__.c: New file.
57334         * m4/__func__.m4: New file.
57335         * doc/gnulib.texi (__func__): Document __func__ module.
57336
57337 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57338
57339         * modules/byteswap (License): Re-license as LGPLv2+.
57340
57341 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57342
57343         * doc/Makefile: Add pdf target.
57344
57345 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57346
57347         * modules/inline (License): Use 'unlimited', since there are only
57348         *.m4 files in this module.
57349
57350 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57351             Bruno Haible  <bruno@clisp.org>
57352
57353         Add support for HP C 7.1 on OpenVMS 8.3.
57354         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57355
57356 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57357
57358         Update VMS specifics.
57359         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57360
57361 2008-03-02  Jim Meyering  <meyering@redhat.com>
57362
57363         Remove the last dependency on the "free" module.
57364         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57365         Reported by Bob Proulx.
57366
57367         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57368
57369         Remove useless "if" tests before free.  Deprecate "free" module.
57370         * doc/posix-functions/free.texi: Mention that this
57371         module is no longer useful.
57372         * modules/free (Notice): Say this module is obsolete.
57373         * modules/readutmp (Depends-on): Remove free.
57374         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57375         * lib/putenv.c (putenv): Likewise.
57376         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57377         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57378         * tests/test-c-strcasestr.c (main): Likewise.
57379         * tests/test-c-strstr.c (main): Likewise.
57380         * tests/test-mbscasestr1.c (main): Likewise.
57381         * tests/test-mbscasestr2.c (main): Likewise.
57382         * tests/test-mbsstr1.c (main): Likewise.
57383         * tests/test-mbsstr2.c (main): Likewise.
57384         * tests/test-memmem.c (main): Likewise.
57385         * tests/test-strcasestr.c (main): Likewise.
57386         * tests/test-striconv.c (main): Likewise.
57387         * tests/test-striconveh.c (main): Likewise.
57388         * tests/test-striconveha.c (main): Likewise.
57389         * tests/test-strstr.c (main): Likewise.
57390
57391         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57392
57393         bootstrap: sync from coreutils again
57394         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57395
57396 2008-03-01  Jim Meyering  <meyering@redhat.com>
57397
57398         bootstrap: sync from coreutils
57399         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57400         also when the target doesn't exist.
57401
57402 2008-03-01  Eric Blake  <ebb9@byu.net>
57403
57404         Fix bugs in last patch.
57405         * lib/memchr2.c (memchr2): Fix typo.
57406         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57407         extension.
57408         Reported by Bruce Korb.
57409
57410         New module 'memchr2'.
57411         * modules/memchr2: New file.
57412         * modules/memchr2-tests: Likewise.
57413         * lib/memchr2.h: Likewise.
57414         * lib/memchr2.c: Likewise, based on memchr.c.
57415         * tests/test-memchr2.c: New test.
57416         * MODULES.html.sh (String handling): Add memchr2.
57417
57418 2008-02-29  Bruno Haible  <bruno@clisp.org>
57419
57420         * modules/freadseek-tests: New file.
57421         * tests/test-freadseek.sh: New file.
57422         * tests/test-freadseek.c: New file.
57423
57424         New module 'freadseek'.
57425         * modules/freadseek: New file.
57426         * lib/freadseek.h: New file.
57427         * lib/freadseek.c: New file.
57428         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57429
57430 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57431
57432         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57433         wydawca.
57434
57435         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57436         program_invocation_name and program_invocation_short_name are
57437         present.
57438
57439 2008-02-28  Bruno Haible  <bruno@clisp.org>
57440
57441         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57442         * tests/test-freadptr.sh: Also test non-seekable stdin.
57443
57444 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57445
57446         * build-aux/bootstrap (source_base, m4_base)
57447         (doc_base, tests_base): New variables.
57448         (gnulib_tool_options): Do not hardcode base directories, use
57449         the above variables instead.
57450
57451 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57452
57453         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57454
57455 2008-02-28  Bruno Haible  <bruno@clisp.org>
57456
57457         * modules/freadptr-tests: New file.
57458         * tests/test-freadptr.sh: New file.
57459         * tests/test-freadptr.c: New file.
57460
57461         New module 'freadptr'.
57462         * modules/freadptr: New file.
57463         * lib/freadptr.h: New file.
57464         * lib/freadptr.c: New file.
57465         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57466
57467 2008-02-26  Karl Berry  <karl@freefriends.org>
57468
57469         Sync from Libtool:
57470         * libltdl/argz.c (argz_add, argz_count): New functions.
57471         * libltdl/argz.in.h: Declare them.
57472         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57473
57474 2008-02-22  Bruno Haible  <bruno@clisp.org>
57475
57476         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57477         is a pointer type.  Needed for HP-UX 10.
57478         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57479         * doc/posix-functions/gmtime_r.texi: Likewise.
57480         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57481
57482 2008-02-24  Bruno Haible  <bruno@clisp.org>
57483
57484         * modules/environ-tests: New file.
57485         * tests/test-environ.c: New file.
57486
57487         New module 'environ'.
57488         * modules/environ: New file.
57489         * lib/unistd.in.h (environ): New declaration.
57490         * m4/environ.m4: New file.
57491         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57492         after use.
57493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57494         HAVE_DECL_ENVIRON.
57495         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57496         HAVE_DECL_ENVIRON.
57497         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57498         wrong claim that 'environ' is missing on some systems.
57499         * modules/execute (Depends-on): Add environ.
57500         * lib/execute.c (environ): Remove fallback declaration.
57501         * modules/pipe (Depends-on): Add environ.
57502         * lib/pipe.c (environ): Remove fallback declaration.
57503         * modules/setenv (Depends-on): Add environ.
57504         * lib/setenv.c (environ): Remove fallback declaration.
57505         * modules/unsetenv (Depends-on): Add environ.
57506         * lib/unsetenv.c (environ): Remove fallback declaration.
57507         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57508         m4/environ.m4.
57509         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57510         (gl_PREREQ_UNSETENV): Likewise.
57511
57512 2008-02-24  Bruno Haible  <bruno@clisp.org>
57513
57514         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57515
57516 2008-02-20  Bob Proulx  <bob@proulx.com>
57517
57518         Enable use of older two part flavor 'git describe'.
57519         * build-aux/git-version-gen: If using the older two part flavor of
57520         git version then recreate the third part now present in the
57521         newer three part flavor of git describe.
57522
57523 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57524
57525         * lib/fts.c (fts_build): Typo correction to comment.
57526
57527 2008-02-17  Bruno Haible  <bruno@clisp.org>
57528
57529         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57530         generating no-op conflicts.
57531
57532 2008-02-17  Bruno Haible  <bruno@clisp.org>
57533
57534         Speed up by 10%.
57535         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57536         result_entries, rather than an index-based loop.
57537
57538 2008-02-17  Bruno Haible  <bruno@clisp.org>
57539
57540         Speed up by 25%.
57541         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57542         'hashcode_cached'.
57543         (entry_create): New function.
57544         (entry_hashcode): Use the cached hashcode if possible.
57545         (read_changelog_file, try_split_merged_entry): Use entry_create.
57546
57547 2008-02-17  Bruno Haible  <bruno@clisp.org>
57548
57549         Speed up from O(n^2) to O(n) for long ChangeLog files.
57550         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57551         (read_changelog_file): Change implementation of entries_reversed list
57552         to rbtreehash.
57553         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57554
57555 2008-02-17  Bruno Haible  <bruno@clisp.org>
57556
57557         New option --split-merged-entry.
57558         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57559         (find_paragraph_end, try_split_merged_entry): New functions.
57560         (long_options): Add option --split-merged-entry.
57561         (usage): Document option --split-merged-entry.
57562         (main): Implement option --split-merged-entry.
57563         Reported by Eric Blake.
57564
57565 2008-02-17  Bruno Haible  <bruno@clisp.org>
57566
57567         * lib/git-merge-changelog.c: Include c-strstr.h.
57568         (main): Support the "git pull --rebase" situation.
57569         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57570         Reported by Eric Blake.
57571
57572 2008-02-16  Eric Blake  <ebb9@byu.net>
57573
57574         Avoid doubling \ in common case of "c-maybe" quoting style.
57575         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57576         eliding outer quotes.
57577         * lib/quotearg.h: Document this.
57578         * tests/test-quotearg.c (result_strings, inputs, results_g)
57579         (flag_results, locale_results): Test it by adding a new string to
57580         each test group.
57581         (compare_strings): Test new string.
57582
57583 2008-02-13  Eric Blake  <ebb9@byu.net>
57584
57585         Avoid trigraph quoting in default output.
57586         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57587         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57588         unless explicitly requested.
57589         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57590
57591 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57592
57593         Don't rely on signed integer overflowing to negative value.
57594         * lib/getugroups.c (getugroups): Include <limits.h>.
57595         Instead, compare against INT_MAX, and increment only if the test passes.
57596
57597 2008-02-13  Jim Meyering  <meyering@redhat.com>
57598         and Eric Blake  <ebb9@byu.net>
57599
57600         Avoid shadowing warning and compile errors on Linux.
57601         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57602         forwarding macros on Linux.
57603         (dcgettext): Define a stub, for Linux.
57604         (results_g, main): Avoid warnings.
57605
57606 2008-02-12  Eric Blake  <ebb9@byu.net>
57607
57608         Silence warning in last patch.
57609         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57610
57611         Quotearg part 4: add tests, fix c-maybe colon quoting.
57612         * lib/quotearg.h: Improve documentation.
57613         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57614         escapes when adding outer quotes.  When quoting trigraphs, use
57615         valid C notation.  When quoting NUL, omit extra characters if next
57616         character is not digit.  Alter prototype.
57617         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57618         callers.
57619         * modules/quotearg-tests: New module.
57620         * tests/test-quotearg.c: New test.
57621
57622 2008-02-07  Eric Blake  <ebb9@byu.net>
57623
57624         Quotearg part 3: add flag to control outer quote elision.
57625         * lib/quotearg.h (c_maybe_quoting_style): New style.
57626         (enum quoting_flags): Better documentation of flags.
57627         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57628         c-maybe style.
57629         (quotearg_buffer_restyled): Handle new flag to elide outer
57630         quotes.
57631
57632         Quotearg part 2: add flag that can control NUL elision.
57633         * lib/quotearg.h (set_quoting_flags): New prototype.
57634         * lib/quotearg.c (struct quoting_options): Add flag field.
57635         (set_quoting_flags): New function.
57636         (quotearg_buffer_restyled): Add flags parameter.
57637         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57638         (quotearg_n_options): Set the flag, since length cannot be
57639         returned.
57640         (quoting_options_from_style): Default flags correctly.
57641
57642         Quotearg part 1: more wrappers, restore quotearg_char state.
57643         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57644         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57645         (quotearg_colon_mem): New wrappers.
57646         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57647         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57648         functions.
57649         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57650         (quotearg_colon_mem): New functions.
57651
57652 2008-02-11  Bruno Haible  <bruno@clisp.org>
57653
57654         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57655         library in the current directory: it does not work with parallel make.
57656         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57657
57658 2008-02-11  Bruno Haible  <bruno@clisp.org>
57659
57660         * .gitattributes: New file.
57661
57662 2008-02-11  Jim Meyering  <meyering@redhat.com>
57663
57664         useless-if-before-free: Fix reversed exit values.
57665         * build-aux/useless-if-before-free: Use correct values
57666         for EXIT_MATCH and EXIT_NO_MATCH.
57667
57668         * build-aux/useless-if-before-free: Close stdout carefully.
57669
57670 2008-02-10  Bruno Haible  <bruno@clisp.org>
57671
57672         New module 'git-merge-changelog'.
57673         * modules/git-merge-changelog: New file.
57674         * lib/git-merge-changelog.c: New file.
57675
57676 2008-02-10  Jim Meyering  <meyering@redhat.com>
57677
57678         useless-if-before-free: New option: --list (-l).
57679
57680         useless-if-before-free: Don't exit immediately upon open failure.
57681         * build-aux/useless-if-before-free: Exit 2 for errors.
57682         Upon failure to open a file, don't exit immediately.
57683         Rather, just warn and continue with any remaining files.
57684
57685 2008-02-10  Bruno Haible  <bruno@clisp.org>
57686
57687         New abstract list operation 'node_set_value'.
57688         * lib/gl_list.h (gl_list_node_set_value): New function.
57689         (struct gl_list_implementation): New field node_set_value.
57690         * lib/gl_list.c (gl_list_node_set_value): New function.
57691         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57692         (gl_array_list_implementation): Update.
57693         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57694         (gl_carray_list_implementation): Update.
57695         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57696         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57697         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57698         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57699         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57700         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57701         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57702         Update.
57703         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57704         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57705         (gl_sublist_list_implementation): Update.
57706
57707 2008-02-10  Bruno Haible  <bruno@clisp.org>
57708
57709         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57710         Needed when ELEMENT is #defined to 'some_type *'.
57711
57712 2008-02-10  Jim Meyering  <meyering@redhat.com>
57713
57714         New script and module: useless-if-before-free
57715         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57716         * build-aux/useless-if-before-free: New file.
57717         * modules/useless-if-before-free: New file.
57718
57719         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57720
57721         xstrtol_error: Fix typo.
57722         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57723         s/exit_failure/exit_status/.
57724
57725 2008-02-09  Jim Meyering  <meyering@redhat.com>
57726
57727         New script and module: gitlog-to-changelog
57728         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57729         * modules/gitlog-to-changelog: New file.
57730         * build-aux/gitlog-to-changelog: New file.
57731
57732 2008-02-08  Jim Meyering  <meyering@redhat.com>
57733
57734         Avoid two "parameter unused" warnings.
57735         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57736         Mark "st" as used.
57737
57738         Use "git COMMAND", not "git-COMMAND".
57739         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57740         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57741         * build-aux/git-version-gen: Use "git status", not "git-status".
57742
57743 2008-02-07  Bruno Haible  <bruno@clisp.org>
57744
57745         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57746         Avoids a crash on Windows Vista.
57747         Reported by Adam Strzelecki <ono@java.pl> via
57748         Simon Josefsson <simon@josefsson.org>.
57749
57750 2008-02-06  Bruno Haible  <bruno@clisp.org>
57751
57752         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57753         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57754         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57755         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57756         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57757         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57758         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57759         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57760         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57761         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57762         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57763         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57764         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57765         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57766         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57767         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57768         left-adjust flag.
57769         * tests/test-snprintf-posix.h (test_function): Likewise.
57770         * tests/test-sprintf-posix.h (test_function): Likewise.
57771         * tests/test-vasprintf-posix.c (test_function): Likewise.
57772         * doc/posix-functions/fprintf.texi: Update.
57773         * doc/posix-functions/printf.texi: Update.
57774         * doc/posix-functions/snprintf.texi: Update.
57775         * doc/posix-functions/sprintf.texi: Update.
57776         * doc/posix-functions/vfprintf.texi: Update.
57777         * doc/posix-functions/vprintf.texi: Update.
57778         * doc/posix-functions/vsnprintf.texi: Update.
57779         * doc/posix-functions/vsprintf.texi: Update.
57780         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57781
57782 2008-02-06  Bruno Haible  <bruno@clisp.org>
57783
57784         Fix bug introduced on 2008-01-26.
57785         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57786
57787 2008-02-06  Bruno Haible  <bruno@clisp.org>
57788
57789         Fix bug introduced on 2007-06-10.
57790         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57791         !NEED_PRINTF_FLAG_ZERO.
57792
57793 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57794
57795         getloadavg: use libperfstat on AIX5
57796         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57797
57798 2008-02-03  Bruno Haible  <bruno@clisp.org>
57799
57800         * lib/diffseq.h: Add comments about required #includes.
57801         Reported by Michael Biggs <gnulib@doubleplum.net>.
57802
57803 2008-02-01  Bruno Haible  <bruno@clisp.org>
57804
57805         * users.txt: Add gnuit.
57806
57807 2008-01-31  Bruno Haible  <bruno@clisp.org>
57808
57809         * lib/md4.c (set_uint32): Mark as inline.
57810         * lib/md5.c (set_uint32): Likewise.
57811         * lib/sha1.c (set_uint32): Likewise.
57812         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57813         * m4/md5.m4 (gl_MD5): Likewise.
57814         * m4/sha1.m4 (gl_SHA1): Likewise.
57815
57816 2008-01-31  Jim Meyering  <meyering@redhat.com>
57817
57818         Use "sizeof VAR", rather than a literal "4".
57819         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57820         * lib/md4.c (md4_read_ctx): Likewise.
57821         * lib/sha1.c (sha1_read_ctx): Likewise.
57822
57823 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57824
57825         * tests/test-sha1.c: New file, based on test-md5.c.
57826
57827         * modules/crypto/sha1-tests: New file.
57828
57829 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57830
57831         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57832
57833 2008-01-31  Jim Meyering  <meyering@redhat.com>
57834
57835         Prefer "sizeof v" over the equivalent "4".
57836         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57837         * lib/md5.c (set_uint32): Likewise.
57838         * lib/sha1.c (set_uint32): Likewise.
57839
57840 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57841
57842         * lib/sha1.c (set_uint32): Mark function as static.
57843
57844 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57845
57846         md2: clarify comments to say that alignment is not required.
57847         * lib/md2.h: Remove warning about alignment in comment.
57848         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57849         never been required.
57850
57851 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57852
57853         md4: adapt alignment constraint fix from sha1.
57854         * lib/md4.c (set_uint32): New function, from sha1.c
57855         (md4_read_ctx): Use it.
57856         (md4_finish_ctx): Doc fix.
57857         * lib/md4.h: Doc fix.
57858
57859 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57860
57861         md5: adapt alignment constraint fix from sha1.
57862         * lib/md5.c (set_uint32): New function, from sha1.c
57863         (md5_read_ctx): Use it.
57864         (md5_finish_ctx): Doc fix.
57865         * lib/md5.h: Doc fix.
57866
57867 2008-01-30  Peter Palfrader  <weasel@debian.org>
57868
57869         sha1: remove the result buffer alignment constraint
57870         * lib/sha1.c (set_uint32): New function.
57871         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57872         constraint.
57873         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57874         * lib/sha1.h: Likewise.
57875
57876 2008-01-30  Andreas Schwab  <schwab@suse.de>
57877             Bruno Haible  <bruno@clisp.org>
57878
57879         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57880         correct definition of LDBL_MIN_EXP.
57881
57882 2008-01-30  Karl Berry  <karl@gnu.org>
57883
57884         * config/srclist-update: try to preserve x bit on updates.
57885         * config/srclistvars.sh: update for karl.
57886
57887 2008-01-29  Jim Meyering  <meyering@redhat.com>
57888
57889         vasnprintf.c: Avoid warning about unused label
57890         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57891         "overflow" label definition and associated code with the
57892         same cpp condition that guards the sole use of that label.
57893
57894 2008-01-26  Bruno Haible  <bruno@clisp.org>
57895
57896         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57897         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57898         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57899         * lib/isnanl-nolibm.h (isnanl): Likewise.
57900         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57901
57902 2008-01-26  Bruno Haible  <bruno@clisp.org>
57903
57904         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57905         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57906
57907 2008-01-26  Bruno Haible  <bruno@clisp.org>
57908
57909         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57910         GCC >= 4.0 built-in.
57911         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57912
57913 2008-01-26  Bruno Haible  <bruno@clisp.org>
57914
57915         Rename isnan, applicable to 'double' only, to isnand.
57916         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57917         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57918         (configure.ac): Update.
57919         (Include): Replace "isnan.h" with "isnand.h".
57920         * m4/isnand.m4: Renamed from m4/isnan.m4.
57921         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57922         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57923         instead of isnan.c.
57924         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57925         instead of HAVE_ISNAN_IN_LIBC.
57926         (isnand): Renamed from isnan.
57927         * lib/isnand.c: New file.
57928         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57929         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57930         (Makefile.am): Update.
57931         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57932         Include isnand.h instead of isnan.h.
57933         (main): Test isnand instead of isnan.
57934         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57935         isnan-nolibm.
57936         * modules/frexp (Depends-on): Likewise.
57937         * modules/frexp-tests (Depends-on): Likewise.
57938         * modules/frexp-nolibm (Depends-on): Likewise.
57939         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57940         * modules/isfinite (Depends-on): Likewise.
57941         * modules/round-tests (Depends-on): Likewise.
57942         * modules/signbit (Depends-on): Likewise.
57943         * modules/signbit-tests (Depends-on): Likewise.
57944         * modules/snprintf-posix (Depends-on): Likewise.
57945         * modules/sprintf-posix (Depends-on): Likewise.
57946         * modules/trunc-tests (Depends-on): Likewise.
57947         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57948         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57949         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57950         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57951         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57952         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57953         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57954         * modules/vasnprintf-posix (Depends-on): Likewise.
57955         * modules/vasprintf-posix (Depends-on): Likewise.
57956         * modules/vfprintf-posix (Depends-on): Likewise.
57957         * modules/vsnprintf-posix (Depends-on): Likewise.
57958         * modules/vsprintf-posix (Depends-on): Likewise.
57959         * lib/frexp.c: Include isnand.h instead of isnan.h.
57960         (ISNAN): Set to isnand instead of isnan.
57961         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57962         (gl_isfinited): Use isnand instead of isnan.
57963         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57964         (gl_signbitd): Use isnand instead of isnan.
57965         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57966         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57967         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57968         (main): Use isnand instead of isnan.
57969         * tests/test-round1.c: Include isnand.h.
57970         (main): Use isnand instead of isnan.
57971         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57972         (ISNAN): Set to isnand instead of isnan.
57973         * tests/test-trunc1.c: Include isnand.h.
57974         (main): Use isnand instead of isnan.
57975         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57976         (equal): Use isnand instead of isnan.
57977         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57978         isnand-nolibm.
57979         * NEWS: Mention the change.
57980
57981 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57982             Bruno Haible  <bruno@clisp.org>
57983
57984         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57985         the GCC builtins for signbits are present and set
57986         REPLACE_SIGNBIT_USING_GCC if so.
57987         * lib/math.in.h (signbit): Define using GCC builtins if
57988         REPLACE_SIGNBIT_USING_GCC is set.
57989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57990         REPLACE_SIGNBIT_USING_GCC.
57991         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57992
57993 2008-01-25  Jim Meyering  <meyering@redhat.com>
57994
57995         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57996         * lib/poll.c: Include <config.h>, not "config.h".
57997         * tests/test-getaddrinfo.c: Likewise.
57998
57999 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58000
58001         * modules/sockets-tests: New file.
58002
58003 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58004
58005         * modules/sockets: New module, can be used to call WSA_Startup and
58006         WSA_Cleanup when needed.
58007
58008         * lib/sockets.h, lib/sockets.c: New files.
58009
58010         * m4/sockets.m4: New file.
58011
58012         * tests/test-sockets.c: New file.
58013
58014 2008-01-19  Bruno Haible  <bruno@clisp.org>
58015
58016         * doc/posix-headers: Renamed from doc/headers.
58017         * doc/posix-functions: Renamed from doc/functions.
58018         * doc/gnulib.texi: Update.
58019
58020 2008-01-19  Bruno Haible  <bruno@clisp.org>
58021
58022         * doc/glibc-functions/strcasestr.texi: Include contents of
58023         doc/functions/strcasestr.texi, fixing the list of platforms.
58024         * doc/functions/strcasestr.texi: Remove file.
58025
58026 2008-01-19  Bruno Haible  <bruno@clisp.org>
58027
58028         * doc/glibc-functions/memmem.texi: Include contents of
58029         doc/functions/memmem.texi.
58030         * doc/functions/memmem.texi: Remove file.
58031
58032 2008-01-18  Bruno Haible  <bruno@clisp.org>
58033
58034         * doc/glibc-functions/*.texi: New files.
58035         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58036         to use the new files.
58037
58038 2008-01-17  Bruno Haible  <bruno@clisp.org>
58039
58040         * tests/test-gethostname.c (main): Fix printf statement.
58041
58042 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58043
58044         * modules/gethostname-tests: New file.
58045
58046         * tests/test-gethostname.c: New file.
58047
58048 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58049
58050         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58051         used by the UNAME case.  Reported by Bruno Haible
58052         <bruno@clisp.org>.
58053
58054 2008-01-17  Eric Blake  <ebb9@byu.net>
58055
58056         Convert c-strcasestr to be more efficient.
58057         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58058         (Depends-on): Add c-strcase, remove malloca, strnlen.
58059         * tests/test-c-strcasestr.c (main): Enhance test.
58060         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58061
58062 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58063
58064         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58065         Use it in creating po/Makevars.
58066
58067 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58068
58069         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58070         Applications that requires it should initialize libgcrypt
58071         manually.
58072
58073 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58074
58075         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58076
58077 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58078
58079         Fix problem with getdate on mingw32 reported by Simon Josefsson
58080         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58081         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58082         tzname", when deciding whether to declare tzname.
58083         * lib/strftime.c (tzname): Likewise.
58084
58085 2008-01-15  Bruno Haible  <bruno@clisp.org>
58086
58087         Work around a MacOS X 10.5 bug in frexpl().
58088         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58089         * doc/functions/frexpl.texi: Document the bug.
58090         Reported by Elias Pipping <pipping@gentoo.org>.
58091
58092 2008-01-14  Eric Blake  <ebb9@byu.net>
58093
58094         Touch up previous patch.
58095         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58096         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58097
58098         Convert strcasestr module to use Two-Way algorithm.
58099         * modules/strcasestr-simple: New module, based on the old
58100         strcasestr, but with Two-Way rather than KMP.
58101         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58102         * lib/string.in.h (rpl_strcasestr): Declare.
58103         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58104         performance.
58105         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58106         * modules/string (Makefile.am): Support strcasestr.
58107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58108         * modules/strcasestr-tests (Depends-on): Check for alarm.
58109         * tests/test-strcasestr.c: Augment test.
58110         * lib/str-two-way.h: Clean up stray macro.
58111         * NEWS: Document new module.
58112         * MODULES.html.sh (string handling): Likewise.
58113         * doc/functions/strcasestr.texi: New file.
58114         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58115         here, since it is not a POSIX function.
58116
58117 2008-01-14  Colin Watson  <cjwatson@debian.org>
58118             Bruno Haible  <bruno@clisp.org>
58119
58120         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58121         works fine; if not, set REPLACE_STRSIGNAL.
58122         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58123         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58124         REPLACE_STRSIGNAL.
58125         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58126         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58127         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58128
58129 2008-01-14  Bruno Haible  <bruno@clisp.org>
58130
58131         * modules/strsignal (Include): Change to <string.h>.
58132
58133 2008-01-14  Colin Watson  <cjwatson@debian.org>
58134
58135         * modules/argp (Notice): Add a notice recommending to change
58136         XGETTEXT_OPTIONS.
58137         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58138
58139 2008-01-13  Colin Watson  <cjwatson@debian.org>
58140
58141         * modules/strsignal-tests: New file.
58142         * tests/test-strsignal.c: New file.
58143
58144         * lib/strsignal.c: New file, from glibc with modifications.
58145         * lib/siglist.h: New file, from glibc with modifications.
58146         * lib/string.in.h (strsignal): New declaration.
58147         * m4/strsignal.m4: New file.
58148         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58149         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58150         * modules/strsignal: New file.
58151         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58152         HAVE_DECL_STRSIGNAL.
58153
58154 2008-01-13  Bruno Haible  <bruno@clisp.org>
58155
58156         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58157         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58158         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58159         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58160
58161 2008-01-13  Bruno Haible  <bruno@clisp.org>
58162
58163         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58164         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58165         * lib/argp.h (__attribute__): Likewise.
58166         * lib/c-stack.c (__attribute__): Likewise.
58167         * lib/error.h (__attribute__): Likewise.
58168         * lib/fts.c (__attribute__): Likewise.
58169         * lib/openat.h (__attribute__): Likewise.
58170         * lib/stdio.in.h (__attribute__): Likewise.
58171         * lib/string.in.h (__attribute__): Likewise.
58172         * lib/utimens.c (__attribute__): Likewise.
58173         * lib/vasnprintf.h (__attribute__): Likewise.
58174         * lib/xalloc.h (__attribute__): Likewise.
58175         * lib/xprintf.h (__attribute__): Likewise.
58176         * lib/xstrtol.h (__attribute__): Likewise.
58177         * lib/xvasprintf.h (__attribute__): Likewise.
58178
58179 2008-01-12  Bruno Haible  <bruno@clisp.org>
58180
58181         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58182         * doc/glibc-headers/a.out.texi: New file.
58183         * doc/glibc-headers/aliases.texi: New file.
58184         * doc/glibc-headers/alloca.texi: New file.
58185         * doc/glibc-headers/ar.texi: New file.
58186         * doc/glibc-headers/argp.texi: New file.
58187         * doc/glibc-headers/argz.texi: New file.
58188         * doc/glibc-headers/byteswap.texi: New file.
58189         * doc/glibc-headers/crypt.texi: New file.
58190         * doc/glibc-headers/endian.texi: New file.
58191         * doc/glibc-headers/envz.texi: New file.
58192         * doc/glibc-headers/err.texi: New file.
58193         * doc/glibc-headers/error.texi: New file.
58194         * doc/glibc-headers/execinfo.texi: New file.
58195         * doc/glibc-headers/fpu_control.texi: New file.
58196         * doc/glibc-headers/fstab.texi: New file.
58197         * doc/glibc-headers/fts.texi: New file.
58198         * doc/glibc-headers/getopt.texi: New file.
58199         * doc/glibc-headers/ieee754.texi: New file.
58200         * doc/glibc-headers/ifaddrs.texi: New file.
58201         * doc/glibc-headers/libintl.texi: New file.
58202         * doc/glibc-headers/mcheck.texi: New file.
58203         * doc/glibc-headers/mntent.texi: New file.
58204         * doc/glibc-headers/obstack.texi: New file.
58205         * doc/glibc-headers/paths.texi: New file.
58206         * doc/glibc-headers/printf.texi: New file.
58207         * doc/glibc-headers/pty.texi: New file.
58208         * doc/glibc-headers/resolv.texi: New file.
58209         * doc/glibc-headers/shadow.texi: New file.
58210         * doc/glibc-headers/sysexits.texi: New file.
58211         * doc/glibc-headers/ttyent.texi: New file.
58212
58213 2008-01-12  Jim Meyering  <meyering@redhat.com>
58214
58215         announce-gen: emit Gnulib's git-based version string.
58216         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58217         New option --gnulib-version=V, where V is expected to be
58218         the output of running git describe in the gnulib directory.
58219         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58220         not useful, and plan to stop publishing an xdelta file with each
58221         coreutils release.
58222
58223         * build-aux/announce-gen: Also check for lzma-compressed files.
58224
58225 2008-01-11  Bruno Haible  <bruno@clisp.org>
58226
58227         * tests/test-memmem.c (main): Increase maximum allowed time.
58228         * tests/test-strstr.c (main): Likewise.
58229
58230 2008-01-11  Bruno Haible  <bruno@clisp.org>
58231
58232         * doc/functions/memmem.texi: Add more precisions about platforms.
58233         * doc/functions/strstr.texi: Likewise.
58234
58235 2008-01-10  Eric Blake  <ebb9@byu.net>
58236
58237         * m4/strstr.m4: Delete cruft from copy-n-paste.
58238         Reported by Bruno Haible.
58239
58240 2008-01-10  Bruno Haible  <bruno@clisp.org>
58241
58242         Make c-strstr rely on strstr.
58243         * lib/c-strstr.c: Don't include str-kmp.h.
58244         (c_strstr): Define in terms of strstr.
58245         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58246         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58247
58248 2008-01-10  Bruno Haible  <bruno@clisp.org>
58249
58250         * doc/gnulib.texi (String Functions in C Locale): New section.
58251         * doc/c-ctype.texi: New file.
58252         * doc/c-strcase.texi: New file.
58253         * doc/c-strcaseeq.texi: New file.
58254         * doc/c-strcasestr.texi: New file.
58255         * doc/c-strstr.texi: New file.
58256         * doc/c-strtod.texi: New file.
58257         * doc/c-strtold.texi: New file.
58258
58259 2008-01-10  Eric Blake  <ebb9@byu.net>
58260
58261         * lib/relocatable.h: Fix a comment.
58262
58263 2008-01-10  Eric Blake  <ebb9@byu.net>
58264
58265         Share two-way algorithm.
58266         * lib/str-two-way.h: New file, merged from...
58267         * lib/memmem.c: ...here...
58268         * lib/strstr.c: ...and here.
58269         * modules/memmem (Files): Use it.
58270         * modules/strstr (Files): Likewise.
58271
58272         Avoid quadratic strstr implementations.
58273         * lib/strstr.c: New file.
58274         * m4/strstr.m4: Likewise.
58275         * modules/strstr: Likewise.
58276         * modules/strstr-tests: Likewise.
58277         * tests/test-strstr.c: Likewise.
58278         * lib/string.in.h (rpl_strstr): Declare.
58279         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58280         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58281         * modules/string (Makefile.am): Likewise.
58282         * MODULES.html.sh (string handling): Mention new module.
58283         * doc/functions/strstr.texi (strstr): Document the bug.
58284
58285 2008-01-10  Bruno Haible  <bruno@clisp.org>
58286
58287         * lib/relocatable.h (relocate): State whether result is freshly
58288         allocated or not.
58289         * lib/relocatable.c (relocate): Return a freshly allocated string
58290         instead of a pointer to a privately held string.
58291         Reported by Sylvain Beucler <beuc@gnu.org>.
58292
58293 2008-01-10  Colin Watson  <cjwatson@debian.org>
58294
58295         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58296         s/S_ISNLK/S_ISLNK/.
58297
58298 2008-01-09  Bruno Haible  <bruno@clisp.org>
58299
58300         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58301         and other files.
58302         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58303         if it's only a guess.
58304         * modules/memmem: Simplify by depending on memmem-simple.
58305
58306 2008-01-09  Bruno Haible  <bruno@clisp.org>
58307
58308         Work around OpenBSD 4.0 tdelete() bug.
58309         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58310         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58311         macros and don't redefine the enum values.
58312         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58313         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58314         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58315
58316 2008-01-09  Bruno Haible  <bruno@clisp.org>
58317
58318         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58319         (main): Don't perform the tests if setlocale did not install a UTF-8
58320         locale. Needed on OpenBSD 4.0.
58321         * modules/wcwidth-tests (Depends-on): Add localcharset.
58322
58323 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58324
58325         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58326         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58327         * NEWS: announce this.
58328         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58329
58330 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58331         and Eric Blake  <ebb9@byu.net>
58332
58333         Add memmem-simple module.
58334         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58335         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58336         * modules/memmem-simple: New file.
58337         * modules/memmem (Description): Tweak.
58338         * MODULES.html.sh (string handling): Mention new module.
58339         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58340         addressed by memmem-simple.
58341         * NEWS: Document the difference.
58342
58343 2008-01-09  Eric Blake  <ebb9@byu.net>
58344
58345         Give gcc some memmem optimization hints.
58346         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58347         (strcasestr): Declare as pure.
58348         * modules/memmem (Maintainer): Claim my implementation.
58349
58350 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58351
58352         Support AIX 6.1 and higher.
58353         * build-aux/config.libpath: Likewise.
58354         * build-aux/config.rpath: Likewise.
58355
58356 2008-01-08  Jim Meyering  <meyering@redhat.com>
58357             Bruno Haible  <bruno@clisp.org>
58358
58359         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58360         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58361         Reported by Peter Fales in
58362         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58363
58364 2008-01-08  Bruno Haible  <bruno@clisp.org>
58365
58366         * modules/unictype/category-of (Depends-on): Add
58367         unictype/category-none.
58368         * modules/unictype/category-and-tests (Depends-on): Add
58369         unictype/category-{L,N,Lu,Nd}.
58370         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58371         * modules/unictype/category-or-tests (Depends-on): Add
58372         unictype/category-{L,N}.
58373         * modules/unictype/category-name-tests (Depends-on): Add
58374         unictype/category-{Z,Nl}.
58375         Reported by Simon Josefsson.
58376
58377 2008-01-08  Bruno Haible  <bruno@clisp.org>
58378
58379         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58380         convention better.
58381         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58382         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58383         Reported by Peter Miller <millerp@canb.auug.org.au>.
58384
58385 2008-01-08  Eric Blake  <ebb9@byu.net>
58386
58387         Rewrite memmem to guarantee linear complexity without malloc.
58388         * lib/memmem.c (memmem): Use Two-Way rather than
58389         Knuth-Morris-Pratt, to allow O(1) space usage.
58390         (critical_factorization, two_way_short_needle)
58391         (two_way_long_needle): New functions.
58392         (knuth_morris_pratt): Delete.
58393         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58394         Add stdint.
58395         * tests/test-memmem.c (main): Add tests for periodic needle and
58396         sublinear performance.
58397         * doc/functions/memmem.texi (memmem): Document other deficiencies
58398         in cygwin and older glibc.
58399
58400 2008-01-08  Bruno Haible  <bruno@clisp.org>
58401
58402         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58403         augmentation.
58404
58405 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58406
58407         Add a configure time option: --disable-acl.
58408         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58409         AC_ARG_ENABLE(acl).
58410
58411 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58412
58413         * tests/test-localename.c: Don't include obsolete "setenv.h".
58414
58415         * modules/localename-tests (Depends-on): Need unsetenv.
58416
58417 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58418
58419         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58420
58421 2008-01-06  Colin Watson  <cjwatson@debian.org>
58422
58423         * users.txt: Add man-db.
58424
58425 2008-01-07  Bruno Haible  <bruno@clisp.org>
58426
58427         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58428         previous section name.
58429
58430 2008-01-07  Bruno Haible  <bruno@clisp.org>
58431
58432         * lib/progname.c (set_program_name): Don't strip off a leading
58433         "lt-" prefix outside a .libs directory.
58434         Suggested by Paul Eggert.
58435
58436 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58437             Bruno Haible  <bruno@clisp.org>
58438
58439         Improve memory cleanup in 'relocatable' module.
58440         * lib/relocatable.h (compute_curr_prefix): Change return type to
58441         'char *'.
58442         * lib/relocatable.c (compute_curr_prefix): Change return type to
58443         'char *'. Free curr_installdir after use.
58444         (relocate): Free curr_prefix_better after use.
58445         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58446
58447 2008-01-01  Bruno Haible  <bruno@clisp.org>
58448
58449         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58450         failure on older glibc systems.
58451         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58452
58453 2008-01-05  Eric Blake  <ebb9@byu.net>
58454
58455         Avoid quadratic system memmem.
58456         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58457         Reported by Ralf Wildenhues.
58458
58459         Fix memmem test for mingw.
58460         * modules/memmem-tests (configure.ac): Check for alarm.
58461         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58462         it.
58463         * doc/functions/memmem.texi: New file.
58464         * doc/gnulib.texi (Function Substitutes): Add memmem.
58465         Reported by Bruno Haible.
58466
58467 2008-01-04  Bruno Haible  <bruno@clisp.org>
58468
58469         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58470         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58471         gl_HEADER_STRING_H_DEFAULTS.
58472
58473 2008-01-04  Eric Blake  <ebb9@byu.net>
58474
58475         Shorten duration of memmem test.
58476         * tests/test-memmem.c (main): Use alarm to declare failure if test
58477         is taking too long.
58478         Reported by Ralf Wildenhues.
58479
58480 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58481
58482         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58483         string, needed by strerror.
58484
58485 2008-01-03  Colin Watson  <cjwatson@debian.org>
58486             Bruno Haible  <bruno@clisp.org>
58487
58488         * doc/gnulib-tool.texi (Localization): New section.
58489
58490 2008-01-02  Bruno Haible  <bruno@clisp.org>
58491
58492         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58493         variables to 'unsigned char *' type.
58494         Reported by Paul Eggert.
58495
58496 2008-01-02  Jim Meyering  <jim@meyering.net>
58497
58498         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58499
58500 2007-12-31  Jim Meyering  <jim@meyering.net>
58501
58502         Avoid use of private FTS type name.
58503         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58504
58505 2007-12-30  Karl Berry  <karl@gnu.org>
58506
58507         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58508         work around defect in Texinfo and/or the standalone Info browser.
58509
58510 2007-12-30  Bruno Haible  <bruno@clisp.org>
58511
58512         Unify 5 copies of the KMP code.
58513         * lib/str-kmp.h: New file.
58514         * lib/c-strcasestr.c: Include str-kmp.h.
58515         (knuth_morris_pratt): Remove function.
58516         (c_strcasestr): Update.
58517         * lib/c-strstr.c: Include str-kmp.h.
58518         (knuth_morris_pratt): Remove function.
58519         (c_strcasestr): Update.
58520         * lib/mbscasestr.c: Include str-kmp.h.
58521         (knuth_morris_pratt_unibyte): Remove function.
58522         * lib/mbsstr.c: Include str-kmp.h.
58523         (knuth_morris_pratt_unibyte): Remove function.
58524         * lib/strcasestr.c: Include str-kmp.h.
58525         (knuth_morris_pratt): Remove function.
58526         (strcasestr): Update.
58527         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58528         * modules/c-strstr (Files): Likewise.
58529         * modules/mbscasestr (Files): Likewise.
58530         * modules/mbsstr (Files): Likewise.
58531         * modules/strcasestr (Files): Likewise.
58532         Suggested by Paul Eggert.
58533
58534 2007-12-30  Bruno Haible  <bruno@clisp.org>
58535
58536         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58537         defined.
58538
58539 2007-12-30  Bruno Haible  <bruno@clisp.org>
58540
58541         * lib/xmalloca.h: Include xalloc.h.
58542         (xnmalloca): New macro.
58543
58544 2007-12-30  Bruno Haible  <bruno@clisp.org>
58545
58546         * lib/malloca.h (nmalloca): New macro.
58547         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58548         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58549         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58550         knuth_morris_pratt_multibyte): Likewise.
58551         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58552         knuth_morris_pratt_multibyte): Likewise.
58553         * lib/memmem.c (knuth_morris_pratt): Likewise.
58554         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58555
58556 2007-12-25  Bruno Haible  <bruno@clisp.org>
58557
58558         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58559         * lib/glob.c: Don't include openat.h.
58560         (link_exists2_p): Add back the code that deals with the
58561         !GLOB_ALTDIRFUNC case.
58562         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58563         let it do the filename concatenation.
58564         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58565         * modules/glob (Depends-on): Remove openat.
58566
58567 2007-12-31  Bruno Haible  <bruno@clisp.org>
58568
58569         * modules/dirfd (License): Change to LGPLv2+.
58570         Approved by Jim Meyering.
58571
58572 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58573
58574         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58575         when multiplying M by sizeof (size_t).
58576
58577 2007-12-10  Martin Lambers  <marlam@marlam.de>
58578
58579         Override getpagesize on mingw.
58580         * lib/getpagesize.c: New file.
58581         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58582         * modules/getpagesize (Files): Add lib/getpagesize.c.
58583         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58585         REPLACE_GETPAGESIZE.
58586         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58587
58588 2007-12-25  Bruno Haible  <bruno@clisp.org>
58589
58590         * modules/localcharset (Notice): New field.
58591         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58592         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58593
58594 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58595             Bruno Haible  <bruno@clisp.org>
58596
58597         Avoid using the syntax symbol() in formatted documentation.
58598         * MODULES.html.sh (func_module): When replacing symbol() with a
58599         hyperlink, remove the parentheses. Show an error if some remain.
58600         Recognize and render the '...' syntax.
58601         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58602         Rework. Add paragraph about GCC's inlining.
58603         * doc/alloca.texi: Likewise.
58604         * doc/error.texi: Remove parentheses from symbol reference.
58605         * doc/gnulib-intro.texi: Likewise.
58606         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58607         * modules/fnmatch (Description): Reword to say "the ... function".
58608         * modules/full-read (Description): Likewise.
58609         * modules/full-write (Description): Likewise.
58610         * modules/safe-read (Description): Likewise.
58611         * modules/safe-write (Description): Likewise.
58612         * modules/strchrnul (Description): Likewise.
58613         * modules/trim (Description): Likewise.
58614         * modules/error (Description): Remove parentheses from symbol
58615         references.
58616         * modules/verror (Description): Likewise.
58617         Reported by Karl Berry.
58618
58619 2007-12-25  Bruno Haible  <bruno@clisp.org>
58620
58621         Fixup after 2007-10-16 commit.
58622         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58623
58624 2007-12-24  Bruno Haible  <bruno@clisp.org>
58625
58626         Make --enable-relocatable work with DESTDIR.
58627         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58628         to compute installdir from destprog.
58629         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58630         also set the RELOC_DESTDIR variable.
58631         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58632
58633 2007-12-24  Bruno Haible  <bruno@clisp.org>
58634
58635         Fix link error due to xalloc_die().
58636         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58637         of xreadlink.
58638         * lib/relocwrapper.c: Update comments.
58639         * build-aux/install-reloc: Remove xreadlink.c from file list.
58640         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58641         xreadlink.c.
58642         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58643
58644 2007-12-24  Bruno Haible  <bruno@clisp.org>
58645
58646         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58647         * lib/setenv.h: Remove file.
58648         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58649         lib/setenv.h.
58650         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58651         (Depends-on): Add stdlib.
58652         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58653         gl_FUNC_UNSETENV.
58654         (Include): Replace setenv.h with <stdlib.h>.
58655         * modules/unsetenv: New file.
58656         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58657         * lib/unsetenv.c: Include <stdlib.h> first.
58658         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58659         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58660         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58661         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58662         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58663         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58664         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58665         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58666         * doc/functions/unsetenv.texi: Update.
58667         * modules/xsetenv (Depends-on): Add unsetenv.
58668         * modules/getdate (Depends-on): Likewise.
58669         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58670         * lib/xsetenv.c: Don't include setenv.h.
58671         * lib/getdate.y: Likewise.
58672         * lib/relocwrapper.c: Likewise.
58673         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58674         (Depends-on): Add stdlib.
58675         * NEWS: Mention the changes.
58676         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58677
58678 2007-12-23  Bruno Haible  <bruno@clisp.org>
58679
58680         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58681         indentation.
58682
58683 2007-12-23  Bruno Haible  <bruno@clisp.org>
58684
58685         * lib/c-strcasestr.c: Add more comments.
58686         * lib/c-strstr.c: Likewise.
58687         * lib/mbscasestr.c: Likewise.
58688         * lib/mbsstr.c: Likewise.
58689         * lib/strcasestr.c: Likewise.
58690         * lib/memmem.c: Likewise.
58691
58692 2007-12-23  Bruno Haible  <bruno@clisp.org>
58693
58694         * tests/test-memmem.c: Include <string.h> first.
58695
58696 2007-12-22  Bruno Haible  <bruno@clisp.org>
58697
58698         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58699         the contents of $testsbase.
58700         Reported by Ralf Wildenhues.
58701
58702 2007-12-22  Bruno Haible  <bruno@clisp.org>
58703
58704         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58705         two variables local_ldadd_before, local_ldadd_last.
58706
58707 2007-12-20  Eric Blake  <ebb9@byu.net>
58708
58709         Work around circular library issue when cross-compiling.
58710         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58711         that progname.o does not need to pull in rpl_memcmp.
58712
58713 2007-12-19  Eric Blake  <ebb9@byu.net>
58714
58715         Fix memmem to avoid O(n^2) worst-case complexity.
58716         * lib/memmem.c (knuth_morris_pratt): New function.
58717         (memmem): Use it if first few naive iterations fail.
58718         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58719         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58720         * modules/memchr (License): Likewise.
58721         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58722         malloca.
58723         * tests/test-memmem.c: Rewrite, borrowing ideas from
58724         test-mbsstr1.c; the old version wouldn't even compile!
58725         * modules/memmem-tests: New file.
58726         * lib/string.in.h (rpl_memmem): Add declaration.
58727         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58728         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58729         REPLACE_MEMMEM.
58730
58731 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58732
58733         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58734         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58735         before any system include files, and undef after them all.  This
58736         should fix a problem on VMS reported by John E. Malmberg in
58737         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58738
58739 2007-12-17  Eric Blake  <ebb9@byu.net>
58740
58741         Revert addition of verify, for BSD/OS.
58742         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58743         can't handle large files, for the sake of obsolete platforms.
58744         * modules/fseeko (Depends-on): Remove verify.
58745         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58746         * doc/functions/ftello.texi (ftello): Likewise.
58747         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58748         Reported by Larry Jones.
58749
58750 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58751
58752         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58753         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58754
58755 2007-12-17  Jim Meyering  <meyering@redhat.com>
58756
58757         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58758         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58759         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58760         * modules/getcwd (Depends-on): Add openat.
58761         Reported by Petr Salinger.
58762
58763 2007-12-17  Bruno Haible  <bruno@clisp.org>
58764
58765         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58766         avoid a segmentation fault of the configure test on x86_64 systems.
58767
58768 2007-12-15  Jim Meyering  <meyering@redhat.com>
58769
58770         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58771
58772 2007-12-13  Eric Blake  <ebb9@byu.net>
58773
58774         Another fseek test.
58775         * tests/test-fseek.c (main): Also test ungetc handling.
58776         * tests/test-fseeko.c (main): Likewise.
58777         * modules/fseeko (Depends-on): Add verify.
58778         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58779         large.
58780         Reported by Larry Jones.
58781
58782         Fix fseeko on mingw.
58783         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58784         seek.
58785
58786         Beef up fseek tests.
58787         * tests/test-fseek.c (main): Also test eof handling.
58788         * tests/test-fseeko.c (main): Likewise.
58789         Reported by Larry Jones.
58790
58791 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58792
58793         Fix fseeko on BSD-based platforms.
58794         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58795         successful seek.
58796
58797 2007-12-12  Eric Blake  <ebb9@byu.net>
58798
58799         Allow circular dependency of separate libtests.a
58800         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58801         when use_libtests.
58802
58803 2007-12-11  Eric Blake  <ebb9@byu.net>
58804
58805         Fix bug with -0.0L in previous patch.
58806         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58807         * tests/test-isnan.c (main): Also test on zeroes.
58808         * tests/test-isnanf.c (main): Likewise.
58809         * tests/test-isnanl.h (main): Likewise.
58810
58811         Detect pseudo-denormals on x86 even when cross-compiling.
58812         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58813         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58814         invalid bit patterns that happen to satisfy ==.
58815
58816         Avoid link failures with separate libtests.a.
58817         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58818         last, to satisfy circular dependencies.
58819
58820 2007-12-11  Eric Blake  <ebb9@byu.net>
58821         and Bruno Haible  <bruno@clisp.org>
58822
58823         Fix OpenBSD 4.0 <float.h> handling of long double.
58824         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58825         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58826         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58827
58828 2007-12-11  Jim Meyering  <meyering@redhat.com>
58829
58830         * users.txt: Add libvirt.
58831
58832         Support versions of autoconf prior to 2.59c.
58833         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58834         if it is not already defined.
58835
58836 2007-12-09  Bruno Haible  <bruno@clisp.org>
58837
58838         Let 'gnulib-tool --import' collect sources needed for the tests in
58839         tests/ rather than in lib/.
58840         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58841         argument. If true, add rules to generate libtests.a, and put libtests.a
58842         into $(LDADD). Consider source files in subdirectories and set
58843         uses_subdirs.
58844         (func_emit_initmacro_start, func_emit_initmacro_end,
58845         func_emit_initmacro_done): Pass all arguments explicitly.
58846         (func_import): Determine two module lists main_modules,
58847         testsrelated_modules. Determine use_libtests. Determine two variables
58848         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58849         instead of just sed_transform_lib_file. Determine two variables
58850         main_files and testsrelated_files. Compute 'files' as the union of
58851         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58852         func_add_or_update. In the generated gnulib-comp.m4, collect the
58853         object files for tests/ in different variables than those for lib/.
58854         Substitute LIBTESTS_LIBDEPS.
58855         (func_create_testdir): Combine the uses_subdirs results from
58856         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58857
58858 2007-12-09  Bruno Haible  <bruno@clisp.org>
58859
58860         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58861         the build-aux directory.
58862
58863 2007-12-09  Bruno Haible  <bruno@clisp.org>
58864
58865         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58866         introduced on 2006-09-09.
58867
58868 2007-12-07  Jim Meyering  <meyering@redhat.com>
58869
58870         Let these macros work also with autoconf-2.59.
58871         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58872         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58873         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58874
58875 2007-12-06  Jim Meyering  <meyering@redhat.com>
58876
58877         Avoid a configure-time syntax error in gl_FUNC_ACL.
58878         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58879         function in each branch, before testing the cache variable.
58880
58881 2007-12-04  Eric Blake  <ebb9@byu.net>
58882
58883         Make scripts executable.
58884         * build-aux/config.guess: Add execute permissions.
58885         * build-aux/config.sub: Likewise.
58886         * build-aux/gendocs.sh: Likewise.
58887
58888         Fix frexp on mingw.
58889         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58890         cross-compiling.
58891         * doc/functions/frexp.texi (frexp): Document the bug.
58892
58893         Make cygwin fseeko check more reliable.
58894         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58895         version numbers, rather than unrelated feature check.
58896         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58897         * doc/functions/ftello.texi (ftello): Likewise.
58898         Reported by Bruno Haible.
58899
58900         * m4/strerror.m4: Bump version number.
58901
58902 2007-12-03  Bruno Haible  <bruno@clisp.org>
58903
58904         * doc/functions/mprotect.texi: Mention the mingw problem.
58905
58906 2007-12-03  Eric Blake  <ebb9@byu.net>
58907
58908         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58909         REPLACE_STRERROR is initialized before this macro.
58910
58911 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58912
58913         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58914         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58915         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58916         put -lsec in even for programs other than 'ls'.  This fixes a problem
58917         for gettext reported by Bruno Haible in
58918         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58919         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58920         Add support for Solaris 10.  This isn't efficient, but should get the
58921         job done for now.
58922
58923 2007-12-03  James Youngman  <jay@gnu.org>
58924
58925         * doc/regexprops-generic.texi: change "an close-group" to "a
58926         close-group" and "illegal" to "not allowed".
58927
58928 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58929
58930         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58931         pr_byname.h. Needed for the rare case when the maintainer has done
58932         "make maintainer-clean" in the source directory and then attempts a
58933         build outside the source directory.
58934         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58935         scripts_byname.h.
58936
58937 2007-12-02  Martin Lambers <marlam@marlam.de>
58938             Bruno Haible  <bruno@clisp.org>
58939
58940         * lib/getpagesize.h: Remove file.
58941         * lib/unistd.in.h: Include declaration of getpagesize here.
58942         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58943         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58944         HAVE_SYS_PARAM_H.
58945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58946         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58947         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58948         (Depends-on): Add unistd.
58949         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58950         (Include): Use <unistd.h> instead of getpagesize.h.
58951         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58952         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58953         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58954         gl_GETPAGESIZE invocation, already handled by module dependency.
58955         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58956
58957 2007-12-02  Bruno Haible  <bruno@clisp.org>
58958
58959         * modules/strings-tests: New file.
58960         * tests/test-strings.c: New file.
58961
58962         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58963         * lib/strings.in.h: New file.
58964         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58965         * m4/strings_h.m4: New file.
58966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58967         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58968         * modules/strings: New file.
58969         * modules/string (Makefile.am): Update.
58970         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58971         Reported by Karl Berry.
58972
58973 2007-12-01  Eric Blake  <ebb9@byu.net>
58974
58975         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58976         accomodate fix in cygwin 1.5.25.
58977
58978 2007-12-01  Jim Meyering  <meyering@redhat.com>
58979
58980         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58981         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58982         that would inhibit utf8-optimization of a regexp containing line-
58983         or buffer-anchors, e.g., `^', `$'.
58984
58985 2007-11-30  Bruno Haible  <bruno@clisp.org>
58986
58987         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58988         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58989         glthread_recursive_lock_init.
58990         * lib/lock.c (glthread_recursive_lock_init)
58991         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58992         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58993
58994 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58995
58996         New function qset_acl, like set_acl but with syscall semantics.
58997         * lib/acl.h (qset_acl): New decl.
58998         * lib/acl.c (qset_acl): New function.
58999         (set_acl): Use new function.  Use more-consistent diagnostics.
59000
59001 2007-11-28  Jim Meyering  <meyering@redhat.com>
59002
59003         * modules/physmem (License): Change from GPL to LGPLv2+.
59004
59005 2007-11-26  Bruno Haible  <bruno@clisp.org>
59006
59007         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59008         'long double' type has excess precision.
59009         Reported by Jim Meyering in
59010         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59011
59012 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59013
59014         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59015         Sync from <http://gnu.org/licenses>.
59016         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59017         with license text from same location.
59018         * doc/maintain.texi, doc/standards.texi:  Sync from
59019         <http://savannah.gnu.org/projects/gnustandards>.
59020
59021 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59022         and Jim Meyering  <meyering@redhat.com>
59023
59024         Adjust getdate' grammar to accept a slightly more regular language.
59025         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59026         Before, the former was rejected.
59027         * lib/getdate.y (digits_to_date_time): New function, factored
59028         out of ...
59029         (number): ...here.  Just call digits_to_date_time.
59030         (hybrid): New non-terminal to handle an <unsigned number,
59031         signed relative offset> sequence consistently.
59032
59033 2007-11-18  Jim Meyering  <meyering@redhat.com>
59034
59035         Pull my changes from coreutils:
59036         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59037         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59038         use of $gnulib_tool_option_extras, so that it's separated from the
59039         preceding argument.
59040
59041         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59042         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59043         parent destination directories before copying a file into place.
59044
59045 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59046
59047         bootstrap: work also with 4-argument variant of AC_INIT
59048         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59049
59050 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59051
59052         Port test-getaddrinfo to Solaris.
59053         Problem reported by Bruno Haible in
59054         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59055         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59056         explanation of setting 'hints'.
59057         Don't reject an implementation merely because it returns EAI_SERVICE.
59058         (EAI_SERVICE): Define to 0 if not defined.
59059
59060 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59061
59062         The license of gnu-make and posix-shell is now "GPLed build tool".
59063         * modules/gnu-make (License): Likewise.
59064         * modules/posix-shell (License): Likewise.
59065
59066         New module posix-shell, for determining a POSIX shell
59067         or perhaps something that is close enough to a POSIX shell.
59068         * m4/posix-shell.m4: New file.
59069         * modules/posix-shell: New file.
59070
59071         * MODULES.html.sh: Mention new module.
59072
59073         New module gnu-make, for determining whether we're using GNU Make.
59074         * m4/gnu-make.m4: New file.
59075         * modules/gnu-make: New file.
59076         * MODULES.html.sh: Mention new module.
59077
59078 2007-11-14  Jim Meyering  <meyering@redhat.com>
59079
59080         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59081         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59082         use this macro to create a function _definition_.
59083         Remove useless "#undef ARGMATCH_DIE".
59084
59085 2007-11-14  Bruno Haible  <bruno@clisp.org>
59086
59087         * lib/config.charset: Update for OpenBSD 4.1.
59088         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59089
59090 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59091
59092         Document 64-bit #if problems in stdint.texi.
59093         * doc/headers/stdint.texi (stdint.h): Mention problems with
59094         64-bit-#if, and how to work around them.
59095
59096         Don't insist on 'long long int' support in the preprocessor.  It
59097         breaks too many things.  For example, PRIdMAX still uses a 'long
59098         long int' format with the latest Sun compiler, even though
59099         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59100         preprocessor problem.  This causes the latest coreutils to dump
59101         core on Solaris 10 sparc with the Sun C compiler.
59102         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59103         the troublesome expressions at configure-time, not at #if-time.
59104         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59105         preprocessor.
59106         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59107         compile-time C checks, done at 'configure'-time.
59108         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59109         * modules/inttypes (Makefile): Substitute the new symbols that
59110         gl_INTTYPES_H now generates.
59111         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59112
59113 2007-11-12  Bruno Haible  <bruno@clisp.org>
59114
59115         Tests for Unicode character classification functions.
59116
59117         * modules/unictype/bidicategory-byname-tests: New file.
59118         * modules/unictype/bidicategory-name-tests: New file.
59119         * modules/unictype/bidicategory-of-tests: New file.
59120         * modules/unictype/bidicategory-test-tests: New file.
59121         * modules/unictype/block-list-tests: New file.
59122         * modules/unictype/block-of-tests: New file.
59123         * modules/unictype/block-test-tests: New file.
59124         * modules/unictype/category-C-tests: New file.
59125         * modules/unictype/category-Cc-tests: New file.
59126         * modules/unictype/category-Cf-tests: New file.
59127         * modules/unictype/category-Cn-tests: New file.
59128         * modules/unictype/category-Co-tests: New file.
59129         * modules/unictype/category-Cs-tests: New file.
59130         * modules/unictype/category-L-tests: New file.
59131         * modules/unictype/category-Ll-tests: New file.
59132         * modules/unictype/category-Lm-tests: New file.
59133         * modules/unictype/category-Lo-tests: New file.
59134         * modules/unictype/category-Lt-tests: New file.
59135         * modules/unictype/category-Lu-tests: New file.
59136         * modules/unictype/category-M-tests: New file.
59137         * modules/unictype/category-Mc-tests: New file.
59138         * modules/unictype/category-Me-tests: New file.
59139         * modules/unictype/category-Mn-tests: New file.
59140         * modules/unictype/category-N-tests: New file.
59141         * modules/unictype/category-Nd-tests: New file.
59142         * modules/unictype/category-Nl-tests: New file.
59143         * modules/unictype/category-No-tests: New file.
59144         * modules/unictype/category-P-tests: New file.
59145         * modules/unictype/category-Pc-tests: New file.
59146         * modules/unictype/category-Pd-tests: New file.
59147         * modules/unictype/category-Pe-tests: New file.
59148         * modules/unictype/category-Pf-tests: New file.
59149         * modules/unictype/category-Pi-tests: New file.
59150         * modules/unictype/category-Po-tests: New file.
59151         * modules/unictype/category-Ps-tests: New file.
59152         * modules/unictype/category-S-tests: New file.
59153         * modules/unictype/category-Sc-tests: New file.
59154         * modules/unictype/category-Sk-tests: New file.
59155         * modules/unictype/category-Sm-tests: New file.
59156         * modules/unictype/category-So-tests: New file.
59157         * modules/unictype/category-Z-tests: New file.
59158         * modules/unictype/category-Zl-tests: New file.
59159         * modules/unictype/category-Zp-tests: New file.
59160         * modules/unictype/category-Zs-tests: New file.
59161         * modules/unictype/category-and-not-tests: New file.
59162         * modules/unictype/category-and-tests: New file.
59163         * modules/unictype/category-byname-tests: New file.
59164         * modules/unictype/category-name-tests: New file.
59165         * modules/unictype/category-none-tests: New file.
59166         * modules/unictype/category-of-tests: New file.
59167         * modules/unictype/category-or-tests: New file.
59168         * modules/unictype/category-test-withtable-tests: New file.
59169         * modules/unictype/combining-class-tests: New file.
59170         * modules/unictype/ctype-alnum-tests: New file.
59171         * modules/unictype/ctype-alpha-tests: New file.
59172         * modules/unictype/ctype-blank-tests: New file.
59173         * modules/unictype/ctype-cntrl-tests: New file.
59174         * modules/unictype/ctype-digit-tests: New file.
59175         * modules/unictype/ctype-graph-tests: New file.
59176         * modules/unictype/ctype-lower-tests: New file.
59177         * modules/unictype/ctype-print-tests: New file.
59178         * modules/unictype/ctype-punct-tests: New file.
59179         * modules/unictype/ctype-space-tests: New file.
59180         * modules/unictype/ctype-upper-tests: New file.
59181         * modules/unictype/ctype-xdigit-tests: New file.
59182         * modules/unictype/decimal-digit-tests: New file.
59183         * modules/unictype/digit-tests: New file.
59184         * modules/unictype/mirror-tests: New file.
59185         * modules/unictype/numeric-tests: New file.
59186         * modules/unictype/property-alphabetic-tests: New file.
59187         * modules/unictype/property-ascii-hex-digit-tests: New file.
59188         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59189         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59190         * modules/unictype/property-bidi-block-separator-tests: New file.
59191         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59192         * modules/unictype/property-bidi-common-separator-tests: New file.
59193         * modules/unictype/property-bidi-control-tests: New file.
59194         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59195         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59196         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59197         * modules/unictype/property-bidi-european-digit-tests: New file.
59198         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59199         * modules/unictype/property-bidi-left-to-right-tests: New file.
59200         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59201         * modules/unictype/property-bidi-other-neutral-tests: New file.
59202         * modules/unictype/property-bidi-pdf-tests: New file.
59203         * modules/unictype/property-bidi-segment-separator-tests: New file.
59204         * modules/unictype/property-bidi-whitespace-tests: New file.
59205         * modules/unictype/property-byname-tests: New file.
59206         * modules/unictype/property-combining-tests: New file.
59207         * modules/unictype/property-composite-tests: New file.
59208         * modules/unictype/property-currency-symbol-tests: New file.
59209         * modules/unictype/property-dash-tests: New file.
59210         * modules/unictype/property-decimal-digit-tests: New file.
59211         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59212         * modules/unictype/property-deprecated-tests: New file.
59213         * modules/unictype/property-diacritic-tests: New file.
59214         * modules/unictype/property-extender-tests: New file.
59215         * modules/unictype/property-format-control-tests: New file.
59216         * modules/unictype/property-grapheme-base-tests: New file.
59217         * modules/unictype/property-grapheme-extend-tests: New file.
59218         * modules/unictype/property-grapheme-link-tests: New file.
59219         * modules/unictype/property-hex-digit-tests: New file.
59220         * modules/unictype/property-hyphen-tests: New file.
59221         * modules/unictype/property-id-continue-tests: New file.
59222         * modules/unictype/property-id-start-tests: New file.
59223         * modules/unictype/property-ideographic-tests: New file.
59224         * modules/unictype/property-ids-binary-operator-tests: New file.
59225         * modules/unictype/property-ids-trinary-operator-tests: New file.
59226         * modules/unictype/property-ignorable-control-tests: New file.
59227         * modules/unictype/property-iso-control-tests: New file.
59228         * modules/unictype/property-join-control-tests: New file.
59229         * modules/unictype/property-left-of-pair-tests: New file.
59230         * modules/unictype/property-line-separator-tests: New file.
59231         * modules/unictype/property-logical-order-exception-tests: New file.
59232         * modules/unictype/property-lowercase-tests: New file.
59233         * modules/unictype/property-math-tests: New file.
59234         * modules/unictype/property-non-break-tests: New file.
59235         * modules/unictype/property-not-a-character-tests: New file.
59236         * modules/unictype/property-numeric-tests: New file.
59237         * modules/unictype/property-other-alphabetic-tests: New file.
59238         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59239         * modules/unictype/property-other-grapheme-extend-tests: New file.
59240         * modules/unictype/property-other-id-continue-tests: New file.
59241         * modules/unictype/property-other-id-start-tests: New file.
59242         * modules/unictype/property-other-lowercase-tests: New file.
59243         * modules/unictype/property-other-math-tests: New file.
59244         * modules/unictype/property-other-uppercase-tests: New file.
59245         * modules/unictype/property-paired-punctuation-tests: New file.
59246         * modules/unictype/property-paragraph-separator-tests: New file.
59247         * modules/unictype/property-pattern-syntax-tests: New file.
59248         * modules/unictype/property-pattern-white-space-tests: New file.
59249         * modules/unictype/property-private-use-tests: New file.
59250         * modules/unictype/property-punctuation-tests: New file.
59251         * modules/unictype/property-quotation-mark-tests: New file.
59252         * modules/unictype/property-radical-tests: New file.
59253         * modules/unictype/property-sentence-terminal-tests: New file.
59254         * modules/unictype/property-soft-dotted-tests: New file.
59255         * modules/unictype/property-space-tests: New file.
59256         * modules/unictype/property-terminal-punctuation-tests: New file.
59257         * modules/unictype/property-test-tests: New file.
59258         * modules/unictype/property-titlecase-tests: New file.
59259         * modules/unictype/property-unassigned-code-value-tests: New file.
59260         * modules/unictype/property-unified-ideograph-tests: New file.
59261         * modules/unictype/property-uppercase-tests: New file.
59262         * modules/unictype/property-variation-selector-tests: New file.
59263         * modules/unictype/property-white-space-tests: New file.
59264         * modules/unictype/property-xid-continue-tests: New file.
59265         * modules/unictype/property-xid-start-tests: New file.
59266         * modules/unictype/property-zero-width-tests: New file.
59267         * modules/unictype/scripts-tests: New file.
59268         * modules/unictype/syntax-c-ident-tests: New file.
59269         * modules/unictype/syntax-c-whitespace-tests: New file.
59270         * modules/unictype/syntax-java-ident-tests: New file.
59271         * modules/unictype/syntax-java-whitespace-tests: New file.
59272         * tests/unictype/test-bidi_byname.c: New file.
59273         * tests/unictype/test-bidi_name.c: New file.
59274         * tests/unictype/test-bidi_of.c: New file.
59275         * tests/unictype/test-bidi_test.c: New file.
59276         * tests/unictype/test-block_list.c: New file.
59277         * tests/unictype/test-block_of.c: New file.
59278         * tests/unictype/test-block_test.c: New file.
59279         * tests/unictype/test-categ_and.c: New file.
59280         * tests/unictype/test-categ_and_not.c: New file.
59281         * tests/unictype/test-categ_byname.c: New file.
59282         * tests/unictype/test-categ_name.c: New file.
59283         * tests/unictype/test-categ_none.c: New file.
59284         * tests/unictype/test-categ_of.c: New file.
59285         * tests/unictype/test-categ_or.c: New file.
59286         * tests/unictype/test-categ_test_withtable.c: New file.
59287         * tests/unictype/test-combining.c: New file.
59288         * tests/unictype/test-decdigit.c: New file.
59289         * tests/unictype/test-digit.c: New file.
59290         * tests/unictype/test-mirror.c: New file.
59291         * tests/unictype/test-numeric.c: New file.
59292         * tests/unictype/test-pr_byname.c: New file.
59293         * tests/unictype/test-pr_test.c: New file.
59294         * tests/unictype/test-predicate-part1.h: New file.
59295         * tests/unictype/test-predicate-part2.h: New file.
59296         * tests/unictype/test-scripts.c: New file.
59297         * tests/unictype/test-sy_c_ident.c: New file.
59298         * tests/unictype/test-sy_java_ident.c: New file.
59299
59300         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59301         for Unicode 5.0.0.
59302         * tests/unictype/test-categ_Cc.c: Likewise.
59303         * tests/unictype/test-categ_Cf.c: Likewise.
59304         * tests/unictype/test-categ_Cn.c: Likewise.
59305         * tests/unictype/test-categ_Co.c: Likewise.
59306         * tests/unictype/test-categ_Cs.c: Likewise.
59307         * tests/unictype/test-categ_L.c: Likewise.
59308         * tests/unictype/test-categ_Ll.c: Likewise.
59309         * tests/unictype/test-categ_Lm.c: Likewise.
59310         * tests/unictype/test-categ_Lo.c: Likewise.
59311         * tests/unictype/test-categ_Lt.c: Likewise.
59312         * tests/unictype/test-categ_Lu.c: Likewise.
59313         * tests/unictype/test-categ_M.c: Likewise.
59314         * tests/unictype/test-categ_Mc.c: Likewise.
59315         * tests/unictype/test-categ_Me.c: Likewise.
59316         * tests/unictype/test-categ_Mn.c: Likewise.
59317         * tests/unictype/test-categ_N.c: Likewise.
59318         * tests/unictype/test-categ_Nd.c: Likewise.
59319         * tests/unictype/test-categ_Nl.c: Likewise.
59320         * tests/unictype/test-categ_No.c: Likewise.
59321         * tests/unictype/test-categ_P.c: Likewise.
59322         * tests/unictype/test-categ_Pc.c: Likewise.
59323         * tests/unictype/test-categ_Pd.c: Likewise.
59324         * tests/unictype/test-categ_Pe.c: Likewise.
59325         * tests/unictype/test-categ_Pf.c: Likewise.
59326         * tests/unictype/test-categ_Pi.c: Likewise.
59327         * tests/unictype/test-categ_Po.c: Likewise.
59328         * tests/unictype/test-categ_Ps.c: Likewise.
59329         * tests/unictype/test-categ_S.c: Likewise.
59330         * tests/unictype/test-categ_Sc.c: Likewise.
59331         * tests/unictype/test-categ_Sk.c: Likewise.
59332         * tests/unictype/test-categ_Sm.c: Likewise.
59333         * tests/unictype/test-categ_So.c: Likewise.
59334         * tests/unictype/test-categ_Z.c: Likewise.
59335         * tests/unictype/test-categ_Zl.c: Likewise.
59336         * tests/unictype/test-categ_Zp.c: Likewise.
59337         * tests/unictype/test-categ_Zs.c: Likewise.
59338         * tests/unictype/test-ctype_alnum.c: Likewise.
59339         * tests/unictype/test-ctype_alpha.c: Likewise.
59340         * tests/unictype/test-ctype_blank.c: Likewise.
59341         * tests/unictype/test-ctype_cntrl.c: Likewise.
59342         * tests/unictype/test-ctype_digit.c: Likewise.
59343         * tests/unictype/test-ctype_graph.c: Likewise.
59344         * tests/unictype/test-ctype_lower.c: Likewise.
59345         * tests/unictype/test-ctype_print.c: Likewise.
59346         * tests/unictype/test-ctype_punct.c: Likewise.
59347         * tests/unictype/test-ctype_space.c: Likewise.
59348         * tests/unictype/test-ctype_upper.c: Likewise.
59349         * tests/unictype/test-ctype_xdigit.c: Likewise.
59350         * tests/unictype/test-decdigit.h: Likewise.
59351         * tests/unictype/test-digit.h: Likewise.
59352         * tests/unictype/test-numeric.h: Likewise.
59353         * tests/unictype/test-pr_alphabetic.c: Likewise.
59354         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59355         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59356         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59357         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59358         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59359         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59360         * tests/unictype/test-pr_bidi_control.c: Likewise.
59361         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59362         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59363         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59364         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59365         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59366         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59367         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59368         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59369         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59370         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59371         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59372         * tests/unictype/test-pr_combining.c: Likewise.
59373         * tests/unictype/test-pr_composite.c: Likewise.
59374         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59375         * tests/unictype/test-pr_dash.c: Likewise.
59376         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59377         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59378         * tests/unictype/test-pr_deprecated.c: Likewise.
59379         * tests/unictype/test-pr_diacritic.c: Likewise.
59380         * tests/unictype/test-pr_extender.c: Likewise.
59381         * tests/unictype/test-pr_format_control.c: Likewise.
59382         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59383         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59384         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59385         * tests/unictype/test-pr_hex_digit.c: Likewise.
59386         * tests/unictype/test-pr_hyphen.c: Likewise.
59387         * tests/unictype/test-pr_id_continue.c: Likewise.
59388         * tests/unictype/test-pr_id_start.c: Likewise.
59389         * tests/unictype/test-pr_ideographic.c: Likewise.
59390         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59391         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59392         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59393         * tests/unictype/test-pr_iso_control.c: Likewise.
59394         * tests/unictype/test-pr_join_control.c: Likewise.
59395         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59396         * tests/unictype/test-pr_line_separator.c: Likewise.
59397         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59398         * tests/unictype/test-pr_lowercase.c: Likewise.
59399         * tests/unictype/test-pr_math.c: Likewise.
59400         * tests/unictype/test-pr_non_break.c: Likewise.
59401         * tests/unictype/test-pr_not_a_character.c: Likewise.
59402         * tests/unictype/test-pr_numeric.c: Likewise.
59403         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59404         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59405         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59406         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59407         * tests/unictype/test-pr_other_id_start.c: Likewise.
59408         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59409         * tests/unictype/test-pr_other_math.c: Likewise.
59410         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59411         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59412         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59413         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59414         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59415         * tests/unictype/test-pr_private_use.c: Likewise.
59416         * tests/unictype/test-pr_punctuation.c: Likewise.
59417         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59418         * tests/unictype/test-pr_radical.c: Likewise.
59419         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59420         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59421         * tests/unictype/test-pr_space.c: Likewise.
59422         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59423         * tests/unictype/test-pr_titlecase.c: Likewise.
59424         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59425         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59426         * tests/unictype/test-pr_uppercase.c: Likewise.
59427         * tests/unictype/test-pr_variation_selector.c: Likewise.
59428         * tests/unictype/test-pr_white_space.c: Likewise.
59429         * tests/unictype/test-pr_xid_continue.c: Likewise.
59430         * tests/unictype/test-pr_xid_start.c: Likewise.
59431         * tests/unictype/test-pr_zero_width.c: Likewise.
59432         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59433         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59434
59435 2007-11-12  Bruno Haible  <bruno@clisp.org>
59436
59437         Unicode character classification functions.
59438         * lib/unictype.h: New file.
59439         * modules/unictype/base: New file.
59440         * modules/unictype/category-L: New file.
59441         * modules/unictype/category-Lu: New file.
59442         * modules/unictype/category-Ll: New file.
59443         * modules/unictype/category-Lt: New file.
59444         * modules/unictype/category-Lm: New file.
59445         * modules/unictype/category-Lo: New file.
59446         * modules/unictype/category-M: New file.
59447         * modules/unictype/category-Mn: New file.
59448         * modules/unictype/category-Mc: New file.
59449         * modules/unictype/category-Me: New file.
59450         * modules/unictype/category-N: New file.
59451         * modules/unictype/category-Nd: New file.
59452         * modules/unictype/category-Nl: New file.
59453         * modules/unictype/category-No: New file.
59454         * modules/unictype/category-P: New file.
59455         * modules/unictype/category-Pc: New file.
59456         * modules/unictype/category-Pd: New file.
59457         * modules/unictype/category-Ps: New file.
59458         * modules/unictype/category-Pe: New file.
59459         * modules/unictype/category-Pi: New file.
59460         * modules/unictype/category-Pf: New file.
59461         * modules/unictype/category-Po: New file.
59462         * modules/unictype/category-S: New file.
59463         * modules/unictype/category-Sm: New file.
59464         * modules/unictype/category-Sc: New file.
59465         * modules/unictype/category-Sk: New file.
59466         * modules/unictype/category-So: New file.
59467         * modules/unictype/category-Z: New file.
59468         * modules/unictype/category-Zs: New file.
59469         * modules/unictype/category-Zl: New file.
59470         * modules/unictype/category-Zp: New file.
59471         * modules/unictype/category-C: New file.
59472         * modules/unictype/category-Cc: New file.
59473         * modules/unictype/category-Cf: New file.
59474         * modules/unictype/category-Cs: New file.
59475         * modules/unictype/category-Co: New file.
59476         * modules/unictype/category-Cn: New file.
59477         * modules/unictype/category-or: New file.
59478         * modules/unictype/category-of: New file.
59479         * modules/unictype/category-test: New file.
59480         * modules/unictype/category-test-withtable: New file.
59481         * modules/unictype/category-byname: New file.
59482         * modules/unictype/category-none: New file.
59483         * modules/unictype/category-and: New file.
59484         * modules/unictype/category-and-not: New file.
59485         * modules/unictype/category-name: New file.
59486         * modules/unictype/combining-class: New file.
59487         * modules/unictype/category-all: New file.
59488         * modules/unictype/bidicategory-all: New file.
59489         * modules/unictype/bidicategory-byname: New file.
59490         * modules/unictype/bidicategory-name: New file.
59491         * modules/unictype/bidicategory-of: New file.
59492         * modules/unictype/bidicategory-test: New file.
59493         * modules/unictype/decimal-digit: New file.
59494         * modules/unictype/digit: New file.
59495         * modules/unictype/numeric: New file.
59496         * modules/unictype/mirror: New file.
59497         * modules/unictype/property-white-space: New file.
59498         * modules/unictype/property-alphabetic: New file.
59499         * modules/unictype/property-other-alphabetic: New file.
59500         * modules/unictype/property-not-a-character: New file.
59501         * modules/unictype/property-default-ignorable-code-point: New file.
59502         * modules/unictype/property-other-default-ignorable-code-point: New
59503         file.
59504         * modules/unictype/property-deprecated: New file.
59505         * modules/unictype/property-logical-order-exception: New file.
59506         * modules/unictype/property-variation-selector: New file.
59507         * modules/unictype/property-private-use: New file.
59508         * modules/unictype/property-unassigned-code-value: New file.
59509         * modules/unictype/property-uppercase: New file.
59510         * modules/unictype/property-other-uppercase: New file.
59511         * modules/unictype/property-lowercase: New file.
59512         * modules/unictype/property-other-lowercase: New file.
59513         * modules/unictype/property-titlecase: New file.
59514         * modules/unictype/property-soft-dotted: New file.
59515         * modules/unictype/property-id-start: New file.
59516         * modules/unictype/property-other-id-start: New file.
59517         * modules/unictype/property-id-continue: New file.
59518         * modules/unictype/property-other-id-continue: New file.
59519         * modules/unictype/property-xid-start: New file.
59520         * modules/unictype/property-xid-continue: New file.
59521         * modules/unictype/property-pattern-white-space: New file.
59522         * modules/unictype/property-pattern-syntax: New file.
59523         * modules/unictype/property-join-control: New file.
59524         * modules/unictype/property-grapheme-base: New file.
59525         * modules/unictype/property-grapheme-extend: New file.
59526         * modules/unictype/property-other-grapheme-extend: New file.
59527         * modules/unictype/property-grapheme-link: New file.
59528         * modules/unictype/property-bidi-control: New file.
59529         * modules/unictype/property-bidi-left-to-right: New file.
59530         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59531         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59532         * modules/unictype/property-bidi-european-digit: New file.
59533         * modules/unictype/property-bidi-eur-num-separator: New file.
59534         * modules/unictype/property-bidi-eur-num-terminator: New file.
59535         * modules/unictype/property-bidi-arabic-digit: New file.
59536         * modules/unictype/property-bidi-common-separator: New file.
59537         * modules/unictype/property-bidi-block-separator: New file.
59538         * modules/unictype/property-bidi-segment-separator: New file.
59539         * modules/unictype/property-bidi-whitespace: New file.
59540         * modules/unictype/property-bidi-non-spacing-mark: New file.
59541         * modules/unictype/property-bidi-boundary-neutral: New file.
59542         * modules/unictype/property-bidi-pdf: New file.
59543         * modules/unictype/property-bidi-embedding-or-override: New file.
59544         * modules/unictype/property-bidi-other-neutral: New file.
59545         * modules/unictype/property-hex-digit: New file.
59546         * modules/unictype/property-ascii-hex-digit: New file.
59547         * modules/unictype/property-ideographic: New file.
59548         * modules/unictype/property-unified-ideograph: New file.
59549         * modules/unictype/property-radical: New file.
59550         * modules/unictype/property-ids-binary-operator: New file.
59551         * modules/unictype/property-ids-trinary-operator: New file.
59552         * modules/unictype/property-zero-width: New file.
59553         * modules/unictype/property-space: New file.
59554         * modules/unictype/property-non-break: New file.
59555         * modules/unictype/property-iso-control: New file.
59556         * modules/unictype/property-format-control: New file.
59557         * modules/unictype/property-dash: New file.
59558         * modules/unictype/property-hyphen: New file.
59559         * modules/unictype/property-punctuation: New file.
59560         * modules/unictype/property-line-separator: New file.
59561         * modules/unictype/property-paragraph-separator: New file.
59562         * modules/unictype/property-quotation-mark: New file.
59563         * modules/unictype/property-sentence-terminal: New file.
59564         * modules/unictype/property-terminal-punctuation: New file.
59565         * modules/unictype/property-currency-symbol: New file.
59566         * modules/unictype/property-math: New file.
59567         * modules/unictype/property-other-math: New file.
59568         * modules/unictype/property-paired-punctuation: New file.
59569         * modules/unictype/property-left-of-pair: New file.
59570         * modules/unictype/property-combining: New file.
59571         * modules/unictype/property-composite: New file.
59572         * modules/unictype/property-decimal-digit: New file.
59573         * modules/unictype/property-numeric: New file.
59574         * modules/unictype/property-diacritic: New file.
59575         * modules/unictype/property-extender: New file.
59576         * modules/unictype/property-ignorable-control: New file.
59577         * modules/unictype/property-test: New file.
59578         * modules/unictype/property-byname: New file.
59579         * modules/unictype/property-all: New file.
59580         * modules/unictype/scripts: New file.
59581         * modules/unictype/scripts-all: New file.
59582         * modules/unictype/block-of: New file.
59583         * modules/unictype/block-test: New file.
59584         * modules/unictype/block-list: New file.
59585         * modules/unictype/block-all: New file.
59586         * modules/unictype/syntax-c-whitespace: New file.
59587         * modules/unictype/syntax-java-whitespace: New file.
59588         * modules/unictype/syntax-c-ident: New file.
59589         * modules/unictype/syntax-java-ident: New file.
59590         * modules/unictype/ctype-alnum: New file.
59591         * modules/unictype/ctype-alpha: New file.
59592         * modules/unictype/ctype-cntrl: New file.
59593         * modules/unictype/ctype-digit: New file.
59594         * modules/unictype/ctype-graph: New file.
59595         * modules/unictype/ctype-lower: New file.
59596         * modules/unictype/ctype-print: New file.
59597         * modules/unictype/ctype-punct: New file.
59598         * modules/unictype/ctype-space: New file.
59599         * modules/unictype/ctype-upper: New file.
59600         * modules/unictype/ctype-xdigit: New file.
59601         * modules/unictype/ctype-blank: New file.
59602         * lib/unictype/bidi_byname.c: New file.
59603         * lib/unictype/bidi_name.c: New file.
59604         * lib/unictype/bidi_of.c: New file.
59605         * lib/unictype/bidi_test.c: New file.
59606         * lib/unictype/bitmap.h: New file.
59607         * lib/unictype/block_test.c: New file.
59608         * lib/unictype/blocks.c: New file.
59609         * lib/unictype/categ_C.c: New file.
59610         * lib/unictype/categ_Cc.c: New file.
59611         * lib/unictype/categ_Cf.c: New file.
59612         * lib/unictype/categ_Cn.c: New file.
59613         * lib/unictype/categ_Co.c: New file.
59614         * lib/unictype/categ_Cs.c: New file.
59615         * lib/unictype/categ_L.c: New file.
59616         * lib/unictype/categ_Ll.c: New file.
59617         * lib/unictype/categ_Lm.c: New file.
59618         * lib/unictype/categ_Lo.c: New file.
59619         * lib/unictype/categ_Lt.c: New file.
59620         * lib/unictype/categ_Lu.c: New file.
59621         * lib/unictype/categ_M.c: New file.
59622         * lib/unictype/categ_Mc.c: New file.
59623         * lib/unictype/categ_Me.c: New file.
59624         * lib/unictype/categ_Mn.c: New file.
59625         * lib/unictype/categ_N.c: New file.
59626         * lib/unictype/categ_Nd.c: New file.
59627         * lib/unictype/categ_Nl.c: New file.
59628         * lib/unictype/categ_No.c: New file.
59629         * lib/unictype/categ_P.c: New file.
59630         * lib/unictype/categ_Pc.c: New file.
59631         * lib/unictype/categ_Pd.c: New file.
59632         * lib/unictype/categ_Pe.c: New file.
59633         * lib/unictype/categ_Pf.c: New file.
59634         * lib/unictype/categ_Pi.c: New file.
59635         * lib/unictype/categ_Po.c: New file.
59636         * lib/unictype/categ_Ps.c: New file.
59637         * lib/unictype/categ_S.c: New file.
59638         * lib/unictype/categ_Sc.c: New file.
59639         * lib/unictype/categ_Sk.c: New file.
59640         * lib/unictype/categ_Sm.c: New file.
59641         * lib/unictype/categ_So.c: New file.
59642         * lib/unictype/categ_Z.c: New file.
59643         * lib/unictype/categ_Zl.c: New file.
59644         * lib/unictype/categ_Zp.c: New file.
59645         * lib/unictype/categ_Zs.c: New file.
59646         * lib/unictype/categ_and.c: New file.
59647         * lib/unictype/categ_and_not.c: New file.
59648         * lib/unictype/categ_byname.c: New file.
59649         * lib/unictype/categ_name.c: New file.
59650         * lib/unictype/categ_none.c: New file.
59651         * lib/unictype/categ_of.c: New file.
59652         * lib/unictype/categ_or.c: New file.
59653         * lib/unictype/categ_test.c: New file.
59654         * lib/unictype/combining.c: New file.
59655         * lib/unictype/ctype_alnum.c: New file.
59656         * lib/unictype/ctype_alpha.c: New file.
59657         * lib/unictype/ctype_blank.c: New file.
59658         * lib/unictype/ctype_cntrl.c: New file.
59659         * lib/unictype/ctype_digit.c: New file.
59660         * lib/unictype/ctype_graph.c: New file.
59661         * lib/unictype/ctype_lower.c: New file.
59662         * lib/unictype/ctype_print.c: New file.
59663         * lib/unictype/ctype_punct.c: New file.
59664         * lib/unictype/ctype_space.c: New file.
59665         * lib/unictype/ctype_upper.c: New file.
59666         * lib/unictype/ctype_xdigit.c: New file.
59667         * lib/unictype/decdigit.c: New file.
59668         * lib/unictype/digit.c: New file.
59669         * lib/unictype/identsyntaxmap.h: New file.
59670         * lib/unictype/mirror.c: New file.
59671         * lib/unictype/numeric.c: New file.
59672         * lib/unictype/pr_alphabetic.c: New file.
59673         * lib/unictype/pr_ascii_hex_digit.c: New file.
59674         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59675         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59676         * lib/unictype/pr_bidi_block_separator.c: New file.
59677         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59678         * lib/unictype/pr_bidi_common_separator.c: New file.
59679         * lib/unictype/pr_bidi_control.c: New file.
59680         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59681         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59682         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59683         * lib/unictype/pr_bidi_european_digit.c: New file.
59684         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59685         * lib/unictype/pr_bidi_left_to_right.c: New file.
59686         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59687         * lib/unictype/pr_bidi_other_neutral.c: New file.
59688         * lib/unictype/pr_bidi_pdf.c: New file.
59689         * lib/unictype/pr_bidi_segment_separator.c: New file.
59690         * lib/unictype/pr_bidi_whitespace.c: New file.
59691         * lib/unictype/pr_byname.c: New file.
59692         * lib/unictype/pr_byname.gperf: New file.
59693         * lib/unictype/pr_combining.c: New file.
59694         * lib/unictype/pr_composite.c: New file.
59695         * lib/unictype/pr_currency_symbol.c: New file.
59696         * lib/unictype/pr_dash.c: New file.
59697         * lib/unictype/pr_decimal_digit.c: New file.
59698         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59699         * lib/unictype/pr_deprecated.c: New file.
59700         * lib/unictype/pr_diacritic.c: New file.
59701         * lib/unictype/pr_extender.c: New file.
59702         * lib/unictype/pr_format_control.c: New file.
59703         * lib/unictype/pr_grapheme_base.c: New file.
59704         * lib/unictype/pr_grapheme_extend.c: New file.
59705         * lib/unictype/pr_grapheme_link.c: New file.
59706         * lib/unictype/pr_hex_digit.c: New file.
59707         * lib/unictype/pr_hyphen.c: New file.
59708         * lib/unictype/pr_id_continue.c: New file.
59709         * lib/unictype/pr_id_start.c: New file.
59710         * lib/unictype/pr_ideographic.c: New file.
59711         * lib/unictype/pr_ids_binary_operator.c: New file.
59712         * lib/unictype/pr_ids_trinary_operator.c: New file.
59713         * lib/unictype/pr_ignorable_control.c: New file.
59714         * lib/unictype/pr_iso_control.c: New file.
59715         * lib/unictype/pr_join_control.c: New file.
59716         * lib/unictype/pr_left_of_pair.c: New file.
59717         * lib/unictype/pr_line_separator.c: New file.
59718         * lib/unictype/pr_logical_order_exception.c: New file.
59719         * lib/unictype/pr_lowercase.c: New file.
59720         * lib/unictype/pr_math.c: New file.
59721         * lib/unictype/pr_non_break.c: New file.
59722         * lib/unictype/pr_not_a_character.c: New file.
59723         * lib/unictype/pr_numeric.c: New file.
59724         * lib/unictype/pr_other_alphabetic.c: New file.
59725         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59726         * lib/unictype/pr_other_grapheme_extend.c: New file.
59727         * lib/unictype/pr_other_id_continue.c: New file.
59728         * lib/unictype/pr_other_id_start.c: New file.
59729         * lib/unictype/pr_other_lowercase.c: New file.
59730         * lib/unictype/pr_other_math.c: New file.
59731         * lib/unictype/pr_other_uppercase.c: New file.
59732         * lib/unictype/pr_paired_punctuation.c: New file.
59733         * lib/unictype/pr_paragraph_separator.c: New file.
59734         * lib/unictype/pr_pattern_syntax.c: New file.
59735         * lib/unictype/pr_pattern_white_space.c: New file.
59736         * lib/unictype/pr_private_use.c: New file.
59737         * lib/unictype/pr_punctuation.c: New file.
59738         * lib/unictype/pr_quotation_mark.c: New file.
59739         * lib/unictype/pr_radical.c: New file.
59740         * lib/unictype/pr_sentence_terminal.c: New file.
59741         * lib/unictype/pr_soft_dotted.c: New file.
59742         * lib/unictype/pr_space.c: New file.
59743         * lib/unictype/pr_terminal_punctuation.c: New file.
59744         * lib/unictype/pr_test.c: New file.
59745         * lib/unictype/pr_titlecase.c: New file.
59746         * lib/unictype/pr_unassigned_code_value.c: New file.
59747         * lib/unictype/pr_unified_ideograph.c: New file.
59748         * lib/unictype/pr_uppercase.c: New file.
59749         * lib/unictype/pr_variation_selector.c: New file.
59750         * lib/unictype/pr_white_space.c: New file.
59751         * lib/unictype/pr_xid_continue.c: New file.
59752         * lib/unictype/pr_xid_start.c: New file.
59753         * lib/unictype/pr_zero_width.c: New file.
59754         * lib/unictype/scripts.c: New file.
59755         * lib/unictype/sy_c_ident.c: New file.
59756         * lib/unictype/sy_c_whitespace.c: New file.
59757         * lib/unictype/sy_java_ident.c: New file.
59758         * lib/unictype/sy_java_whitespace.c: New file.
59759
59760         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59761         Unicode 5.0.0.
59762         * lib/unictype/blocks.h: Likewise.
59763         * lib/unictype/categ_C.h: Likewise.
59764         * lib/unictype/categ_Cc.h: Likewise.
59765         * lib/unictype/categ_Cf.h: Likewise.
59766         * lib/unictype/categ_Cn.h: Likewise.
59767         * lib/unictype/categ_Co.h: Likewise.
59768         * lib/unictype/categ_Cs.h: Likewise.
59769         * lib/unictype/categ_L.h: Likewise.
59770         * lib/unictype/categ_Ll.h: Likewise.
59771         * lib/unictype/categ_Lm.h: Likewise.
59772         * lib/unictype/categ_Lo.h: Likewise.
59773         * lib/unictype/categ_Lt.h: Likewise.
59774         * lib/unictype/categ_Lu.h: Likewise.
59775         * lib/unictype/categ_M.h: Likewise.
59776         * lib/unictype/categ_Mc.h: Likewise.
59777         * lib/unictype/categ_Me.h: Likewise.
59778         * lib/unictype/categ_Mn.h: Likewise.
59779         * lib/unictype/categ_N.h: Likewise.
59780         * lib/unictype/categ_Nd.h: Likewise.
59781         * lib/unictype/categ_Nl.h: Likewise.
59782         * lib/unictype/categ_No.h: Likewise.
59783         * lib/unictype/categ_P.h: Likewise.
59784         * lib/unictype/categ_Pc.h: Likewise.
59785         * lib/unictype/categ_Pd.h: Likewise.
59786         * lib/unictype/categ_Pe.h: Likewise.
59787         * lib/unictype/categ_Pf.h: Likewise.
59788         * lib/unictype/categ_Pi.h: Likewise.
59789         * lib/unictype/categ_Po.h: Likewise.
59790         * lib/unictype/categ_Ps.h: Likewise.
59791         * lib/unictype/categ_S.h: Likewise.
59792         * lib/unictype/categ_Sc.h: Likewise.
59793         * lib/unictype/categ_Sk.h: Likewise.
59794         * lib/unictype/categ_Sm.h: Likewise.
59795         * lib/unictype/categ_So.h: Likewise.
59796         * lib/unictype/categ_Z.h: Likewise.
59797         * lib/unictype/categ_Zl.h: Likewise.
59798         * lib/unictype/categ_Zp.h: Likewise.
59799         * lib/unictype/categ_Zs.h: Likewise.
59800         * lib/unictype/categ_of.h: Likewise.
59801         * lib/unictype/combining.h: Likewise.
59802         * lib/unictype/ctype_alnum.h: Likewise.
59803         * lib/unictype/ctype_alpha.h: Likewise.
59804         * lib/unictype/ctype_blank.h: Likewise.
59805         * lib/unictype/ctype_cntrl.h: Likewise.
59806         * lib/unictype/ctype_digit.h: Likewise.
59807         * lib/unictype/ctype_graph.h: Likewise.
59808         * lib/unictype/ctype_lower.h: Likewise.
59809         * lib/unictype/ctype_print.h: Likewise.
59810         * lib/unictype/ctype_punct.h: Likewise.
59811         * lib/unictype/ctype_space.h: Likewise.
59812         * lib/unictype/ctype_upper.h: Likewise.
59813         * lib/unictype/ctype_xdigit.h: Likewise.
59814         * lib/unictype/decdigit.h: Likewise.
59815         * lib/unictype/digit.h: Likewise.
59816         * lib/unictype/mirror.h: Likewise.
59817         * lib/unictype/numeric.h: Likewise.
59818         * lib/unictype/pr_alphabetic.h: Likewise.
59819         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59820         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59821         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59822         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59823         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59824         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59825         * lib/unictype/pr_bidi_control.h: Likewise.
59826         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59827         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59828         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59829         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59830         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59831         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59832         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59833         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59834         * lib/unictype/pr_bidi_pdf.h: Likewise.
59835         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59836         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59837         * lib/unictype/pr_combining.h: Likewise.
59838         * lib/unictype/pr_composite.h: Likewise.
59839         * lib/unictype/pr_currency_symbol.h: Likewise.
59840         * lib/unictype/pr_dash.h: Likewise.
59841         * lib/unictype/pr_decimal_digit.h: Likewise.
59842         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59843         * lib/unictype/pr_deprecated.h: Likewise.
59844         * lib/unictype/pr_diacritic.h: Likewise.
59845         * lib/unictype/pr_extender.h: Likewise.
59846         * lib/unictype/pr_format_control.h: Likewise.
59847         * lib/unictype/pr_grapheme_base.h: Likewise.
59848         * lib/unictype/pr_grapheme_extend.h: Likewise.
59849         * lib/unictype/pr_grapheme_link.h: Likewise.
59850         * lib/unictype/pr_hex_digit.h: Likewise.
59851         * lib/unictype/pr_hyphen.h: Likewise.
59852         * lib/unictype/pr_id_continue.h: Likewise.
59853         * lib/unictype/pr_id_start.h: Likewise.
59854         * lib/unictype/pr_ideographic.h: Likewise.
59855         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59856         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59857         * lib/unictype/pr_ignorable_control.h: Likewise.
59858         * lib/unictype/pr_iso_control.h: Likewise.
59859         * lib/unictype/pr_join_control.h: Likewise.
59860         * lib/unictype/pr_left_of_pair.h: Likewise.
59861         * lib/unictype/pr_line_separator.h: Likewise.
59862         * lib/unictype/pr_logical_order_exception.h: Likewise.
59863         * lib/unictype/pr_lowercase.h: Likewise.
59864         * lib/unictype/pr_math.h: Likewise.
59865         * lib/unictype/pr_non_break.h: Likewise.
59866         * lib/unictype/pr_not_a_character.h: Likewise.
59867         * lib/unictype/pr_numeric.h: Likewise.
59868         * lib/unictype/pr_other_alphabetic.h: Likewise.
59869         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59870         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59871         * lib/unictype/pr_other_id_continue.h: Likewise.
59872         * lib/unictype/pr_other_id_start.h: Likewise.
59873         * lib/unictype/pr_other_lowercase.h: Likewise.
59874         * lib/unictype/pr_other_math.h: Likewise.
59875         * lib/unictype/pr_other_uppercase.h: Likewise.
59876         * lib/unictype/pr_paired_punctuation.h: Likewise.
59877         * lib/unictype/pr_paragraph_separator.h: Likewise.
59878         * lib/unictype/pr_pattern_syntax.h: Likewise.
59879         * lib/unictype/pr_pattern_white_space.h: Likewise.
59880         * lib/unictype/pr_private_use.h: Likewise.
59881         * lib/unictype/pr_punctuation.h: Likewise.
59882         * lib/unictype/pr_quotation_mark.h: Likewise.
59883         * lib/unictype/pr_radical.h: Likewise.
59884         * lib/unictype/pr_sentence_terminal.h: Likewise.
59885         * lib/unictype/pr_soft_dotted.h: Likewise.
59886         * lib/unictype/pr_space.h: Likewise.
59887         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59888         * lib/unictype/pr_titlecase.h: Likewise.
59889         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59890         * lib/unictype/pr_unified_ideograph.h: Likewise.
59891         * lib/unictype/pr_uppercase.h: Likewise.
59892         * lib/unictype/pr_variation_selector.h: Likewise.
59893         * lib/unictype/pr_white_space.h: Likewise.
59894         * lib/unictype/pr_xid_continue.h: Likewise.
59895         * lib/unictype/pr_xid_start.h: Likewise.
59896         * lib/unictype/pr_zero_width.h: Likewise.
59897         * lib/unictype/scripts.h: Likewise.
59898         * lib/unictype/scripts_byname.gperf: Likewise.
59899         * lib/unictype/sy_c_ident.h: Likewise.
59900         * lib/unictype/sy_c_whitespace.h: Likewise.
59901         * lib/unictype/sy_java_ident.h: Likewise.
59902         * lib/unictype/sy_java_whitespace.h: Likewise.
59903
59904         * lib/unictype/Makefile: New file.
59905         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59906         glibc.
59907         * lib/unictype/3level.h: New file, copied from glibc.
59908         * lib/unictype/3levelbit.h: New file.
59909
59910 2007-11-11  Bruno Haible  <bruno@clisp.org>
59911
59912         * modules/gperf: New file.
59913         * modules/iconv_open (Depends-on): Add it.
59914         (Makefile.am): Remove the GPERF definition.
59915
59916 2007-11-11  Bruno Haible  <bruno@clisp.org>
59917
59918         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59919         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59920
59921 2007-11-11  Bruno Haible  <bruno@clisp.org>
59922
59923         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59924         (usage): Remove function.
59925
59926 2007-11-11  Bruno Haible  <bruno@clisp.org>
59927
59928         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59929         gl_FUNC_CEILF_LIBS.
59930         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59931         gl_FUNC_CEIL_LIBS.
59932         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59933         gl_FUNC_CEILL_LIBS.
59934         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59935         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59936         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59937
59938 2007-11-11  Bruno Haible  <bruno@clisp.org>
59939
59940         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59941         roundf were declared but do not exist on functions.
59942         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59943         roundl were declared but do not exist on functions.
59944         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59945         HAVE_FLOORL_AND_CEILL, respectively.
59946         Needed for Sun C on Solaris 10.
59947
59948 2007-11-11  Bruno Haible  <bruno@clisp.org>
59949
59950         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59951         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59952         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59953         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59954         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59955         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59956         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59957         HAVE_DECL_ROUNDF.
59958         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59959         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59961         of HAVE_DECL_ROUND*.
59962         * modules/math (Makefile.am): Update.
59963
59964 2007-11-10  Bruno Haible  <bruno@clisp.org>
59965
59966         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59967         ptrdiff_t as m4/intl.m4.
59968
59969 2007-11-10  Jim Meyering  <meyering@redhat.com>
59970
59971         Avoid link failure for the argmatch test.
59972         * tests/test-argmatch.c (usage): Define function to avoid a link
59973         failure: argmatch_die requires a usage function.
59974
59975 2007-11-09  Bruno Haible  <bruno@clisp.org>
59976
59977         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59978         * doc/functions/vsnprintf.texi: Likewise.
59979         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59980         with a size argument < 2.
59981
59982 2007-11-09  Bruno Haible  <bruno@clisp.org>
59983
59984         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59985         buffer. Fixes an inefficiency introduced on 2007-11-03.
59986
59987 2007-11-09  Bruno Haible  <bruno@clisp.org>
59988
59989         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59990         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59991
59992 2007-11-08  Jim Meyering  <meyering@redhat.com>
59993
59994         Change cache variable name prefix "jm_" to "gl_" everywhere.
59995         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59996         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59997         * m4/uptime.m4: s/gl_/jm_/
59998
59999 2007-11-07  Bruno Haible  <bruno@clisp.org>
60000
60001         Update to GNU gettext 0.17.
60002         * m4/intl.m4: Update to GNU gettext 0.17.
60003         * m4/po.m4: Likewise.
60004         * modules/gettext (Files): Remove m4/ulonglong.m4.
60005         (configure.ac): Require gettext infrastructure from version 0.17.
60006
60007 2007-11-06  Bruno Haible  <bruno@clisp.org>
60008
60009         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60010         symbolic values are not defined in a public header.
60011         * lib/freadable.c (freadable) [QNX]: Likewise.
60012         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60013         * lib/freading.c (freading) [QNX]: Likewise.
60014         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60015         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60016         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60017         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60018         Reported by Alain Magloire.
60019
60020         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60021
60022 2007-11-05  Bruno Haible  <bruno@clisp.org>
60023
60024         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60025         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60026         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60027         Reported by Eric Blake.
60028
60029 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60030             Bruno Haible  <bruno@clisp.org>
60031
60032         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60033         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60034         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60035         (malloc): Undefine also before including <stdlib.h>.
60036         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60037         Needed on OSF/1 4.0.
60038
60039 2007-11-05  Jim Meyering  <meyering@redhat.com>
60040
60041         git-version-gen: sync from coreutils.
60042         * build-aux/git-version-gen: Add comments.
60043         Change the first '-' to '.' in the snapshot version string,
60044         e.g., 6.9-377-08144 -> 6.9.377-08144
60045         Remove first parameter.
60046         Don't declare a version "-dirty" merely because a time
60047         stamp has changed.
60048
60049 2007-11-04  Bruno Haible  <bruno@clisp.org>
60050
60051         * lib/lock.h: Protect all macro definitions containing an 'if'
60052         statement through a "do { ... } while (0)".
60053         * lib/tls.h: Likewise.
60054
60055 2007-11-04  Bruno Haible  <bruno@clisp.org>
60056
60057         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60058
60059 2007-11-04  Bruno Haible  <bruno@clisp.org>
60060
60061         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60062         * modules/fprintf-posix (Depends-on): Add nocrash.
60063         * modules/snprintf-posix (Depends-on): Likewise.
60064         * modules/sprintf-posix (Depends-on): Likewise.
60065         * modules/vasnprintf-posix (Depends-on): Likewise.
60066         * modules/vasprintf-posix (Depends-on): Likewise.
60067         * modules/vfprintf-posix (Depends-on): Likewise.
60068         * modules/vsnprintf-posix (Depends-on): Likewise.
60069         * modules/vsprintf-posix (Depends-on): Likewise.
60070         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60071         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60072         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60073         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60074         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60075         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60076         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60077
60078 2007-11-04  Bruno Haible  <bruno@clisp.org>
60079
60080         * modules/nocrash: New file.
60081         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60082         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60083
60084 2007-11-04  Bruno Haible  <bruno@clisp.org>
60085
60086         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60087         precision handling.
60088         * tests/test-vasprintf-posix.c (test_function): Likewise.
60089         * tests/test-snprintf-posix.h (test_function): Likewise.
60090         * tests/test-sprintf-posix.h (test_function): Likewise.
60091
60092         Fix *printf behaviour for large precisions on mingw and BeOS.
60093         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60094         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60095         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60096         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60097         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60098         gl_PRINTF_PRECISION and test its result. Invoke
60099         gl_PREREQ_VASNPRINTF_PRECISION.
60100         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60101         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60102         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60103         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60104         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60105         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60106         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60107         * doc/functions/fprintf.texi: Update.
60108         * doc/functions/printf.texi: Update.
60109         * doc/functions/snprintf.texi: Update.
60110         * doc/functions/sprintf.texi: Update.
60111         * doc/functions/vfprintf.texi: Update.
60112         * doc/functions/vprintf.texi: Update.
60113         * doc/functions/vsnprintf.texi: Update.
60114         * doc/functions/vsprintf.texi: Update.
60115
60116 2007-11-04  Bruno Haible  <bruno@clisp.org>
60117
60118         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60119
60120 2007-11-04  Bruno Haible  <bruno@clisp.org>
60121
60122         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60123         Reported by Sylvain Beucler <beuc@gnu.org>.
60124
60125 2007-11-03  Bruno Haible  <bruno@clisp.org>
60126
60127         * tests/test-fprintf-posix2.sh: New file.
60128         * tests/test-fprintf-posix2.c: New file.
60129         * modules/fprintf-posix-tests (Files): Add them.
60130         (TESTS): Add test-fprintf-posix2.sh.
60131         (configure.ac): Check for getrlimit and setrlimit.
60132         (check_PROGRAMS): Add test-fprintf-posix2.
60133
60134         * tests/test-printf-posix2.sh: New file.
60135         * tests/test-printf-posix2.c: New file.
60136         * modules/printf-posix-tests (Files): Add them.
60137         (TESTS): Add test-printf-posix2.sh.
60138         (configure.ac): Check for getrlimit and setrlimit.
60139         (check_PROGRAMS): Add test-printf-posix2.
60140
60141         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60142         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60143         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60144         (decode_double): New function, copied from decode_long_double.
60145         (scale10_round_decimal_decoded): New function, extracted from
60146         scale10_round_decimal_long_double.
60147         (scale10_round_decimal_long_double): Use it.
60148         (scale10_round_decimal_double): New function.
60149         (floorlog10): New function.
60150         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60151         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60152         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60153         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60154         gl_PRINTF_ENOMEM and test its result. Invoke
60155         gl_PREREQ_VASNPRINTF_ENOMEM.
60156         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60157         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60158         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60159         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60160         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60161         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60162         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60163         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60164         * modules/snprintf-posix (Depends-on): Likewise.
60165         * modules/sprintf-posix (Depends-on): Likewise.
60166         * modules/vasnprintf-posix (Depends-on): Likewise.
60167         * modules/vasprintf-posix (Depends-on): Likewise.
60168         * modules/vfprintf-posix (Depends-on): Likewise.
60169         * modules/vsnprintf-posix (Depends-on): Likewise.
60170         * modules/vsprintf-posix (Depends-on): Likewise.
60171         * doc/functions/fprintf.texi: Update.
60172         * doc/functions/printf.texi: Update.
60173         * doc/functions/snprintf.texi: Update.
60174         * doc/functions/sprintf.texi: Update.
60175         * doc/functions/vfprintf.texi: Update.
60176         * doc/functions/vprintf.texi: Update.
60177         * doc/functions/vsnprintf.texi: Update.
60178         * doc/functions/vsprintf.texi: Update.
60179
60180 2007-11-03  Bruno Haible  <bruno@clisp.org>
60181
60182         * modules/frexp-nolibm-tests: New file.
60183
60184         * modules/frexp-nolibm: New file.
60185         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60186
60187 2007-11-03  Bruno Haible  <bruno@clisp.org>
60188
60189         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60190         value is C99 compliant.
60191         Needed for OSF/1 5.1.
60192
60193 2007-11-03  Bruno Haible  <bruno@clisp.org>
60194
60195         Fix out-of-memory handling of vasnprintf.
60196         * lib/printf-parse.c: Include <errno.h>.
60197         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60198         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60199         is already set.
60200
60201 2007-11-02  Eric Blake  <ebb9@byu.net>
60202
60203         Fix tests on cygwin.
60204         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60205
60206 2007-11-01  Bruno Haible  <bruno@clisp.org>
60207
60208         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60209         warning.
60210         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60211         needed for POSIX compatibility.
60212
60213 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60214
60215         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60216         for compatibility with GNU.
60217
60218 2007-11-01  Bruno Haible  <bruno@clisp.org>
60219
60220         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60221         (putenv): Renamed from rpl_putenv. Change argument type from
60222         'const char *' to 'char *'.
60223         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60224         of defining putenv in config.h, just set REPLACE_PUTENV.
60225         * modules/putenv (Depends-on): Add stdlib.
60226         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60227         (Include): Use <stdlib.h>.
60228         * lib/stdlib.in.h (putenv): New declaration.
60229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60230         REPLACE_PUTENV.
60231         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60232         REPLACE_PUTENV.
60233         Needed for MacOS X 10.5.0.
60234         Reported by Peter O'Gorman <peter@pogma.com>.
60235
60236 2007-11-01  Jim Meyering  <meyering@redhat.com>
60237
60238         Treat an empty date string exactly like "0".
60239         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60240         if the remaining date string (to be parsed) is empty, use "0".
60241         Reported by Mischa Molhoek and discussed in this thread:
60242         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60243
60244 2007-10-31  Bruno Haible  <bruno@clisp.org>
60245
60246         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60247         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60248         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60249         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60250         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60251         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60252
60253 2007-10-31  Bruno Haible  <bruno@clisp.org>
60254
60255         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60256         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60257         (AC_TYPE_LONG_LONG_INT): Use it.
60258         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60259         it as well.
60260         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60261         to m4/longlong.m4.
60262         * modules/stdint (Files): Remove m4/ulonglong.m4.
60263         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60264         m4/ulonglong.m4.
60265         * modules/strtoumax (Files): Likewise.
60266
60267 2007-10-30  Bruno Haible  <bruno@clisp.org>
60268
60269         * modules/xvasprintf-posix: New file.
60270         Suggested by Eric Blake.
60271
60272 2007-10-30  Bruno Haible  <bruno@clisp.org>
60273
60274         * modules/xprintf-posix-tests: New file.
60275         * tests/test-xprintf-posix.sh: New file.
60276         * tests/test-xprintf-posix.c: New file.
60277         * tests/test-xfprintf-posix.c: New file.
60278
60279         * modules/xprintf-posix: New file.
60280
60281 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60282
60283         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60284         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60285         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60286
60287 2007-10-29  Bruno Haible  <bruno@clisp.org>
60288
60289         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60290         contain the special marker '_cv_'.
60291         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60292         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60293         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60294         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60295         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60296         Reported by Ralf Wildenhues.
60297
60298 2007-10-29  Bruno Haible  <bruno@clisp.org>
60299
60300         * gnulib-tool (func_import): When --lgpl is not specified, set
60301         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60302         GPLv3.
60303         Reported by Simon Josefsson.
60304
60305 2007-10-28  Bruno Haible  <bruno@clisp.org>
60306
60307         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60308         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60309         HAVE_DECL_ISFINITE.
60310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60311         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60312         HAVE_DECL_ISFINITE.
60313
60314 2007-10-28  Bruno Haible  <bruno@clisp.org>
60315
60316         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60317         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60318
60319 2007-10-28  Bruno Haible  <bruno@clisp.org>
60320
60321         Fix link errors with Sun C 5.0 on Solaris 10.
60322         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60323         function is declared but not present in the compiler's libm.
60324         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60325         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60326         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60327         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60328         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60329         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60330         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60332         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60333         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60334         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60335         HAVE_DECL_FLOORL.
60336
60337 2007-10-28  Bruno Haible  <bruno@clisp.org>
60338
60339         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60340         gl_FUNC_FLOORL. Cache the result.
60341         (gl_FUNC_FLOORL): Use it.
60342         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60343         gl_FUNC_CEILL. Cache the result.
60344         (gl_FUNC_CEILL): Use it.
60345
60346         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60347         gl_FUNC_FLOOR. Cache the result.
60348         (gl_FUNC_FLOOR): Use it.
60349         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60350         gl_FUNC_CEIL. Cache the result.
60351         (gl_FUNC_CEIL): Use it.
60352
60353         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60354         gl_FUNC_FLOORF. Cache the result.
60355         (gl_FUNC_FLOORF): Use it.
60356         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60357         gl_FUNC_CEILF. Cache the result.
60358         (gl_FUNC_CEILF): Use it.
60359
60360 2007-10-28  Bruno Haible  <bruno@clisp.org>
60361
60362         * gnulib-tool: Allow specifying the LGPL version number through
60363         --lgpl=2 or --lgpl=3.
60364         (func_usage): Document --lgpl with argument.
60365         Handle --lgpl=... arguments.
60366         (func_import): Recognize also gl_LGPL calls with an argument. When
60367         --lgpl=2 is used and the module's license is just LGPL, report an
60368         error. Set sed_transform_lib_file according to the lgpl variable. In
60369         the generated files, use --lgpl or gl_LGPL invocations with argument,
60370         if necessary.
60371         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60372         an LGPv2+ license.
60373         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60374         gl_LGPL macro.
60375
60376 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60377             Bruno Haible  <bruno@clisp.org>
60378
60379         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60380         (u16_uctomb_aux): Likewise.
60381         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60382         !HAVE_INLINE.
60383         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60384
60385 2007-10-28  Bruno Haible  <bruno@clisp.org>
60386
60387         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60388         Invoke AM_GETTEXT_OPTION if it exists.
60389         * modules/vasprintf: Likewise.
60390         * modules/verror: Likewise.
60391         * modules/xprintf: Likewise.
60392         * modules/xvasprintf: Likewise.
60393
60394 2007-10-27  Ben Pfaff  <blp@gnu.org>
60395
60396         * lib/math.in.h: Define isfinite macro and prototypes for
60397         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60398         implementations.
60399         * m4/math_h.m4: New substitutions for isfinite module.
60400         * lib/isfinite.c: New file.
60401         * m4/isfinite.m4: New file.
60402         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60403         * modules/isfinite: New file.
60404         * modules/isfinite-tests: New file.
60405         * tests/tests-isfinite.c: New file.
60406         * doc/functions/isfinite.texi: Mention isfinite module.
60407         * MODULES.html.sh: Mention new module.
60408
60409 2007-10-27  Ben Pfaff  <blp@gnu.org>
60410
60411         Ralf Wildenhues reported that Tru64 4.0D declares the round
60412         functions but does not have definitions.
60413         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60414         cannot be found in any library, set the output variable to
60415         "missing" instead of "".
60416         * m4/round.m4: Also use our substitute if we cannot find round in
60417         any library, even if it is declared.
60418         * m4/roundf.m4: Likewise for roundf.
60419         * m4/roundl.m4: Likewise for roundl.
60420         * lib/math.in.h: Undefine roundf, round, roundl before defining
60421         their replacements, to allow for hypothetical systems where these
60422         may be defined as macros but not available in libraries.
60423
60424 2007-10-27  Bruno Haible  <bruno@clisp.org>
60425
60426         * doc/gnulib.texi: Invoke @firstparagraphindent.
60427         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60428         changes in gnulib.
60429         (Source changes): New section.
60430
60431 2007-10-26  Bruno Haible  <bruno@clisp.org>
60432
60433         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60434         borrowed from autoconf.
60435
60436 2007-10-26  Bruno Haible  <bruno@clisp.org>
60437
60438         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60439         strerror returned the empty string. Needed on HP-UX 11.00.
60440
60441 2007-10-24  Micah Cowan  <micah@cowan.name>
60442
60443         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60444         * build-aux/bootstrap: Remove support for now-unnecessary option,
60445         --cvs-user, and envvars CVS_USER, CVS_RSH.
60446
60447 2007-10-24  Jim Meyering  <meyering@redhat.com>
60448
60449         Avoid diagnostics from sha1sum when there is no cached checksum.
60450         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60451         if the po.s1 file hasn't been created yet.
60452
60453         * build-aux/bootstrap: Sync from coreutils:
60454         2007-10-24  Jim Meyering  <meyering@redhat.com>
60455         Get gnulib from the git repository, not from an obsolete cvs one.
60456         * build-aux/bootstrap: Suggestion from Micah Cowan.
60457         2007-10-04  Jim Meyering  <jim@meyering.net>
60458         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60459         (update_po_files): Work also when there are no .po files in po/.
60460
60461 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60462
60463         * README: Append ".git" to git and cg examples.
60464         Problem reported by Benoit Sigoure.
60465
60466 2007-10-23  Micah Cowan  <micah@cowan.name>
60467
60468         * users.txt: Add wget.
60469
60470 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60471
60472         Fix linking of some unistdio tests on FreeBSD.
60473         * modules/unistdio/u16-vsnprintf-tests
60474         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60475         * modules/unistdio/u16-vsprintf-tests
60476         (test_u16_vsnprintf1_LDADD): Likewise.
60477         * modules/unistdio/u32-vsnprintf-tests
60478         (test_u32_vsnprintf1_LDADD): Likewise.
60479         * modules/unistdio/u32-vsprintf-tests
60480         (test_u32_vsprintf1_LDADD): Likewise.
60481         * modules/unistdio/u8-vsnprintf-tests
60482         (test_u8_vsnprintf1_LDADD): Likewise.
60483         * modules/unistdio/u8-vsprintf-tests
60484         (test_u8_vsprintf1_LDADD): Likewise.
60485         * modules/unistdio/ulc-vsnprintf-tests
60486         (test_ulc_vsnprintf1_LDADD): Likewise.
60487         * modules/unistdio/ulc-vsprintf-tests
60488         (test_ulc_vsprintf1_LDADD): Likewise.
60489
60490         Fix linking of some uniconv tests on FreeBSD.
60491         * modules/uniconv/u16-conv-from-enc-tests
60492         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60493         * modules/uniconv/u16-conv-to-enc-tests
60494         (test_u16_conv_to_enc_LDADD): Likewise.
60495         * modules/uniconv/u16-strconv-from-enc-tests
60496         (test_u16_strconv_from_enc_LDADD): Likewise.
60497         * modules/uniconv/u16-strconv-to-enc-tests
60498         (test_u16_strconv_to_enc_LDADD): Likewise.
60499         * modules/uniconv/u32-conv-from-enc-tests
60500         (test_u32_conv_from_enc_LDADD): Likewise.
60501         * modules/uniconv/u32-conv-to-enc-tests
60502         (test_u32_conv_to_enc_LDADD): Likewise.
60503         * modules/uniconv/u32-strconv-from-enc-tests
60504         (test_u32_strconv_from_enc_LDADD): Likewise.
60505         * modules/uniconv/u32-strconv-to-enc-tests
60506         (test_u32_strconv_to_enc_LDADD): Likewise.
60507         * modules/uniconv/u8-conv-from-enc-tests
60508         (test_u8_conv_from_enc_LDADD): Likewise.
60509         * modules/uniconv/u8-conv-to-enc-tests
60510         (test_u8_conv_to_enc_LDADD): Likewise.
60511         * modules/uniconv/u8-strconv-from-enc-tests
60512         (test_u8_strconv_from_enc_LDADD): Likewise.
60513         * modules/uniconv/u8-strconv-to-enc-tests
60514         (test_u8_strconv_to_enc_LDADD): Likewise.
60515
60516 2007-10-22  Bruno Haible  <bruno@clisp.org>
60517
60518         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60519         size.
60520
60521 2007-10-22  Eric Blake  <ebb9@byu.net>
60522
60523         Tweak x*printf documentation.
60524         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60525         variable name and comments.
60526         Suggested by Bruno Haible.
60527
60528 2007-10-22  Bruno Haible  <bruno@clisp.org>
60529
60530         * lib/acl.c (copy_acl): Fix file name in comment.
60531
60532 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60533
60534         Fix Tru64 problem with stdbool.h.
60535         * lib/stdbool.in.h (false, true):
60536         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60537         Don't declare as an enum in this situation; it runs afoul of Tru64.
60538         Problem reported by Steven M. Schweda in
60539         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60540
60541 2007-10-22  Eric Blake  <ebb9@byu.net>
60542
60543         Also wrap vf?printf.
60544         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60545         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60546         (xvprintf, xvfprintf): New functions.
60547
60548 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60549
60550         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60551         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60552
60553         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60554         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60555
60556 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60557
60558         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60559         by Bruno Haible.
60560
60561 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60562
60563         * lib/getloadavg.c
60564         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60565         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60566
60567         * tests/test-i-ring.c: Work for C89.
60568
60569 2007-10-22  Bruno Haible  <bruno@clisp.org>
60570
60571         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60572         -1u, in preprocessor expression, so that we don't test for the bug
60573         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60574         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60575
60576 2007-10-22  Eric Blake  <ebb9@byu.net>
60577
60578         * tests/test-yesno.sh: Silence stderr during test.
60579
60580 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60581
60582         * modules/crypto/gc-camellia: New file.
60583
60584         * m4/gc-camellia.m4: New file.
60585
60586         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60587
60588         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60589
60590 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60591
60592         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60593         --help to stdout.  Reported by sms@antinode.org (Steven
60594         M. Schweda).
60595
60596 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60597
60598         * users.txt: Fix link to libksba.
60599
60600 2007-10-21  Ben Pfaff  <blp@gnu.org>
60601
60602         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60603         round.c roundf implementation that depends on floorf and ceilf to
60604         be tested unconditionally.
60605
60606 2007-10-21  Ben Pfaff  <blp@gnu.org>
60607
60608         * m4/check-libm-func.m4: Removed.
60609         * m4/check-math-lib.m4: New file.
60610         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60611         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60612         definition and lack of AC_LIBOBJ([roundf]).
60613         * m4/roundl.m4: Ditto, and similarly for roundl.
60614         * modules/round: Reference new m4 file.
60615         * modules/roundf: Ditto.
60616         * modules/roundl: Ditto.
60617         * tests/test-round2.c (main): Use ROUND instead of round.
60618         Bug report from Bruno Haible.
60619
60620 2007-10-21  Bruno Haible  <bruno@clisp.org>
60621
60622         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60623         context.
60624
60625 2007-10-21  Bruno Haible  <bruno@clisp.org>
60626
60627         * tests/test-wcwidth.c (main): Allow negative result for some control
60628         characters.
60629
60630         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60631         Needed on OSF/1 5.1.
60632
60633 2007-10-21  Bruno Haible  <bruno@clisp.org>
60634
60635         * tests/test-floorf1.c: Include isnanf.h.
60636         (main): Use isnanf() instead of isnan().
60637         * tests/test-ceilf1.c: Include isnanf.h.
60638         (main): Use isnanf() instead of isnan().
60639         * tests/test-truncf1.c: Include isnanf.h.
60640         (main): Use isnanf() instead of isnan().
60641         * tests/test-roundf1.c: Include isnanf.h.
60642         (main): Use isnanf() instead of isnan().
60643
60644 2007-10-21  Eric Blake  <ebb9@byu.net>
60645
60646         * users.txt: Update URL for m4.
60647
60648 2007-10-21  Bruno Haible  <bruno@clisp.org>
60649
60650         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60651
60652 2007-10-21  Bruno Haible  <bruno@clisp.org>
60653
60654         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60655         Git's management files if the CVS files are not present.
60656
60657 2007-10-20  Bruno Haible  <bruno@clisp.org>
60658
60659         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60660         gcc-3.4.x.
60661
60662 2007-10-20  Ben Pfaff  <blp@gnu.org>
60663
60664         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60665         implementations.
60666         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60667         * lib/round.c: New file.
60668         * lib/roundf.c: New file.
60669         * lib/roundl.c: New file.
60670         * m4/round.m4: New file.
60671         * m4/roundf.m4: New file.
60672         * m4/roundl.m4: New file.
60673         * m4/check-libm-func-m4: New file.
60674         * modules/math: Replace round, roundf, roundl related @VARS@ in
60675         math.in.h.
60676         * modules/round: New file.
60677         * modules/round-tests: New file.
60678         * modules/roundf: New file.
60679         * modules/roundf-tests: New file.
60680         * modules/roundl: New file.
60681         * modules/roundl-tests: New file.
60682         * tests/test-round1.c: New file.
60683         * tests/test-round2.c: New file.
60684         * tests/test-roundf1.c: New file.
60685         * tests/test-roundf2.c: New file.
60686         * tests/test-roundl.c: New file.
60687         * doc/functions/round.texi: Mention round module.
60688         * doc/functions/roundf.texi: Mention roundf module.
60689         * doc/functions/roundl.texi: Mention roundl module.
60690         * MODULES.html.sh: Mention new modules.
60691         Thanks to Bruno Haible for suggestions.
60692
60693 2007-10-20  Jim Meyering  <meyering@redhat.com>
60694
60695         * lib/xprintf.c: Include <config.h> unconditionally.
60696
60697         Change xprintf's license to GPL.
60698         * modules/xprintf (License): s/LGPL/GPL/, since this module
60699         depends on modules (exit and exitfail) which are GPL.
60700         Suggestion from Bruno Haible.
60701
60702         xprintf fixes.
60703         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60704         Use a clearer diagnostic.
60705         Patch from Bruno Haible.
60706
60707 2007-10-20  Bruno Haible  <bruno@clisp.org>
60708
60709         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60710         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60711         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60712
60713 2007-10-20  Bruno Haible  <bruno@clisp.org>
60714
60715         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60716         precision in the comparison result > x - 1 or similar.
60717         * tests/test-ceilf2.c (correct_result_p): Likewise.
60718         * tests/test-truncf2.c (correct_result_p): Likewise.
60719         * tests/test-trunc2.c (correct_result_p): Likewise.
60720         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60721
60722 2007-10-20  Bruno Haible  <bruno@clisp.org>
60723
60724         * modules/ceil: New file.
60725         * m4/ceil.m4: New file.
60726         * doc/functions/ceil.texi: Mention the 'ceil' module.
60727
60728 2007-10-20  Bruno Haible  <bruno@clisp.org>
60729
60730         * modules/floor: New file.
60731         * m4/floor.m4: New file.
60732         * doc/functions/floor.texi: Mention the 'floor' module.
60733
60734 2007-10-20  Bruno Haible  <bruno@clisp.org>
60735
60736         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60737         of %a.
60738         * modules/floorf-tests (Depends-on): Likewise.
60739         * modules/truncf-tests (Depends-on): Likewise.
60740         * modules/trunc-tests (Depends-on): Likewise.
60741         Reported by Ben Pfaff.
60742
60743 2007-10-19  Jim Meyering  <meyering@redhat.com>
60744
60745         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60746         Don't bother testing specific errno values.  Just test ferror.
60747
60748         New module: xprintf
60749         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60750
60751 2007-10-19  Bruno Haible  <bruno@clisp.org>
60752
60753         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60754         syntax.
60755         * modules/javaexec (Makefile.am): Likewise.
60756         * modules/relocatable-prog (Makefile.am): Likewise.
60757         Suggested by Jim Meyering.
60758
60759 2007-10-18  Bruno Haible  <bruno@clisp.org>
60760
60761         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60762         Reported by Jim Meyering.
60763
60764 2007-10-18  Eric Blake  <ebb9@byu.net>
60765
60766         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60767
60768 2007-10-18  Bruno Haible  <bruno@clisp.org>
60769
60770         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60771         the format string into writable memory. Needed in Fortify conditions.
60772
60773 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60774             Bruno Haible  <bruno@clisp.org>
60775
60776         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60777         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60778         * modules/trim (Depends-on): Add mbchar.
60779         (configure.ac): Add gl_FUNC_MBRTOWC.
60780         (Makefile.am): Augment lib_SOURCES.
60781
60782 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60783
60784         Modify glob.c to use fstatat and dirfd, to simplify it.
60785         Suggested by Eric Blake.
60786         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60787         Don't include <stdbool.h>; not used.
60788         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60789         (link_exists_p): Simplify implementation, since we can now assume
60790         dirfd and fstatat.
60791         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60792
60793 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60794
60795         * gnulib-tool (func_get_dependencies): Fix sed script to
60796         match only tests.
60797
60798 2007-10-17  Bruno Haible  <bruno@clisp.org>
60799
60800         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60801         allow locale names without encoding suffix.
60802         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60803         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60804
60805 2007-10-16  Bruno Haible  <bruno@clisp.org>
60806
60807         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60808         * lib/getgroups.c (getgroups): Likewise.
60809         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60810
60811 2007-10-16  Bruno Haible  <bruno@clisp.org>
60812
60813         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60814         * modules/malloc-posix (License): Likewise.
60815         * modules/realloc-posix (License): Likewise.
60816         * modules/calloc-posix (License): Likewise.
60817         * modules/intprops (License): Change from GPL to LGPL, with
60818         Paul Eggert's approval.
60819
60820 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60821
60822         Merge glibc changes into lib/glob.c.
60823
60824         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60825         2007-10-15 04:59:03 UTC.  Here are the changes:
60826
60827         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60828
60829         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60830
60831         * lib/glob.c: Add some branch prediction throughout.
60832
60833         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60834
60835         [BZ #5103]
60836         * lib/glob.c (glob): Recognize patterns starting \/.
60837
60838         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60839
60840         [BZ #3996]
60841         * lib/glob.c (attribute_hidden): Define if not defined.
60842         (glob): Unescape dirname, filename or username when needed and not
60843         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60844         is NULL.  Handle unescaped [ in pattern without closing ].
60845         Don't pass GLOB_CHECK down to recursive glob for directories.
60846         (__glob_pattern_type): New function.
60847         (__glob_pattern_p): Implement using __glob_pattern_type.
60848         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60849         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60850         Remove unreachable code.
60851
60852         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60853
60854         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60855         explain why there are no leaks.
60856
60857         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60858
60859         [BZ #3253]
60860         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60861         time, rather allocate increasingly bigger arrays of pointers, if
60862         possible with alloca, if too large with malloc.
60863
60864 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60865
60866         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60867         Problem reported by H.Merijn Brand in
60868         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60869         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60870         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60871
60872 2007-10-15  Bruno Haible  <bruno@clisp.org>
60873
60874         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60875         with explicit rpl_ prefix.
60876         * lib/fopen.c (fopen): Likewise.
60877         * lib/freopen.c (freopen): Likewise.
60878         * lib/iconv.c (iconv): Likewise.
60879         * lib/iconv_close.c (iconv_close): Likewise.
60880
60881 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60882
60883         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60884
60885 2007-10-15  Bruno Haible  <bruno@clisp.org>
60886
60887         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60888         <stddef.h> instead of <stdlib.h> since we only need NULL.
60889         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60890
60891 2007-10-15  Bruno Haible  <bruno@clisp.org>
60892
60893         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60894         Replace paragraph talking about LIBOBJS.
60895         Reported by Colin Watson <cjwatson@debian.org>.
60896
60897 2007-10-15  Bruno Haible  <bruno@clisp.org>
60898
60899         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60900         <stdlib.h> before using NULL.
60901
60902 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60903
60904         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60905         Reported by Albert Chin <china@thewrittenword.com>.
60906
60907 2007-10-14  Bruno Haible  <bruno@clisp.org>
60908
60909         * modules/iconv_open-utf-tests: New file.
60910         * tests/test-iconv-utf.c: New file.
60911
60912         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60913         * modules/iconv_open-utf: New file.
60914         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60915         (iconv, iconv_close): New declarations.
60916         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60917         be defined.
60918         (iconv_open): Add special handling of conversion between UTF-8 and
60919         UTF-{16,32}{BE,LE}.
60920         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60921         * lib/iconv_close.c: New file.
60922         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60923         gl_FUNC_ICONV_OPEN.
60924         (gl_FUNC_ICONV_OPEN): Use it.
60925         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60926         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60927         and REPLACE_ICONV_UTF.
60928         * modules/iconv_open (Depends-on): Add c-strcase.
60929         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60930         ICONV_CONST.
60931         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60932
60933 2007-10-13  Albert Chin  <china@thewrittenword.com>
60934             Bruno Haible  <bruno@clisp.org>
60935
60936         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60937         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60938
60939 2007-10-13  Bruno Haible  <bruno@clisp.org>
60940
60941         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60942         defined, use the ISO C99 inline semantics.
60943         * lib/argp.h (ARGP_EI): Likewise.
60944
60945 2007-10-13  Bruno Haible  <bruno@clisp.org>
60946
60947         Handle 'inline' change in gcc 4.3.0.
60948         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60949         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60950         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60951         argp_fmtstream_point): Disable 'extern' declaration if the function
60952         definition is going to be provided inline.
60953         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60954         semantics, not the ISO C99 inline semantics.
60955         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60956         'extern' declaration if the function definition is going to be provided
60957         inline.
60958         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60959         the GNU C inline semantics, not the ISO C99 inline semantics. With
60960         GCC 4.2, avoid a warning.
60961
60962 2007-10-13  Bruno Haible  <bruno@clisp.org>
60963
60964         * lib/freading.h (freading): Enable the use of __freading for
60965         glibc >= 2.7.
60966         * lib/freading.c (freading): Likewise.
60967
60968 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60969
60970         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60971         "warning: C99 inline functions are not supported; using GNU89".
60972
60973 2007-10-12  Bruno Haible  <bruno@clisp.org>
60974
60975         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60976         of 2.
60977         * tests/test-ceilf2.c: New file.
60978         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60979
60980         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60981         * modules/ceilf-tests: Update.
60982
60983 2007-10-12  Bruno Haible  <bruno@clisp.org>
60984
60985         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60986         of 2.
60987         * tests/test-floorf2.c: New file.
60988         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60989
60990         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60991         * modules/floorf-tests: Update.
60992
60993 2007-10-12  Bruno Haible  <bruno@clisp.org>
60994
60995         * tests/test-trunc2.c: New file.
60996         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60997
60998         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60999         * modules/trunc-tests: Update.
61000
61001 2007-10-12  Bruno Haible  <bruno@clisp.org>
61002
61003         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61004         of 2.
61005         * tests/test-truncf2.c: New file.
61006         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61007
61008         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61009         * modules/truncf-tests: Update.
61010
61011 2007-10-11  Eric Blake  <ebb9@byu.net>
61012
61013         Don't claim strerror is broken on Interix.
61014         * doc/functions/strerror.texi (strerror): Known broken systems are
61015         now Solaris 8, and not Interix.
61016         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61017         Interix on cross-compile.
61018         Reported by Martin Koeppe in
61019         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61020
61021 2007-10-11  Bruno Haible  <bruno@clisp.org>
61022
61023         * modules/i-ring-tests: New file.
61024         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61025         instead of assert.
61026
61027 2007-10-11  Bruno Haible  <bruno@clisp.org>
61028
61029         * modules/filenamecat-tests: New file.
61030         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61031         * lib/filenamecat.c: Remove test code.
61032
61033 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61034
61035         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61036
61037         * lib/strerror.c: Include <string.h> always, to test interface,
61038         and to remove the need for the dummy.
61039         Include intprops.h to compute width instead of doing it ourselves
61040         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61041         (strerror): Define it to return NULL if there's no system strerror.
61042         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61043         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61044         ancient pre-strerror Unix systems well any more.  Saying "unknown
61045         system error" is enough.
61046         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61047         simpler strerror.c implementation.
61048         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61049         Simplify the tests to reflect the simpler strerror implementation.
61050         * modules/strerror (Depends-on): Add intprops.
61051
61052 2007-10-09  Eric Blake  <ebb9@byu.net>
61053
61054         Silence test-fpending.
61055         * modules/fpending-tests (Files): Add wrapper script.
61056         * tests/test-fpending.sh: New file.
61057
61058 2007-10-09  Bruno Haible  <bruno@clisp.org>
61059
61060         * MODULES.html.sh (func_module): Don't create a hyperlink for
61061         function names like 'printf_frexp'.
61062         (Misc): Add crc, memxor.
61063         (Characteristics of floating types): New section.
61064         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61065         isnanf-nolibm, signbit, trunc, truncf, truncl.
61066         (Enhancements for ISO C 99 functions): New subsection Input/output.
61067         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61068         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61069         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61070         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61071         (Enhancements for POSIX:2001 functions): Add chdir-long.
61072         (File system functions): Add areadlink, chdir-safer, read-file.
61073         Remove cycle-check.
61074         (File system as inode set): New section.
61075         (Date and time): Add gethrxtime.
61076         (Multithreading): Add openmp.
61077         (Internationalization functions): Add localename.
61078         (Unicode string functions): Add unistr/u*-mbsnlen.
61079         (Support for maintaining and releasing projects): Add git-version-gen.
61080         (Lone files): Remove directories.
61081
61082 2007-10-08  Ben Pfaff  <blp@gnu.org>
61083
61084         * lib/xmalloca.h: Fix typo in comment.
61085
61086 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61087
61088         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61089         when avoiding problems with integer overflow.  Use a portable test
61090         instead.
61091
61092 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61093
61094         * modules/dummy (License): Change to LGPLv2+.
61095         * modules/float (License): Likewise
61096         * modules/realloc (License): Likewise
61097         * modules/stdlib (License): Likewise
61098
61099 2007-10-07  Bruno Haible  <bruno@clisp.org>
61100
61101         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61102         * floor.c (TWO_MANT_DIG): Likewise.
61103         * ceil.c (TWO_MANT_DIG): Likewise.
61104         Reported by Ben Pfaff.
61105
61106 2007-10-07  Bruno Haible  <bruno@clisp.org>
61107
61108         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61109         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61110         * lib/frexp.c (FUNC): Likewise.
61111         * lib/printf-frexp.h (printf_frexp): Likewise.
61112         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61113         * lib/printf-frexp.c (FUNC): Likewise.
61114         Suggested by Jim Meyering.
61115
61116 2007-10-07  Jim Meyering  <meyering@redhat.com>
61117
61118         Make xnanosleep's integer overflow test more robust.
61119         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61120         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61121
61122 2007-10-07  Bruno Haible  <bruno@clisp.org>
61123
61124         * NEWS: Mention the license change.
61125
61126         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61127         abbreviations in the modules files.
61128
61129         Change copyright notice from GPLv2+ to GPLv3+.
61130         * README: Change copyright notice.
61131         * MODULES.html.sh: Likewise.
61132         * build-aux/bootstrap.conf: Likewise.
61133         * build-aux/config.libpath: Likewise.
61134         * build-aux/csharpcomp.sh.in: Likewise.
61135         * build-aux/csharpexec.sh.in: Likewise.
61136         * build-aux/install-reloc: Likewise.
61137         * build-aux/javacomp.sh.in: Likewise.
61138         * build-aux/javaexec.sh.in: Likewise.
61139         * build-aux/ldd.sh.in: Likewise.
61140         * build-aux/reloc-ldflags: Likewise.
61141         * build-aux/relocatable.sh.in: Likewise.
61142         * build-aux/x-to-1.in: Likewise.
61143         * check-module: Likewise.
61144         * config/srclistvars.sh: Likewise.
61145         * gnulib-tool: Likewise.
61146         * lib/acl-internal.h: Likewise.
61147         * lib/acl.c: Likewise.
61148         * lib/acl.h: Likewise.
61149         * lib/acl_entries.c: Likewise.
61150         * lib/areadlink-with-size.c: Likewise.
61151         * lib/areadlink.c: Likewise.
61152         * lib/areadlink.h: Likewise.
61153         * lib/argmatch.c: Likewise.
61154         * lib/argmatch.h: Likewise.
61155         * lib/argp-ba.c: Likewise.
61156         * lib/argp-eexst.c: Likewise.
61157         * lib/argp-fmtstream.c: Likewise.
61158         * lib/argp-fmtstream.h: Likewise.
61159         * lib/argp-fs-xinl.c: Likewise.
61160         * lib/argp-help.c: Likewise.
61161         * lib/argp-namefrob.h: Likewise.
61162         * lib/argp-parse.c: Likewise.
61163         * lib/argp-pin.c: Likewise.
61164         * lib/argp-pv.c: Likewise.
61165         * lib/argp-pvh.c: Likewise.
61166         * lib/argp-xinl.c: Likewise.
61167         * lib/argp.h: Likewise.
61168         * lib/at-func.c: Likewise.
61169         * lib/atanl.c: Likewise.
61170         * lib/backupfile.c: Likewise.
61171         * lib/backupfile.h: Likewise.
61172         * lib/basename.c: Likewise.
61173         * lib/binary-io.h: Likewise.
61174         * lib/byteswap.in.h: Likewise.
61175         * lib/c-stack.c: Likewise.
61176         * lib/c-stack.h: Likewise.
61177         * lib/c-strcasestr.c: Likewise.
61178         * lib/c-strcasestr.h: Likewise.
61179         * lib/c-strstr.c: Likewise.
61180         * lib/c-strstr.h: Likewise.
61181         * lib/c-strtod.c: Likewise.
61182         * lib/calloc.c: Likewise.
61183         * lib/canon-host.c: Likewise.
61184         * lib/canon-host.h: Likewise.
61185         * lib/canonicalize-lgpl.c: Likewise.
61186         * lib/canonicalize.c: Likewise.
61187         * lib/canonicalize.h: Likewise.
61188         * lib/ceil.c: Likewise.
61189         * lib/ceilf.c: Likewise.
61190         * lib/ceill.c: Likewise.
61191         * lib/chdir-long.c: Likewise.
61192         * lib/chdir-long.h: Likewise.
61193         * lib/chdir-safer.c: Likewise.
61194         * lib/chdir-safer.h: Likewise.
61195         * lib/chown.c: Likewise.
61196         * lib/classpath.c: Likewise.
61197         * lib/classpath.h: Likewise.
61198         * lib/clean-temp.c: Likewise.
61199         * lib/clean-temp.h: Likewise.
61200         * lib/cloexec.c: Likewise.
61201         * lib/close-stream.c: Likewise.
61202         * lib/closein.c: Likewise.
61203         * lib/closein.h: Likewise.
61204         * lib/closeout.c: Likewise.
61205         * lib/closeout.h: Likewise.
61206         * lib/concat-filename.c: Likewise.
61207         * lib/copy-file.c: Likewise.
61208         * lib/copy-file.h: Likewise.
61209         * lib/count-one-bits.h: Likewise.
61210         * lib/crc.c: Likewise.
61211         * lib/crc.h: Likewise.
61212         * lib/creat-safer.c: Likewise.
61213         * lib/csharpcomp.c: Likewise.
61214         * lib/csharpcomp.h: Likewise.
61215         * lib/csharpexec.c: Likewise.
61216         * lib/csharpexec.h: Likewise.
61217         * lib/cycle-check.c: Likewise.
61218         * lib/cycle-check.h: Likewise.
61219         * lib/diacrit.c: Likewise.
61220         * lib/diacrit.h: Likewise.
61221         * lib/diffseq.h: Likewise.
61222         * lib/dirchownmod.c: Likewise.
61223         * lib/dirent.in.h: Likewise.
61224         * lib/dirfd.c: Likewise.
61225         * lib/dirfd.h: Likewise.
61226         * lib/dirname.c: Likewise.
61227         * lib/dirname.h: Likewise.
61228         * lib/dummy.c: Likewise.
61229         * lib/dup-safer.c: Likewise.
61230         * lib/dup2.c: Likewise.
61231         * lib/eealloc.h: Likewise.
61232         * lib/error.c: Likewise.
61233         * lib/error.h: Likewise.
61234         * lib/euidaccess.c: Likewise.
61235         * lib/exclude.c: Likewise.
61236         * lib/exclude.h: Likewise.
61237         * lib/execute.c: Likewise.
61238         * lib/execute.h: Likewise.
61239         * lib/exitfail.c: Likewise.
61240         * lib/exitfail.h: Likewise.
61241         * lib/expl.c: Likewise.
61242         * lib/fatal-signal.c: Likewise.
61243         * lib/fatal-signal.h: Likewise.
61244         * lib/fbufmode.c: Likewise.
61245         * lib/fbufmode.h: Likewise.
61246         * lib/fchdir.c: Likewise.
61247         * lib/fchmodat.c: Likewise.
61248         * lib/fchownat.c: Likewise.
61249         * lib/fcntl--.h: Likewise.
61250         * lib/fcntl-safer.h: Likewise.
61251         * lib/fcntl.in.h: Likewise.
61252         * lib/fd-safer.c: Likewise.
61253         * lib/fflush.c: Likewise.
61254         * lib/file-has-acl.c: Likewise.
61255         * lib/file-set.c: Likewise.
61256         * lib/file-type.c: Likewise.
61257         * lib/file-type.h: Likewise.
61258         * lib/fileblocks.c: Likewise.
61259         * lib/filemode.c: Likewise.
61260         * lib/filemode.h: Likewise.
61261         * lib/filename.h: Likewise.
61262         * lib/filenamecat.c: Likewise.
61263         * lib/filenamecat.h: Likewise.
61264         * lib/findprog.c: Likewise.
61265         * lib/findprog.h: Likewise.
61266         * lib/float.in.h: Likewise.
61267         * lib/floor.c: Likewise.
61268         * lib/floorf.c: Likewise.
61269         * lib/floorl.c: Likewise.
61270         * lib/fopen-safer.c: Likewise.
61271         * lib/fopen.c: Likewise.
61272         * lib/fpending.c: Likewise.
61273         * lib/fpending.h: Likewise.
61274         * lib/fprintf.c: Likewise.
61275         * lib/fprintftime.h: Likewise.
61276         * lib/fpucw.h: Likewise.
61277         * lib/fpurge.c: Likewise.
61278         * lib/fpurge.h: Likewise.
61279         * lib/freadable.c: Likewise.
61280         * lib/freadable.h: Likewise.
61281         * lib/freadahead.c: Likewise.
61282         * lib/freadahead.h: Likewise.
61283         * lib/freading.c: Likewise.
61284         * lib/freading.h: Likewise.
61285         * lib/free.c: Likewise.
61286         * lib/freopen.c: Likewise.
61287         * lib/frexp.c: Likewise.
61288         * lib/frexpl.c: Likewise.
61289         * lib/fseek.c: Likewise.
61290         * lib/fseterr.c: Likewise.
61291         * lib/fseterr.h: Likewise.
61292         * lib/fstatat.c: Likewise.
61293         * lib/fstrcmp.c: Likewise.
61294         * lib/fstrcmp.h: Likewise.
61295         * lib/fsusage.c: Likewise.
61296         * lib/fsusage.h: Likewise.
61297         * lib/ftell.c: Likewise.
61298         * lib/ftello.c: Likewise.
61299         * lib/fts-cycle.c: Likewise.
61300         * lib/fts.c: Likewise.
61301         * lib/fts_.h: Likewise.
61302         * lib/full-read.c: Likewise.
61303         * lib/full-read.h: Likewise.
61304         * lib/full-write.c: Likewise.
61305         * lib/full-write.h: Likewise.
61306         * lib/fwritable.c: Likewise.
61307         * lib/fwritable.h: Likewise.
61308         * lib/fwriteerror.c: Likewise.
61309         * lib/fwriteerror.h: Likewise.
61310         * lib/fwriting.c: Likewise.
61311         * lib/fwriting.h: Likewise.
61312         * lib/gcd.c: Likewise.
61313         * lib/gcd.h: Likewise.
61314         * lib/getcwd.c: Likewise.
61315         * lib/getdate.h: Likewise.
61316         * lib/getdate.y: Likewise.
61317         * lib/getdomainname.c: Likewise.
61318         * lib/getdomainname.h: Likewise.
61319         * lib/getgroups.c: Likewise.
61320         * lib/gethostname.c: Likewise.
61321         * lib/gethrxtime.c: Likewise.
61322         * lib/gethrxtime.h: Likewise.
61323         * lib/getloadavg.c: Likewise.
61324         * lib/getndelim2.c: Likewise.
61325         * lib/getndelim2.h: Likewise.
61326         * lib/getnline.c: Likewise.
61327         * lib/getnline.h: Likewise.
61328         * lib/getopt.c: Likewise.
61329         * lib/getopt.in.h: Likewise.
61330         * lib/getopt1.c: Likewise.
61331         * lib/getopt_int.h: Likewise.
61332         * lib/getpagesize.h: Likewise.
61333         * lib/getsubopt.c: Likewise.
61334         * lib/gettime.c: Likewise.
61335         * lib/getugroups.c: Likewise.
61336         * lib/getugroups.h: Likewise.
61337         * lib/getusershell.c: Likewise.
61338         * lib/gl_anyavltree_list1.h: Likewise.
61339         * lib/gl_anyavltree_list2.h: Likewise.
61340         * lib/gl_anyhash_list1.h: Likewise.
61341         * lib/gl_anyhash_list2.h: Likewise.
61342         * lib/gl_anylinked_list1.h: Likewise.
61343         * lib/gl_anylinked_list2.h: Likewise.
61344         * lib/gl_anyrbtree_list1.h: Likewise.
61345         * lib/gl_anyrbtree_list2.h: Likewise.
61346         * lib/gl_anytree_list1.h: Likewise.
61347         * lib/gl_anytree_list2.h: Likewise.
61348         * lib/gl_anytree_oset.h: Likewise.
61349         * lib/gl_anytreehash_list1.h: Likewise.
61350         * lib/gl_anytreehash_list2.h: Likewise.
61351         * lib/gl_array_list.c: Likewise.
61352         * lib/gl_array_list.h: Likewise.
61353         * lib/gl_array_oset.c: Likewise.
61354         * lib/gl_array_oset.h: Likewise.
61355         * lib/gl_avltree_list.c: Likewise.
61356         * lib/gl_avltree_list.h: Likewise.
61357         * lib/gl_avltree_oset.c: Likewise.
61358         * lib/gl_avltree_oset.h: Likewise.
61359         * lib/gl_avltreehash_list.c: Likewise.
61360         * lib/gl_avltreehash_list.h: Likewise.
61361         * lib/gl_carray_list.c: Likewise.
61362         * lib/gl_carray_list.h: Likewise.
61363         * lib/gl_linked_list.c: Likewise.
61364         * lib/gl_linked_list.h: Likewise.
61365         * lib/gl_linkedhash_list.c: Likewise.
61366         * lib/gl_linkedhash_list.h: Likewise.
61367         * lib/gl_list.c: Likewise.
61368         * lib/gl_list.h: Likewise.
61369         * lib/gl_oset.c: Likewise.
61370         * lib/gl_oset.h: Likewise.
61371         * lib/gl_rbtree_list.c: Likewise.
61372         * lib/gl_rbtree_list.h: Likewise.
61373         * lib/gl_rbtree_oset.c: Likewise.
61374         * lib/gl_rbtree_oset.h: Likewise.
61375         * lib/gl_rbtreehash_list.c: Likewise.
61376         * lib/gl_rbtreehash_list.h: Likewise.
61377         * lib/gl_sublist.c: Likewise.
61378         * lib/gl_sublist.h: Likewise.
61379         * lib/group-member.c: Likewise.
61380         * lib/group-member.h: Likewise.
61381         * lib/hard-locale.c: Likewise.
61382         * lib/hard-locale.h: Likewise.
61383         * lib/hash-pjw.c: Likewise.
61384         * lib/hash-pjw.h: Likewise.
61385         * lib/hash-triple.c: Likewise.
61386         * lib/hash.c: Likewise.
61387         * lib/hash.h: Likewise.
61388         * lib/human.c: Likewise.
61389         * lib/human.h: Likewise.
61390         * lib/i-ring.c: Likewise.
61391         * lib/i-ring.h: Likewise.
61392         * lib/idcache.c: Likewise.
61393         * lib/imaxabs.c: Likewise.
61394         * lib/imaxdiv.c: Likewise.
61395         * lib/inet_pton.c: Likewise.
61396         * lib/inet_pton.h: Likewise.
61397         * lib/intprops.h: Likewise.
61398         * lib/inttostr.c: Likewise.
61399         * lib/inttostr.h: Likewise.
61400         * lib/inttypes.in.h: Likewise.
61401         * lib/isapipe.c: Likewise.
61402         * lib/isdir.c: Likewise.
61403         * lib/isnan.c: Likewise.
61404         * lib/isnan.h: Likewise.
61405         * lib/isnanf.c: Likewise.
61406         * lib/isnanf.h: Likewise.
61407         * lib/isnanl-nolibm.h: Likewise.
61408         * lib/isnanl.c: Likewise.
61409         * lib/isnanl.h: Likewise.
61410         * lib/javacomp.c: Likewise.
61411         * lib/javacomp.h: Likewise.
61412         * lib/javaexec.c: Likewise.
61413         * lib/javaexec.h: Likewise.
61414         * lib/javaversion.c: Likewise.
61415         * lib/javaversion.h: Likewise.
61416         * lib/javaversion.java: Likewise.
61417         * lib/lbrkprop.h: Likewise.
61418         * lib/lchmod.h: Likewise.
61419         * lib/lchown.c: Likewise.
61420         * lib/ldexpl.c: Likewise.
61421         * lib/linebreak.c: Likewise.
61422         * lib/linebreak.h: Likewise.
61423         * lib/linebuffer.c: Likewise.
61424         * lib/linebuffer.h: Likewise.
61425         * lib/locale.in.h: Likewise.
61426         * lib/logl.c: Likewise.
61427         * lib/long-options.c: Likewise.
61428         * lib/long-options.h: Likewise.
61429         * lib/lstat.c: Likewise.
61430         * lib/lstat.h: Likewise.
61431         * lib/math.in.h: Likewise.
61432         * lib/mbchar.c: Likewise.
61433         * lib/mbchar.h: Likewise.
61434         * lib/mbfile.h: Likewise.
61435         * lib/mbiter.h: Likewise.
61436         * lib/mbscasecmp.c: Likewise.
61437         * lib/mbscasestr.c: Likewise.
61438         * lib/mbschr.c: Likewise.
61439         * lib/mbscspn.c: Likewise.
61440         * lib/mbslen.c: Likewise.
61441         * lib/mbsncasecmp.c: Likewise.
61442         * lib/mbsnlen.c: Likewise.
61443         * lib/mbspbrk.c: Likewise.
61444         * lib/mbspcasecmp.c: Likewise.
61445         * lib/mbsrchr.c: Likewise.
61446         * lib/mbssep.c: Likewise.
61447         * lib/mbsspn.c: Likewise.
61448         * lib/mbsstr.c: Likewise.
61449         * lib/mbstok_r.c: Likewise.
61450         * lib/mbswidth.c: Likewise.
61451         * lib/mbswidth.h: Likewise.
61452         * lib/mbuiter.h: Likewise.
61453         * lib/memcasecmp.c: Likewise.
61454         * lib/memcasecmp.h: Likewise.
61455         * lib/memchr.c: Likewise.
61456         * lib/memcmp.c: Likewise.
61457         * lib/memcoll.c: Likewise.
61458         * lib/memcoll.h: Likewise.
61459         * lib/memcpy.c: Likewise.
61460         * lib/memrchr.c: Likewise.
61461         * lib/mkancesdirs.c: Likewise.
61462         * lib/mkdir-p.c: Likewise.
61463         * lib/mkdir-p.h: Likewise.
61464         * lib/mkdir.c: Likewise.
61465         * lib/mkdirat.c: Likewise.
61466         * lib/mkdtemp.c: Likewise.
61467         * lib/mkstemp-safer.c: Likewise.
61468         * lib/mkstemp.c: Likewise.
61469         * lib/modechange.c: Likewise.
61470         * lib/modechange.h: Likewise.
61471         * lib/mountlist.c: Likewise.
61472         * lib/mountlist.h: Likewise.
61473         * lib/mpsort.c: Likewise.
61474         * lib/nanosleep.c: Likewise.
61475         * lib/obstack.c: Likewise.
61476         * lib/obstack.h: Likewise.
61477         * lib/open-safer.c: Likewise.
61478         * lib/open.c: Likewise.
61479         * lib/openat-die.c: Likewise.
61480         * lib/openat-priv.h: Likewise.
61481         * lib/openat-proc.c: Likewise.
61482         * lib/openat.c: Likewise.
61483         * lib/openat.h: Likewise.
61484         * lib/pagealign_alloc.c: Likewise.
61485         * lib/pagealign_alloc.h: Likewise.
61486         * lib/physmem.c: Likewise.
61487         * lib/physmem.h: Likewise.
61488         * lib/pipe-safer.c: Likewise.
61489         * lib/pipe.c: Likewise.
61490         * lib/pipe.h: Likewise.
61491         * lib/posixtm.c: Likewise.
61492         * lib/posixtm.h: Likewise.
61493         * lib/posixver.c: Likewise.
61494         * lib/printf-frexp.c: Likewise.
61495         * lib/printf-frexp.h: Likewise.
61496         * lib/printf-frexpl.c: Likewise.
61497         * lib/printf-frexpl.h: Likewise.
61498         * lib/printf.c: Likewise.
61499         * lib/progname.c: Likewise.
61500         * lib/progname.h: Likewise.
61501         * lib/progreloc.c: Likewise.
61502         * lib/putenv.c: Likewise.
61503         * lib/quote.c: Likewise.
61504         * lib/quote.h: Likewise.
61505         * lib/quotearg.c: Likewise.
61506         * lib/quotearg.h: Likewise.
61507         * lib/raise.c: Likewise.
61508         * lib/readline.c: Likewise.
61509         * lib/readline.h: Likewise.
61510         * lib/readlink.c: Likewise.
61511         * lib/readtokens.c: Likewise.
61512         * lib/readtokens.h: Likewise.
61513         * lib/readtokens0.c: Likewise.
61514         * lib/readtokens0.h: Likewise.
61515         * lib/readutmp.c: Likewise.
61516         * lib/readutmp.h: Likewise.
61517         * lib/realloc.c: Likewise.
61518         * lib/relocwrapper.c: Likewise.
61519         * lib/rename-dest-slash.c: Likewise.
61520         * lib/rename.c: Likewise.
61521         * lib/rmdir.c: Likewise.
61522         * lib/rpmatch.c: Likewise.
61523         * lib/safe-read.c: Likewise.
61524         * lib/safe-read.h: Likewise.
61525         * lib/safe-write.c: Likewise.
61526         * lib/safe-write.h: Likewise.
61527         * lib/same-inode.h: Likewise.
61528         * lib/same.c: Likewise.
61529         * lib/same.h: Likewise.
61530         * lib/save-cwd.c: Likewise.
61531         * lib/save-cwd.h: Likewise.
61532         * lib/savedir.c: Likewise.
61533         * lib/savedir.h: Likewise.
61534         * lib/savewd.c: Likewise.
61535         * lib/savewd.h: Likewise.
61536         * lib/search.in.h: Likewise.
61537         * lib/setenv.c: Likewise.
61538         * lib/setenv.h: Likewise.
61539         * lib/settime.c: Likewise.
61540         * lib/sh-quote.c: Likewise.
61541         * lib/sh-quote.h: Likewise.
61542         * lib/sig2str.c: Likewise.
61543         * lib/sig2str.h: Likewise.
61544         * lib/signal.in.h: Likewise.
61545         * lib/signbitd.c: Likewise.
61546         * lib/signbitf.c: Likewise.
61547         * lib/signbitl.c: Likewise.
61548         * lib/sigprocmask.c: Likewise.
61549         * lib/sincosl.c: Likewise.
61550         * lib/sleep.c: Likewise.
61551         * lib/sprintf.c: Likewise.
61552         * lib/sqrtl.c: Likewise.
61553         * lib/stat-time.h: Likewise.
61554         * lib/stdio--.h: Likewise.
61555         * lib/stdio-safer.h: Likewise.
61556         * lib/stdlib--.h: Likewise.
61557         * lib/stdlib-safer.h: Likewise.
61558         * lib/stdlib.in.h: Likewise.
61559         * lib/stpcpy.c: Likewise.
61560         * lib/stpncpy.c: Likewise.
61561         * lib/strchrnul.c: Likewise.
61562         * lib/strcspn.c: Likewise.
61563         * lib/strerror.c: Likewise.
61564         * lib/strftime.c: Likewise.
61565         * lib/strftime.h: Likewise.
61566         * lib/striconveh.c: Likewise.
61567         * lib/striconveh.h: Likewise.
61568         * lib/striconveha.c: Likewise.
61569         * lib/striconveha.h: Likewise.
61570         * lib/stripslash.c: Likewise.
61571         * lib/strnlen1.c: Likewise.
61572         * lib/strnlen1.h: Likewise.
61573         * lib/strtod.c: Likewise.
61574         * lib/strtoimax.c: Likewise.
61575         * lib/strtok_r.c: Likewise.
61576         * lib/strtol.c: Likewise.
61577         * lib/strtoll.c: Likewise.
61578         * lib/strtoul.c: Likewise.
61579         * lib/strtoull.c: Likewise.
61580         * lib/sysexits.in.h: Likewise.
61581         * lib/tempname.c: Likewise.
61582         * lib/tempname.h: Likewise.
61583         * lib/timespec.h: Likewise.
61584         * lib/tls.c: Likewise.
61585         * lib/tls.h: Likewise.
61586         * lib/tmpdir.c: Likewise.
61587         * lib/tmpdir.h: Likewise.
61588         * lib/tmpfile-safer.c: Likewise.
61589         * lib/tmpfile.c: Likewise.
61590         * lib/trigl.c: Likewise.
61591         * lib/trigl.h: Likewise.
61592         * lib/trim.c: Likewise.
61593         * lib/trim.h: Likewise.
61594         * lib/trunc.c: Likewise.
61595         * lib/truncf.c: Likewise.
61596         * lib/truncl.c: Likewise.
61597         * lib/tsearch.c: Likewise.
61598         * lib/unicodeio.c: Likewise.
61599         * lib/unicodeio.h: Likewise.
61600         * lib/unistd--.h: Likewise.
61601         * lib/unistd-safer.h: Likewise.
61602         * lib/unistdio/ulc-fprintf.c: Likewise.
61603         * lib/unistdio/ulc-vfprintf.c: Likewise.
61604         * lib/unlinkdir.c: Likewise.
61605         * lib/unlinkdir.h: Likewise.
61606         * lib/unlocked-io.h: Likewise.
61607         * lib/unsetenv.c: Likewise.
61608         * lib/userspec.c: Likewise.
61609         * lib/utime.c: Likewise.
61610         * lib/utimecmp.c: Likewise.
61611         * lib/utimecmp.h: Likewise.
61612         * lib/utimens.c: Likewise.
61613         * lib/verify.h: Likewise.
61614         * lib/verror.c: Likewise.
61615         * lib/verror.h: Likewise.
61616         * lib/version-etc-fsf.c: Likewise.
61617         * lib/version-etc.c: Likewise.
61618         * lib/version-etc.h: Likewise.
61619         * lib/vfprintf.c: Likewise.
61620         * lib/vprintf.c: Likewise.
61621         * lib/vsprintf.c: Likewise.
61622         * lib/w32spawn.h: Likewise.
61623         * lib/wait-process.c: Likewise.
61624         * lib/wait-process.h: Likewise.
61625         * lib/wcwidth.c: Likewise.
61626         * lib/write-any-file.c: Likewise.
61627         * lib/xalloc-die.c: Likewise.
61628         * lib/xalloc.h: Likewise.
61629         * lib/xasprintf.c: Likewise.
61630         * lib/xgetcwd.c: Likewise.
61631         * lib/xgetcwd.h: Likewise.
61632         * lib/xgetdomainname.c: Likewise.
61633         * lib/xgetdomainname.h: Likewise.
61634         * lib/xgethostname.c: Likewise.
61635         * lib/xmalloc.c: Likewise.
61636         * lib/xmalloca.c: Likewise.
61637         * lib/xmalloca.h: Likewise.
61638         * lib/xmemcoll.c: Likewise.
61639         * lib/xnanosleep.c: Likewise.
61640         * lib/xreadlink.c: Likewise.
61641         * lib/xreadlink.h: Likewise.
61642         * lib/xsetenv.c: Likewise.
61643         * lib/xsetenv.h: Likewise.
61644         * lib/xstriconv.c: Likewise.
61645         * lib/xstriconv.h: Likewise.
61646         * lib/xstrndup.c: Likewise.
61647         * lib/xstrndup.h: Likewise.
61648         * lib/xstrtod.c: Likewise.
61649         * lib/xstrtod.h: Likewise.
61650         * lib/xstrtol-error.c: Likewise.
61651         * lib/xstrtol.c: Likewise.
61652         * lib/xstrtol.h: Likewise.
61653         * lib/xtime.h: Likewise.
61654         * lib/xvasprintf.c: Likewise.
61655         * lib/xvasprintf.h: Likewise.
61656         * lib/yesno.c: Likewise.
61657         * lib/yesno.h: Likewise.
61658         * posix-modules: Likewise.
61659         * tests/test-alloca-opt.c: Likewise.
61660         * tests/test-arcfour.c: Likewise.
61661         * tests/test-arctwo.c: Likewise.
61662         * tests/test-argmatch.c: Likewise.
61663         * tests/test-argp-2.sh: Likewise.
61664         * tests/test-argp.c: Likewise.
61665         * tests/test-arpa_inet.c: Likewise.
61666         * tests/test-array_list.c: Likewise.
61667         * tests/test-array_oset.c: Likewise.
61668         * tests/test-atexit.c: Likewise.
61669         * tests/test-avltree_list.c: Likewise.
61670         * tests/test-avltree_oset.c: Likewise.
61671         * tests/test-avltreehash_list.c: Likewise.
61672         * tests/test-base64.c: Likewise.
61673         * tests/test-binary-io.c: Likewise.
61674         * tests/test-byteswap.c: Likewise.
61675         * tests/test-c-ctype.c: Likewise.
61676         * tests/test-c-strcasecmp.c: Likewise.
61677         * tests/test-c-strcasestr.c: Likewise.
61678         * tests/test-c-strncasecmp.c: Likewise.
61679         * tests/test-c-strstr.c: Likewise.
61680         * tests/test-canonicalize-lgpl.c: Likewise.
61681         * tests/test-canonicalize.c: Likewise.
61682         * tests/test-carray_list.c: Likewise.
61683         * tests/test-ceilf.c: Likewise.
61684         * tests/test-ceill.c: Likewise.
61685         * tests/test-count-one-bits.c: Likewise.
61686         * tests/test-crc.c: Likewise.
61687         * tests/test-dirname.c: Likewise.
61688         * tests/test-fbufmode.c: Likewise.
61689         * tests/test-fcntl.c: Likewise.
61690         * tests/test-fflush.c: Likewise.
61691         * tests/test-floorf.c: Likewise.
61692         * tests/test-floorl.c: Likewise.
61693         * tests/test-fopen.c: Likewise.
61694         * tests/test-fprintf-posix.c: Likewise.
61695         * tests/test-fprintf-posix.h: Likewise.
61696         * tests/test-fpurge.c: Likewise.
61697         * tests/test-freadable.c: Likewise.
61698         * tests/test-freadahead.c: Likewise.
61699         * tests/test-freading.c: Likewise.
61700         * tests/test-freopen.c: Likewise.
61701         * tests/test-frexp.c: Likewise.
61702         * tests/test-frexpl.c: Likewise.
61703         * tests/test-fseek.c: Likewise.
61704         * tests/test-fseeko.c: Likewise.
61705         * tests/test-fseterr.c: Likewise.
61706         * tests/test-fstrcmp.c: Likewise.
61707         * tests/test-ftell.c: Likewise.
61708         * tests/test-ftello.c: Likewise.
61709         * tests/test-fwritable.c: Likewise.
61710         * tests/test-fwriting.c: Likewise.
61711         * tests/test-getaddrinfo.c: Likewise.
61712         * tests/test-getpass.c: Likewise.
61713         * tests/test-gettimeofday.c: Likewise.
61714         * tests/test-hmac-md5.c: Likewise.
61715         * tests/test-hmac-sha1.c: Likewise.
61716         * tests/test-iconv.c: Likewise.
61717         * tests/test-iconvme.c: Likewise.
61718         * tests/test-inttypes.c: Likewise.
61719         * tests/test-isnan.c: Likewise.
61720         * tests/test-isnanf.c: Likewise.
61721         * tests/test-isnanl-nolibm.c: Likewise.
61722         * tests/test-isnanl.c: Likewise.
61723         * tests/test-isnanl.h: Likewise.
61724         * tests/test-ldexpl.c: Likewise.
61725         * tests/test-linked_list.c: Likewise.
61726         * tests/test-linkedhash_list.c: Likewise.
61727         * tests/test-locale.c: Likewise.
61728         * tests/test-localename.c: Likewise.
61729         * tests/test-lock.c: Likewise.
61730         * tests/test-lseek.c: Likewise.
61731         * tests/test-malloca.c: Likewise.
61732         * tests/test-math.c: Likewise.
61733         * tests/test-mbscasecmp.c: Likewise.
61734         * tests/test-mbscasestr1.c: Likewise.
61735         * tests/test-mbscasestr2.c: Likewise.
61736         * tests/test-mbscasestr3.c: Likewise.
61737         * tests/test-mbscasestr4.c: Likewise.
61738         * tests/test-mbschr.c: Likewise.
61739         * tests/test-mbscspn.c: Likewise.
61740         * tests/test-mbsncasecmp.c: Likewise.
61741         * tests/test-mbspbrk.c: Likewise.
61742         * tests/test-mbspcasecmp.c: Likewise.
61743         * tests/test-mbsrchr.c: Likewise.
61744         * tests/test-mbsspn.c: Likewise.
61745         * tests/test-mbsstr1.c: Likewise.
61746         * tests/test-mbsstr2.c: Likewise.
61747         * tests/test-mbsstr3.c: Likewise.
61748         * tests/test-md5.c: Likewise.
61749         * tests/test-memmem.c: Likewise.
61750         * tests/test-netinet_in.c: Likewise.
61751         * tests/test-open.c: Likewise.
61752         * tests/test-printf-frexp.c: Likewise.
61753         * tests/test-printf-frexpl.c: Likewise.
61754         * tests/test-printf-posix.c: Likewise.
61755         * tests/test-printf-posix.h: Likewise.
61756         * tests/test-rbtree_list.c: Likewise.
61757         * tests/test-rbtree_oset.c: Likewise.
61758         * tests/test-rbtreehash_list.c: Likewise.
61759         * tests/test-read-file.c: Likewise.
61760         * tests/test-rijndael.c: Likewise.
61761         * tests/test-search.c: Likewise.
61762         * tests/test-signbit.c: Likewise.
61763         * tests/test-sleep.c: Likewise.
61764         * tests/test-snprintf-posix.c: Likewise.
61765         * tests/test-snprintf-posix.h: Likewise.
61766         * tests/test-snprintf.c: Likewise.
61767         * tests/test-sprintf-posix.c: Likewise.
61768         * tests/test-sprintf-posix.h: Likewise.
61769         * tests/test-stat-time.c: Likewise.
61770         * tests/test-stdbool.c: Likewise.
61771         * tests/test-stdint.c: Likewise.
61772         * tests/test-stdio.c: Likewise.
61773         * tests/test-stdlib.c: Likewise.
61774         * tests/test-stpncpy.c: Likewise.
61775         * tests/test-strcasestr.c: Likewise.
61776         * tests/test-striconv.c: Likewise.
61777         * tests/test-striconveh.c: Likewise.
61778         * tests/test-striconveha.c: Likewise.
61779         * tests/test-string.c: Likewise.
61780         * tests/test-sys_select.c: Likewise.
61781         * tests/test-sys_socket.c: Likewise.
61782         * tests/test-sys_stat.c: Likewise.
61783         * tests/test-sys_time.c: Likewise.
61784         * tests/test-sysexits.c: Likewise.
61785         * tests/test-time.c: Likewise.
61786         * tests/test-tls.c: Likewise.
61787         * tests/test-trunc.c: Likewise.
61788         * tests/test-truncf.c: Likewise.
61789         * tests/test-truncl.c: Likewise.
61790         * tests/test-unistd.c: Likewise.
61791         * tests/test-vasnprintf-posix.c: Likewise.
61792         * tests/test-vasnprintf-posix2.c: Likewise.
61793         * tests/test-vasnprintf.c: Likewise.
61794         * tests/test-vasprintf-posix.c: Likewise.
61795         * tests/test-vasprintf.c: Likewise.
61796         * tests/test-verify.c: Likewise.
61797         * tests/test-vfprintf-posix.c: Likewise.
61798         * tests/test-vprintf-posix.c: Likewise.
61799         * tests/test-vsnprintf-posix.c: Likewise.
61800         * tests/test-vsnprintf.c: Likewise.
61801         * tests/test-vsprintf-posix.c: Likewise.
61802         * tests/test-wchar.c: Likewise.
61803         * tests/test-wctype.c: Likewise.
61804         * tests/test-wcwidth.c: Likewise.
61805         * tests/test-xstrtol.c: Likewise.
61806         * tests/test-xvasprintf.c: Likewise.
61807         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61808         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61809         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61810         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61811         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61812         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61813         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61814         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61815         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61816         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61817         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61818         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61819         * tests/uniname/test-uninames.c: Likewise.
61820         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61821         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61822         * tests/unistdio/test-u16-printf1.h: Likewise.
61823         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61824         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61825         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61826         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61827         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61828         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61829         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61830         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61831         * tests/unistdio/test-u32-printf1.h: Likewise.
61832         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61833         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61834         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61835         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61836         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61837         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61838         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61839         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61840         * tests/unistdio/test-u8-printf1.h: Likewise.
61841         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61842         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61843         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61844         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61845         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61846         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61847         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61848         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61849         * tests/unistdio/test-ulc-printf1.h: Likewise.
61850         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61851         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61852         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61853         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61854         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61855         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61856         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61857         * tests/uniwidth/test-u16-width.c: Likewise.
61858         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61859         * tests/uniwidth/test-u32-width.c: Likewise.
61860         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61861         * tests/uniwidth/test-u8-width.c: Likewise.
61862         * tests/uniwidth/test-uc_width.c: Likewise.
61863         * config/srclist-update: Likewise.
61864         (fixlicense): Update to GPLv3+.
61865
61866         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61867         * tests/test-tsearch.c: Change copyright notice.
61868
61869         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61870         * lib/c-strcaseeq.h: Change copyright notice.
61871         * lib/streq.h: Likewise.
61872         * lib/uniconv.h: Likewise.
61873         * lib/uniconv/u-conv-from-enc.h: Likewise.
61874         * lib/uniconv/u-conv-to-enc.h: Likewise.
61875         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61876         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61877         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61878         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61879         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61880         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61881         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61882         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61883         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61884         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61885         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61886         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61887         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61888         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61889         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61890         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61891         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61892         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61893         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61894         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61895         * lib/uniname.h: Likewise.
61896         * lib/uniname/uniname.c: Likewise.
61897         * lib/unistdio.h: Likewise.
61898         * lib/unistdio/u-asnprintf.h: Likewise.
61899         * lib/unistdio/u-asprintf.h: Likewise.
61900         * lib/unistdio/u-printf-args.c: Likewise.
61901         * lib/unistdio/u-printf-args.h: Likewise.
61902         * lib/unistdio/u-printf-parse.h: Likewise.
61903         * lib/unistdio/u-snprintf.h: Likewise.
61904         * lib/unistdio/u-sprintf.h: Likewise.
61905         * lib/unistdio/u-vasprintf.h: Likewise.
61906         * lib/unistdio/u-vsnprintf.h: Likewise.
61907         * lib/unistdio/u-vsprintf.h: Likewise.
61908         * lib/unistdio/u16-asnprintf.c: Likewise.
61909         * lib/unistdio/u16-asprintf.c: Likewise.
61910         * lib/unistdio/u16-printf-parse.c: Likewise.
61911         * lib/unistdio/u16-snprintf.c: Likewise.
61912         * lib/unistdio/u16-sprintf.c: Likewise.
61913         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61914         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61915         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61916         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61917         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61918         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61919         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61920         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61921         * lib/unistdio/u16-vasnprintf.c: Likewise.
61922         * lib/unistdio/u16-vasprintf.c: Likewise.
61923         * lib/unistdio/u16-vsnprintf.c: Likewise.
61924         * lib/unistdio/u16-vsprintf.c: Likewise.
61925         * lib/unistdio/u32-asnprintf.c: Likewise.
61926         * lib/unistdio/u32-asprintf.c: Likewise.
61927         * lib/unistdio/u32-printf-parse.c: Likewise.
61928         * lib/unistdio/u32-snprintf.c: Likewise.
61929         * lib/unistdio/u32-sprintf.c: Likewise.
61930         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61931         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61932         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61933         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61934         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61935         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61936         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61937         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61938         * lib/unistdio/u32-vasnprintf.c: Likewise.
61939         * lib/unistdio/u32-vasprintf.c: Likewise.
61940         * lib/unistdio/u32-vsnprintf.c: Likewise.
61941         * lib/unistdio/u32-vsprintf.c: Likewise.
61942         * lib/unistdio/u8-asnprintf.c: Likewise.
61943         * lib/unistdio/u8-asprintf.c: Likewise.
61944         * lib/unistdio/u8-printf-parse.c: Likewise.
61945         * lib/unistdio/u8-snprintf.c: Likewise.
61946         * lib/unistdio/u8-sprintf.c: Likewise.
61947         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61948         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61949         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61950         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61951         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61952         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61953         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61954         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61955         * lib/unistdio/u8-vasnprintf.c: Likewise.
61956         * lib/unistdio/u8-vasprintf.c: Likewise.
61957         * lib/unistdio/u8-vsnprintf.c: Likewise.
61958         * lib/unistdio/u8-vsprintf.c: Likewise.
61959         * lib/unistdio/ulc-asnprintf.c: Likewise.
61960         * lib/unistdio/ulc-asprintf.c: Likewise.
61961         * lib/unistdio/ulc-printf-parse.c: Likewise.
61962         * lib/unistdio/ulc-snprintf.c: Likewise.
61963         * lib/unistdio/ulc-sprintf.c: Likewise.
61964         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61965         * lib/unistdio/ulc-vasprintf.c: Likewise.
61966         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61967         * lib/unistdio/ulc-vsprintf.c: Likewise.
61968         * lib/unistr.h: Likewise.
61969         * lib/unistr/u-cpy-alloc.h: Likewise.
61970         * lib/unistr/u-cpy.h: Likewise.
61971         * lib/unistr/u-endswith.h: Likewise.
61972         * lib/unistr/u-move.h: Likewise.
61973         * lib/unistr/u-set.h: Likewise.
61974         * lib/unistr/u-startswith.h: Likewise.
61975         * lib/unistr/u-stpcpy.h: Likewise.
61976         * lib/unistr/u-stpncpy.h: Likewise.
61977         * lib/unistr/u-strcat.h: Likewise.
61978         * lib/unistr/u-strcpy.h: Likewise.
61979         * lib/unistr/u-strcspn.h: Likewise.
61980         * lib/unistr/u-strdup.h: Likewise.
61981         * lib/unistr/u-strlen.h: Likewise.
61982         * lib/unistr/u-strncat.h: Likewise.
61983         * lib/unistr/u-strncpy.h: Likewise.
61984         * lib/unistr/u-strnlen.h: Likewise.
61985         * lib/unistr/u-strpbrk.h: Likewise.
61986         * lib/unistr/u-strspn.h: Likewise.
61987         * lib/unistr/u-strstr.h: Likewise.
61988         * lib/unistr/u-strtok.h: Likewise.
61989         * lib/unistr/u16-check.c: Likewise.
61990         * lib/unistr/u16-chr.c: Likewise.
61991         * lib/unistr/u16-cmp.c: Likewise.
61992         * lib/unistr/u16-cpy-alloc.c: Likewise.
61993         * lib/unistr/u16-cpy.c: Likewise.
61994         * lib/unistr/u16-endswith.c: Likewise.
61995         * lib/unistr/u16-mblen.c: Likewise.
61996         * lib/unistr/u16-mbsnlen.c: Likewise.
61997         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61998         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61999         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62000         * lib/unistr/u16-mbtouc.c: Likewise.
62001         * lib/unistr/u16-mbtoucr.c: Likewise.
62002         * lib/unistr/u16-move.c: Likewise.
62003         * lib/unistr/u16-next.c: Likewise.
62004         * lib/unistr/u16-prev.c: Likewise.
62005         * lib/unistr/u16-set.c: Likewise.
62006         * lib/unistr/u16-startswith.c: Likewise.
62007         * lib/unistr/u16-stpcpy.c: Likewise.
62008         * lib/unistr/u16-stpncpy.c: Likewise.
62009         * lib/unistr/u16-strcat.c: Likewise.
62010         * lib/unistr/u16-strchr.c: Likewise.
62011         * lib/unistr/u16-strcmp.c: Likewise.
62012         * lib/unistr/u16-strcpy.c: Likewise.
62013         * lib/unistr/u16-strcspn.c: Likewise.
62014         * lib/unistr/u16-strdup.c: Likewise.
62015         * lib/unistr/u16-strlen.c: Likewise.
62016         * lib/unistr/u16-strmblen.c: Likewise.
62017         * lib/unistr/u16-strmbtouc.c: Likewise.
62018         * lib/unistr/u16-strncat.c: Likewise.
62019         * lib/unistr/u16-strncmp.c: Likewise.
62020         * lib/unistr/u16-strncpy.c: Likewise.
62021         * lib/unistr/u16-strnlen.c: Likewise.
62022         * lib/unistr/u16-strpbrk.c: Likewise.
62023         * lib/unistr/u16-strrchr.c: Likewise.
62024         * lib/unistr/u16-strspn.c: Likewise.
62025         * lib/unistr/u16-strstr.c: Likewise.
62026         * lib/unistr/u16-strtok.c: Likewise.
62027         * lib/unistr/u16-to-u32.c: Likewise.
62028         * lib/unistr/u16-to-u8.c: Likewise.
62029         * lib/unistr/u16-uctomb-aux.c: Likewise.
62030         * lib/unistr/u16-uctomb.c: Likewise.
62031         * lib/unistr/u32-check.c: Likewise.
62032         * lib/unistr/u32-chr.c: Likewise.
62033         * lib/unistr/u32-cmp.c: Likewise.
62034         * lib/unistr/u32-cpy-alloc.c: Likewise.
62035         * lib/unistr/u32-cpy.c: Likewise.
62036         * lib/unistr/u32-endswith.c: Likewise.
62037         * lib/unistr/u32-mblen.c: Likewise.
62038         * lib/unistr/u32-mbsnlen.c: Likewise.
62039         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62040         * lib/unistr/u32-mbtouc.c: Likewise.
62041         * lib/unistr/u32-mbtoucr.c: Likewise.
62042         * lib/unistr/u32-move.c: Likewise.
62043         * lib/unistr/u32-next.c: Likewise.
62044         * lib/unistr/u32-prev.c: Likewise.
62045         * lib/unistr/u32-set.c: Likewise.
62046         * lib/unistr/u32-startswith.c: Likewise.
62047         * lib/unistr/u32-stpcpy.c: Likewise.
62048         * lib/unistr/u32-stpncpy.c: Likewise.
62049         * lib/unistr/u32-strcat.c: Likewise.
62050         * lib/unistr/u32-strchr.c: Likewise.
62051         * lib/unistr/u32-strcmp.c: Likewise.
62052         * lib/unistr/u32-strcpy.c: Likewise.
62053         * lib/unistr/u32-strcspn.c: Likewise.
62054         * lib/unistr/u32-strdup.c: Likewise.
62055         * lib/unistr/u32-strlen.c: Likewise.
62056         * lib/unistr/u32-strmblen.c: Likewise.
62057         * lib/unistr/u32-strmbtouc.c: Likewise.
62058         * lib/unistr/u32-strncat.c: Likewise.
62059         * lib/unistr/u32-strncmp.c: Likewise.
62060         * lib/unistr/u32-strncpy.c: Likewise.
62061         * lib/unistr/u32-strnlen.c: Likewise.
62062         * lib/unistr/u32-strpbrk.c: Likewise.
62063         * lib/unistr/u32-strrchr.c: Likewise.
62064         * lib/unistr/u32-strspn.c: Likewise.
62065         * lib/unistr/u32-strstr.c: Likewise.
62066         * lib/unistr/u32-strtok.c: Likewise.
62067         * lib/unistr/u32-to-u16.c: Likewise.
62068         * lib/unistr/u32-to-u8.c: Likewise.
62069         * lib/unistr/u32-uctomb.c: Likewise.
62070         * lib/unistr/u8-check.c: Likewise.
62071         * lib/unistr/u8-chr.c: Likewise.
62072         * lib/unistr/u8-cmp.c: Likewise.
62073         * lib/unistr/u8-cpy-alloc.c: Likewise.
62074         * lib/unistr/u8-cpy.c: Likewise.
62075         * lib/unistr/u8-endswith.c: Likewise.
62076         * lib/unistr/u8-mblen.c: Likewise.
62077         * lib/unistr/u8-mbsnlen.c: Likewise.
62078         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62079         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62080         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62081         * lib/unistr/u8-mbtouc.c: Likewise.
62082         * lib/unistr/u8-mbtoucr.c: Likewise.
62083         * lib/unistr/u8-move.c: Likewise.
62084         * lib/unistr/u8-next.c: Likewise.
62085         * lib/unistr/u8-prev.c: Likewise.
62086         * lib/unistr/u8-set.c: Likewise.
62087         * lib/unistr/u8-startswith.c: Likewise.
62088         * lib/unistr/u8-stpcpy.c: Likewise.
62089         * lib/unistr/u8-stpncpy.c: Likewise.
62090         * lib/unistr/u8-strcat.c: Likewise.
62091         * lib/unistr/u8-strchr.c: Likewise.
62092         * lib/unistr/u8-strcmp.c: Likewise.
62093         * lib/unistr/u8-strcpy.c: Likewise.
62094         * lib/unistr/u8-strcspn.c: Likewise.
62095         * lib/unistr/u8-strdup.c: Likewise.
62096         * lib/unistr/u8-strlen.c: Likewise.
62097         * lib/unistr/u8-strmblen.c: Likewise.
62098         * lib/unistr/u8-strmbtouc.c: Likewise.
62099         * lib/unistr/u8-strncat.c: Likewise.
62100         * lib/unistr/u8-strncmp.c: Likewise.
62101         * lib/unistr/u8-strncpy.c: Likewise.
62102         * lib/unistr/u8-strnlen.c: Likewise.
62103         * lib/unistr/u8-strpbrk.c: Likewise.
62104         * lib/unistr/u8-strrchr.c: Likewise.
62105         * lib/unistr/u8-strspn.c: Likewise.
62106         * lib/unistr/u8-strstr.c: Likewise.
62107         * lib/unistr/u8-strtok.c: Likewise.
62108         * lib/unistr/u8-to-u16.c: Likewise.
62109         * lib/unistr/u8-to-u32.c: Likewise.
62110         * lib/unistr/u8-uctomb-aux.c: Likewise.
62111         * lib/unistr/u8-uctomb.c: Likewise.
62112         * lib/unitypes.h: Likewise.
62113         * lib/uniwidth.h: Likewise.
62114         * lib/uniwidth/cjk.h: Likewise.
62115         * lib/uniwidth/u16-strwidth.c: Likewise.
62116         * lib/uniwidth/u16-width.c: Likewise.
62117         * lib/uniwidth/u32-strwidth.c: Likewise.
62118         * lib/uniwidth/u32-width.c: Likewise.
62119         * lib/uniwidth/u8-strwidth.c: Likewise.
62120         * lib/uniwidth/u8-width.c: Likewise.
62121         * lib/uniwidth/width.c: Likewise.
62122
62123 2007-10-07  Bruno Haible  <bruno@clisp.org>
62124
62125         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62126         The file is still under LGPL (see modules/inttypes).
62127
62128 2007-10-06  Bruno Haible  <bruno@clisp.org>
62129
62130         * modules/trunc (Dependencies): Add 'extensions'.
62131         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62132         Reported by Ben Pfaff <blp@gnu.org>.
62133
62134 2007-10-06  Bruno Haible  <bruno@clisp.org>
62135
62136         * modules/freopen-tests: New file.
62137         * tests/test-freopen.c: New file.
62138
62139         * modules/fopen-tests: New file.
62140         * tests/test-fopen.c: New file.
62141
62142         * modules/fopen: New file.
62143         * lib/fopen.c: New file.
62144         * m4/fopen.m4: New file.
62145         * modules/freopen: New file.
62146         * lib/freopen.c: New file.
62147         * m4/freopen.m4: New file.
62148         * lib/stdio.in.h (fopen, freopen): New declarations.
62149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62150         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62151         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62152         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62153         * doc/functions/fopen.texi: Mention the 'fopen' module.
62154         * doc/functions/freopen.texi: Mention the 'freopen' module.
62155
62156 2007-10-06  Bruno Haible  <bruno@clisp.org>
62157
62158         * modules/open-tests: New file.
62159         * tests/test-open.c: New file.
62160
62161         * modules/open: New file.
62162         * lib/open.c: New file.
62163         * m4/open.m4: New file.
62164         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62165         lib/open.c does.
62166         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62167         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62168         macros.
62169         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62170         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62171         REPLACE_OPEN.
62172         * doc/functions/open.texi: Mention the 'open' module.
62173
62174 2007-10-04  Bruno Haible  <bruno@clisp.org>
62175
62176         * modules/ceill-tests: New file.
62177         * tests/test-ceill.c: New file.
62178
62179         * modules/ceill: New file.
62180         * lib/ceill.c: Replace entire file.
62181         * m4/ceill.m4: New file.
62182         * lib/math.in.h (ceill): Replace declaration.
62183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62184         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62185         * doc/functions/ceill.texi: Mention the 'ceill' module.
62186         * modules/mathl (Files): Remove lib/ceill.c.
62187         (Depends-on): Add ceill.
62188
62189 2007-10-04  Bruno Haible  <bruno@clisp.org>
62190
62191         * modules/ceilf-tests: New file.
62192         * tests/test-ceilf.c: New file.
62193
62194         * modules/ceilf: New file.
62195         * lib/ceil.c: New file.
62196         * lib/ceilf.c: New file.
62197         * m4/ceilf.m4: New file.
62198         * lib/math.in.h (ceilf): New declaration.
62199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62200         HAVE_DECL_CEILF.
62201         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62202         HAVE_DECL_CEILF.
62203         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62204
62205 2007-10-04  Bruno Haible  <bruno@clisp.org>
62206
62207         * modules/floorl-tests: New file.
62208         * tests/test-floorl.c: New file.
62209
62210         * modules/floorl: New file.
62211         * lib/floorl.c: Replace entire file.
62212         * m4/floorl.m4: New file.
62213         * lib/math.in.h (floorl): Replace declaration.
62214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62215         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62216         * doc/functions/floorl.texi: Mention the 'floorl' module.
62217         * modules/mathl (Files): Remove lib/floorl.c.
62218         (Depends-on): Add floorl.
62219
62220 2007-10-04  Bruno Haible  <bruno@clisp.org>
62221
62222         * modules/floorf-tests: New file.
62223         * tests/test-floorf.c: New file.
62224
62225         * modules/floorf: New file.
62226         * lib/floor.c: New file.
62227         * lib/floorf.c: New file.
62228         * m4/floorf.m4: New file.
62229         * lib/math.in.h (floorf): New declaration.
62230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62231         HAVE_DECL_FLOORF.
62232         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62233         HAVE_DECL_FLOORF.
62234         * doc/functions/floorf.texi: Mention the 'floorf' module.
62235
62236 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62237             Bruno Haible  <bruno@clisp.org>
62238
62239         Advertise for the Git server instead of the CVS server.
62240         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62241         repository instead of the CVS one.
62242         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62243         about all VCS systems generically.
62244         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62245
62246 2007-10-04  Bruno Haible  <bruno@clisp.org>
62247
62248         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62249         means.
62250         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62251
62252 2007-10-04  Bruno Haible  <bruno@clisp.org>
62253
62254         * modules/truncl-tests: New file.
62255         * tests/test-truncl.c: New file.
62256
62257         * modules/truncl: New file.
62258         * lib/truncl.c: New file.
62259         * m4/truncl.m4: New file.
62260         * lib/math.in.h (truncl): New declaration.
62261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62262         HAVE_DECL_TRUNCL.
62263         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62264         HAVE_DECL_TRUNCL.
62265         * doc/functions/truncl.texi: Mention the 'truncl' module.
62266
62267 2007-10-04  Bruno Haible  <bruno@clisp.org>
62268
62269         * modules/truncf-tests: New file.
62270         * tests/test-truncf.c: New file.
62271
62272         * modules/truncf: New file.
62273         * lib/trunc.c: Make paramerizable through USE_* macros.
62274         * lib/truncf.c: New file.
62275         * m4/truncf.m4: New file.
62276         * lib/math.in.h (truncf): New declaration.
62277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62278         HAVE_DECL_TRUNCF.
62279         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62280         HAVE_DECL_TRUNCF.
62281         * doc/functions/truncf.texi: Mention the 'truncf' module.
62282
62283 2007-10-03  Bruno Haible  <bruno@clisp.org>
62284
62285         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62286         augmentation also for tests modules.
62287         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62288         * modules/atexit-tests (Makefile.am): Likewise.
62289         * modules/binary-io-tests (Makefile.am): Likewise.
62290         * modules/c-strcase-tests (Makefile.am): Likewise.
62291         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62292         * modules/canonicalize-tests (Makefile.am): Likewise.
62293         * modules/closein-tests (Makefile.am): Likewise.
62294         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62295         * modules/freadahead-tests (Makefile.am): Likewise.
62296         * modules/fseek-tests (Makefile.am): Likewise.
62297         * modules/fseeko-tests (Makefile.am): Likewise.
62298         * modules/ftell-tests (Makefile.am): Likewise.
62299         * modules/ftello-tests (Makefile.am): Likewise.
62300         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62301         * modules/isnanl-tests (Makefile.am): Likewise.
62302         * modules/lseek-tests (Makefile.am): Likewise.
62303         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62304         * modules/mbscasestr-tests (Makefile.am): Likewise.
62305         * modules/mbschr-tests (Makefile.am): Likewise.
62306         * modules/mbscspn-tests (Makefile.am): Likewise.
62307         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62308         * modules/mbspbrk-tests (Makefile.am): Likewise.
62309         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62310         * modules/mbsrchr-tests (Makefile.am): Likewise.
62311         * modules/mbsspn-tests (Makefile.am): Likewise.
62312         * modules/mbsstr-tests (Makefile.am): Likewise.
62313         * modules/printf-posix-tests (Makefile.am): Likewise.
62314         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62315         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62316         * modules/tsearch-tests (Makefile.am): Likewise.
62317         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62318         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62319         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62320         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62321         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62322         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62323         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62324         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62325         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62326         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62327         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62328         * modules/xstrtol-tests (Makefile.am): Likewise.
62329         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62330         * modules/yesno-tests (Makefile.am): Likewise.
62331
62332 2007-10-03  Bruno Haible  <bruno@clisp.org>
62333
62334         * modules/trunc-tests: New file.
62335         * tests/test-trunc.c: New file.
62336
62337         * modules/trunc: New file.
62338         * lib/trunc.c: New file.
62339         * m4/trunc.m4: New file.
62340         * lib/math.in.h (trunc): New declaration.
62341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62342         HAVE_DECL_TRUNC.
62343         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62344         HAVE_DECL_TRUNC.
62345         * doc/functions/trunc.texi: Mention the 'trunc' module.
62346
62347 2007-10-03  Bruno Haible  <bruno@clisp.org>
62348
62349         * tests/test-fpending.c: New file, mostly copied
62350         from coreutils/lib/t-fpending.c.
62351         * modules/fpending-tests: New file.
62352
62353 2007-10-03  Bruno Haible  <bruno@clisp.org>
62354
62355         Port the stdio extensions to QNX (untested).
62356         * lib/fseterr.c (fseterr): Add support for QNX.
62357         * lib/fbufmode.c (fbufmode): Likewise.
62358         * lib/freadable.c (freadable): Likewise.
62359         * lib/fwritable.c (fwritable): Likewise.
62360         * lib/freading.c (freading): Likewise.
62361         * lib/fwriting.c (fwriting): Likewise.
62362         * lib/freadahead.c (freadahed): Likewise.
62363         * lib/fpurge.c (fpurge): Likewise.
62364         * lib/fseeko.c (rpl_fseeko): Likewise.
62365
62366 2007-10-03  Bruno Haible  <bruno@clisp.org>
62367             Jim Meyering  <jim@meyering.net>
62368             Eric Blake  <ebb9@byu.net>
62369
62370         * doc/relocatable.texi: Use @command instead of @program.
62371
62372 2007-10-02  Jim Meyering  <jim@meyering.net>
62373
62374         Perform one more "_.h" -> ".in.h" substitution.
62375         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62376         instead of unistd_.h here, too.
62377
62378 2007-10-01  Bruno Haible  <bruno@clisp.org>
62379
62380         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62381         Needed for the alloca-opt module.
62382
62383 2007-09-30  Bruno Haible  <bruno@clisp.org>
62384
62385         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62386         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62387         alloca_.h.
62388         * lib/argz.in.h: Renamed from lib/argz_.h.
62389         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62390         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62391         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62392         byteswap_.h.
62393         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62394         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62395         dirent_.h.
62396         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62397         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62398         fcntl_.h.
62399         * lib/float.in.h: Renamed from lib/float_.h.
62400         * modules/float (Files, Makefile.am): Use float.in.h instead of
62401         float_.h.
62402         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62403         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62404         fnmatch_.h.
62405         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62406         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62407         getopt_.h.
62408         * lib/glob.in.h: Renamed from lib/glob_.h.
62409         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62410         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62411         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62412         iconv_.h.
62413         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62414         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62415         inttypes_.h.
62416         * lib/locale.in.h: Renamed from lib/locale_.h.
62417         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62418         locale_.h.
62419         * lib/math.in.h: Renamed from lib/math_.h.
62420         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62421         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62422         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62423         of netinet_in_.h. Add dependency.
62424         * lib/poll.in.h: Renamed from lib/poll_.h.
62425         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62426         * lib/search.in.h: Renamed from lib/search_.h.
62427         * modules/search (Files, Makefile.am): Use search.in.h instead of
62428         search_.h.
62429         * lib/signal.in.h: Renamed from lib/signal_.h.
62430         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62431         _signal.h.
62432         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62433         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62434         stdbool_.h.
62435         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62436         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62437         stdint_.h.
62438         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62439         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62440         stdio_.h.
62441         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62442         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62443         stdlib_.h.
62444         * lib/string.in.h: Renamed from lib/string_.h.
62445         * modules/string (Files, Makefile.am): Use string.in.h instead of
62446         string_.h.
62447         * doc/gnulib-tool.texi (Initial import): Update.
62448         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62449         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62450         of sys_select_.h. Add dependency.
62451         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62452         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62453         of sys_socket_.h.
62454         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62455         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62456         sys_stat_.h.
62457         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62458         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62459         sys_time_.h.
62460         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62461         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62462         sysexits_.h.
62463         * lib/time.in.h: Renamed from lib/time_.h.
62464         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62465         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62466         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62467         unistd_.h.
62468         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62469         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62470         wchar_.h.
62471         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62472         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62473         wctype_.h.
62474         * build-aux/bootstrap (slurp): Update.
62475         * lib/.cppi-disable: Update.
62476
62477 2007-09-30  Bruno Haible  <bruno@clisp.org>
62478
62479         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62480         Needed on BeOS.
62481
62482 2007-09-30  Bruno Haible  <bruno@clisp.org>
62483
62484         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62485
62486 2007-09-29  Bruno Haible  <bruno@clisp.org>
62487
62488         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62489
62490 2007-09-29  Bruno Haible  <bruno@clisp.org>
62491
62492         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62493         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62494         * build-aux/install-reloc: Compile also areadlink.c.
62495         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62496
62497 2007-09-29  Bruno Haible  <bruno@clisp.org>
62498
62499         * gnulib-tool (func_emit_initmacro_done): Indentation.
62500
62501 2007-09-29  Bruno Haible  <bruno@clisp.org>
62502
62503         * README: Add CVS checkout update instructions.
62504         Info from Bob Proulx <bob@proulx.com>.
62505
62506 2007-09-28  Eric Blake  <ebb9@byu.net>
62507
62508         Provide move-if-change.
62509         * build-aux/move-if-change: New file, based on best practice
62510         rather than any canonical upstream location.
62511
62512 2007-09-28  Jim Meyering  <jim@meyering.net>
62513
62514         Fix canonicalize loop-detection corner case.
62515         Do not attempt to stat the symlink values stored via seen_triple.
62516         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62517         on linux-2.6.18, (but not 2.6.22).
62518         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62519         triple_compare.  The former compares dev,ino,filename, while the latter
62520         would actually stat dirname(filename) when dev and ino were equal.
62521         * lib/hash-triple.c: Install <string.h>.
62522         (STREQ): Define.
62523         (triple_compare_ino_str): New function.
62524         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62525
62526 2007-09-28  Eric Blake  <ebb9@byu.net>
62527
62528         Enforce that AC_REPLACE_FUNCS files exist.
62529         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62530         override check for typos.
62531
62532         Fix test-closein on Solaris 10.
62533         * tests/test-closein.c (main): Don't assume stdin can be inherited
62534         closed on all systems.
62535         * tests/test-closein.sh: Likewise.
62536         Reported by Piotr Tarnowski.
62537
62538 2007-09-28  Jim Meyering  <jim@meyering.net>
62539
62540         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62541
62542 2007-09-27  Jim Meyering  <jim@meyering.net>
62543
62544         canonicalize: Avoid a false-positive cycle failure.
62545         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62546         Sort.  Remove cycle-check.
62547         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62548         not cycle-check.h.
62549         (seen_triple): New function.
62550         (canonicalize_filename_mode): Use it instead of cycle-check.
62551         * tests/test-canonicalize.c: Add a test for this bug.
62552         * tests/test-canonicalize.sh: Set up and run the test.
62553
62554         New module, file-set, from coreutils.
62555         * modules/file-set: Define it.
62556         * lib/file-set.c, lib/file-set.h: Implement.
62557
62558         New module, hash-triple, from coreutils.
62559         * modules/hash-triple: Define it.
62560         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62561
62562 2007-09-25  Eric Blake  <ebb9@byu.net>
62563
62564         Fix strerror on Interix.
62565         * lib/string_.h (strerror): Declare replacement.
62566         * doc/functions/strerror.texi (strerror): Document the Interix
62567         shortcoming.
62568         * modules/string (Makefile.am): Support new hooks.
62569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62570         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62571         gl_FUNC_STRERROR_SEPARATE.
62572         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62573         * lib/strerror.c (rpl_strerror): Provide replacement.
62574         * modules/strerror (Depends-on): Add string.
62575         (configure.ac): Detect use of module.
62576         * tests/test-strerror.c: New file.
62577         * modules/strerror-tests: New test module.
62578         * modules/argp (Depends-on): Add strerror.
62579         * modules/error (Depends-on): Likewise.
62580         Reported by Martin Koeppe.
62581
62582 2007-09-24  Bruno Haible  <bruno@clisp.org>
62583
62584         * README: Update git instructions.
62585
62586 2007-09-24  Eric Blake  <ebb9@byu.net>
62587
62588         Revert fpending breakage from 2007-09-08.
62589         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62590         __fpending.c.
62591
62592 2007-09-24  Jim Meyering  <jim@meyering.net>
62593
62594         filenamecat.c: Add a test.
62595         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62596         showing how the function works when DIR is the empty string.
62597
62598 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62599
62600         * tests/test-canonicalize.sh: Turn on executable bit.
62601
62602 2007-09-19  Eric Blake  <ebb9@byu.net>
62603
62604         * README: Update CVS instructions.
62605
62606 2007-09-18  Bruno Haible  <bruno@clisp.org>
62607
62608         * modules/areadlink: New file.
62609         * lib/areadlink.h (areadlink): New declaration.
62610         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62611
62612 2007-09-17  Jim Meyering  <jim@meyering.net>
62613
62614         * lib/savewd.c (ESTALE) [!defined]: Define.
62615         Reported to be required on Interix by Martin Koeppe.
62616
62617 2007-09-17  Bruno Haible  <bruno@clisp.org>
62618
62619         * gnulib-tool (func_version): Use $version.
62620
62621 2007-09-16  Bruno Haible  <bruno@clisp.org>
62622
62623         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62624         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62625         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62626         Reported by Greg Schafer <gschafer@zip.com.au>.
62627
62628 2007-09-15  Bruno Haible  <bruno@clisp.org>
62629
62630         * gnulib-tool (sed): Try a little harder to make bash understand the
62631         alias.
62632         Reported by Bruce Korb <bruce.korb@gmail.com>.
62633
62634 2007-09-13  Eric Blake  <ebb9@byu.net>
62635
62636         * ChangeLog: Remove conflict markers.
62637
62638 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62639
62640         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62641         Reported by Bruno Haible <bruno@clisp.org>.
62642
62643 2007-09-12  Bruno Haible  <bruno@clisp.org>
62644
62645         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62646         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62647         is not defined.
62648
62649 2007-09-12  Eric Blake  <ebb9@byu.net>
62650
62651         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62652         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62653         Autoconf definition.
62654         * modules/euidaccess (Depends-on): Add extensions, for
62655         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62656         * modules/fnmatch (Depends-on): Likewise.
62657         * modules/getaddrinfo (Depends-on): Likewise.
62658         * modules/getdelim (Depends-on): Likewise.
62659         * modules/getline (Depends-on): Likewise.
62660         * modules/getsubopt (Depends-on): Likewise.
62661         * modules/gettext (Depends-on): Likewise.
62662         * modules/group-member (Depends-on): Likewise.
62663         * modules/mbchar (Depends-on): Likewise.
62664         * modules/memmem (Depends-on): Likewise.
62665         * modules/mempcpy (Depends-on): Likewise.
62666         * modules/memrchr (Depends-on): Likewise.
62667         * modules/pagealign_alloc (Depends-on): Likewise.
62668         * modules/readutmp (Depends-on): Likewise.
62669         * modules/stpcpy (Depends-on): Likewise.
62670         * modules/stpncpy (Depends-on): Likewise.
62671         * modules/strchrnul (Depends-on): Likewise.
62672         * modules/strndup (Depends-on): Likewise.
62673         * modules/strsep (Depends-on): Likewise.
62674         * modules/strverscmp (Depends-on): Likewise.
62675         * modules/vasprintf (Depends-on): Likewise.
62676         * modules/wcwidth (Depends-on): Likewise.
62677         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62678         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62679         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62680         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62681         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62682         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62683         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62684         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62685         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62686         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62687         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62688         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62689         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62690         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62691         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62692         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62693         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62694         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62695         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62696         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62697         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62698         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62699         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62700         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62701         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62702         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62703         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62704         so that lock.m4 can be used in gettext without extensions module.
62705
62706 2007-09-11  Bruno Haible  <bruno@clisp.org>
62707
62708         * m4/isc-posix.m4: Remove file.
62709         Suggested by Eric Blake.
62710
62711 2007-09-11  Eric Blake  <ebb9@byu.net>
62712
62713         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62714
62715 2007-09-10  Bruno Haible  <bruno@clisp.org>
62716
62717         * posix-modules: Fix typo in error message.
62718         Reported by Matt <mkraai@beckman.com>.
62719
62720 2007-09-09  Bruno Haible  <bruno@clisp.org>
62721
62722         * doc/functions/getdelim.texi: Update list of platforms lacking the
62723         function.
62724         * doc/functions/getline.texi: Likewise.
62725
62726 2007-09-09  Jim Meyering  <jim@meyering.net>
62727
62728         * lib/hash.c (hash_initialize): Detect calloc failure.
62729         Reported by Bruno Haible.
62730
62731 2007-09-09  Bruno Haible  <bruno@clisp.org>
62732
62733         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62734         malloc or realloc fails.
62735
62736 2007-09-09  Bruno Haible  <bruno@clisp.org>
62737
62738         * modules/getcwd (Depends-on): Add malloc-posix.
62739         * modules/glob (Depends-on): Likewise.
62740         * modules/putenv (Depends-on): Likewise.
62741         * modules/strdup (Depends-on): Likewise.
62742         * modules/getdelim (Depends-on): Add realloc-posix.
62743         * modules/read-file (Depends-on): Likewise.
62744
62745 2007-09-09  Bruno Haible  <bruno@clisp.org>
62746
62747         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62748         (gl_FUNC_MALLOC_POSIX): Require it.
62749         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62750         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62751         * modules/realloc (Files): Add m4/malloc.m4.
62752         * modules/calloc (Files): Likewise.
62753
62754 2007-09-09  Bruno Haible  <bruno@clisp.org>
62755
62756         * modules/malloc-posix: New file.
62757         * modules/malloc (Depends-on): Add malloc-posix.
62758         * lib/malloc.c: Include errno.h.
62759         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62760         and a POSIX-compatible malloc into a single function. Set ENOMEM
62761         when returning NULL.
62762         * m4/malloc.m4: New file.
62763         * doc/functions/malloc.texi: Mention the malloc-posix module.
62764         * lib/stdlib_.h (malloc): New declaration.
62765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62766         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62767         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62768         and HAVE_MALLOC_POSIX.
62769
62770 2007-09-09  Bruno Haible  <bruno@clisp.org>
62771
62772         * modules/realloc-posix: New file.
62773         * modules/realloc (Depends-on): Add realloc-posix.
62774         * lib/realloc.c: Include errno.h.
62775         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62776         and a POSIX-compatible realloc into a single function. Set ENOMEM
62777         when returning NULL.
62778         * m4/realloc.m4: New file.
62779         * doc/functions/realloc.texi: Mention the realloc-posix module.
62780         * lib/stdlib_.h (realloc): New declaration.
62781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62782         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62783         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62784         and HAVE_REALLOC_POSIX.
62785
62786 2007-09-09  Bruno Haible  <bruno@clisp.org>
62787
62788         * modules/calloc-posix: New file.
62789         * modules/calloc (Depends-on): Add calloc-posix.
62790         * lib/calloc.c: Include errno.h.
62791         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62792         and a POSIX-compatible calloc into a single function. Set ENOMEM
62793         when returning NULL.
62794         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62795         * doc/functions/calloc.texi: Mention the calloc-posix module.
62796         * lib/stdlib_.h (calloc): New declaration.
62797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62798         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62799         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62800         and HAVE_CALLOC_POSIX.
62801
62802 2007-09-09  Bruno Haible  <bruno@clisp.org>
62803
62804         Allow for modules to show an arbitrary notice.
62805         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62806         * gnulib-tool: New option --extract-notice.
62807         (func_usage): Document it.
62808         (sed_extract_prog): Update.
62809         (func_get_notice): New function.
62810         (func_modules_notice): New function.
62811         (func_import, func_create_testdir): Invoke it.
62812         Suggested by Jim Meyering.
62813
62814 2007-09-09  Bruno Haible  <bruno@clisp.org>
62815
62816         * gnulib-tool: New options --verbose, --quiet.
62817         (func_usage): Document them.
62818         (verbose): New variable.
62819         (func_execute_command): New function.
62820         (func_import): Don't show the module list and the file list if
62821         $verbose < 0.
62822         (func_create_testdir): Likewise. Use func_execute_command.
62823         (func_create_megatestdir): Use func_execute_command.
62824
62825 2007-09-08  Bruno Haible  <bruno@clisp.org>
62826
62827         * gnulib-tool (func_import): Prefer rsync over wget when available,
62828         for fetching the PO files.
62829
62830 2007-09-08  Bruno Haible  <bruno@clisp.org>
62831
62832         * posix-modules: New file. Portions copied from gnulib-tool.
62833         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62834
62835 2007-09-08  Jim Meyering  <jim@meyering.net>
62836
62837         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62838         * lib/fpending.h: Rename from __fpending.h.
62839         * lib/fpending.c: Rename from __fpending.c.
62840         Include "fpending.h", not "__fpending.h".
62841         * lib/__fpending.h, lib/__fpending.c: Remove files.
62842         * modules/fpending (Files): Reflect new file names.
62843         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62844
62845 2007-09-08  Bruno Haible  <bruno@clisp.org>
62846
62847         * m4/inttypes-h.m4: Remove stub file.
62848
62849 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62850
62851         * doc/headers/stdint.texi: Discuss #include_next issue.
62852
62853 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62854
62855         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62856
62857 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62858
62859         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62860         in variable name.
62861
62862 2007-09-03  Jim Meyering  <jim@meyering.net>
62863
62864         New module: git-version-gen.
62865         * modules/git-version-gen: New file.
62866
62867         Import changes from coreutils for bootstrap script.
62868
62869         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62870
62871         bootstrap: uses rsync to download the .po files
62872         * build-aux/bootstrap (po_download_command_format): New global.
62873         (download_po_files): Use rsync.
62874         (update_po_files): Don't remove .po files after download,
62875         so future rsync runs can take advantage of the copies.
62876
62877         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62878
62879         Solve the unnecessary-.po-file-regeneration problem once and for all.
62880         * build-aux/bootstrap (download_po_files): New function, renamed from
62881         get_translations.  Now, downloads, but doesn't update LINGUAS.
62882         (update_po_files): New function.
62883
62884         bootstrap: Ignore more.
62885         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62886         uniwidth to e.g., lib/.gitignore.
62887         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62888
62889         * build-aux/bootstrap: New setting: vc_ignore.
62890         (insert_sorted_if_absent): Create $file if absent.
62891         Adapt to new, possibly empty, list: $vc_ignore.
62892
62893         bootstrap: generate more ignorable names
62894         * build-aux/bootstrap (slurp): When generating ignorable names,
62895         also map .sin to .sed, .gperf to .c, and .y to .c.
62896
62897 2007-09-03  Jim Meyering  <jim@meyering.net>
62898
62899         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62900         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62901
62902 2007-09-02  Bruno Haible  <bruno@clisp.org>
62903
62904         Fix mis-recognition of 'mcs' on QNX 6.
62905         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62906         output contains the string "Mono".
62907         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62908         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62909
62910 2007-09-01  Bruno Haible  <bruno@clisp.org>
62911
62912         Fix collision between uniwidth/* and linebreak modules.
62913         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62914         u32_width): Remove declarations.
62915         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62916         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62917         streq3, streq2, streq1, streq0): Remove functions.
62918         (STREQ): Remove macro.
62919         (is_cjk_encoding): Remove function.
62920         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62921         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62922         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62923         * NEWS: Document the change.
62924
62925 2007-09-01  Bruno Haible  <bruno@clisp.org>
62926
62927         * lib/streq.h: Add double-inclusion guard.
62928
62929 2007-09-01  Karl Berry  <karl@gnu.org>
62930
62931         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62932
62933 2007-08-28  Jim Meyering  <jim@meyering.net>
62934
62935         Rename mreadlink_with_size to areadlink_with_size.
62936         * NEWS: Document the change.
62937         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62938         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62939         * lib/mreadlink.h: Rename this to...
62940         * lib/areadlink.h: ...this.
62941         * modules/mreadlink-with-size: Rename this to...
62942         * modules/areadlink-with-size: ...this.
62943         * lib/canonicalize.c: Reflect the renaming.
62944         * modules/canonicalize: Likewise.
62945
62946 2007-08-26  Bruno Haible  <bruno@clisp.org>
62947
62948         * gnulib-tool (func_import): When deciding which files to remove,
62949         consider also dangling symbolic links.
62950         Reported by Eric Blake.
62951
62952 2007-08-26  Bruno Haible  <bruno@clisp.org>
62953
62954         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62955
62956 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62957
62958         * lib/readline.c: Don't include getline.h, the prototype is now
62959         found in stdio.h.
62960
62961 2007-08-23  Jim Meyering  <jim@meyering.net>
62962
62963         Getdelim touchup.
62964         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62965         around the funlockfile call, since funlockfile never sets errno.
62966         Don't set errno upon failed realloc.
62967
62968 2007-08-22  Eric Blake  <ebb9@byu.net>
62969
62970         Getline touchups.
62971         * lib/getdelim.c (getdelim): Revert regression that required *n to
62972         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62973         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62974         getdelim, rather than whether implementation is missing.
62975         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62976         * lib/stdio_.h (getline): Also declare if replacement is
62977         required.
62978         * doc/functions/getdelim.texi: New file.
62979         * doc/functions/getline.texi: Likewise.
62980         * doc/gnulib.texi (Function Substitutes): Add new files.
62981         Reported by Bruno Haible.
62982
62983 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62984
62985         * users.txt: Add Guile.
62986
62987 2007-08-22  Eric Blake  <ebb9@byu.net>
62988
62989         * tests/test-getdelim.c (main): Use remove, not unlink.
62990         * tests/test-getline.c (main): Likewise.
62991
62992         Move getline and getdelim into stdio.h, per POSIX 200x.
62993         * modules/getline (Files): Remove getline.h.
62994         (Depends-on): Add stdio.
62995         (configure.ac): Add module indicator.
62996         * modules/getdelim (Files): Remove getdelim.h.
62997         (Depends-on): Add stdio.
62998         (configure.ac): Add module indicator.
62999         * modules/stdio (Makefile.am): Work with new indicators.
63000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63001         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63002         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63003         * lib/getdelim.h: Delete.
63004         * lib/getline.h: Delete.
63005         * lib/stdio_.h (getdelim, getline): Declare.
63006         * modules/getdelim-tests: New module.
63007         * modules/getline-tests: Likewise.
63008         * tests/test-getdelim.c: New file.
63009         * tests/test-getline.c: Likewise.
63010         * NEWS: Document the change.
63011         * lib/getline.c: Update choice of header.
63012         * lib/csharpcomp.c: Likewise.
63013         * lib/getpass.c: Likewise.
63014         * lib/javacomp.c: Likewise.
63015         * lib/javaversion.c: Likewise.
63016         * lib/yesno.c: Likewise.
63017         * lib/getdelim.c: Likewise.
63018         (getdelim): Set errno on failure, and avoid memory leak.
63019
63020 2007-08-19  Bruno Haible  <bruno@clisp.org>
63021
63022         * modules/closein (Depends-on): Add freadahead.
63023         * lib/closein.c: Include freadahead.h.
63024         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63025         is zero.
63026
63027 2007-08-19  Bruno Haible  <bruno@clisp.org>
63028
63029         * modules/freadahead-tests: New file.
63030         * tests/test-freadahead.sh: New file.
63031         * tests/test-freadahead.c: New file.
63032
63033         * modules/freadahead: New file.
63034         * lib/freadahead.h: New file.
63035         * lib/freadahead.c: New file.
63036         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63037         fbufmode, fpurge, freadable, fwritable.
63038
63039 2007-08-19  Eric Blake  <ebb9@byu.net>
63040
63041         Test yesno in combination with closein.
63042         * lib/yesno.c (yesno): Document use of stdin.
63043         * modules/yesno-tests (Files): New module.
63044         * tests/test-yesno.c (main): New file.
63045         * tests/test-yesno.sh: Likewise.
63046
63047 2007-08-19  Bruno Haible  <bruno@clisp.org>
63048
63049         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63050         * lib/fseeko.c (rpl_fseeko): Likewise.
63051         * lib/fseterr.c (fseterr): Likewise.
63052
63053 2007-08-19  Bruno Haible  <bruno@clisp.org>
63054
63055         * tests/test-lseek.c (main): Disable a test for BeOS.
63056         * doc/functions/lseek.texi: Document the BeOS bug.
63057
63058 2007-08-19  Bruno Haible  <bruno@clisp.org>
63059             Eric Blake  <ebb9@byu.net>
63060
63061         * lib/lseek.c: Include <sys/stat.h>.
63062         (rpl_lseek): Add workaround code also for Unix platforms.
63063         Needed for BeOS.
63064         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63065         * doc/functions/lseek.texi: Document BeOS definiency.
63066
63067 2007-08-18  Bruno Haible  <bruno@clisp.org>
63068
63069         * modules/fstrcmp-tests: New file.
63070         * tests/test-fstrcmp.c: New file.
63071
63072 2007-08-18  Bruno Haible  <bruno@clisp.org>
63073
63074         * modules/fstrcmp: New file, from GNU gettext with modifications.
63075         * lib/fstrcmp.h: New file, from GNU gettext.
63076         * lib/fstrcmp.c: New file, from GNU gettext.
63077         * MODULES.html.sh (String handling): Add fstrcmp.
63078
63079 2007-08-18  Bruno Haible  <bruno@clisp.org>
63080
63081         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63082         'bool'.
63083         (diag, compareseq): Remove const from the ctxt argument.
63084         (USE_HEURISTIC): Undefine at the end.
63085
63086 2007-08-18  Jim Meyering  <jim@meyering.net>
63087
63088         New file: lib/idcache.h
63089         * NEWS: Mention the addition.
63090         * modules/idcache (Files): Add lib/idcache.h
63091         * lib/idcache.c: Include "idcache.h".
63092         Don't include <sys/types.h>.
63093         Add a FIXME comment.
63094         Move file-scoped "static" declarations to the top.
63095         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63096
63097 2007-08-17  Bruno Haible  <bruno@clisp.org>
63098         and Paul Eggert  <eggert@cs.ucla.edu>
63099
63100         * MODULES.html.sh: Add diffseq.
63101         * modules/diffseq: New file.
63102         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63103         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63104
63105 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63106
63107         Import changes from coreutils for bootstrap script.
63108
63109         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63110
63111         * build-aux/bootstrap (slurp): Work even in environments where
63112         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63113         current code does not slurp files whose names start with ".", and
63114         this looks like it might be a troublesome area.
63115
63116         2007-07-11  Jim Meyering  <jim@meyering.net>
63117
63118         If there's a GPL vN copyright comment, require that N == 3.
63119
63120         2007-07-08  Jim Meyering  <jim@meyering.net>
63121
63122         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63123         * build-aux/bootstrap (mam_template): Move definition out of loop.
63124
63125         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63126
63127         * build-aux/bootstrap (symlink_to_dir): Rename function from
63128         symlink_to_gnulib.  Add a directory parameter.  Update all
63129         callers.
63130         (cp_mark_as_generated): Also check for -- and link to -- files in
63131         gl/.
63132
63133         2007-07-08  Jim Meyering  <jim@meyering.net>
63134
63135         Adapt to deeper hierarchy in gnulib.
63136         * build-aux/bootstrap (symlink_to_dir): If the destination
63137         directory doesn't exist, create it. This is required at least for
63138         "lib/uniwidth/cjk.h".
63139
63140         2007-05-15  Jim Meyering  <jim@meyering.net>
63141
63142         * build-aux/bootstrap: Now that generated Makefile.am files
63143         are no longer under version control, they must be created at
63144         bootstrap time.
63145
63146 2007-08-14  Ben Pfaff  <blp@gnu.org>
63147
63148         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63149
63150 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63151
63152         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63153         given the changes below.
63154         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63155         even on hosts that have padding bits beyond the supported 64.
63156
63157 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63158
63159         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63160         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63161         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63162         depends on it.
63163         (xstrtol_error): Remove.
63164         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63165         but with a different signature.
63166         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63167         * lib/xstrtol-error.c: Include exitfail.h.
63168         (xstrtol_fatal): New function, with a different signature from the
63169         old xstrtol_error, so that the caller need not worry about passing
63170         in an exit status, or about storage management of the option argument.
63171         (xstrtol_error): Now a static function.  Redo signature to
63172         implement xstrtol_fatal.  Output the correct number of hyphens in
63173         front of the option so that the caller need not worry about
63174         storage management.
63175         (N_): New macro.
63176         (_): Remove; not used now.
63177         * modules/xstrtol: Depend on getopt.
63178         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63179         of old STRTOL_FATAL_ERROR macro.
63180         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63181         of test program.
63182         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63183         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63184
63185 2007-08-08  Eric Blake  <ebb9@byu.net>
63186
63187         * lib/xstrtol-error.c: Add missing include.
63188
63189         Move xstrtol messages into gnulib domain, when --pobase is used.
63190         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63191         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63192         * modules/xstrtol (Files): Distribute new file.
63193         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63194         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63195         * tests/test-xstrtol.c: ...into new file.
63196         * tests/test-xstrtoul.c: Also test xstrtoul.
63197         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63198         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63199         * tests/test-xstrtol.sh: Drive the tests.
63200         * tests/test-xstrtoimax.sh: Likewise.
63201         * tests/test-xstrtoumax.sh: Likewise.
63202         * modules/xstrtol-tests: New module.
63203         * modules/xstrtoimax-tests: Likewise.
63204         * modules/xstrtoumax-tests: Likewise.
63205
63206 2007-08-08  Jim Meyering  <jim@meyering.net>
63207
63208         New function: mfile_name_concat.
63209         * lib/filenamecat.c (mfile_name_concat): New function, just like
63210         file_name_concat, but return NULL upon failure rather than exiting
63211         with a diagnostic.
63212         * lib/filenamecat.h: Declare it.
63213
63214 2007-08-07  Bruno Haible  <bruno@clisp.org>
63215
63216         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63217         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63218         warning from gcc.
63219         Reported by Eric Blake.
63220
63221 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63222
63223         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63224         * modules/crypto/arcfour (License): Likewise.
63225         * modules/crypto/des-tests (License): Likewise.
63226         * modules/crypto/gc-arctwo-tests (License): Likewise.
63227         * modules/crypto/gc-des-tests (License): Likewise.
63228         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63229         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63230         * modules/crypto/gc-md2-tests (License): Likewise.
63231         * modules/crypto/gc-md4-tests (License): Likewise.
63232         * modules/crypto/gc-md5-tests (License): Likewise.
63233         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63234         * modules/crypto/gc-rijndael-tests (License): Likewise.
63235         * modules/crypto/gc-sha1-tests (License): Likewise.
63236         * modules/crypto/gc-tests (License): Likewise.
63237         * modules/crypto/hmac-md5 (License): Likewise.
63238         * modules/crypto/hmac-sha1 (License): Likewise.
63239         * modules/crypto/md2-tests (License): Likewise.
63240         * modules/crypto/md4-tests (License): Likewise.
63241         * modules/crypto/md5 (License): Likewise.
63242         * modules/crypto/rijndael (License): Likewise.
63243         * modules/crypto/sha1 (License): Likewise.
63244         * modules/memxor (License): Likewise.
63245
63246 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63247         and Bruno Haible  <bruno@clisp.org>
63248
63249         * NEWS: Describe interface changes to human, xstrtol.
63250         * lib/human.h: Include <xstrtol.h>.
63251         (human_options): Return enum strtol_error, not int.  Remove
63252         bool arg; take int * instead.
63253         * lib/human.c: Don't include "gettext.h".
63254         (_): Remove; no longer used.
63255         Don't include <xstrtol.h>, since human.h does it.
63256         (human_options): Adjust to abovementioned interface changes.
63257         Do not report error to stderr; that's now the caller's
63258         responsibility.
63259         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63260         interface change.
63261         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63262         Str, Argument_type_string.  All uses changed.  Put " argument"
63263         in diagnostics to make them clearer.  Change wording of suffix
63264         message for clarity.
63265         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63266         Argument_type_string.
63267         (STRTOL_FATAL_WARN): Remove; no longer used.
63268         * modules/human (Depends-on): Remove gettext-h.
63269
63270 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63271
63272         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63273
63274 2007-07-31  Bruno Haible  <bruno@clisp.org>
63275
63276         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63277         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63278         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63279
63280 2007-07-31  Bruno Haible  <bruno@clisp.org>
63281
63282         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63283         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63284
63285 2007-07-30  Bruno Haible  <bruno@clisp.org>
63286
63287         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63288         * modules/c-ctype (License): Likewise.
63289         * modules/c-strcase (License): Likewise.
63290         * modules/check-version (License): Likewise.
63291         * modules/iconv (License): Likewise.
63292         * modules/iconv_open (License): Likewise.
63293         * modules/read-file (License): Likewise.
63294         * modules/striconv (License): Likewise.
63295         * modules/strverscmp (License): Likewise.
63296         * modules/vasprintf (License): Likewise.
63297         * modules/crypto/des (License): Likewise.
63298         * modules/crypto/gc (License): Likewise.
63299         * modules/crypto/gc-arcfour (License): Likewise.
63300         * modules/crypto/gc-arctwo (License): Likewise.
63301         * modules/crypto/gc-des (License): Likewise.
63302         * modules/crypto/gc-hmac-md5 (License): Likewise.
63303         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63304         * modules/crypto/gc-md2 (License): Likewise.
63305         * modules/crypto/gc-md4 (License): Likewise.
63306         * modules/crypto/gc-md5 (License): Likewise.
63307         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63308         * modules/crypto/gc-random (License): Likewise.
63309         * modules/crypto/gc-rijndael (License): Likewise.
63310         * modules/crypto/gc-sha1 (License): Likewise.
63311         * modules/crypto/md2 (License): Likewise.
63312         * modules/crypto/md4 (License): Likewise.
63313
63314 2007-07-30  Jim Meyering  <jim@meyering.net>
63315
63316         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63317         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63318         it has valid stat data.  This bug would cause du not to count the
63319         sizes of inaccessible directories.
63320         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63321         in <http://bugzilla.redhat.com/250077>.
63322
63323 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63324             Bruno Haible  <bruno@clisp.org>
63325
63326         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63327         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63328         #include_next, gives a diagnostic about it, but reports no error in
63329         the exit code.
63330         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63331
63332 2007-07-24  Ben Pfaff  <blp@gnu.org>
63333
63334         Improve name: "count-one-bits" is better than "popcount".
63335         * MODULES.html.sh: Update name.
63336         * lib/popcount.h: Renamed lib/count-one-bits.h.
63337         (popcount): Renamed count_one_bits.
63338         (popcountl): Renamed count_one_bits_l.
63339         (popcountll): Renamed count_one_bits_ll.
63340         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63341         * modules/popcount: Renamed module/count-one-bits.
63342         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63343         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63344
63345 2007-07-23  Ben Pfaff  <blp@gnu.org>
63346
63347         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63348         better code generation, and add U to large constants to avoid
63349         warnings, in non-GCC case.
63350         Suggested by Bruno Haible.
63351
63352 2007-07-23  Ben Pfaff  <blp@gnu.org>
63353
63354         * lib/popcount.h: Use verify_true instead of if...abort.
63355         * modules/popcount: Depend on verify module.
63356         Suggested by Jim Meyering.
63357
63358 2007-07-23  Bruno Haible  <bruno@clisp.org>
63359
63360         * gnulib-tool (func_import): Create a .cvsignore file also when the
63361         directory is not yet in CVS but the toplevel directory is. When
63362         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63363         Reported by Karl Berry.
63364
63365 2007-07-22  Ben Pfaff  <blp@gnu.org>
63366
63367         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63368         case.
63369         Suggested by Eric Blake.
63370
63371 2007-07-22  Ben Pfaff  <blp@gnu.org>
63372
63373         New module: popcount.
63374         * MODULES.html.sh: Add popcount.
63375         * modules/popcount: New file.
63376         * modules/popcount-tests: New file.
63377         * tests/test-popcount.c: New file.
63378         * lib/popcount.h: New file.
63379         * m4/popcount.m4: New file.
63380
63381 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63382
63383         * build-aux/announce-gen: Update to GPLv3.
63384
63385         * build-aux/config.guess: Update from config.
63386
63387 2007-07-21  Bruno Haible  <bruno@clisp.org>
63388
63389         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63390         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63391
63392 2007-07-20  Jim Meyering  <jim@meyering.net>
63393
63394         * check-module: Diagnose a self-dependency.
63395
63396 2007-07-19  Bruno Haible  <bruno@clisp.org>
63397
63398         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63399         empty.
63400         Reported by Eric Blake.
63401
63402 2007-07-18  Bruno Haible  <bruno@clisp.org>
63403
63404         * gnulib-tool: New options --po-base, --po-domain.
63405         (func_usage): Document them.
63406         (pobase, po_domain): New variables.
63407         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63408         DEFAULT_TEXT_DOMAIN.
63409         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63410         (func_import): Consider pobase and po_domain. Create a po/ directory.
63411         (func_create_testdir): Set pobase and po_domain to empty.
63412         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63413         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63414
63415 2007-07-18  Bruno Haible  <bruno@clisp.org>
63416
63417         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63418         EXTRA_DIST augmentation for files in build-aux/.
63419
63420 2007-07-16  Bruno Haible  <bruno@clisp.org>
63421
63422         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63423         * modules/getdelim (License): Likewise.
63424
63425 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63426
63427         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63428         * modules/d-type (License): Likewise.
63429         * modules/extensions (License): Likewise.
63430         * modules/fnmatch (License): Likewise.
63431         * modules/fseeko (License): Likewise.
63432         * modules/getaddrinfo (License): Likewise.
63433         * modules/getline (License): Likewise.
63434         * modules/getlogin_r (License): Likewise.
63435         * modules/getpass (License): Likewise.
63436         * modules/gettimeofday (License): Likewise.
63437         * modules/glob (License): Likewise.
63438         * modules/inet_ntop (License): Likewise.
63439         * modules/malloc (License): Likewise.
63440         * modules/malloca (License): Likewise.
63441         * modules/memmem (License): Likewise.
63442         * modules/mempcpy (License): Likewise.
63443         * modules/memset (License): Likewise.
63444         * modules/minmax (License): Likewise.
63445         * modules/mktime (License): Likewise.
63446         * modules/netinet_in (License): Likewise.
63447         * modules/pathmax (License): Likewise.
63448         * modules/poll (License): Likewise.
63449         * modules/regex (License): Likewise.
63450         * modules/snprintf (License): Likewise.
63451         * modules/stdbool (License): Likewise.
63452         * modules/stdint (License): Likewise.
63453         * modules/stdio (License): Likewise.
63454         * modules/strcase (License): Likewise.
63455         * modules/strcasestr (License): Likewise.
63456         * modules/strdup (License): Likewise.
63457         * modules/string (License): Likewise.
63458         * modules/strndup (License): Likewise.
63459         * modules/strnlen (License): Likewise.
63460         * modules/strpbrk (License): Likewise.
63461         * modules/strptime (License): Likewise.
63462         * modules/strsep (License): Likewise.
63463         * modules/sys_select (License): Likewise.
63464         * modules/sys_socket (License): Likewise.
63465         * modules/sys_stat (License): Likewise.
63466         * modules/sys_time (License): Likewise.
63467         * modules/time (License): Likewise.
63468         * modules/time_r (License): Likewise.
63469         * modules/timegm (License): Likewise.
63470         * modules/unistd (License): Likewise.
63471         * modules/vsnprintf (License): Likewise.
63472         * modules/wctype (License): Likewise.
63473
63474 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63475
63476         * modules/argz (License): LGPLv2+.
63477
63478 2007-07-15  Karl Berry  <karl@gnu.org>
63479
63480         * doc/gnulib.texi: revise node structure per new fdl.texi.
63481
63482 2007-07-14  Bruno Haible  <bruno@clisp.org>
63483
63484         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63485         the output file.
63486         * lib/uniname/uninames.h: Regenerated.
63487
63488 2007-07-14  Karl Berry  <karl@gnu.org>
63489
63490         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63491         omitting sectioning and index commands.
63492
63493 2007-07-13  Bruno Haible  <bruno@clisp.org>
63494
63495         New gnulib-tool option --more-symlinks.
63496         * gnulib-tool (func_usage): Document --more-symlinks.
63497         (do_copyrights): New variable.
63498         Recognize option --more-symlinks.
63499         (func_import): Don't add a copyright notice transform to
63500         sed_transform_lib_file if do_copyrights is empty.
63501
63502 2007-07-13  Bruno Haible  <bruno@clisp.org>
63503
63504         * lib/vasnprintf.c (decimal_point_char): Define also if
63505         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63506         && !NEED_PRINTF_DIRECTIVE_A.
63507         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63508         Gary V. Vaughan <gary@gnu.org>.
63509
63510 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63511
63512         * lib/inttypes_.h: Undo previous change, since it was fixed
63513         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63514
63515 2007-07-13  Bruno Haible  <bruno@clisp.org>
63516
63517         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63518         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63519
63520 2007-07-13  Jim Meyering  <jim@meyering.net>
63521
63522         df: Don't fail for Tru64's "file-on-file mount".
63523         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63524         so we fall through and use statfs instead.  Details here:
63525         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63526         Reported by Albert Chin.
63527
63528 2007-07-13  Bruno Haible  <bruno@clisp.org>
63529
63530         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63531         * modules/configmake (License): Likewise.
63532         * modules/gettext (License): Likewise.
63533         * modules/gettext-h (License): Likewise.
63534         * modules/include_next (License): Likewise.
63535         * modules/link-warning (License): Likewise.
63536         * modules/localcharset (License): Likewise.
63537         * modules/localename (License): Likewise.
63538         * modules/lock (License): Likewise.
63539         * modules/relocatable-lib-lgpl (License): Likewise.
63540         * modules/size_max (License): Likewise.
63541         * modules/vasnprintf (License): Likewise.
63542         * modules/wchar (License): Likewise.
63543         * modules/xsize (License): Likewise.
63544
63545 2007-07-13  Bruno Haible  <bruno@clisp.org>
63546
63547         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63548         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63549
63550 2007-07-12  Bruno Haible  <bruno@clisp.org>
63551
63552         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63553         in the modules files.
63554
63555 2007-07-11  Karl Berry  <karl@gnu.org>
63556
63557         * MODULES.html.sh (func_module): use
63558          sed -e '\|^'"${includefile}"'$|d'
63559          instead of /.../d, to avoid errors on $includefile's containing /.
63560
63561 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63562
63563         * gnulib-tool (func_import): Avoid duplication of --avoid
63564         statements
63565         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63566         names to `_' in variable names.
63567
63568 2007-07-10  Eric Blake  <ebb9@byu.net>
63569
63570         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63571         * NEWS: Document this change.
63572
63573 2007-07-08  Bruno Haible  <bruno@clisp.org>
63574
63575         Update to Unicode 5.0.
63576         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63577         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63578         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63579         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63580         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63581         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63582         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63583         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63584         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63585         U+10A3F, U+1D242..U+1D244.
63586         (nonspacing_table_ind): Update.
63587         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63588         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63589
63590 2007-07-08  Bruno Haible  <bruno@clisp.org>
63591
63592         Update to Unicode 5.0.
63593         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63594         code transform. Extend the name index field of unicode_name_to_code and
63595         unicode_code_to_name from 16 to 24 bits.
63596         * lib/uniname/uniname.c (unicode_character_name,
63597         unicode_name_character): Add the range 0x12xxx to the code transform.
63598         * lib/uniname/uninames.h: Regenerated.
63599         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63600
63601 2007-07-07  Bruno Haible  <bruno@clisp.org>
63602
63603         * modules/wcwidth-tests: New file.
63604         * tests/test-wcwidth.c: New file.
63605
63606         Work around MacOS X wcwidth() bug.
63607         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63608         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63609         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63610         original wcwidth in non-UTF-8 locales.
63611         * modules/wcwidth (Depends-on): Add localcharset, streq,
63612         uniwidth/width.
63613         * doc/functions/wcwidth.texi: Update.
63614
63615 2007-07-07  Bruno Haible  <bruno@clisp.org>
63616
63617         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63618         (wcwidth): New declaration.
63619         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63620         macros.
63621         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63622         here. Prepare for creating <wchar.h> unconditionally.
63623         * modules/wchar (Depends-on): Add link-warning.
63624         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63625         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63626         * lib/wcwidth.h: Remove file.
63627         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63628         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63629         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63630         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63631         (Include): Replace wcwidth.h with <wchar.h>.
63632         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63633         * lib/mbchar.h: Don't include wcwidth.h.
63634         * lib/mbswidth.c: Likewise.
63635         * NEWS: Mention the change.
63636
63637 2007-07-07  Bruno Haible  <bruno@clisp.org>
63638
63639         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63640         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63641         definition with an external declaration.
63642         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63643         defined as a function. Remove AC_C_INLINE requirement.
63644         * modules/wcwidth (Files): Add lib/wcwidth.c.
63645         (Makefile.am): Remove redundant statement.
63646
63647 2007-07-07  Bruno Haible  <bruno@clisp.org>
63648
63649         * MODULES.html.sh (Unicode string functions): Add the new modules.
63650
63651         * tests/uniwidth/test-u32-strwidth.c: New file.
63652         * modules/uniwidth/u32-strwidth-tests: New file.
63653
63654         * lib/uniwidth/u32-strwidth.c: New file.
63655         * modules/uniwidth/u32-strwidth: New file.
63656
63657         * tests/uniwidth/test-u16-strwidth.c: New file.
63658         * modules/uniwidth/u16-strwidth-tests: New file.
63659
63660         * lib/uniwidth/u16-strwidth.c: New file.
63661         * modules/uniwidth/u16-strwidth: New file.
63662
63663         * tests/uniwidth/test-u8-strwidth.c: New file.
63664         * modules/uniwidth/u8-strwidth-tests: New file.
63665
63666         * lib/uniwidth/u8-strwidth.c: New file.
63667         * modules/uniwidth/u8-strwidth: New file.
63668
63669         * tests/uniwidth/test-u32-width.c: New file.
63670         * modules/uniwidth/u32-width-tests: New file.
63671
63672         * lib/uniwidth/u32-width.c: New file.
63673         * modules/uniwidth/u32-width: New file.
63674
63675         * tests/uniwidth/test-u16-width.c: New file.
63676         * modules/uniwidth/u16-width-tests: New file.
63677
63678         * lib/uniwidth/u16-width.c: New file.
63679         * modules/uniwidth/u16-width: New file.
63680
63681         * tests/uniwidth/test-u8-width.c: New file.
63682         * modules/uniwidth/u8-width-tests: New file.
63683
63684         * lib/uniwidth/u8-width.c: New file.
63685         * modules/uniwidth/u8-width: New file.
63686
63687         * tests/uniwidth/test-uc_width.c: New file.
63688         * modules/uniwidth/width-tests: New file.
63689
63690         * lib/uniwidth/width.c: New file, from GNU libiconv.
63691         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63692         * modules/uniwidth/width: New file.
63693
63694         * lib/uniwidth.h: New file, from GNU libiconv.
63695         * modules/uniwidth/base: New file.
63696
63697 2007-07-07  Bruno Haible  <bruno@clisp.org>
63698
63699         * lib/uniname.h: New file, from GNU gettext.
63700         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63701         * lib/uniname/uninames.h: New file, from GNU gettext.
63702         * lib/uniname/uniname.c: New file, from GNU gettext.
63703         * tests/uniname/test-uninames.sh: New file.
63704         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63705         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63706         * modules/uniname/base: New file.
63707         * modules/uniname/uniname: New file.
63708         * modules/uniname/uniname-tests: New file.
63709         * MODULES.html.sh (Unicode string functions): Add the new modules.
63710
63711 2007-07-06  Bruno Haible  <bruno@clisp.org>
63712
63713         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63714
63715 2007-07-06  Bruno Haible  <bruno@clisp.org>
63716
63717         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63718         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63719         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63720         include <sys/time.h>.
63721         Reported by Eric Blake.
63722
63723 2007-07-06  Eric Blake  <ebb9@byu.net>
63724
63725         Fix testing canonicalize on cygwin.
63726         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63727         Revert patch from 2007-06-19.
63728         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63729         canonicalize module is also in use.
63730         * tests/test-canonicalize.c: New file.
63731         * tests/test-canonicalize.sh: Likewise.
63732         * modules/canonicalize-tests: Likewise.
63733
63734 2007-07-06  Jim Meyering  <jim@meyering.net>
63735
63736         * lib/getugroups.c (getugroups): Detect getgrent failure.
63737         Adjust comment to reflect reality: this function may return -1.
63738
63739 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63740
63741         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63742         the new TP address.
63743         (usage): Fix typo
63744         (gnulib_mk): New variable.
63745
63746 2007-07-05  Jim Meyering  <jim@meyering.net>
63747
63748         Don't let endgrent clobber errno, no matter how improbable.
63749         * lib/getugroups.c (getugroups): Save and restore errno around
63750         endgrent call.
63751
63752         Close the group DB even when failing with 2^31 or more members.
63753         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63754
63755 2007-07-04  Jim Meyering  <jim@meyering.net>
63756
63757         * lib/getugroups.h: New file.
63758         * lib/getugroups.c: Include "getugroups.h".
63759         Remove uses of "register" keyword.
63760         Move local variable, "cp", down into scope where used.
63761         Give "username" parameter the "const" attribute.
63762         * modules/getugroups (Files): Add lib/getugroups.h
63763
63764 2007-07-04  Karl Berry  <karl@gnu.org>
63765
63766         * MODULES.html.sh (func_all_modules): Complete rename of
63767         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63768
63769 2007-07-02  Bruno Haible  <bruno@clisp.org>
63770
63771         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63772         mode, when inttypes.h comes from gnulib.
63773         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63774
63775 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63776
63777         * NEWS: Mention lgpl module name change.
63778
63779         * modules/lgpl-2.1: Renamed from lgpl.
63780
63781         * NEWS: Mention gpl module name change.
63782
63783         * modules/gpl-3.0: New file, based on gpl-2.0.
63784
63785         * modules/gpl-2.0: Renamed from gpl.
63786
63787         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63788         doc/gpl-2.0.texi.
63789
63790 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63791
63792         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63793         #define __STDC_LIMIT_MACROS temporarily while including
63794         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63795         Problem reported by Joel E. Denny in
63796         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63797
63798 2007-07-01  Bruno Haible  <bruno@clisp.org>
63799
63800         * lib/unistdio.h: New file.
63801         * lib/unistdio/u-asnprintf.h: New file.
63802         * lib/unistdio/u-asprintf.h: New file.
63803         * lib/unistdio/u-printf-args.c: New file.
63804         * lib/unistdio/u-printf-args.h: New file.
63805         * lib/unistdio/u-printf-parse.h: New file.
63806         * lib/unistdio/u-snprintf.h: New file.
63807         * lib/unistdio/u-sprintf.h: New file.
63808         * lib/unistdio/u-vasprintf.h: New file.
63809         * lib/unistdio/u-vsnprintf.h: New file.
63810         * lib/unistdio/u-vsprintf.h: New file.
63811         * lib/unistdio/ulc-asnprintf.c: New file.
63812         * lib/unistdio/ulc-asprintf.c: New file.
63813         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63814         * lib/unistdio/ulc-printf-parse.c: New file.
63815         * lib/unistdio/ulc-snprintf.c: New file.
63816         * lib/unistdio/ulc-sprintf.c: New file.
63817         * lib/unistdio/ulc-vasnprintf.c: New file.
63818         * lib/unistdio/ulc-vasprintf.c: New file.
63819         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63820         * lib/unistdio/ulc-vsnprintf.c: New file.
63821         * lib/unistdio/ulc-vsprintf.c: New file.
63822         * lib/unistdio/u8-asnprintf.c: New file.
63823         * lib/unistdio/u8-asprintf.c: New file.
63824         * lib/unistdio/u8-printf-parse.c: New file.
63825         * lib/unistdio/u8-snprintf.c: New file.
63826         * lib/unistdio/u8-sprintf.c: New file.
63827         * lib/unistdio/u8-vasnprintf.c: New file.
63828         * lib/unistdio/u8-vasprintf.c: New file.
63829         * lib/unistdio/u8-vsnprintf.c: New file.
63830         * lib/unistdio/u8-vsprintf.c: New file.
63831         * lib/unistdio/u8-u8-asnprintf.c: New file.
63832         * lib/unistdio/u8-u8-asprintf.c: New file.
63833         * lib/unistdio/u8-u8-snprintf.c: New file.
63834         * lib/unistdio/u8-u8-sprintf.c: New file.
63835         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63836         * lib/unistdio/u8-u8-vasprintf.c: New file.
63837         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63838         * lib/unistdio/u8-u8-vsprintf.c: New file.
63839         * lib/unistdio/u16-asnprintf.c: New file.
63840         * lib/unistdio/u16-asprintf.c: New file.
63841         * lib/unistdio/u16-printf-parse.c: New file.
63842         * lib/unistdio/u16-snprintf.c: New file.
63843         * lib/unistdio/u16-sprintf.c: New file.
63844         * lib/unistdio/u16-vasnprintf.c: New file.
63845         * lib/unistdio/u16-vasprintf.c: New file.
63846         * lib/unistdio/u16-vsnprintf.c: New file.
63847         * lib/unistdio/u16-vsprintf.c: New file.
63848         * lib/unistdio/u16-u16-asnprintf.c: New file.
63849         * lib/unistdio/u16-u16-asprintf.c: New file.
63850         * lib/unistdio/u16-u16-snprintf.c: New file.
63851         * lib/unistdio/u16-u16-sprintf.c: New file.
63852         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63853         * lib/unistdio/u16-u16-vasprintf.c: New file.
63854         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63855         * lib/unistdio/u16-u16-vsprintf.c: New file.
63856         * lib/unistdio/u32-asnprintf.c: New file.
63857         * lib/unistdio/u32-asprintf.c: New file.
63858         * lib/unistdio/u32-printf-parse.c: New file.
63859         * lib/unistdio/u32-snprintf.c: New file.
63860         * lib/unistdio/u32-sprintf.c: New file.
63861         * lib/unistdio/u32-vasnprintf.c: New file.
63862         * lib/unistdio/u32-vasprintf.c: New file.
63863         * lib/unistdio/u32-vsnprintf.c: New file.
63864         * lib/unistdio/u32-vsprintf.c: New file.
63865         * lib/unistdio/u32-u32-asnprintf.c: New file.
63866         * lib/unistdio/u32-u32-asprintf.c: New file.
63867         * lib/unistdio/u32-u32-snprintf.c: New file.
63868         * lib/unistdio/u32-u32-sprintf.c: New file.
63869         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63870         * lib/unistdio/u32-u32-vasprintf.c: New file.
63871         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63872         * lib/unistdio/u32-u32-vsprintf.c: New file.
63873         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63874         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63875         * tests/unistdio/test-ulc-printf1.h: New file.
63876         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63877         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63878         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63879         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63880         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63881         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63882         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63883         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63884         * tests/unistdio/test-u8-asnprintf1.c: New file.
63885         * tests/unistdio/test-u8-asnprintf1.h: New file.
63886         * tests/unistdio/test-u8-printf1.h: New file.
63887         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63888         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63889         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63890         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63891         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63892         * tests/unistdio/test-u8-vasprintf1.c: New file.
63893         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63894         * tests/unistdio/test-u8-vsprintf1.c: New file.
63895         * tests/unistdio/test-u16-asnprintf1.c: New file.
63896         * tests/unistdio/test-u16-asnprintf1.h: New file.
63897         * tests/unistdio/test-u16-printf1.h: New file.
63898         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63899         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63900         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63901         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63902         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63903         * tests/unistdio/test-u16-vasprintf1.c: New file.
63904         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63905         * tests/unistdio/test-u16-vsprintf1.c: New file.
63906         * tests/unistdio/test-u32-asnprintf1.c: New file.
63907         * tests/unistdio/test-u32-asnprintf1.h: New file.
63908         * tests/unistdio/test-u32-printf1.h: New file.
63909         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63910         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63911         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63912         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63913         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63914         * tests/unistdio/test-u32-vasprintf1.c: New file.
63915         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63916         * tests/unistdio/test-u32-vsprintf1.c: New file.
63917         * modules/unistdio/base: New file.
63918         * modules/unistdio/u-printf-args: New file.
63919         * modules/unistdio/ulc-asnprintf: New file.
63920         * modules/unistdio/ulc-asprintf: New file.
63921         * modules/unistdio/ulc-fprintf: New file.
63922         * modules/unistdio/ulc-printf-parse: New file.
63923         * modules/unistdio/ulc-snprintf: New file.
63924         * modules/unistdio/ulc-sprintf: New file.
63925         * modules/unistdio/ulc-vasnprintf: New file.
63926         * modules/unistdio/ulc-vasprintf: New file.
63927         * modules/unistdio/ulc-vfprintf: New file.
63928         * modules/unistdio/ulc-vsnprintf: New file.
63929         * modules/unistdio/ulc-vsprintf: New file.
63930         * modules/unistdio/u8-asnprintf: New file.
63931         * modules/unistdio/u8-asprintf: New file.
63932         * modules/unistdio/u8-printf-parse: New file.
63933         * modules/unistdio/u8-snprintf: New file.
63934         * modules/unistdio/u8-sprintf: New file.
63935         * modules/unistdio/u8-vasnprintf: New file.
63936         * modules/unistdio/u8-vasprintf: New file.
63937         * modules/unistdio/u8-vsnprintf: New file.
63938         * modules/unistdio/u8-vsprintf: New file.
63939         * modules/unistdio/u8-u8-asnprintf: New file.
63940         * modules/unistdio/u8-u8-asprintf: New file.
63941         * modules/unistdio/u8-u8-snprintf: New file.
63942         * modules/unistdio/u8-u8-sprintf: New file.
63943         * modules/unistdio/u8-u8-vasnprintf: New file.
63944         * modules/unistdio/u8-u8-vasprintf: New file.
63945         * modules/unistdio/u8-u8-vsnprintf: New file.
63946         * modules/unistdio/u8-u8-vsprintf: New file.
63947         * modules/unistdio/u16-asnprintf: New file.
63948         * modules/unistdio/u16-asprintf: New file.
63949         * modules/unistdio/u16-printf-parse: New file.
63950         * modules/unistdio/u16-snprintf: New file.
63951         * modules/unistdio/u16-sprintf: New file.
63952         * modules/unistdio/u16-vasnprintf: New file.
63953         * modules/unistdio/u16-vasprintf: New file.
63954         * modules/unistdio/u16-vsnprintf: New file.
63955         * modules/unistdio/u16-vsprintf: New file.
63956         * modules/unistdio/u16-u16-asnprintf: New file.
63957         * modules/unistdio/u16-u16-asprintf: New file.
63958         * modules/unistdio/u16-u16-snprintf: New file.
63959         * modules/unistdio/u16-u16-sprintf: New file.
63960         * modules/unistdio/u16-u16-vasnprintf: New file.
63961         * modules/unistdio/u16-u16-vasprintf: New file.
63962         * modules/unistdio/u16-u16-vsnprintf: New file.
63963         * modules/unistdio/u16-u16-vsprintf: New file.
63964         * modules/unistdio/u32-asnprintf: New file.
63965         * modules/unistdio/u32-asprintf: New file.
63966         * modules/unistdio/u32-printf-parse: New file.
63967         * modules/unistdio/u32-snprintf: New file.
63968         * modules/unistdio/u32-sprintf: New file.
63969         * modules/unistdio/u32-vasnprintf: New file.
63970         * modules/unistdio/u32-vasprintf: New file.
63971         * modules/unistdio/u32-vsnprintf: New file.
63972         * modules/unistdio/u32-vsprintf: New file.
63973         * modules/unistdio/u32-u32-asnprintf: New file.
63974         * modules/unistdio/u32-u32-asprintf: New file.
63975         * modules/unistdio/u32-u32-snprintf: New file.
63976         * modules/unistdio/u32-u32-sprintf: New file.
63977         * modules/unistdio/u32-u32-vasnprintf: New file.
63978         * modules/unistdio/u32-u32-vasprintf: New file.
63979         * modules/unistdio/u32-u32-vsnprintf: New file.
63980         * modules/unistdio/u32-u32-vsprintf: New file.
63981         * modules/unistdio/ulc-asnprintf-tests: New file.
63982         * modules/unistdio/ulc-vasnprintf-tests: New file.
63983         * modules/unistdio/ulc-vasprintf-tests: New file.
63984         * modules/unistdio/ulc-vsnprintf-tests: New file.
63985         * modules/unistdio/ulc-vsprintf-tests: New file.
63986         * modules/unistdio/u8-asnprintf-tests: New file.
63987         * modules/unistdio/u8-vasnprintf-tests: New file.
63988         * modules/unistdio/u8-vasprintf-tests: New file.
63989         * modules/unistdio/u8-vsnprintf-tests: New file.
63990         * modules/unistdio/u8-vsprintf-tests: New file.
63991         * modules/unistdio/u16-asnprintf-tests: New file.
63992         * modules/unistdio/u16-vasnprintf-tests: New file.
63993         * modules/unistdio/u16-vasprintf-tests: New file.
63994         * modules/unistdio/u16-vsnprintf-tests: New file.
63995         * modules/unistdio/u16-vsprintf-tests: New file.
63996         * modules/unistdio/u32-asnprintf-tests: New file.
63997         * modules/unistdio/u32-vasnprintf-tests: New file.
63998         * modules/unistdio/u32-vasprintf-tests: New file.
63999         * modules/unistdio/u32-vsnprintf-tests: New file.
64000         * modules/unistdio/u32-vsprintf-tests: New file.
64001         * MODULES.html.sh (Unicode string functions): Add the new modules.
64002
64003 2007-07-01  Bruno Haible  <bruno@clisp.org>
64004
64005         * lib/sprintf.c (sprintf): Limit the available length estimation,
64006         to avoid address wraparound.
64007         * lib/vsprintf.c (vsprintf): Likewise.
64008         * modules/sprintf-posix (Dependencies): Add stdint.
64009         * modules/vsprintf-posix (Dependencies): Likewise.
64010
64011 2007-07-01  Bruno Haible  <bruno@clisp.org>
64012
64013         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64014         Windows PATH as well. Conservative double-quoting. Comments.
64015
64016 2007-07-01  Bruno Haible  <bruno@clisp.org>
64017             Eric Blake  <ebb9@byu.net>
64018             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64019
64020         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64021         empty components in $PATH, denoting '.'.
64022
64023 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64024
64025         * gnulib-tool: Fix indentation.
64026         (func_create_megatestdir): Likewise.
64027         Report by Bruno Haible.
64028
64029 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64030
64031         Sync from Automake.
64032         * build-aux/gnupload: Fix shell portability issues with for loops.
64033         Report by Karl Berry.
64034
64035 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64036
64037         * build-aux/maint.mk (POURL): Use translationproject.org.
64038
64039 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64040             Bruno Haible  <bruno@clisp.org>
64041
64042         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64043         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64044         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64045         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64046         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64047
64048 2007-06-27  Bruno Haible  <bruno@clisp.org>
64049
64050         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64051         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64052
64053 2007-06-26  Karl Berry  <karl@gnu.org>
64054
64055         * MODULES.html.sh: remove xreadlink-with-size.
64056
64057 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64058
64059         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64060         method that I hope also handles the double-include problem noted
64061         by Bruno Haible in
64062         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64063
64064 2007-06-23  Bruno Haible  <bruno@clisp.org>
64065
64066         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64067         Don't let the 'mostlyclean' target fail if the last subdirectory could
64068         not be removed.
64069         Reported by Karl Berry.
64070
64071 2007-06-23  Bruno Haible  <bruno@clisp.org>
64072
64073         * gnulib-tool (echo): Add a speedier workaround for ksh.
64074         * tests/test-echo.sh: Likewise.
64075
64076 2007-06-23  Bruno Haible  <bruno@clisp.org>
64077
64078         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64079         * tests/test-echo.sh: Likewise.
64080
64081 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64082
64083         * gnulib-tool (IFS): Initialize early, so we don't set it to
64084         empty later.
64085         (self_abspathname): Rewrite algorithm to set it, reindent.
64086         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64087         (func_create_megatestdir): Merge some sed scripts.
64088
64089 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64090
64091         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64092         exposed by Sun Studio 11 cc on Solaris 8.
64093
64094 2007-06-22  Bruno Haible  <bruno@clisp.org>
64095
64096         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64097         backslashes.
64098         * tests/test-echo.sh: New file.
64099
64100 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64101
64102         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64103         simplify `sed_replace_build_aux' scripts, they are portable but
64104         echoing them with `echo' is not.
64105         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64106
64107 2007-06-21  Karl Berry  <karl@gnu.org>
64108
64109         * config/srclist.txt: guess we can't handle the licenses via
64110         srclist at the moment.
64111
64112 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64113
64114         * MODULES.html.sh: Add include_next.
64115         * modules/include_next: New file.
64116
64117 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64118
64119         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64120         INCLUDE_NEXT.
64121         (gl_CHECK_NEXT_HEADERS): New macro.
64122         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64123         the obsolescent gl_ABSOLUTE_HEADER.
64124         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64125         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64126         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64127         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64128         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64129         * m4/math_h.m4 (gl_MATH_H): Likewise.
64130         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64131         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64132         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64133         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64134         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64135         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64136         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64137         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64138         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64139         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64140         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64141         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64142         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64143         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64144         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64145         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64146         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64147         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64148         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64149         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64150         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64151         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64152         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64153         * lib/float_.h: Likewise.
64154         * lib/inttypes_.h: Likewise.
64155         * lib/math_.h: Likewise.
64156         * lib/search_.h: Likewise.
64157         * lib/signal_.h: Likewise.
64158         * lib/stdint_.h: Likewise.
64159         * lib/stdio_.h: Likewise.
64160         * lib/stdlib_.h: Likewise.
64161         * lib/string_.h: Likewise.
64162         * lib/sys_stat_.h: Likewise.
64163         * lib/sys_time_.h: Likewise.
64164         * lib/time_.h: Likewise.
64165         * lib/unistd_.h: Likewise.
64166         * lib/wchar_.h: Likewise.
64167         * lib/wctype_.h: Likewise.
64168         * lib/dirent_.h: Likewise.
64169         * lib/iconv_.h: Likewise.
64170         * lib/locale_.h: Likewise.
64171         * lib/netinet_in_.h: Likewise.
64172         * lib/sys_select_.h: Likewise.
64173         * lib/sys_socket_.h: Likewise.
64174         * lib/sysexits_.h: Likewise.
64175         * modules/fcntl (Depends-on): Depend on include_next, not
64176         absolute_header.
64177         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64178         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64179         * modules/fchdir: Likewise.
64180         * modules/float: Likewise.
64181         * modules/iconv_open: Likewise.
64182         * modules/inttypes: Likewise.
64183         * modules/locale: Likewise.
64184         * modules/math: Likewise.
64185         * modules/netinet_in: Likewise.
64186         * modules/search: Likewise.
64187         * modules/signal: Likewise.
64188         * modules/stdint: Likewise.
64189         * modules/stdio: Likewise.
64190         * modules/stdlib: Likewise.
64191         * modules/string: Likewise.
64192         * modules/sys_select: Likewise.
64193         * modules/sys_socket: Likewise.
64194         * modules/sys_stat: Likewise.
64195         * modules/sys_time: Likewise.
64196         * modules/sysexits: Likewise.
64197         * modules/time: Likewise.
64198         * modules/unistd: Likewise.
64199         * modules/wchar: Likewise.
64200         * modules/wctype: Likewise.
64201         * modules/sys_stat: Change maintainer to "all".
64202         * modules/unistd: Likewise.
64203
64204 2007-06-20  Karl Berry  <karl@gnu.org>
64205
64206         * config/srclist.txt: track www changes in license files.
64207
64208 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64209
64210         * build-aux/bootstrap: Remove stray dot.
64211         Make sure build_aux settings are honored when linking
64212         gnulib_extra_files.
64213
64214 2007-06-19  Eric Blake  <ebb9@byu.net>
64215
64216         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64217         Allow compilation on cygwin.
64218
64219 2007-06-19  Jim Meyering  <jim@meyering.net>
64220
64221         xreadlink-with-size: Remove module.  No longer used.
64222         Ex-callers now use xreadlink or mreadlink-with-size.
64223         * modules/xreadlink-with-size: Remove module.
64224         * lib/xreadlink-with-size.c: Remove file.
64225         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64226         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64227         just before the function definition *is* accurate.
64228
64229         Eliminate one way canonicalize_filename_mode could exit.
64230         * lib/canonicalize.c (canonicalize_filename_mode):
64231         Use mreadlink_with_size, not xreadlink_with_size.
64232
64233 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64234
64235         Detect porting problems to FreeBSD/arm, which has time_t wider than
64236         long int.  Original problem reported for GNU diff by Xin Li in
64237         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64238         * modules/getdate (Depends-on): Add intprops, verify.
64239         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64240         is an integer type no wider than long int.
64241
64242 2007-06-18  Jim Meyering  <jim@meyering.net>
64243
64244         New module: mreadlink-with-size.
64245         * MODULES.html.sh: Add mreadlink-with-size.
64246         * modules/mreadlink-with-size: New module
64247         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64248         not xreadlink-with-size.
64249         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64250
64251 2007-06-16  Bruno Haible  <bruno@clisp.org>
64252
64253         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64254         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64255         Reported by Gary V. Vaughan <gary@gnu.org>.
64256
64257 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64258
64259         Revamp lchown so that it lives in unistd.h where it belongs.
64260         * lib/lchown.h: Remove.
64261         * lib/dirchownmod.c: Don't include lib/lchown.h.
64262         * lib/fchownat.c: Likewise.
64263         * lib/openat.c: Likewise.
64264         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64265         does not follow symlinks.
64266         (EOPNOTSUPP): Define if not defined.
64267         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64268         is defined to 0.
64269         (lchown): New decl.
64270         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64271         Do not check for lchown decl.
64272         Set REPLACE_LCHOWN.
64273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64274         REPLACE_LCHOWN.
64275         * modules/chown: Make it clear it follows symlinks.
64276         * modules/lchown: Make it clear it doesn't follow symlinks.
64277         (Files): Remove lib/lchown.h
64278         (Depends-on): Add unistd.
64279         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64280         (Include): Include <unistd.h>, not "lchown.h".
64281         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64282         REPLACE_LCHOWN.
64283
64284 2007-06-15  Jim Meyering  <jim@meyering.net>
64285
64286         Change license (GPL to LGPL) of fsusage and dependents.
64287         * modules/fsusage (License): Change to LGPL.
64288         * modules/full-read (License): Likewise.
64289         * modules/full-write (License): Likewise.
64290         * modules/safe-read (License): Likewise.
64291         * modules/safe-write (License): Likewise.
64292
64293 2007-06-14  Ben Pfaff  <blp@gnu.org>
64294
64295         Missing part of allocsa -> malloca transition.
64296         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64297         gl_MALLOCA.
64298
64299 2007-06-12  Bruno Haible  <bruno@clisp.org>
64300
64301         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64302         to ia64, x86_64, i386.
64303         Reported by Eric Blake.
64304
64305 2007-06-12  Bruno Haible  <bruno@clisp.org>
64306
64307         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64308         cross-compiling to x86_64.
64309
64310 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64311
64312         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64313         glitch reported by Ralf Wildenhues in
64314         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64315
64316         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64317         Vin Shelton.
64318
64319 2007-06-11  Bruno Haible  <bruno@clisp.org>
64320
64321         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64322         replacement string.
64323         Reported by Eric Blake.
64324
64325 2007-06-10  Bruno Haible  <bruno@clisp.org>
64326
64327         Prepare vasnprintf code for use with Unicode strings.
64328         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64329         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64330         TYPE_U32_STRING.
64331         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64332         a_u32_string variants.
64333         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64334         * lib/printf-args.c: Don't include config.h and the specification
64335         header if PRINTF_FETCHARGS is already defined.
64336         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64337         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64338         TYPE_U16_STRING, TYPE_U32_STRING.
64339         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64340         u16_directive, u16_directives, u32_directive, u32_directives): New
64341         types.
64342         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64343         New declarations.
64344         * lib/printf-parse.c: Don't include config.h and the specification
64345         header if PRINTF_PARSE is already defined. Eliminate the set of
64346         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64347         them now. Include c-ctype.h.
64348         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64349         directive and CHAR_T_ONLY_ASCII.
64350         * lib/vasnprintf.c: Don't include config.h and the specification header
64351         if VASNPRINTF is already defined.
64352         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64353         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64354         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64355         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64356         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64357         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64358         code accordingly.
64359         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64360         pad_ourselves also in this case, with the 'c' and 's' directives, and
64361         with a different notion of "width".
64362         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64363
64364 2007-06-10  Bruno Haible  <bruno@clisp.org>
64365
64366         * modules/unistr/u32-mbsnlen: New file.
64367         * lib/unistr/u32-mbsnlen.c: New file.
64368
64369         * modules/unistr/u16-mbsnlen: New file.
64370         * lib/unistr/u16-mbsnlen.c: New file.
64371
64372         * modules/unistr/u8-mbsnlen: New file.
64373         * lib/unistr/u8-mbsnlen.c: New file.
64374
64375         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64376         declarations.
64377
64378 2007-06-10  Bruno Haible  <bruno@clisp.org>
64379
64380         * lib/string_.h (mbsnlen): New declaration.
64381         * lib/mbsnlen.c: New file.
64382         * m4/mbsnlen.m4: New file.
64383         * modules/mbsnlen: New file.
64384         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64385         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64386         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64387
64388 2007-06-10  Bruno Haible  <bruno@clisp.org>
64389
64390         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64391
64392 2007-06-10  Bruno Haible  <bruno@clisp.org>
64393
64394         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64395         * lib/mbuiter.h: Likewise.
64396
64397 2007-06-10  Bruno Haible  <bruno@clisp.org>
64398
64399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64400         declaration.
64401
64402 2007-06-10  Karl Berry  <karl@gnu.org>
64403
64404         * config/srclist.txt: remove gettext entries, Bruno prefers
64405         to update individually.
64406
64407 2007-06-10  Bruno Haible  <bruno@clisp.org>
64408
64409         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64410         'maxlen'. Ensure only length + width bytes are allocated, not
64411         length + 1 + width.
64412
64413 2007-06-09  Bruno Haible  <bruno@clisp.org>
64414
64415         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64416         (CHAR_T): Remove macro.
64417         (VASNPRINTF): Update.
64418
64419 2007-06-09  Bruno Haible  <bruno@clisp.org>
64420
64421         * MODULES.html.sh (Unicode string functions): Add the new modules.
64422
64423         * modules/uniconv/u32-conv-to-enc: New file.
64424         * lib/uniconv/u32-conv-to-enc.c: New file.
64425         * modules/uniconv/u32-conv-to-enc-tests: New file.
64426         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64427
64428         * modules/uniconv/u16-conv-to-enc: New file.
64429         * lib/uniconv/u16-conv-to-enc.c: New file.
64430         * lib/uniconv/u-conv-to-enc.h: New file.
64431         * modules/uniconv/u16-conv-to-enc-tests: New file.
64432         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64433
64434         * modules/uniconv/u8-conv-to-enc: New file.
64435         * lib/uniconv/u8-conv-to-enc.c: New file.
64436         * modules/uniconv/u8-conv-to-enc-tests: New file.
64437         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64438
64439         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64440         u32_conv_to_encoding): New declarations.
64441
64442 2007-06-09  Bruno Haible  <bruno@clisp.org>
64443
64444         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64445
64446 2007-06-09  Bruno Haible  <bruno@clisp.org>
64447
64448         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64449         * modules/malloca: Renamed from modules/allocsa, updated.
64450         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64451         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64452         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64453         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64454         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64455         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64456         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64457         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64458         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64459         * modules/c-strcasestr (Depends-on): Update.
64460         * lib/c-strcasestr.c: Update.
64461         * modules/c-strstr (Depends-on): Update.
64462         * lib/c-strstr.c: Update.
64463         * modules/canonicalize-lgpl (Depends-on): Update.
64464         * lib/canonicalize-lgpl.c: Update.
64465         * modules/clean-temp (Depends-on): Update.
64466         * lib/clean-temp.c: Update.
64467         * modules/csharpcomp (Depends-on): Update.
64468         * lib/csharpcomp.c: Update.
64469         * modules/csharpexec (Depends-on): Update.
64470         * lib/csharpexec.c: Update.
64471         * modules/javacomp (Depends-on): Update.
64472         * lib/javacomp.c: Update.
64473         * modules/javaexec (Depends-on): Update.
64474         * lib/javaexec.c: Update.
64475         * modules/mbscasestr (Depends-on): Update.
64476         * lib/mbscasestr.c: Update.
64477         * modules/mbsstr (Depends-on): Update.
64478         * lib/mbsstr.c: Update.
64479         * modules/setenv (Depends-on): Update.
64480         * lib/setenv.c: Update.
64481         * modules/strcasestr (Depends-on): Update.
64482         * lib/strcasestr.c: Update.
64483         * modules/striconveha (Depends-on): Update.
64484         * lib/striconveha.c: Update.
64485         * modules/relocatable-prog-wrapper (Files): Update.
64486         * lib/relocwrapper.c: Update.
64487         * build-aux/install-reloc: Update.
64488         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64489
64490 2007-06-08  Bruno Haible  <bruno@clisp.org>
64491
64492         Port to uClibc.
64493         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64494         * lib/fpurge.c (fpurge): Likewise.
64495         * lib/freading.c (freading): Likewise.
64496         * lib/fseeko.c (rpl_fseeko): Likewise.
64497         * lib/fseterr.c (fseterr): Likewise.
64498         * lib/fwriting.c (fwriting): Likewise.
64499         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64500
64501 2007-06-08  Bruno Haible  <bruno@clisp.org>
64502
64503         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64504         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64505         * modules/gettext (Files): Add m4/intlmacosx.m4.
64506
64507 2007-06-07  Bruno Haible  <bruno@clisp.org>
64508
64509         * modules/localename-tests: New file.
64510         * tests/test-localename.c: New file.
64511
64512         New module 'localename'.
64513         * lib/localename.h: New file.
64514         * lib/localename.c: New file, from GNU gettext.
64515         * m4/localename.m4: New file.
64516         * modules/localename: New file.
64517
64518 2007-06-07  Bruno Haible  <bruno@clisp.org>
64519
64520         Work around the lack of <wchar.h> on some builds of uClibc.
64521         * doc/headers/wchar.texi: Update.
64522         * lib/wchar_.h: Include <wchar.h> only if it exists.
64523         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64524         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64525         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64526         doesn't exist.
64527         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64528         * modules/mbfile (Depends-on): Add wchar.
64529         * modules/mbiter (Depends-on): Likewise.
64530         * modules/mbuiter (Depends-on): Likewise.
64531         Reported by Simon Josefsson.
64532
64533 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64534
64535         Work around problem reported by Steven M. Schweda in
64536         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64537         Tru64 5.1B with the Compaq compiler environment installed declares
64538         an 'isblank' function but does not define it in the C library.
64539         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64540         * lib/regex_internal.h (isblank): Likewise.
64541         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64542         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64543
64544 2007-06-05  Bruno Haible  <bruno@clisp.org>
64545
64546         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64547         ia64.
64548         * modules/printf-safe: New file.
64549         * modules/fprintf-posix (Depends-on): Add printf-safe.
64550         * modules/printf-posix (Depends-on): Likewise.
64551         * modules/snprintf-posix (Depends-on): Likewise.
64552         * modules/sprintf-posix (Depends-on): Likewise.
64553         * modules/vasnprintf-posix (Depends-on): Likewise.
64554         * modules/vasprintf-posix (Depends-on): Likewise.
64555         * modules/vfprintf-posix (Depends-on): Likewise.
64556         * modules/vprintf-posix (Depends-on): Likewise.
64557         * modules/vsnprintf-posix (Depends-on): Likewise.
64558         * modules/vsprintf-posix (Depends-on): Likewise.
64559         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64560         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64561         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64562         "no" on i386, x86_64, ia64.
64563         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64564         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64565         on i386, x86_64, ia64.
64566         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64567         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64568         on i386, x86_64, ia64.
64569         * tests/test-vasnprintf-posix.c: Include float.h.
64570         (LDBL80_WORDS): New macro.
64571         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64572         on i386, x86_64, ia64.
64573         * tests/test-vasprintf-posix.c: Include float.h.
64574         (LDBL80_WORDS): New macro.
64575         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64576         on i386, x86_64, ia64.
64577         * tests/test-snprintf-posix.c: Include float.h.
64578         * tests/test-sprintf-posix.c: Likewise.
64579         * tests/test-vsnprintf-posix.c: Likewise.
64580         * tests/test-vsprintf-posix.c: Likewise.
64581
64582 2007-06-05  Bruno Haible  <bruno@clisp.org>
64583
64584         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64585         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64586         non-IEEE numbers on i386, x86_64, ia64.
64587         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64588         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64589         * tests/test-isnanl.h: Include float.h.
64590         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64591
64592 2007-06-05  Bruno Haible  <bruno@clisp.org>
64593
64594         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64595         also the %a / %A. Handle the %a / %A code before this extra handling.
64596
64597 2007-06-05  Bruno Haible  <bruno@clisp.org>
64598
64599         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64600         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64601
64602 2007-06-05  Bruno Haible  <bruno@clisp.org>
64603
64604         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64605         typo in variable name.
64606
64607 2007-06-05  Eric Blake  <ebb9@byu.net>
64608
64609         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64610         Reported by Simon Josefsson.
64611
64612 2007-06-04  Bruno Haible  <bruno@clisp.org>
64613
64614         Avoid test failures on some PowerPC platforms.
64615         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64616         Define differently for PowerPC.
64617         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64618         Reported by Gary V. Vaughan <gary@gnu.org>.
64619
64620 2007-06-02  Bruno Haible  <bruno@clisp.org>
64621
64622         Fix test-stdint failure on FreeBSD/ia64.
64623         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64624         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64625         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64626         * doc/headers/stdint.texi: Update.
64627
64628 2007-06-01  Bruno Haible  <bruno@clisp.org>
64629
64630         * tests/test-binary-io.c (main): Pass a third argument to open().
64631         Reported by Gary V. Vaughan <gary@gnu.org>.
64632
64633 2007-06-01  Bruno Haible  <bruno@clisp.org>
64634
64635         * doc/functions/frexpl.texi: Update for mingw.
64636
64637 2007-06-01  Bruno Haible  <bruno@clisp.org>
64638
64639         * tests/test-lseek.c (main): Disable test of errno for invalid third
64640         argument.
64641         * doc/functions/lseek.texi: Update.
64642         Reported by Gary V. Vaughan <gary@gnu.org>.
64643
64644 2007-05-28  Bruno Haible  <bruno@clisp.org>
64645
64646         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64647
64648 2007-05-31  Eric Blake  <ebb9@byu.net>
64649
64650         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64651         cross compiling.
64652
64653 2007-05-30  Eric Blake  <ebb9@byu.net>
64654         and Bruno Haible  <bruno@clisp.org>
64655
64656         Work around mingw test failures exposed by m4-1.4.9b.
64657         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64658         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64659         moment.
64660
64661 2007-05-30  Bruno Haible  <bruno@clisp.org>
64662
64663         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64664         assuming that they are closed. Needed on HP-UX 11.
64665
64666 2007-05-29  Bruno Haible  <bruno@clisp.org>
64667
64668         Fix a problem with #include_next.
64669         * lib/dirent_.h: Split the double-inclusion guard.
64670         * lib/fcntl_.h: Likewise.
64671         * lib/float_.h: Likewise.
64672         * lib/iconv_.h: Likewise.
64673         * lib/inttypes_.h: Likewise.
64674         * lib/locale_.h: Likewise.
64675         * lib/math_.h: Likewise.
64676         * lib/netinet_in_.h: Likewise.
64677         * lib/search_.h: Likewise.
64678         * lib/signal_.h: Likewise.
64679         * lib/stdint_.h: Likewise.
64680         * lib/stdio_.h: Likewise.
64681         * lib/stdlib_.h: Likewise.
64682         * lib/string_.h: Likewise.
64683         * lib/sys_select_.h: Likewise.
64684         * lib/sys_socket_.h: Likewise.
64685         * lib/sys_stat_.h: Likewise.
64686         * lib/sys_time_.h: Likewise.
64687         * lib/sysexits_.h: Likewise.
64688         * lib/time_.h: Likewise.
64689         * lib/unistd_.h: Likewise.
64690         * lib/wchar_.h: Likewise.
64691         * lib/wctype_.h: Likewise.
64692
64693 2007-05-29  Bruno Haible  <bruno@clisp.org>
64694
64695         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64696         for the moment.
64697
64698 2007-05-29  Bruno Haible  <bruno@clisp.org>
64699
64700         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64701         invocation.
64702         Reported by Eric Blake.
64703
64704 2007-05-29  Bruno Haible  <bruno@clisp.org>
64705
64706         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64707         compiling case.
64708
64709 2007-05-29  Eric Blake  <ebb9@byu.net>
64710             Bruno Haible  <bruno@clisp.org>
64711
64712         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64713         cross compiles.
64714
64715 2007-05-28  Eric Blake  <ebb9@byu.net>
64716
64717         * modules/closein-tests (test_closein_LDADD): Support test on
64718         cygwin with libtool.
64719
64720 2007-05-28  Bruno Haible  <bruno@clisp.org>
64721
64722         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64723         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64724         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64725         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64726         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64727         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64728         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64729         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64730         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64731
64732 2007-05-28  Eric Blake  <ebb9@byu.net>
64733
64734         Unconditionally include <config.h> in unit tests.
64735         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64736         * tests/test-allocsa.c, tests/test-arcfour.c,
64737         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64738         tests/test-array_list.c, tests/test-array_oset.c,
64739         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64740         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64741         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64742         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64743         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64744         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64745         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64746         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64747         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64748         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64749         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64750         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64751         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64752         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64753         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64754         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64755         test-md5.c, test-memmem.c, test-printf-posix.c,
64756         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64757         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64758         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64759         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64760         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64761         test-vasnprintf-posix2.c, test-vasnprintf.c,
64762         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64763         test-vfprintf-posix.c, test-vprintf-posix.c,
64764         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64765         test-xvasprintf.c: Likewise.
64766
64767 2007-05-28  Bruno Haible  <bruno@clisp.org>
64768
64769         * gnulib-tool (func_import): Remember the --with-tests command-line
64770         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64771         Reported by Eric Blake.
64772
64773 2007-05-28  Bruno Haible  <bruno@clisp.org>
64774
64775         * modules/ftell-tests: New file.
64776         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64777         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64778
64779         * lib/ftell.c: New file.
64780         * modules/ftell: New file.
64781         * m4/ftell.m4: New file.
64782         * doc/functions/ftell.texi: Update.
64783         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64784         REPLACE_FTELL.
64785         * lib/stdio_.h (rpl_ftell): New declaration.
64786         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64787         REPLACE_FTELL.
64788
64789 2007-05-28  Eric Blake  <ebb9@byu.net>
64790
64791         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64792
64793 2007-05-28  Bruno Haible  <bruno@clisp.org>
64794
64795         * modules/fseek-tests: New file.
64796         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64797         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64798
64799         * lib/fseek.c: New file.
64800         * modules/fseek: New file.
64801         * m4/fseek.m4: New file.
64802         * doc/functions/fseek.texi: Update.
64803         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64804         REPLACE_FSEEK.
64805         * lib/stdio_.h (rpl_fseek): New declaration.
64806         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64807         REPLACE_FSEEK.
64808
64809 2007-05-28  Bruno Haible  <bruno@clisp.org>
64810
64811         * lib/stdio_.h (fflush): More comments.
64812
64813 2007-05-28  Bruno Haible  <bruno@clisp.org>
64814
64815         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64816         runtime test.
64817
64818 2007-05-28  Eric Blake  <ebb9@byu.net>
64819
64820         Improve lseek module.
64821         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64822         * lib/unistd_.h (lseek): Scale back link warning message.
64823         * tests/test-lseek.c: Beef up test.
64824         * tests/test-lseek.sh: Exercise more facets of lseek.
64825         Reported by Bruno Haible.
64826
64827 2007-05-28  Bruno Haible  <bruno@clisp.org>
64828
64829         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64830         to define.
64831
64832 2007-05-27  Bruno Haible  <bruno@clisp.org>
64833
64834         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64835
64836 2007-05-27  Bruno Haible  <bruno@clisp.org>
64837
64838         * modules/openmp: New file.
64839         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64840         Noah Misch.
64841
64842 2007-05-26  Bruno Haible  <bruno@clisp.org>
64843
64844         * modules/chdir-long (Depends-on): Add fchdir.
64845         * modules/chdir-safer (Depends-on): Likewise.
64846         * modules/fts (Depends-on): Likewise.
64847         * modules/fts-lgpl (Depends-on): Likewise.
64848         * modules/openat (Depends-on): Likewise.
64849         * modules/savewd (Depends-on): Likewise.
64850
64851 2007-05-24  Eric Blake  <ebb9@byu.net>
64852
64853         Fix lseek on mingw.
64854         * modules/lseek: New module.
64855         * m4/lseek.m4: New file.
64856         * lib/lseek.c: New file.
64857         * modules/lseek-tests: New file.
64858         * tests/test-lseek.c: New file.
64859         * tests/test-lseek.sh: New file.
64860         * MODULES.html.sh: Document lseek module.
64861         * modules/fflush (Depends-on): Add lseek, fseeko.
64862         * modules/fseeko (Depends-on): Likewise.
64863         * modules/ftello (Depends-on): Likewise.
64864         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64865         broken.
64866         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64867         broken.
64868         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64869         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64870         * lib/ftello.c (rpl_ftello): Likewise.
64871         * tests/test-fseeko.c (main): Test this.
64872         * tests/test-fseeko.sh: Likewise.
64873         * tests/test-ftello.c (main): Likewise.
64874         * tests/test-ftello.sh: Likewise.
64875         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64876         implies replacing fseek.
64877         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64878         HAVE_FTELLO.
64879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64880         * modules/unistd (Makefile.am): Likewise.
64881         * lib/unistd_.h (lseek): Declare a replacement.
64882         * doc/functions/lseek.texi (lseek): Document this fix.
64883         * doc/functions/fseek.texi (fseek): Likewise.
64884         * doc/functions/ftell.texi (ftell): Likewise.
64885
64886 2007-05-24  Bruno Haible  <bruno@clisp.org>
64887
64888         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64889         in the printed representation of a NaN.
64890         * tests/test-vasprintf-posix.c (test_function): Likewise.
64891         * tests/test-snprintf-posix.h (test_function): Likewise.
64892         * tests/test-sprintf-posix.h (test_function): Likewise.
64893         Reported by Eric Blake.
64894
64895 2007-05-23  Eric Blake  <ebb9@byu.net>
64896
64897         Fix fseeko/ftello on cygwin 1.5.24.
64898         * doc/functions/fseeko.texi (fseeko): Document the fix.
64899         * doc/functions/ftello.texi (ftello): Document the fix.
64900         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64901         * doc/functions/stdout.text (stdout): New file.
64902         * doc/functions/stderr.text (stderr): New file.
64903         * doc/gnulib.texi (Function Substitutes): Use new files.
64904         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64905         prior to 1.7.0.
64906         * tests/test-ftello.c (main): Likewise for ftello.
64907         * tests/test-fseeko.sh: New file.
64908         * tests/test-ftello.sh: New file.
64909         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64910         with seekable stdin.
64911         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64912         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64913         (gl_REPLACE_FSEEKO): New macro.
64914         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64915         * modules/fseeko (Files): Distribute fseeko.c.
64916         * modules/ftello (Files): Distribute ftello.c.
64917         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64918         mode.
64919         * lib/ftello.c (rpl_ftello): New file.
64920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64921         fseeko, ftello.
64922         (gl_STDIN_LARGE_OFFSET): New macro.
64923         * modules/stdio (Makefile.am): Perform the replacement.
64924         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64925
64926 2007-05-23  Bruno Haible  <bruno@clisp.org>
64927
64928         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64929         GNULIB_POSIXCHECK is defined.
64930
64931 2007-05-21  Bruno Haible  <bruno@clisp.org>
64932
64933         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64934         Check also the output for NaN arguments. When cross-compiling, guess
64935         no on IRIX.
64936         * lib/vasnprintf.c: Update comments.
64937         * tests/test-vasnprintf-posix.c (strisnan): New function.
64938         (test_function): Use it.
64939         * tests/test-vasprintf-posix.c (strisnan): New function.
64940         (test_function): Use it.
64941         * tests/test-snprintf-posix.h (strisnan): New function.
64942         (test_function): Use it.
64943         * tests/test-sprintf-posix.h (strisnan): New function.
64944         (test_function): Use it.
64945         Reported by Eric Blake.
64946
64947 2007-05-20  Bruno Haible  <bruno@clisp.org>
64948
64949         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64950         numbers that fails on BeOS.
64951         * doc/functions/frexpl.texi: Update.
64952
64953 2007-05-20  Jim Meyering  <jim@meyering.net>
64954
64955         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64956         forced upon us by glibc-2.6.
64957
64958 2007-05-20  Bruno Haible  <bruno@clisp.org>
64959
64960         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64961         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64962         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64963         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64964         NEED_PRINTF_INFINITE.
64965         (is_infinitel): New function.
64966         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64967         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64968         gl_PREREQ_VASNPRINTF_INFINITE.
64969         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64970         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64971         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64972         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64973         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64974         gl_PREREQ_VASNPRINTF_INFINITE.
64975         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64976         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64977         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64978         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64979         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64980         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64981         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64982         * doc/functions/fprintf.texi: Update.
64983         * doc/functions/printf.texi: Update.
64984         * doc/functions/snprintf.texi: Update.
64985         * doc/functions/sprintf.texi: Update.
64986         * doc/functions/vfprintf.texi: Update.
64987         * doc/functions/vprintf.texi: Update.
64988         * doc/functions/vsnprintf.texi: Update.
64989         * doc/functions/vsprintf.texi: Update.
64990
64991 2007-05-20  Bruno Haible  <bruno@clisp.org>
64992
64993         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64994         was not found in libc.
64995         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64996
64997 2007-05-20  Bruno Haible  <bruno@clisp.org>
64998
64999         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65000         printed as "-nan" instead of "nan".
65001         * tests/test-vasprintf-posix.c (test_function): Likewise.
65002         * tests/test-snprintf-posix.h (test_function): Likewise.
65003         * tests/test-sprintf-posix.h (test_function): Likewise.
65004         Needed for HP-UX 11.
65005
65006 2007-05-20  Jim Meyering  <jim@meyering.net>
65007
65008         Fix buggy test for the fchownat-deref bug.
65009         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65010         symlink required for the run-test.  Without it, this test would
65011         always declare that fchownat doesn't work, and client code would
65012         unnecessarily use the replacement function with fixed libc.
65013         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65014         Reported by Greg Schafer.
65015
65016 2007-05-19  Bruno Haible  <bruno@clisp.org>
65017
65018         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65019         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65020         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65021         Needed for IRIX 6.5 and Solaris 2.5.1.
65022
65023 2007-05-19  Bruno Haible  <bruno@clisp.org>
65024
65025         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65026         (test_function): Skip tests involving -0.0 on platforms where
65027         -0.0 = 0.0.
65028         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65029         (test_function): Skip tests involving -0.0 on platforms where
65030         -0.0 = 0.0.
65031         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65032         (test_function): Skip tests involving -0.0 on platforms where
65033         -0.0 = 0.0.
65034         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65035         (test_function): Skip tests involving -0.0 on platforms where
65036         -0.0 = 0.0.
65037         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65038         tests.
65039         * tests/test-printf-posix.h (test_function): Likewise.
65040         * tests/test-printf-posix.output: Remove all -0.0 related results.
65041         Needed for IRIX 6.5.
65042
65043 2007-05-19  Bruno Haible  <bruno@clisp.org>
65044
65045         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65046         printed as "nan0x7fffffff" instead of "nan".
65047         * tests/test-vasprintf-posix.c (test_function): Likewise.
65048         * tests/test-snprintf-posix.h (test_function): Likewise.
65049         * tests/test-sprintf-posix.h (test_function): Likewise.
65050         * tests/test-fprintf-posix.h (NaN): Remove macro.
65051         (test_function): Remove all NaN related tests.
65052         * tests/test-printf-posix.h (NaN): Remove macro.
65053         (test_function): Remove all NaN related tests.
65054         * tests/test-printf-posix.output: Remove all NaN related results.
65055         Needed for IRIX 6.5.
65056
65057 2007-05-19  Bruno Haible  <bruno@clisp.org>
65058
65059         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65060         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65061
65062 2007-05-19  Bruno Haible  <bruno@clisp.org>
65063
65064         * lib/float_.h: New file.
65065         * m4/float_h.m4: New file.
65066         * modules/float: New file.
65067         * modules/isnanl (Dependencies): Add float.
65068         * modules/isnanl-nolibm (Dependencies): Likewise.
65069         * modules/mathl (Dependencies): Likewise.
65070         * modules/printf-frexpl (Dependencies): Likewise.
65071         * modules/signbit (Dependencies): Likewise.
65072         * modules/vasnprintf (Dependencies): Likewise.
65073         * doc/headers/float.texi: Update.
65074
65075 2007-05-19  Jim Meyering  <jim@meyering.net>
65076
65077         * lib/utimens.c (gl_futimens): Rename from futimens,
65078         now that glibc-2.6 declares futimens.
65079         * lib/utimens.h: Likewise.
65080
65081 2007-05-19  Bruno Haible  <bruno@clisp.org>
65082
65083         Avoid test failures on mingw.
65084         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65085         * tests/test-printf-posix.sh: Likewise.
65086         * tests/test-vfprintf-posix.sh: Likewise.
65087         * tests/test-vprintf-posix.sh: Likewise.
65088
65089 2007-05-19  Bruno Haible  <bruno@clisp.org>
65090
65091         Fix *printf result for NaN, Inf, -0.0 on mingw.
65092         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65093         * lib/vasnprintf.c: Include math.h and isnan.h.
65094         (is_infinite_or_zero): New function.
65095         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65096         values in the %f, %F, %e, %E, %g, %G directives.
65097         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65098         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65099         gl_PRINTF_INFINITE and test its result. Invoke
65100         gl_PREREQ_VASNPRINTF_INFINITE.
65101         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65102         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65103         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65104         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65105         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65106         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65107         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65108         * doc/functions/fprintf.texi: Update.
65109         * doc/functions/printf.texi: Update.
65110         * doc/functions/snprintf.texi: Update.
65111         * doc/functions/sprintf.texi: Update.
65112         * doc/functions/vfprintf.texi: Update.
65113         * doc/functions/vprintf.texi: Update.
65114         * doc/functions/vsnprintf.texi: Update.
65115         * doc/functions/vsprintf.texi: Update.
65116
65117 2007-05-19  Bruno Haible  <bruno@clisp.org>
65118
65119         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65120         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65121         Instead of multiplying with 10^k, set extra_zeroes to k.
65122         (scale10_round_long_double): Remove function.
65123
65124 2007-05-18  Bruno Haible  <bruno@clisp.org>
65125
65126         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65127         introduced on 2007-05-06.
65128
65129 2007-05-18  Bruno Haible  <bruno@clisp.org>
65130
65131         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65132         %g directives.
65133         * tests/test-vasprintf-posix.c (test_function): Likewise.
65134         * tests/test-snprintf-posix.h (test_function): Likewise.
65135         * tests/test-sprintf-posix.h (test_function): Likewise.
65136
65137 2007-05-18  Bruno Haible  <bruno@clisp.org>
65138
65139         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65140         (strmatch): New function.
65141         (test_function): Test the %f directive on numbers of various exponents.
65142         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65143         (strmatch): New function.
65144         (test_function): Test the %f directive on numbers of various exponents.
65145         * tests/test-snprintf-posix.h (strmatch): New function.
65146         (test_function): Test the %f directive on numbers of various exponents.
65147         * tests/test-sprintf-posix.h (strmatch): New function.
65148         (test_function): Test the %f directive on numbers of various exponents.
65149         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65150         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65151         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65152         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65153
65154 2007-05-18  Bruno Haible  <bruno@clisp.org>
65155
65156         Add support for 'long double' number output.
65157         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65158         * lib/vasnprintf.c: Include math.h and float+.h.
65159         (mp_limb_t): New type.
65160         (GMP_LIMB_BITS): New macro.
65161         (mp_twolimb_t): New type.
65162         (GMP_TWOLIMB_BITS): New macro.
65163         (mpn_t): New type.
65164         (multiply, divide, convert_to_decimal, decode_long_double,
65165         scale10_round_long_double, scale10_round_decimal_long_double,
65166         floorlog10l): New functions.
65167         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65168         for the %f, %F, %e, %E, %g, %G directives.
65169         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65170         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65171         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65172         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65173         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65174         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65175         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65176         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65177         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65178         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65179         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65180         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65181         * modules/snprintf-posix (Depends-on): Likewise.
65182         * modules/sprintf-posix (Depends-on): Likewise.
65183         * modules/vasnprintf-posix (Depends-on): Likewise.
65184         * modules/vasprintf-posix (Depends-on): Likewise.
65185         * modules/vfprintf-posix (Depends-on): Likewise.
65186         * modules/vsnprintf-posix (Depends-on): Likewise.
65187         * modules/vsprintf-posix (Depends-on): Likewise.
65188         * modules/vasnprintf (Files): Add lib/float+.h.
65189         * doc/functions/fprintf.texi: Update.
65190         * doc/functions/printf.texi: Update.
65191         * doc/functions/snprintf.texi: Update.
65192         * doc/functions/sprintf.texi: Update.
65193         * doc/functions/vfprintf.texi: Update.
65194         * doc/functions/vprintf.texi: Update.
65195         * doc/functions/vsnprintf.texi: Update.
65196         * doc/functions/vsprintf.texi: Update.
65197
65198 2007-05-18  Bruno Haible  <bruno@clisp.org>
65199
65200         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65201
65202 2007-05-18  Bruno Haible  <bruno@clisp.org>
65203
65204         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65205         for printing 64-bit integers. Needed for mingw.
65206
65207 2007-05-18  Bruno Haible  <bruno@clisp.org>
65208
65209         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65210         gl_FUNC_FREXPL_WORKS.
65211         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65212
65213 2007-05-18  Bruno Haible  <bruno@clisp.org>
65214
65215         * modules/frexpl-nolibm-tests: New file.
65216
65217         * modules/frexpl-nolibm: New file.
65218         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65219
65220 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65221
65222         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65223         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65224         GCC 4.2, which otherwise issues a lot of warnings.
65225         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65226         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65227         Likewise.
65228         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65229         * modules/iconv_open (iconv.h): Likewise.
65230         * modules/locale (locale.h): Likewise.
65231         * modules/netinet_in (netinet/in.h): Likewise.
65232         * modules/sys_select (sys_select.h): Likewise.
65233         * modules/sys_socket (sys/socket.h): Likewise.
65234         * modules/sys_stat (sys/stat.h): Likewise.
65235         * modules/sysexits (sysexits.h): Likewise.
65236         * modules/unistd (unistd.h): Likewise.
65237
65238 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65239
65240         * modules/closein-tests (Makefile.am): Distribute
65241         `test-closein.sh'.
65242
65243 2007-05-17  Bruno Haible  <bruno@clisp.org>
65244
65245         * tests/test-printf-posix.output: Renamed from
65246         tests/test-fprintf-posix.out.
65247         * modules/fprintf-posix-tests: Update.
65248         * modules/printf-posix-tests: Update.
65249         * modules/vfprintf-posix-tests: Update.
65250         * modules/vprintf-posix-tests: Update.
65251         * tests/test-fprintf-posix.sh: Update.
65252         * tests/test-printf-posix.sh: Update.
65253         * tests/test-vfprintf-posix.sh: Update.
65254         * tests/test-vprintf-posix.sh: Update.
65255         Reported by Ralf Wildenhues.
65256
65257 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65258
65259         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65260         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65261         GCC 4.2, which otherwise issues a lot of warnings.
65262         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65263         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65264         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65265         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65266         it should no longer be needed.
65267         * lib/string_.h: Likewise.
65268         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65269         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65270         * modules/inttypes (inttypes.h): Likewise.
65271         * modules/math (math.h): Likewise.
65272         * modules/search (search.h): Likewise.
65273         * modules/signal (signal.h): Likewise.
65274         * modules/stdint (stdint.h): Likewise.
65275         * modules/stdio (stdio.h): Likewise.
65276         * modules/stdlib (stdlib.h): Likewise.
65277         * modules/string (string.h): Likewise.
65278         * modules/sys_time (sys/time.h): Likewise.
65279         * modules/time (time.h): Likewise.
65280         * modules/wchar (wchar.h): Likewise.
65281         * modules/wctype (wtype.h): Likewise.
65282
65283 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65284
65285         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65286
65287 2007-05-13  Bruno Haible  <bruno@clisp.org>
65288
65289         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65290         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65291         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65292         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65293         (gl_PREREQ_STRTOK_R): Don't require it here.
65294
65295 2007-05-13  Bruno Haible  <bruno@clisp.org>
65296
65297         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65298         when used in C++ mode.
65299
65300 2007-05-12  Bruno Haible  <bruno@clisp.org>
65301
65302         * lib/linebuffer.h: Tweak doc.
65303         * lib/linebuffer.c: Likewise.
65304
65305 2007-05-12  James Youngman  <jay@gnu.org>
65306
65307         * lib/linebuffer.c (readlinebuffer_delim): New function,
65308         like readlinebuffer, but use a caller-specified delimiter.
65309         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65310         as the delimiter.
65311         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65312
65313 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65314
65315         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65316         * modules/openat (Files): Remove openat-die.c.
65317         (Depends-on): Add openat-die.
65318         * modules/openat-die: New module.
65319
65320 2007-05-06  Bruno Haible  <bruno@clisp.org>
65321
65322         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65323         Update with info about Cygwin.
65324         * doc/functions/fprintf.texi: Update.
65325         * doc/functions/printf.texi: Update.
65326         * doc/functions/snprintf.texi: Update.
65327         * doc/functions/sprintf.texi: Update.
65328         * doc/functions/vfprintf.texi: Update.
65329         * doc/functions/vprintf.texi: Update.
65330         * doc/functions/vsnprintf.texi: Update.
65331         * doc/functions/vsprintf.texi: Update.
65332         Reported by Eric Blake.
65333
65334 2007-05-06  Bruno Haible  <bruno@clisp.org>
65335
65336         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65337         padding ourselves for the floating-point directives.
65338         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65339         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65340         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65341         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65342         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65343         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65344         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65345         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65346         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65347         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65348         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65349         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65350         * tests/test-snprintf-posix.h (test_function): Also check the width
65351         and some flags in the %f directive.
65352         * tests/test-sprintf-posix.h (test_function): Likewise.
65353         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65354         * tests/test-vasprintf-posix.c (test_function): Likewise.
65355         * doc/functions/fprintf.texi: Update.
65356         * doc/functions/printf.texi: Update.
65357         * doc/functions/snprintf.texi: Update.
65358         * doc/functions/sprintf.texi: Update.
65359         * doc/functions/vfprintf.texi: Update.
65360         * doc/functions/vprintf.texi: Update.
65361         * doc/functions/vsnprintf.texi: Update.
65362         * doc/functions/vsprintf.texi: Update.
65363
65364 2007-05-06  Bruno Haible  <bruno@clisp.org>
65365
65366         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65367         pass the ' flag character to sprintf or snprintf.
65368         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65369         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65371         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65372         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65373         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65374         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65375         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65376         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65377         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65378         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65379         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65380         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65381         flag.
65382         * tests/test-sprintf-posix.h (test_function): Likewise.
65383         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65384         * tests/test-vasprintf-posix.c (test_function): Likewise.
65385         * doc/functions/fprintf.texi: Update.
65386         * doc/functions/printf.texi: Update.
65387         * doc/functions/snprintf.texi: Update.
65388         * doc/functions/sprintf.texi: Update.
65389         * doc/functions/vfprintf.texi: Update.
65390         * doc/functions/vprintf.texi: Update.
65391         * doc/functions/vsnprintf.texi: Update.
65392         * doc/functions/vsprintf.texi: Update.
65393
65394 2007-05-01  Bruno Haible  <bruno@clisp.org>
65395
65396         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65397
65398 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65399
65400         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65401         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65402
65403 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65404
65405         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65406         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65407         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65408
65409 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65410
65411         * lib/argp-help.c (struct hol_entry): New member `ord'.
65412         (HOL_ENTRY_PTRCMP): Use ord for comparison
65413         (hol_sort): Initialize ord.
65414
65415 2007-05-01  Bruno Haible  <bruno@clisp.org>
65416
65417         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65418         Reported by Eric Blake.
65419         * doc/gnulib.texi (Function Substitutes): Update.
65420
65421 2007-05-01  Bruno Haible  <bruno@clisp.org>
65422
65423         * doc/functions.texi: Remove file, now redundant through
65424         doc/functions/*.texi.
65425
65426 2007-05-01  Bruno Haible  <bruno@clisp.org>
65427
65428         * modules/argp (Depends-on): Add sleep.
65429
65430 2007-05-01  Bruno Haible  <bruno@clisp.org>
65431
65432         * modules/sleep-tests: New file.
65433         * tests/test-sleep.c: New file.
65434
65435         * modules/sleep: New file.
65436         * lib/sleep.c: New file.
65437         * m4/sleep.m4: New file.
65438         * lib/unistd_.h (sleep): New declaration.
65439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65440         HAVE_SLEEP.
65441         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65442         * doc/functions/sleep.texi: Document the sleep module.
65443
65444 2007-05-01  Bruno Haible  <bruno@clisp.org>
65445
65446         * lib/sigprocmask.h: Remove file.
65447         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65448         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65449         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65450         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65451         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65452         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65453         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65454         HAVE_SIGSET_T as a shell variable.
65455         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65456         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65457         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65458         (Depends-on): Add signal. Remove verify.
65459         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65460         (Include): Mention <signal.h> instead of sigprocmask.h.
65461         * NEWS: Mention the change.
65462         * lib/fatal-signal.c: Don't include sigprocmask.h.
65463
65464 2007-05-01  Bruno Haible  <bruno@clisp.org>
65465
65466         * modules/signal: New file.
65467         * lib/signal_.h: New file.
65468         * m4/signal_h.m4: New file.
65469
65470 2007-05-01  Bruno Haible  <bruno@clisp.org>
65471
65472         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65473         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65474         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65475         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65476
65477 2007-05-01  Bruno Haible  <bruno@clisp.org>
65478
65479         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65480         configure time.
65481         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65482         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65483         * modules/sys_stat (Makefile.am): Substitute their values into
65484         sys/stat.h.
65485
65486 2007-05-01  Bruno Haible  <bruno@clisp.org>
65487
65488         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65489         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65490         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65491
65492 2007-05-01  Bruno Haible  <bruno@clisp.org>
65493
65494         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65495         'assert' module here.
65496
65497 2007-05-01  Bruno Haible  <bruno@clisp.org>
65498
65499         * doc/functions/*.texi: New files.
65500         * doc/functions/google-ranking.txt: New file.
65501         * doc/gnulib.texi (Function Substitutes): New chapter.
65502         (ctime, inet_ntoa): Remove sections.
65503         * doc/ctime.texi: Remove file.
65504         * doc/inet_ntoa.texi: Remove file.
65505         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65506         dependencies.
65507         (%.info): New rule, specifying a --reference-limit.
65508
65509 2007-05-01  Bruno Haible  <bruno@clisp.org>
65510
65511         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65512
65513 2007-05-01  Bruno Haible  <bruno@clisp.org>
65514
65515         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65516         the portability of 'mkdir' to mingw systems.
65517
65518 2007-05-01  Bruno Haible  <bruno@clisp.org>
65519
65520         * doc/headers/google-ranking.txt: New file.
65521
65522 2007-04-30  Eric Blake  <ebb9@byu.net>
65523
65524         Prefer fseeko to fseek.
65525         * modules/getpass (Depends-on): Add fseeko.
65526         * lib/getpass.c (getpass): Use fseeko, not fseek.
65527
65528 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65529
65530         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65531         assumes the sorting is stable, while most qsort implementations
65532         are not.  Use argument addresses to ensure they never compare as
65533         equal.
65534
65535         * tests/test-argp-2.sh (usage-indent test): Fix output
65536         (func_compare): Restore diff options
65537         * tests/test-argp.c: Restore #include "progname.h"
65538
65539 2007-04-29  Bruno Haible  <bruno@clisp.org>
65540
65541         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65542         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65543         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65544         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65545         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65546         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65547         (TESTS, check_PROGRAMS): Add test-snprintf.
65548         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65549         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65550         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65551         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65552         assertions that fail on HP-UX, OSF/1, or IRIX.
65553         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65554
65555 2007-04-29  Bruno Haible  <bruno@clisp.org>
65556
65557         * MODULES.html.sh (posix_functions): Remove 'contents'.
65558
65559 2007-04-29  Karl Berry  <karl@gnu.org>
65560
65561         * config/srclist.txt (gendocs_template_min): new entry.
65562
65563 2007-04-29  Bruno Haible  <bruno@clisp.org>
65564
65565         Work around fpurge bug on BSD systems.
65566         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65567         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65568         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65569         fpurge to rpl_fpurge if the system already has this function.
65570         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65571         the case where the system already has this function. Correct invariants
65572         on BSD systems.
65573         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65574         BSD systems.
65575
65576 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65577
65578         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65579         proposed by Sven Verdoolaege.
65580
65581         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65582         options.
65583         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65584         (usage and help tests): Update
65585
65586 2007-04-29  Bruno Haible  <bruno@clisp.org>
65587
65588         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65589         Print more information in case of failure. Disable a test on BeOS.
65590
65591 2007-04-29  Bruno Haible  <bruno@clisp.org>
65592
65593         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65594         This helps debugging on systems on which no gdb is available.
65595
65596 2007-04-29  Bruno Haible  <bruno@clisp.org>
65597
65598         * lib/freading.h: Improve comments.
65599         * lib/fwriting.h: Likewise.
65600         * tests/test-freading.c (main): Don't check freading immediately after
65601         repositioning. Needed for glibc.
65602
65603 2007-04-29  Bruno Haible  <bruno@clisp.org>
65604
65605         * lib/freading.c (freading): Trivial simplification.
65606
65607 2007-04-28  Bruno Haible  <bruno@clisp.org>
65608
65609         * tests/test-fwriting.c (main): Also test the interaction between
65610         fflush and fwriting.
65611         * modules/fwriting-tests (Depends-on): Add fflush.
65612
65613         * tests/test-freading.c (main): Also test the interaction between
65614         fflush and freading.
65615         * modules/freading-tests (Depends-on): Add fflush.
65616
65617 2007-04-28  Bruno Haible  <bruno@clisp.org>
65618
65619         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65620         fseeko and ftello.
65621         Suggested by Eric Blake.
65622
65623 2007-04-28  Jim Meyering  <jim@meyering.net>
65624
65625         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65626         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65627         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65628
65629 2007-04-27  Eric Blake  <ebb9@byu.net>
65630
65631         * doc/headers/assert.texi (assert.h): Document assert module use.
65632
65633 2007-04-27  Bruno Haible  <bruno@clisp.org>
65634
65635         * doc/headers/*.texi: New files.
65636         * doc/gnulib.texi (Header File Substitutes): New chapter.
65637         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65638         dependencies.
65639         (standards.info ,standards.html, standards.dvi): Update dependencies.
65640         (mostlyclean, clean): New targets.
65641
65642 2007-04-27  Bruno Haible  <bruno@clisp.org>
65643
65644         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65645         * modules/sysexits (Files, Makefile.am): Update.
65646
65647         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65648         * modules/sys_socket (Files, Makefile.am): Update.
65649
65650         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65651         * modules/sys_stat (Files, Makefile.am): Update.
65652
65653 2007-04-27  Eric Blake  <ebb9@byu.net>
65654
65655         * lib/freading.h: Improve comments.
65656         * lib/fwriting.h: Likewise.
65657         * lib/fflush.c: Likewise.
65658
65659         Fix closein for mingw.
65660         * modules/closein-tests: Add tests for closein.
65661         * tests/test-closein.c: New file.
65662         * tests/test-closein.sh: Likewise.
65663         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65664         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65665
65666 2007-04-27  Bruno Haible  <bruno@clisp.org>
65667
65668         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65669         version is < 6.
65670         * lib/math_.h [__DECC]: Likewise.
65671         * lib/stdio_.h [__DECC]: Likewise.
65672         * lib/stdlib_.h [__DECC]: Likewise.
65673         * lib/string_.h [__DECC]: Likewise.
65674         * lib/time_.h [__DECC]: Likewise.
65675         * lib/wchar_.h [__DECC]: Likewise.
65676         * lib/wctype_.h [__DECC]: Likewise.
65677
65678 2007-04-27  Bruno Haible  <bruno@clisp.org>
65679
65680         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65681
65682 2007-04-27  Bruno Haible  <bruno@clisp.org>
65683
65684         * lib/fflush.c: Add comments.
65685         * modules/fpurge-tests (Depends-on): Add fflush.
65686         * modules/freadable-tests (Depends-on): Likewise.
65687         * modules/fwritable-tests (Depends-on): Likewise.
65688
65689 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65690
65691         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65692         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65693         Report by Bruno Haible <bruno@clisp.org>.
65694
65695 2007-04-26  Eric Blake  <ebb9@byu.net>
65696
65697         Fix fflush on mingw.
65698         * modules/fflush (Depends-on): Add freading.
65699         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65700         but unread data.
65701
65702 2007-04-26  Eric Blake  <ebb9@byu.net>
65703         and Bruno Haible  <bruno@clisp.org>
65704
65705         Implement freading and fwriting.
65706         * lib/freading.c: New file.
65707         * lib/freading.h: Likewise.
65708         * m4/freading.m4: Likewise.
65709         * modules/freading: Likewise.
65710         * modules/freading-tests: Likewise.
65711         * tests/test-freading.c: Likewise.
65712         * lib/fwriting.c: New file.
65713         * lib/fwriting.h: Likewise.
65714         * m4/fwriting.m4: Likewise.
65715         * modules/fwriting: Likewise.
65716         * modules/fwriting-tests: Likewise.
65717         * tests/test-fwriting.c: Likewise.
65718         * MODULES.html.sh (File stream based Input/Output): Mention them.
65719
65720 2007-04-26  Bruno Haible  <bruno@clisp.org>
65721
65722         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65723         'long' when we assume it.
65724         Suggested by Eric Blake.
65725
65726 2007-04-26  Bruno Haible  <bruno@clisp.org>
65727
65728         Ensure fseeko, ftello are declared on glibc systems.
65729         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65730         * modules/fseeko (configure.ac-early): Likewise.
65731         * modules/ftello (configure.ac-early): Likewise.
65732         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65733         AC_FUNC_FSEEKO for this.
65734         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65735         (gl_CHECK_FSEEKO): Remove macro.
65736
65737 2007-04-26  Bruno Haible  <bruno@clisp.org>
65738
65739         * tests/test-fflush.c (main): Also check the ftell result after
65740         fflush and fseek/fseeko.
65741         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65742         file descriptor position cache in the stream.
65743         * lib/fseeko.c (rpl_fseeko): Likewise.
65744
65745 2007-04-26  Bruno Haible  <bruno@clisp.org>
65746
65747         * modules/fflush-tests (Depends-on): Add fseeko.
65748
65749 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65750             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65751
65752         * lib/argz_.h: ensure error_t definition is obtained in same
65753         mechanism system argz.h would have.
65754         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65755         argz facilities are known bad.  Err on the side of caution if
65756         cross-compiling.
65757
65758 2007-04-25  Eric Blake  <ebb9@byu.net>
65759
65760         * lib/fpurge.c (includes): Use stdlib.h for free.
65761         * tests/test-fflush.c (main): Also test fflush-fseeko.
65762
65763 2007-04-25  Bruno Haible  <bruno@clisp.org>
65764
65765         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65766         * lib/fseeko.c: New file.
65767         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65768         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65769         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65770         gl_FUNC_FSEEKO.
65771         (gl_FUNC_FSEEKO): Invoke it.
65772         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65773         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65774         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65775
65776 2007-04-25  Bruno Haible  <bruno@clisp.org>
65777
65778         * modules/fflush (Depends-on): Add ftello.
65779
65780 2007-04-25  Bruno Haible  <bruno@clisp.org>
65781
65782         * modules/ftello-tests: New file.
65783         * tests/test-ftello.c: New file.
65784
65785         * modules/ftello: New file.
65786         * m4/ftello.m4: New file.
65787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65788         HAVE_FTELLO.
65789         * lib/stdio_.h (ftello): New declaration.
65790         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65791         HAVE_FTELLO.
65792
65793 2007-04-25  Bruno Haible  <bruno@clisp.org>
65794
65795         * modules/fseeko-tests: New file.
65796         * tests/test-fseeko.c: New file.
65797
65798         * modules/fseeko: New file.
65799         * m4/fseeko.m4: New file.
65800         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65801         HAVE_FSEEKO.
65802         * lib/stdio_.h (fseeko): New declaration.
65803         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65804         HAVE_FSEEKO.
65805
65806 2007-04-25  Bruno Haible  <bruno@clisp.org>
65807
65808         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65809
65810 2007-04-25  Bruno Haible  <bruno@clisp.org>
65811
65812         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65813         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65814         * tests/test-unistd.c: Likewise.
65815         * tests/test-fcntl.c: Likewise.
65816
65817 2007-04-23  Eric Blake  <ebb9@byu.net>
65818
65819         * lib/fflush.c: Fix missing include.
65820         Reported by Bruno Haible.
65821
65822 2007-04-23  Bruno Haible  <bruno@clisp.org>
65823
65824         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65825         Reported by Eric Blake.
65826
65827 2007-04-23  Bruno Haible  <bruno@clisp.org>
65828
65829         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65830
65831 2007-04-23  Bruno Haible  <bruno@clisp.org>
65832
65833         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65834
65835 2007-04-23  Bruno Haible  <bruno@clisp.org>
65836
65837         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65838         Needed on HP-UX 11.
65839
65840 2007-04-16  Eric Blake  <ebb9@byu.net>
65841
65842         Make fflush rely on fpurge.
65843         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65844         open coding all variants.
65845         * modules/fflush (Depends-on): Add fpurge and unistd.
65846         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65847         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65848
65849         Fix --with-tests compilation on cygwin.
65850         * modules/argmatch-tests (Makefile.am): List gnulib library first
65851         in LDADD.
65852         * modules/argp-tests (Makefile.am): Likewise.
65853         * modules/array-list-tests (Makefile.am): Likewise.
65854         * modules/array-oset-tests (Makefile.am): Likewise.
65855         * modules/avltree-list-tests (Makefile.am): Likewise.
65856         * modules/avltree-oset-tests (Makefile.am): Likewise.
65857         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65858         * modules/carray-list-tests (Makefile.am): Likewise.
65859         * modules/dirname-tests (Makefile.am): Likewise.
65860         * modules/frexp-tests (Makefile.am): Likewise.
65861         * modules/isnanl-tests (Makefile.am): Likewise.
65862         * modules/linked-list-tests (Makefile.am): Likewise.
65863         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65864         * modules/lock-tests (Makefile.am): Likewise.
65865         * modules/rbtree-list-tests (Makefile.am): Likewise.
65866         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65867         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65868         * modules/tls-tests (Makefile.am): Likewise.
65869         * modules/tsearch-tests (Makefile.am): Likewise.
65870         * modules/xvasprintf-tests (Makefile.am): Likewise.
65871
65872         Fix fpurge for cygwin.
65873         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65874         value.
65875         * modules/fpurge-tests (Depends-on): Clean up trash.
65876
65877 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65878
65879         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65880
65881         * m4/autobuild.m4: Re-indent.
65882
65883 2007-04-13  Bruno Haible  <bruno@clisp.org>
65884
65885         * modules/fpurge-tests: New file.
65886         * tests/test-fpurge.c: New file.
65887
65888         * modules/fpurge: New file.
65889         * lib/fpurge.h: New file.
65890         * lib/fpurge.c: New file.
65891         * m4/fpurge.m4: New file.
65892
65893 2007-04-13  Bruno Haible  <bruno@clisp.org>
65894
65895         * modules/fbufmode-tests: New file.
65896         * tests/test-fbufmode.c: New file.
65897
65898         * modules/fbufmode: New file.
65899         * lib/fbufmode.h: New file.
65900         * lib/fbufmode.c: New file.
65901         * m4/fbufmode.m4: New file.
65902
65903 2007-04-13  Bruno Haible  <bruno@clisp.org>
65904
65905         * modules/fwritable-tests: New file.
65906         * tests/test-fwritable.c: New file.
65907
65908         * modules/fwritable: New file.
65909         * lib/fwritable.h: New file.
65910         * lib/fwritable.c: New file.
65911         * m4/fwritable.m4: New file.
65912
65913 2007-04-13  Bruno Haible  <bruno@clisp.org>
65914
65915         * modules/freadable-tests: New file.
65916         * tests/test-freadable.c: New file.
65917
65918         * modules/freadable: New file.
65919         * lib/freadable.h: New file.
65920         * lib/freadable.c: New file.
65921         * m4/freadable.m4: New file.
65922
65923 2007-04-13  Bruno Haible  <bruno@clisp.org>
65924
65925         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65926         MOSTLYCLEANFILES.
65927
65928 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65929
65930         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65931         gzip bootstrap.conf to avoid dragging in i18n machinery.
65932         (gnulib_tool_option): Use it.
65933
65934 2007-04-13  Bruno Haible  <bruno@clisp.org>
65935
65936         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65937         %F directives.
65938         * tests/test-vasprintf-posix.c (test_function): Likewise.
65939         * tests/test-snprintf-posix.h (test_function): Likewise.
65940         * tests/test-sprintf-posix.h (test_function): Likewise.
65941         * tests/test-fprintf-posix.h (test_function): Likewise.
65942         * tests/test-printf-posix.h (test_function): Likewise.
65943         * tests/test-fprintf-posix.out: Likewise.
65944
65945 2007-04-13  Bruno Haible  <bruno@clisp.org>
65946
65947         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65948         * modules/tls-tests (configure.ac): Likewise.
65949         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65950
65951 2007-04-13  Bruno Haible  <bruno@clisp.org>
65952
65953         * lib/tls.c (glthread_tls_get): Fix return type.
65954         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65955
65956 2007-04-12  Eric Blake  <ebb9@byu.net>
65957
65958         * modules/gettime (Depends-on): Remove gettime.
65959         Reported by Dmitry V. Levin.
65960
65961 2007-04-12  Bruno Haible  <bruno@clisp.org>
65962
65963         * modules/fflush (Include): Mention <stdio.h>.
65964         * modules/strtoimax (Include): Mention <inttypes.h>.
65965         * modules/strtoumax (Include): Likewise.
65966
65967 2007-04-12  Eric Blake  <ebb9@byu.net>
65968
65969         * .cvsignore: New file.
65970         * .gitignore: Likewise.
65971
65972 2007-04-12  Bruno Haible  <bruno@clisp.org>
65973
65974         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65975         not before, since $(LDADD) often contains libgnu.a.
65976         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65977         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65978         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65979         Needed on Cygwin.
65980
65981 2007-04-12  Eric Blake  <ebb9@byu.net>
65982
65983         Work around glibc's failure to flush stdin on fclose.
65984         * lib/closein.c (close_stdin): Flush stdin before closing.
65985
65986         Work around glibc's failure to reset seekable stdin on exit.
65987         * modules/closein: New module.
65988         * lib/closein.c: New file.
65989         * lib/closein.h: Likewise.
65990         * m4/closein.m4: Likewise.
65991         * MODULES.html.sh (File stream based Input/Output): Document it.
65992
65993 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65994
65995         * gnulib-tool: Rename generated 'autobuild' script to
65996         'do-autobuild' in --create-megatestdir output.
65997
65998         * doc/gnulib.texi (Build robot for gnulib): Fix.
65999
66000 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66001
66002         * modules/sysexits (Depends-on): Add absolute-header.
66003
66004 2007-04-12  Eric Blake  <ebb9@byu.net>
66005
66006         No need to preserve errno on success.
66007         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66008         Reported by Bruno Haible.
66009
66010 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66011
66012         * MODULES.html.sh (Support for maintaining and releasing
66013         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66014
66015 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66016
66017         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66018
66019 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66020
66021         * modules/autobuild: New module.
66022
66023         * m4/autobuild.m4: New file.
66024
66025 2007-04-11  Bruno Haible  <bruno@clisp.org>
66026
66027         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66028         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66029         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66030         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66031         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66032         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66033         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66034         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66035         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66036         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66037         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66038         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66039         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66040         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66041         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66042         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66043         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66044         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66045         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66046         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66047         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66048         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66049         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66050         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66051         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66052         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66053         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66054         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66055         Reported by Eric Blake.
66056
66057 2007-04-11  Bruno Haible  <bruno@clisp.org>
66058
66059         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66060
66061 2007-04-10  Bruno Haible  <bruno@clisp.org>
66062
66063         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66064         for NaN and Infinity. Needed on FreeBSD 6.1.
66065         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66066         regarding results for "%010a" of Infinity and NaN.
66067         * tests/test-vasprintf-posix.c (test_function): Likewise.
66068         * tests/test-snprintf-posix.h (test_function): Likewise.
66069         * tests/test-sprintf-posix.h (test_function): Likewise.
66070         * tests/test-fprintf-posix.h (test_function): Likewise.
66071         * tests/test-printf-posix.h (test_function): Likewise.
66072         * tests/test-fprintf-posix.out: Likewise.
66073
66074 2007-04-10  Bruno Haible  <bruno@clisp.org>
66075
66076         * modules/locale-tests: New file.
66077         * tests/test-locale.c: New file.
66078
66079         * modules/locale: New file.
66080         * lib/locale_.h: New file.
66081         * m4/locale_h.m4: New file.
66082
66083 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66084             Bruno Haible  <bruno@clisp.org>
66085
66086         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66087         be determined, test for availability of the copysignf, copysign,
66088         copysignl functions.
66089         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66090         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66091         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66092
66093 2007-04-09  Eric Blake  <ebb9@byu.net>
66094
66095         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66096         * modules/stdio (Makefile.am): Support fflush.
66097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66098         * modules/fflush: New file.
66099         * lib/fflush.c: Likewise.
66100         * m4/fflush.m4: Likewise.
66101         * modules/fflush-tests: New test.
66102         * tests/test-fflush.c: Likewise.
66103         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66104
66105 2007-04-06  Bruno Haible  <bruno@clisp.org>
66106
66107         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66108         (VASNPRINTF): Use signbit for faster determination whether to print a
66109         minus sign.
66110         * modules/vasnprintf (Files): Remove lib/float+.h.
66111         * modules/fprintf-posix (Depends-on): Add signbit.
66112         * modules/snprintf-posix (Depends-on): Likewise.
66113         * modules/sprintf-posix (Depends-on): Likewise.
66114         * modules/vasnprintf-posix (Depends-on): Likewise.
66115         * modules/vasprintf-posix (Depends-on): Likewise.
66116         * modules/vfprintf-posix (Depends-on): Likewise.
66117         * modules/vsnprintf-posix (Depends-on): Likewise.
66118         * modules/vsprintf-posix (Depends-on): Likewise.
66119
66120 2007-04-06  Bruno Haible  <bruno@clisp.org>
66121
66122         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66123         * tests/test-frexpl.c (main): Likewise.
66124         * tests/test-ldexpl.c (main): Likewise.
66125         * modules/frexp-tests (Depends-on): Add signbit.
66126         * modules/frexpl-tests (Depdends-on): Likewise.
66127         * modules/ldexpl-tests (Depdends-on): Likewise.
66128
66129 2007-04-06  Bruno Haible  <bruno@clisp.org>
66130
66131         * modules/signbit-tests: New file.
66132         * tests/test-signbit.c: New file.
66133
66134         * modules/signbit: New file.
66135         * lib/signbitf.c: New file.
66136         * lib/signbitd.c: New file.
66137         * lib/signbitl.c: New file.
66138         * m4/signbit.m4: New file.
66139         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66140         (signbit): New macro.
66141         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66142         REPLACE_SIGNBIT.
66143         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66144         REPLACE_FREXPL into math.h.
66145
66146 2007-04-06  Bruno Haible  <bruno@clisp.org>
66147
66148         * modules/isnanf-nolibm-tests: New file.
66149         * tests/test-isnanf.c: New file.
66150
66151         * modules/isnanf-nolibm: New file.
66152         * lib/isnanf.h: New file.
66153         * lib/isnanf.c: New file.
66154         * lib/isnan.c: Consider the USE_FLOAT macro.
66155         * m4/isnanf.m4: New file.
66156
66157 2007-04-06  Bruno Haible  <bruno@clisp.org>
66158
66159         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66160         (Link): New section.
66161
66162         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66163
66164 2007-04-06  Bruno Haible  <bruno@clisp.org>
66165
66166         Assume the 'long double' type.
66167         * m4/longdouble.m4: Remove file.
66168         * config/srclist.txt: Don't mention longdouble.m4.
66169         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66170         * lib/float+.h: Likewise.
66171         * lib/frexp.c: Likewise.
66172         * lib/printf-args.h: Likewise.
66173         * lib/printf-args.c: Likewise.
66174         * lib/printf-frexp.c: Likewise.
66175         * lib/printf-parse.c: Likewise.
66176         * lib/vasnprintf.c: Likewise.
66177         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66178         * m4/intl.m4: Likewise.
66179         * m4/isnanl.m4: Likewise.
66180         * m4/printf.m4: Likewise.
66181         * m4/printf-frexpl.m4: Likewise.
66182         * m4/vasnprintf.m4: Likewise.
66183         * modules/allocsa (Files): Remove m4/longdouble.m4.
66184         * modules/gettext (Files): Likewise.
66185         * modules/relocatable-prog-wrapper (Files): Likewise.
66186         * modules/vasnprintf (Files): Likewise.
66187         * modules/isnanl (Files): Likewise.
66188         (Include): Simplify.
66189         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66190         (Include): Simplify.
66191         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66192         (Include): Simplify.
66193         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66194         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66195         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66196         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66197         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66198         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66199         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66200         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66201         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66202         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66203         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66204         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66205         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66206         * tests/test-isnanl.c: Likewise.
66207         * tests/test-snprintf-posix.h: Likewise.
66208         * tests/test-sprintf-posix.h: Likewise.
66209         * tests/test-vasnprintf-posix.c: Likewise.
66210         * tests/test-vasnprintf-posix2.c: Likewise.
66211         * tests/test-vasprintf-posix.c: Likewise.
66212
66213 2007-04-06  Bruno Haible  <bruno@clisp.org>
66214
66215         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66216         * lib/math_.h [__DECC]: Include the overridden include file through
66217         #include_next, outside the double-inclusion guard.
66218         * lib/stdio_.h [__DECC]: Likewise.
66219         * lib/stdlib_.h [__DECC]: Likewise.
66220         * lib/string_.h [__DECC]: Likewise.
66221         * lib/time_.h [__DECC]: Likewise.
66222         * lib/wchar_.h [__DECC]: Likewise.
66223         * lib/wctype_.h [__DECC]: Likewise.
66224         * lib/inttypes_.h [__DECC]: Likewise.
66225         Reported by Albert Chin <china@thewrittenword.com> in
66226         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66227
66228 2007-04-04  Eric Blake  <ebb9@byu.net>
66229
66230         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66231         1.5.x.
66232
66233 2007-04-04  Bruno Haible  <bruno@clisp.org>
66234
66235         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66236         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66237
66238 2007-04-04  Bruno Haible  <bruno@clisp.org>
66239
66240         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66241         results for "%010a" of Infinity and NaN.
66242         * tests/test-vasprintf-posix.c (test_function): Likewise.
66243         * tests/test-snprintf-posix.h (test_function): Likewise.
66244         * tests/test-sprintf-posix.h (test_function): Likewise.
66245         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66246         * tests/test-printf-posix.h (test_function): Likewise.
66247         * tests/test-fprintf-posix.out: Update.
66248         Needed for FreeBSD 6.1.
66249
66250 2007-04-04  Bruno Haible  <bruno@clisp.org>
66251
66252         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66253         directly used by the gnulib modules nor by gnulib-tool.
66254
66255 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66256
66257         * DEPENDENCIES: Give overall description of version dependency
66258         desirability.  Use more-typical names for apps.
66259         Add shell, coreutils, diffutils, grep, tar, gzip.
66260
66261 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66262
66263         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66264
66265 2007-04-04  Karl Berry  <karl@gnu.org>
66266
66267         * MODULES.html.sh (func_module): missing '.
66268
66269 2007-04-03  Bruno Haible  <bruno@clisp.org>
66270
66271         * modules/argmatch-tests (Makefile.am): New variable
66272         test_argmatch_LDADD.
66273         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66274         * modules/array-list-tests (Makefile.am): New variable
66275         test_array_list_LDADD.
66276         * modules/array-oset-tests (Makefile.am): New variable
66277         test_array_oset_LDADD.
66278         * modules/avltree-list-tests (Makefile.am): New variable
66279         test_avltree_list_LDADD.
66280         * modules/avltree-oset-tests (Makefile.am): New variable
66281         test_avltree_oset_LDADD.
66282         * modules/avltreehash-list-tests (Makefile.am): New variable
66283         test_avltreehash_list_LDADD.
66284         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66285         test_canonicalize_lgpl_LDADD.
66286         * modules/carray-list-tests (Makefile.am): New variable
66287         test_carray_list_LDADD.
66288         * modules/dirname-tests (Makefile.am): New variable
66289         test_dirname_LDADD.
66290         * modules/linked-list-tests (Makefile.am): New variable
66291         test_linked_list_LDADD.
66292         * modules/linkedhash-list-tests (Makefile.am): New variable
66293         test_linkedhash_list_LDADD.
66294         * modules/rbtree-list-tests (Makefile.am): New variable
66295         test_rbtree_list_LDADD.
66296         * modules/rbtree-oset-tests (Makefile.am): New variable
66297         test_rbtree_oset_LDADD.
66298         * modules/rbtreehash-list-tests (Makefile.am): New variable
66299         test_rbtreehash_list_LDADD.
66300         * modules/xvasprintf-tests (Makefile.am): New variable
66301         test_xvasprintf_LDADD.
66302         Reported by Eric Blake.
66303
66304 2007-04-03  Eric Blake  <ebb9@byu.net>
66305
66306         * DEPENDENCIES: Weaken m4 requirements.
66307
66308 2007-04-03  Bruno Haible  <bruno@clisp.org>
66309
66310         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66311         * modules/isnanl-tests (configure.ac): Likewise.
66312
66313 2007-04-03  Ben Pfaff  <blp@gnu.org>
66314
66315         * modules/iconv_open: Add $(srcdir)/ to source directory
66316         references in Makefile fragments that call gperf, to fix VPATH
66317         builds.
66318
66319 2007-04-03  Bruno Haible  <bruno@clisp.org>
66320
66321         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66322         * lib/ldexpl.c: Undo last change.
66323
66324 2007-04-03  Bruno Haible  <bruno@clisp.org>
66325
66326         * modules/printf-frexpl (Depends-on): Undo last change.
66327         (Files): Add m4/ldexpl.m4.
66328
66329 2007-04-03  Bruno Haible  <bruno@clisp.org>
66330
66331         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66332         * modules/isnanl (Link): New section.
66333
66334         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66335         * modules/frexp (Link): New section.
66336
66337         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66338         * modules/frexpl (Link): New section.
66339
66340         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66341         * modules/ldexpl (Link): New section.
66342
66343 2007-04-03  Bruno Haible  <bruno@clisp.org>
66344
66345         * modules/TEMPLATE-EXTENDED: New file.
66346         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66347
66348 2007-04-03  Bruno Haible  <bruno@clisp.org>
66349
66350         * DEPENDENCIES: New file.
66351         Suggested by Simon Josefsson.
66352
66353 2007-04-03  Bruno Haible  <bruno@clisp.org>
66354
66355         * doc/gnulib.texi: Escape @.
66356
66357 2007-04-03  James Youngman  <jay@gnu.org>
66358         and Paul Eggert  <eggert@cs.ucla.edu>
66359
66360         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66361         birthtime on all systems that have birthtime, not just those which
66362         use st_birthtimensec rather than st_birthtim.  Putting zero in
66363         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66364         that the birth time is not available for files on an NFS mount.
66365
66366 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66367
66368         * modules/memxor: Move back from crypto/, suggested by Bruno.
66369         * modules/crypto/hmac-sha1: Fix memxor dependency.
66370
66371         * modules/crypto/gc: Moved from ../.
66372
66373 2007-04-02  Eric Blake  <ebb9@byu.net>
66374
66375         * lib/ldexpl.c (includes): Avoid libm.
66376
66377         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66378
66379 2007-04-02  Bruno Haible  <bruno@clisp.org>
66380
66381         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66382         on IRIX.
66383
66384 2007-04-02  Bruno Haible  <bruno@clisp.org>
66385
66386         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66387         x86 or x86_64 platforms running MacOS X.
66388         Reported by Ryan Schmidt <@ryandesign.com>.
66389
66390 2007-04-02  Bruno Haible  <bruno@clisp.org>
66391
66392         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66393         i386.
66394
66395 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66396
66397         * modules/crypto/arcfour: Moved from ../.
66398         * modules/crypto/arcfour-tests: Moved from ../.
66399         * modules/crypto/arctwo: Moved from ../.
66400         * modules/crypto/arctwo-tests: Moved from ../.
66401         * modules/crypto/des: Moved from ../.
66402         * modules/crypto/des-tests: Moved from ../.
66403         * modules/crypto/gc-arcfour: Moved from ../.
66404         * modules/crypto/gc-arcfour-tests: Moved from ../.
66405         * modules/crypto/gc-arctwo: Moved from ../.
66406         * modules/crypto/gc-arctwo-tests: Moved from ../.
66407         * modules/crypto/gc-des: Moved from ../.
66408         * modules/crypto/gc-des-tests: Moved from ../.
66409         * modules/crypto/gc-hmac-md5: Moved from ../.
66410         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66411         * modules/crypto/gc-hmac-sha1: Moved from ../.
66412         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66413         * modules/crypto/gc-md2: Moved from ../.
66414         * modules/crypto/gc-md2-tests: Moved from ../.
66415         * modules/crypto/gc-md4: Moved from ../.
66416         * modules/crypto/gc-md4-tests: Moved from ../.
66417         * modules/crypto/gc-md5: Moved from ../.
66418         * modules/crypto/gc-md5-tests: Moved from ../.
66419         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66420         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66421         * modules/crypto/gc-random: Moved from ../.
66422         * modules/crypto/gc-rijndael: Moved from ../.
66423         * modules/crypto/gc-rijndael-tests: Moved from ../.
66424         * modules/crypto/gc-sha1: Moved from ../.
66425         * modules/crypto/gc-sha1-tests: Moved from ../.
66426         * modules/crypto/gc-tests: Moved from ../.
66427         * modules/crypto/hmac-md5: Moved from ../.
66428         * modules/crypto/hmac-md5-tests: Moved from ../.
66429         * modules/crypto/hmac-sha1: Moved from ../.
66430         * modules/crypto/hmac-sha1-tests: Moved from ../.
66431         * modules/crypto/md2: Moved from ../.
66432         * modules/crypto/md2-tests: Moved from ../.
66433         * modules/crypto/md4: Moved from ../.
66434         * modules/crypto/md4-tests: Moved from ../.
66435         * modules/crypto/md5: Moved from ../.
66436         * modules/crypto/md5-tests: Moved from ../.
66437         * modules/crypto/memxor: Moved from ../.
66438         * modules/crypto/rijndael: Moved from ../.
66439         * modules/crypto/rijndael-tests: Moved from ../.
66440         * modules/crypto/sha1: Moved from ../.
66441
66442 2007-03-30  James Youngman  <jay@gnu.org>
66443
66444         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66445         rename() to change the ctime of a file (because ctime is unaffected
66446         by rename on jfs2 on AIX 5.1).
66447         (main): Start by doing cleanup, in case a previous run failed leaving
66448         test files behind.
66449
66450 2007-03-31  Bruno Haible  <bruno@clisp.org>
66451
66452         Support old proprietary implementations of iconv.
66453         * modules/iconv_open: New file.
66454         * lib/iconv_.h: New file.
66455         * m4/iconv_h.m4: New file.
66456         * lib/iconv_open.c: New file.
66457         * lib/iconv_open-aix.gperf: New file.
66458         * lib/iconv_open-hpux.gperf: New file.
66459         * lib/iconv_open-irix.gperf: New file.
66460         * lib/iconv_open-osf.gperf: New file.
66461         * m4/iconv_open.m4: New file.
66462         * modules/linebreak (Depends-on): Add iconv_open.
66463         * modules/striconv (Depends-on): Likewise.
66464         * modules/striconveh (Depends-on): Likewise.
66465         * modules/unicodeio (Depends-on): Likewise.
66466         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66467         (iconv_t)(-1).
66468         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66469         conversion if cd is (iconv_t)(-1).
66470         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66471         is not possible.
66472
66473 2007-03-31  Bruno Haible  <bruno@clisp.org>
66474
66475         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66476         work on Solaris either. Protect also second use of "autodetect_jp".
66477
66478 2007-03-31  Bruno Haible  <bruno@clisp.org>
66479
66480         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66481         the function is not present.
66482
66483 2007-03-31  Bruno Haible  <bruno@clisp.org>
66484
66485         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66486         the function is not present.
66487
66488 2007-03-31  Bruno Haible  <bruno@clisp.org>
66489
66490         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66491         a bug in HP-UX iconv_open().
66492
66493 2007-03-31  Bruno Haible  <bruno@clisp.org>
66494
66495         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66496         (Mathematics <math.h>): New section, add fpieee.
66497         (Input/output <stdio.h>): Add fseterr.
66498         (Mathematics <math.h>): New section, add printf-frexp.
66499         (Container data structures): Add sublist.
66500         (Core language properties): Add fpucw, inline.
66501         (Functions for greatest-width integer types <inttypes.h>): Add
66502         imaxabs, imaxdiv, inttypes.
66503         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66504         isnanl-nolibm, ldexp.
66505         (Mathematics <math.h>): New section, add printf-frexpl.
66506         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66507         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66508         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66509         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66510         (Unicode string functions): Add unistr/u*-mbtoucr.
66511         (Java): Add javacomp-script, javaexec-script.
66512         (C#): Add csharpcomp-script, csharpexec-script.
66513         (Support for building libraries and executables): Add havelib,
66514         relocatable-*.
66515         (Support for maintaining and releasing projects): Renamed from
66516         'Support for maintaining and release projects'. Add announce-gen.
66517
66518 2007-03-31  Bruno Haible  <bruno@clisp.org>
66519
66520         * README: Talk primarily about git.
66521         (git and CVS): Renamed from CVS.
66522         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66523         gnulib is available through git.
66524         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66525
66526 2007-03-30  Bruno Haible  <bruno@clisp.org>
66527
66528         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66529         * lib/poll_.h: Likewise.
66530         * lib/stat_.h: Likewise.
66531         * lib/sys_time_.h: Likewise.
66532         * lib/sysexit_.h: Likewise.
66533         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66534         * lib/stdbool_.h: Likewise.
66535         * lib/byteswap_.h: Add double-inclusion guard.
66536
66537 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66538
66539         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66540
66541 2007-03-30  Karl Berry  <karl@gnu.org>
66542
66543         * config/srclist-update: double space after USA in the license
66544         substitution, since that's how it's usually (?) written.
66545
66546 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66547
66548         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66549         reported by Bruno Haible.
66550
66551 2007-03-29  Bruno Haible  <bruno@clisp.org>
66552
66553         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66554         a bug in AIX iconv().
66555
66556 2007-03-29  Bruno Haible  <bruno@clisp.org>
66557
66558         * modules/ldexpl-tests: New file.
66559         * tests/test-ldexpl.c: New file.
66560
66561 2007-03-29  Bruno Haible  <bruno@clisp.org>
66562
66563         * lib/ldexpl.c: Include fpucw.h.
66564         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66565         multiplication.
66566         * modules/ldexpl (Depends-on): Add fpucw.
66567
66568 2007-03-29  Bruno Haible  <bruno@clisp.org>
66569
66570         * modules/ldexpl: New file.
66571         * m4/ldexpl.m4: New file.
66572         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66573         set.
66574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66575         REPLACE_LDEXPL.
66576         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66577         REPLACE_LDEXPL.
66578         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66579         gl_FUNC_LDEXPL_WORKS.
66580         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66581         * modules/mathl (Files): Remove lib/ldexpl.c.
66582         (Depends-on): Add ldexpl.
66583
66584 2007-03-29  Bruno Haible  <bruno@clisp.org>
66585
66586         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66587
66588 2007-03-29  Bruno Haible  <bruno@clisp.org>
66589
66590         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66591         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66592         and possibly also HP-UX.
66593         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66594         work on AIX, IRIX, HP-UX, OSF/1.
66595         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66596         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66597         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66598         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66599         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66600         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66601
66602 2007-03-29  Bruno Haible  <bruno@clisp.org>
66603
66604         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66605
66606 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66607
66608         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66609         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66610
66611 2007-03-29  Eric Blake  <ebb9@byu.net>
66612
66613         * lib/acl-internal.h: Remove redundant include.
66614         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66615         Cygwin when a file is locked.
66616
66617 2007-03-29  Bruno Haible  <bruno@clisp.org>
66618
66619         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66620         file.
66621         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66622
66623 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66624
66625         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66626         try to remove a parent directory if the child couldn't be removed
66627         (except for the first rmdir, which could fail because the child
66628         doesn't exist).  Problem reported by Jeff Blaine in
66629         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66630
66631 2007-03-28  Bruno Haible  <bruno@clisp.org>
66632
66633         * lib/striconveh.c (utf8conv_carefully): New function.
66634         (mem_cd_iconveh_internal): Invoke it.
66635
66636 2007-03-28  Bruno Haible  <bruno@clisp.org>
66637
66638         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66639         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66640         input.
66641         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66642         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66643         unistr/u8-uctomb.
66644
66645 2007-03-28  Bruno Haible  <bruno@clisp.org>
66646
66647         * modules/unistr/u8-mbtoucr: New file.
66648         * lib/unistr/u8-mbtoucr.c: New file.
66649         * modules/unistr/u16-mbtoucr: New file.
66650         * lib/unistr/u16-mbtoucr.c: New file.
66651         * modules/unistr/u16-mbtoucr: New file.
66652         * lib/unistr/u16-mbtoucr.c: New file.
66653         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66654
66655 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66656             Bruno Haible  <bruno@clisp.org>
66657
66658         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66659         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66660         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66661
66662         * m4/stdio_h.m4: Add stubs for vasprintf too.
66663
66664         * modules/stdio: Support vasprintf in sed command.
66665
66666         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66667         vasprintf.h.  Add stdio module indicator.
66668
66669         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66670         vasprintf.h.
66671
66672         * lib/vasprintf.h: File removed.
66673
66674         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66675         * lib/vasprintf.c: Ditto.
66676         * lib/xvasprintf.c: Ditto.
66677         * tests/test-vasprintf-posix.c: Ditto.
66678         * tests/test-vasprintf.c: Ditto.
66679
66680 2007-03-27  Bruno Haible  <bruno@clisp.org>
66681
66682         Make vasnprintf multithread-safe.
66683         * lib/vasnprintf.c (decimal_point_char): New function.
66684         (VASNPRINTF): Use it.
66685         Suggested by Simon Josefsson.
66686
66687 2007-03-27  Eric Blake  <ebb9@byu.net>
66688
66689         Support sub-second birthtime on cygwin.
66690         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66691         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66692         (get_stat_birthtime): Also work with st_birthtim.
66693
66694 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66695
66696         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66697         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66698         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66699         (get_stat_birthtime_ns): Simplify compile-time tests.
66700         (get_stat_birthtime): Change the API to look like
66701         get_stat_mtime etc., except return a negative tv_nsec on error.
66702         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66703         Don't check for "spare" fields.
66704         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66705         or for struct stat.st_birthtime, as these tests aren't used.
66706         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66707
66708 2007-03-27  Bruno Haible  <bruno@clisp.org>
66709
66710         * lib/stat-time.h: Include <sys/stat.h>.
66711
66712 2007-03-27  James Youngman  <jay@gnu.org>
66713
66714         * lib/stat-time.h (get_stat_birthtime): New function for
66715           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66716         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66717           and its variants.
66718         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66719         * modules/stat-time-test: New file.
66720         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66721
66722 2007-03-26  Bruno Haible  <bruno@clisp.org>
66723
66724         Better support of signalling NaNs.
66725         * lib/atanl.c: Include isnanl.h.
66726         (atanl): Perform test for NaN at the beginning of the function and
66727         through a call to isnanl.
66728         * lib/cosl.c: Include isnanl.h.
66729         (cosl): Perform test for NaN at the beginning of the function and
66730         through a call to isnanl.
66731         * lib/ldexpl.c: Include isnanl.h.
66732         (ldexpl): Perform test for NaN through a call to isnanl.
66733         * lib/logl.c: Include isnanl.h.
66734         (logl): Perform test for NaN at the beginning of the function and
66735         through a call to isnanl.
66736         * lib/sinl.c: Include isnanl.h.
66737         (sinl): Perform test for NaN at the beginning of the function and
66738         through a call to isnanl.
66739         * lib/sqrtl.c: Include isnanl.h.
66740         (sqrtl): Perform test for NaN at the beginning of the function and
66741         through a call to isnanl.
66742         * lib/tanl.c: Include isnanl.h.
66743         (tanl): Perform test for NaN at the beginning of the function and
66744         through a call to isnanl.
66745         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66746         * modules/mathl (Depends-on): Add isnanl.
66747
66748 2007-03-26  Eric Blake  <ebb9@byu.net>
66749
66750         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66751         regression in logic sense of previous patch.
66752
66753 2007-03-26  Bruno Haible  <bruno@clisp.org>
66754
66755         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66756         unportable shell command "if ! ...".
66757         Reported by Ralf Wildenhues.
66758
66759 2007-03-25  Bruno Haible  <bruno@clisp.org>
66760
66761         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66762         <sysexits.h> file, and only add EX_CONFIG.
66763         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66764         absolute file name and whether it is sufficient. Substitute also
66765         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66766         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66767         ABSOLUTE_SYSEXITS_H into sysexits.h.
66768
66769 2007-03-25  Bruno Haible  <bruno@clisp.org>
66770
66771         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66772         hints is NULL.
66773
66774 2007-03-25  Bruno Haible  <bruno@clisp.org>
66775
66776         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66777         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66778
66779 2007-03-25  Bruno Haible  <bruno@clisp.org>
66780
66781         * lib/vasnprintf.c: Include langinfo.h.
66782         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66783         multithread-safe.
66784         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66785         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66786         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66787         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66788         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66789         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66790         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66791         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66792         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66793         Reported by Simon Josefsson.
66794
66795 2007-03-25  Bruno Haible  <bruno@clisp.org>
66796
66797         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66798         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66799         * modules/vasnprintf (Depends-on): Add stdint.
66800
66801 2007-03-25  Bruno Haible  <bruno@clisp.org>
66802
66803         * modules/fpieee: New file.
66804         * m4/fpieee.m4: New file.
66805         * modules/isnan-nolibm (Depends-on): Add fpieee.
66806         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66807         * modules/isnanl (Depends-on): Add fpieee.
66808
66809 2007-03-25  Bruno Haible  <bruno@clisp.org>
66810
66811         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66812
66813 2007-03-25  Bruno Haible  <bruno@clisp.org>
66814
66815         Avoid test failures on IRIX 6.5.
66816         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66817         (main): Use it.
66818         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66819         macros.
66820         (main): Use them.
66821
66822 2007-03-25  Bruno Haible  <bruno@clisp.org>
66823
66824         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66825         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66826         exists but doesn't work.
66827         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66828         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66830         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66831         math.h.
66832
66833 2007-03-25  Bruno Haible  <bruno@clisp.org>
66834
66835         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66836         returns inf. Needed on IRIX 6.5.
66837
66838 2007-03-25  Bruno Haible  <bruno@clisp.org>
66839
66840         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66841         (main): Use isnanl instead of x != x idiom.
66842         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66843
66844         * tests/test-frexp.c: Include isnan.h.
66845         (main): Use isnan instead of x != x idiom.
66846         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66847
66848 2007-03-25  Bruno Haible  <bruno@clisp.org>
66849
66850         * tests/test-frexp.c (NaN): New function/macro.
66851         (main): Use it instead of 0.0 / 0.0.
66852         * tests/test-isnan.c (NaN): New function/macro.
66853         (main): Use it instead of 0.0 / 0.0.
66854         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66855         (test_function): Use it instead of 0.0 / 0.0.
66856         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66857         (test_function): Use it instead of 0.0 / 0.0.
66858         * tests/test-snprintf-posix.h (NaN): New function/macro.
66859         (test_function): Use it instead of 0.0 / 0.0.
66860         * tests/test-sprintf-posix.h (NaN): New function/macro.
66861         (test_function): Use it instead of 0.0 / 0.0.
66862         * tests/test-fprintf-posix.h (NaN): New function/macro.
66863         (test_function): Use it instead of 0.0 / 0.0.
66864         * tests/test-printf-posix.h (NaN): New function/macro.
66865         (test_function): Use it instead of 0.0 / 0.0.
66866
66867         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66868
66869 2007-03-25  Bruno Haible  <bruno@clisp.org>
66870
66871         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66872
66873 2007-03-25  Bruno Haible  <bruno@clisp.org>
66874
66875         * lib/regexec.c (merge_state_with_log): Make static.
66876
66877 2007-03-25  Bruno Haible  <bruno@clisp.org>
66878
66879         * lib/trigl.c (kernel_rem_pio2): Make static.
66880
66881 2007-03-25  Bruno Haible  <bruno@clisp.org>
66882
66883         * lib/sincosl.c (sincosl_table): Make static.
66884
66885 2007-03-25  Bruno Haible  <bruno@clisp.org>
66886
66887         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66888         if the compiler does not support C99.
66889
66890 2007-03-25  Bruno Haible  <bruno@clisp.org>
66891
66892         * modules/time (Makefile.am): Ensure all rule action lines start with a
66893         tab.
66894
66895 2007-03-24  Bruno Haible  <bruno@clisp.org>
66896
66897         * modules/tsearch-tests: New file.
66898         * tests/test-tsearch.sh: New file.
66899         * tests/test-tsearch.c: New file, mostly copied from glibc.
66900
66901         * modules/search-tests: New file.
66902         * tests/test-search.c: New file.
66903
66904         * modules/search: New file.
66905         * lib/search_.h: New file, incorporating lib/tsearch.h.
66906         * m4/search_h.m4: New file.
66907         * lib/tsearch.h: Remove file.
66908         * lib/tsearch.c: Include search.h instead of tsearch.h.
66909         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66910         HAVE_TSEARCH.
66911         * modules/tsearch (Files): Remove lib/tsearch.h.
66912         (Depends-on): Add search.
66913         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66914         (Include): Change tsearch.h into search.h.
66915
66916 2007-03-24  Bruno Haible  <bruno@clisp.org>
66917
66918         * modules/fpucw: New file.
66919         * lib/fpucw.h: New file.
66920         * lib/frexp.c: Include fpucw.h.
66921         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66922         (FUNC): Use them.
66923         * lib/printf-frexp.c: Include fpucw.h.
66924         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66925         (FUNC): Use them.
66926         * lib/vasnprintf.c: Include fpucw.h.
66927         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66928         'long double' calculations.
66929         * tests/test-frexpl.c: Include fpucw.h.
66930         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66931         * tests/test-printf-frexpl.c: Include fpucw.h.
66932         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66933         * modules/frexpl (Depends-on): Add fpucw.
66934         * modules/printf-frexpl (Depends-on): Likewise.
66935         * modules/fprintf-posix (Depends-on): Likewise.
66936         * modules/snprintf-posix (Depends-on): Likewise.
66937         * modules/sprintf-posix (Depends-on): Likewise.
66938         * modules/vasnprintf-posix (Depends-on): Likewise.
66939         * modules/vasprintf-posix (Depends-on): Likewise.
66940         * modules/vfprintf-posix (Depends-on): Likewise.
66941         * modules/vsnprintf-posix (Depends-on): Likewise.
66942         * modules/vsprintf-posix (Depends-on): Likewise.
66943         * modules/frexpl-tests (Depends-on): Likewise.
66944         * modules/printf-frexpl-tests (Depends-on): Likewise.
66945
66946 2007-03-24  Bruno Haible  <bruno@clisp.org>
66947
66948         * lib/float+.h: New file.
66949         * lib/isnan.c: Include float+.h.
66950         (SIZE): New macro.
66951         (FUNC): Compare only SIZE bytes of the value.
66952         * lib/vasnprintf.c: Include float+.h.
66953         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66954         SIZEOF_LDBL or SIZEOF_DBL bytes.
66955         * modules/isnan-nolibm (Files): Add lib/float+.h.
66956         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66957         * modules/isnanl (Files): Add lib/float+.h.
66958         * modules/vasnprintf (Files): Add lib/float+.h.
66959
66960 2007-03-24  Bruno Haible  <bruno@clisp.org>
66961
66962         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66963         include isnanl-nolibm.h.
66964
66965 2007-03-24  Bruno Haible  <bruno@clisp.org>
66966
66967         * tests/test-read-file.c (main): Don't produce spurious output for
66968         expected situations. Make the test fail if it encountered unexpected
66969         results.
66970
66971 2007-03-24  Bruno Haible  <bruno@clisp.org>
66972
66973         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66974         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66975
66976 2007-03-24  Bruno Haible  <bruno@clisp.org>
66977
66978         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66979
66980 2007-03-24  Bruno Haible  <bruno@clisp.org>
66981
66982         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66983         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66984
66985         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66986         * modules/utf8-ucs4: Turn into a symbolic link to module
66987         unistr/u8-mbtouc.
66988
66989         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66990         utf8-ucs4-unsafe.
66991         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66992         unistr/u8-mbtouc-unsafe.
66993
66994         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66995         * modules/utf16-ucs4: Turn into a symbolic link to module
66996         unistr/u16-mbtouc.
66997
66998         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66999         utf16-ucs4-unsafe.
67000         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67001         unistr/u16-mbtouc-unsafe.
67002
67003         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67004         * modules/ucs4-utf8: Turn into a symbolic link to module
67005         unistr/u8-ubtomb.
67006
67007         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67008         * modules/ucs4-utf16: Turn into a symbolic link to module
67009         unistr/u16-ubtomb.
67010
67011 2007-03-24  Bruno Haible  <bruno@clisp.org>
67012
67013         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67014         Enable the function only if HAVE_INLINE.
67015         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67016         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67017         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67018         Enable the function only if HAVE_INLINE.
67019         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67020         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67021         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67022         Enable the function only if HAVE_INLINE.
67023         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67024         Enable the function only if HAVE_INLINE.
67025         * modules/utf8-ucs4: Update.
67026         * modules/utf8-ucs4-unsafe: Update.
67027         * modules/utf16-ucs4: Update.
67028         * modules/utf16-ucs4-unsafe: Update.
67029         * modules/ucs4-utf8: Update.
67030         * modules/ucs4-utf16: Update.
67031
67032 2007-03-24  Bruno Haible  <bruno@clisp.org>
67033
67034         * lib/utf8-ucs4.h: Remove file.
67035         * lib/utf8-ucs4-unsafe.h: Remove file.
67036         * lib/utf16-ucs4.h: Remove file.
67037         * lib/utf16-ucs4-unsafe.h: Remove file.
67038         * lib/ucs4-utf8.h: Remove file.
67039         * lib/ucs4-utf16.h: Remove file.
67040         * lib/unistr.h: Include their previous contents.
67041         * m4/utf-ucs4.m4: Remove file.
67042         * m4/ucs4-utf.m4: Remove file.
67043         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67044         (Depends-on): Add unistr/base.
67045         (configure.ac): Remove gl_UTF_UCS4.
67046         (Makefile.am): Update.
67047         (Include): Change to unistr.h.
67048         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67049         (Depends-on): Add unistr/base.
67050         (configure.ac): Remove gl_UTF_UCS4.
67051         (Makefile.am): Update.
67052         (Include): Change to unistr.h.
67053         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67054         (Depends-on): Add unistr/base.
67055         (configure.ac): Remove gl_UTF_UCS4.
67056         (Makefile.am): Update.
67057         (Include): Change to unistr.h.
67058         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67059         (Depends-on): Add unistr/base.
67060         (configure.ac): Remove gl_UTF_UCS4.
67061         (Makefile.am): Update.
67062         (Include): Change to unistr.h.
67063         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67064         (Depends-on): Add unistr/base.
67065         (configure.ac): Remove gl_UCS4_UTF.
67066         (Makefile.am): Update.
67067         (Include): Change to unistr.h.
67068         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67069         (Depends-on): Add unistr/base.
67070         (configure.ac): Remove gl_UCS4_UTF.
67071         (Makefile.am): Update.
67072         (Include): Change to unistr.h.
67073         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67074         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67075         utf8-ucs4-unsafe.h.
67076         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67077         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67078         utf16-ucs4-unsafe.h.
67079         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67080         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67081         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67082         * lib/unistr/u8-strchr.c: Likewise.
67083         * lib/unistr/u8-strrchr.c: Likewise.
67084         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67085         * lib/unistr/u16-strchr.c: Likewise.
67086         * lib/unistr/u16-strrchr.c: Likewise.
67087         * lib/striconveh.c: Update.
67088         * lib/linebreak.c: Update.
67089
67090 2007-03-24  Bruno Haible  <bruno@clisp.org>
67091
67092         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67093         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67094
67095 2007-03-22  Bruno Haible  <bruno@clisp.org>
67096
67097         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67098
67099 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67100
67101         * MODULES.html.sh (File system functions): New module write-any-file.
67102         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67103         * m4/write-any-file.m4: New files.
67104
67105 2007-03-23  Eric Blake  <ebb9@byu.net>
67106
67107         * gnulib-tool: Rearrange space-tab sequences, since some editors
67108         like to eat them.
67109
67110 2007-03-23  Eric Blake  <ebb9@byu.net>
67111
67112         * lib/version-etc.c (version_etc_va): Update license wording to
67113         be more concise.  Recommended by Richard Stallman.
67114
67115 2007-03-22  Bruno Haible  <bruno@clisp.org>
67116
67117         * lib/poll.c (MSG_PEEK): New fallback definition.
67118
67119 2007-03-22  Bruno Haible  <bruno@clisp.org>
67120
67121         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67122         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67123         (main): Update.
67124         Fixes a compilation error on BeOS.
67125
67126 2007-03-22  Bruno Haible  <bruno@clisp.org>
67127
67128         * modules/frexpl-tests: New file.
67129         * tests/test-frexpl.c: New file.
67130
67131         * modules/frexpl: New file.
67132         * m4/frexpl.m4: New file.
67133         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67134         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67136         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67137         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67138         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67139
67140 2007-03-22  Bruno Haible  <bruno@clisp.org>
67141
67142         * lib/frexpl.c: Share code with lib/frexp.c.
67143         * modules/mathl (Files): Add lib/frexp.c.
67144         (Depends-on): Add isnanl-nolibm.
67145
67146 2007-03-22  Bruno Haible  <bruno@clisp.org>
67147
67148         * modules/printf-frexp (Files): Add m4/frexp.m4.
67149         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67150         only if the found frexp function actually works.
67151
67152 2007-03-22  Bruno Haible  <bruno@clisp.org>
67153
67154         * lib/frexp.c: Remove older implementation that uses divisions.
67155
67156 2007-03-21  Bruno Haible  <bruno@clisp.org>
67157
67158         * modules/frexp-tests: New file.
67159         * tests/test-frexp.c: New file.
67160
67161         * modules/frexp: New file.
67162         * lib/frexp.c: New file.
67163         * m4/frexp.m4: New file.
67164         * lib/math_.h (frexp): New declaration.
67165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67166         REPLACE_FREXP.
67167         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67168
67169 2007-03-21  Bruno Haible  <bruno@clisp.org>
67170
67171         * modules/isnanl-tests: New file.
67172         * tests/test-isnanl.c: New file.
67173
67174         * modules/isnanl: New file.
67175         * lib/isnanl.h: New file.
67176         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67177         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67178         gl_FUNC_ISNANL_WORKS.
67179         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67180         New macros.
67181
67182 2007-03-21  Bruno Haible  <bruno@clisp.org>
67183
67184         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67185         lib/isnanl.h.
67186         (Include): Update.
67187         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67188         * lib/vasnprintf.c: Update.
67189         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67190         tests/test-isnanl.h, remove tests/test-isnanl.c.
67191         (Makefile.am): Update.
67192         * tests/test-isnanl-nolibm.c: New file.
67193         * tests/test-isnanl.h: New file.
67194         * tests/test-isnanl.c: Remove file.
67195
67196 2007-03-21  Jim Meyering  <jim@meyering.net>
67197
67198         When trying to open ".", treat ESTALE like EACCES.
67199         * lib/savewd.c (savewd_save): Resort to forking not just upon
67200         failure with EACCES, but also when errno is ESTALE.
67201
67202 2007-03-20  Bruno Haible  <bruno@clisp.org>
67203
67204         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67205         Needed on AIX 5.1. Reported by Matthew Woehlke.
67206
67207 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67208
67209         Suggestions by Bruno Haible:
67210         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67211         our own.
67212         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67213         * modules/acl (Depends-on): Add gettext.
67214
67215 2007-03-19  Bruno Haible  <bruno@clisp.org>
67216
67217         * modules/iconvme: Remove file.
67218         * lib/iconvme.h: Remove file.
67219         * lib/iconvme.c: Remove file.
67220         * m4/iconvme.m4: Remove file.
67221
67222 2007-03-19  Bruno Haible  <bruno@clisp.org>
67223
67224         * doc/relocatable-maint.texi: Break long shell script line.
67225         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67226
67227 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67228
67229         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67230         handle file_has_acl.
67231         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67232         * lib/acl.c: Move header inclusions and related macro defns into
67233         lib/acl-internal.h.
67234         (S_ISLNK): Remove defn, since that's now done for us.
67235         (file_has_acl): Move to lib/file-has-acl.c.
67236         Call acl_trivial if available.  This is the crucial part of the fix.
67237         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67238         shared within the library.  Rewrite a bit, partly to make it compatible
67239         with the GNU coding style.
67240         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67241         Remove unnecessary double-quotes.
67242         Don't test for acl_to_text; the build will catch that.
67243         Replace acl_entries if it doesn't exist and it is needed.
67244         Check for -lsec and acl_trivial (as used on Solaris 10).
67245         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67246         lib/file-has-acl.c.
67247         (Depends-on): Add sys_stat, for S_ISLNK.
67248
67249 2007-03-19  Ben Pfaff  <blp@gnu.org>
67250
67251         * doc/gnulib.texi: Fix typos.
67252         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67253
67254 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67255
67256         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67257         If size is zero here, buf must be zero.
67258
67259 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67260
67261         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67262         <bruno@clisp.org>.
67263
67264 2007-03-18  Bruno Haible  <bruno@clisp.org>
67265
67266         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67267         Suggested by Eric Blake.
67268
67269 2007-03-18  Ben Pfaff  <blp@gnu.org>
67270
67271         * doc/relocatable.texi: Recommend using as prefix a directory
67272         that does not exist and will never be created.  Based on
67273         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67274         and others.
67275
67276 2007-03-17  Bruno Haible  <bruno@clisp.org>
67277
67278         * lib/fchownat.c: Include lchown.h.
67279
67280 2007-03-17  Bruno Haible  <bruno@clisp.org>
67281
67282         Fix endless loop when the given allocated size was > INT_MAX.
67283         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67284         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67285         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67286         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67287         * lib/sprintf.c (sprintf): Likewise.
67288
67289 2007-03-17  Bruno Haible  <bruno@clisp.org>
67290
67291         * tests/test-argp-2.sh (func_compare): Output a context diff.
67292
67293 2007-03-17  Bruno Haible  <bruno@clisp.org>
67294
67295         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67296         locale's decimal-point character.
67297
67298 2007-03-17  Bruno Haible  <bruno@clisp.org>
67299
67300         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67301         before comparing it. Needed because on some platforms (e.g. x86) a
67302         'long double' occupies less bytes than sizeof (long double).
67303
67304 2007-03-17  Bruno Haible  <bruno@clisp.org>
67305
67306         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67307         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67308         * tests/test-getaddrinfo.c (simple): Likewise.
67309         * tests/test-read-file.c (main): Likewise.
67310
67311 2007-03-17  Bruno Haible  <bruno@clisp.org>
67312
67313         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67314
67315 2007-03-17  Bruno Haible  <bruno@clisp.org>
67316
67317         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67318         unused variable.
67319
67320 2007-03-17  Bruno Haible  <bruno@clisp.org>
67321
67322         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67323         * tests/test-c-strncasecmp.c: Likewise.
67324
67325 2007-03-17  Bruno Haible  <bruno@clisp.org>
67326
67327         * modules/stdlib (Depends-on): Add unistd.
67328         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67329         Needed for MacOS X 10.3.
67330
67331 2007-03-17  Bruno Haible  <bruno@clisp.org>
67332
67333         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67334
67335 2007-03-17  Bruno Haible  <bruno@clisp.org>
67336
67337         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67338
67339 2007-03-17  Bruno Haible  <bruno@clisp.org>
67340
67341         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67342         to reflect files copied from gnulib (with or without modifications).
67343         Suggested by Jim Meyering.
67344
67345 2007-03-17  Eric Blake  <ebb9@byu.net>
67346
67347         * NEWS: Document stdlib change from 2007-02-18.
67348
67349 2007-03-17  Jim Meyering  <jim@meyering.net>
67350
67351         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67352         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67353         someone uses a name containing shell meta-characters.
67354         Reported by Alfred M. Szmidt.
67355
67356         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67357
67358 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67359
67360         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67361         and copy gettext configuration files only if configure.ac contains
67362         a use of AM_GNU_GETTEXT_VERSION.
67363
67364 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67365
67366         * build-aux/bootstrap (gnulib_name): New variable.
67367         (gnulib_tool_options): Use it.
67368
67369 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67370
67371         * tests/test-des.c: Use new namespace.
67372
67373 2007-03-15  Bruno Haible  <bruno@clisp.org>
67374
67375         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67376         Reported by James Youngman <jay@gnu.org>.
67377
67378 2007-03-15  Bruno Haible  <bruno@clisp.org>
67379
67380         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67381         declared prototype. Needed with cc on OSF/1 5.1.
67382
67383 2007-03-15  Bruno Haible  <bruno@clisp.org>
67384
67385         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67386         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67387         (struct gl_list_implementation): Add dispose_fn argument to the
67388         'create_empty', 'create' methods.
67389         (struct gl_list_impl_base): Add field 'dispose_fn'.
67390         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67391         argument.
67392         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67393         dispose_fn argument.
67394         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67395         dispose_fn on the dropped values.
67396         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67397         dispose_fn argument.
67398         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67399         dropped values.
67400         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67401         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67402         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67403         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67404         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67405         argument.
67406         (gl_tree_list_free): Call dispose_fn on the dropped values.
67407         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67408         the dropped values.
67409         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67410         Add dispose_fn argument.
67411         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67412         Call dispose_fn on the dropped values.
67413         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67414         Add dispose_fn argument.
67415         (gl_sublist_create): Initialize the 'dispose_fn' field.
67416         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67417         * tests/test-array_list.c (main): Update.
67418         * tests/test-carray_list.c (main): Update.
67419         * tests/test-avltree_list.c (main): Update.
67420         * tests/test-rbtree_list.c (main): Update.
67421         * tests/test-avltreehash_list.c (main): Update.
67422         * tests/test-rbtreehash_list.c (main): Update.
67423         * tests/test-linked_list.c (main): Update.
67424         * tests/test-linkedhash_list.c (main): Update.
67425         * tests/test-array_oset.c (main): Update.
67426
67427 2007-03-15  Bruno Haible  <bruno@clisp.org>
67428
67429         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67430         (gl_oset_create_empty): Add dispose_fn argument.
67431         (struct gl_oset_implementation): Add dispose_fn argument to
67432         'create_empty' method.
67433         (struct gl_oset_impl_base): Add dispose_fn field.
67434         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67435         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67436         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67437         values.
67438         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67439         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67440         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67441         dropped value.
67442         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67443         dropped value.
67444         * tests/test-array_oset.c (main): Update.
67445         * tests/test-avltree_oset.c (main): Update.
67446         * tests/test-rbtree_oset.c (main): Update.
67447         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67448
67449 2007-03-13  Bruno Haible  <bruno@clisp.org>
67450
67451         * tests/test-stdbool.c (i): Update after last patch.
67452
67453 2007-03-12  Bruno Haible  <bruno@clisp.org>
67454
67455         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67456         the iswprint macro. Needed on Solaris 2.5.1.
67457
67458 2007-03-12  Bruno Haible  <bruno@clisp.org>
67459
67460         * tests/test-printf-frexp.c (main): Declare x as volatile.
67461
67462 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67463
67464         * doc/gnulib.texi (Build robot for gnulib): New section.
67465
67466 2007-03-12  Jim Meyering  <jim@meyering.net>
67467
67468         * build-aux/bootstrap: New file.
67469         * build-aux/bootstrap.conf: New file, from coreutils.
67470
67471 2007-03-11  Bruno Haible  <bruno@clisp.org>
67472
67473         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67474
67475 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67476
67477         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67478         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67479         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67480
67481 2007-03-11  Bruno Haible  <bruno@clisp.org>
67482
67483         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67484         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67485
67486 2007-03-11  Bruno Haible  <bruno@clisp.org>
67487
67488         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67489         formula. Needed for SunPRO C 5.0.
67490
67491 2007-03-11  Bruno Haible  <bruno@clisp.org>
67492
67493         * modules/long-options (Depends-on): Add getopt.
67494
67495 2007-03-11  Bruno Haible  <bruno@clisp.org>
67496
67497         * modules/modechange (Depends-on): Add stdbool.
67498
67499 2007-03-11  Bruno Haible  <bruno@clisp.org>
67500
67501         * modules/i-ring (Depends-on): Add stdbool.
67502
67503 2007-03-11  Bruno Haible  <bruno@clisp.org>
67504
67505         * modules/gc-des (Depends-on): Add stdbool.
67506
67507 2007-03-11  Bruno Haible  <bruno@clisp.org>
67508
67509         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67510
67511 2007-03-11  Bruno Haible  <bruno@clisp.org>
67512
67513         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67514
67515 2007-03-11  Bruno Haible  <bruno@clisp.org>
67516
67517         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67518
67519 2007-03-11  Bruno Haible  <bruno@clisp.org>
67520
67521         * lib/vasnprintf.c (sprintf): Undefine.
67522
67523 2007-03-11  Bruno Haible  <bruno@clisp.org>
67524
67525         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67526         initializers in SunPRO C and Compaq C compilers.
67527
67528 2007-03-11  Bruno Haible  <bruno@clisp.org>
67529
67530         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67531         decrementing code ANSI C compliant.
67532
67533 2007-03-11  Bruno Haible  <bruno@clisp.org>
67534
67535         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67536         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67537
67538 2007-03-11  Bruno Haible  <bruno@clisp.org>
67539
67540         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67541         <stdbool.h> substitute doesn't pass.
67542
67543 2007-03-11  Bruno Haible  <bruno@clisp.org>
67544
67545         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67546
67547 2007-03-11  Bruno Haible  <bruno@clisp.org>
67548
67549         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67550         script, for submission to autobuild.josefsson.org.
67551
67552 2007-03-10  Bruno Haible  <bruno@clisp.org>
67553
67554         * modules/canonicalize-lgpl-tests: New file.
67555         * tests/test-canonicalize-lgpl.sh: New file.
67556         * tests/test-canonicalize-lgpl.c: New file.
67557
67558         * modules/c-strcase-tests: New file.
67559         * tests/test-c-strcase.sh: New file.
67560         * tests/test-c-strcasecmp.c: New file.
67561         * tests/test-c-strncasecmp.c: New file.
67562
67563         * modules/atexit-tests: New file.
67564         * tests/test-atexit.sh: New file.
67565         * tests/test-atexit.c: New file.
67566
67567 2007-03-10  Bruno Haible  <bruno@clisp.org>
67568
67569         * tests/test-binary-io.sh: Use temporary filenames that are not so
67570         likely to clash with those of other tests (in a parallel make).
67571         * tests/test-binary-io.c: Likewise.
67572
67573 2007-03-10  Bruno Haible  <bruno@clisp.org>
67574
67575         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67576         fallback; use #error instead.
67577         Suggested by Simon Josefsson.
67578
67579 2007-03-10  Bruno Haible  <bruno@clisp.org>
67580
67581         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67582         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67583         first and the last.
67584
67585 2007-03-10  Bruno Haible  <bruno@clisp.org>
67586
67587         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67588
67589 2007-03-10  Bruno Haible  <bruno@clisp.org>
67590
67591         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67592         "make distcheck".
67593         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67594         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67595         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67596
67597 2007-03-10  Bruno Haible  <bruno@clisp.org>
67598
67599         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67600         variable.
67601         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67602         variable.
67603
67604 2007-03-09  Eric Blake  <ebb9@byu.net>
67605         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67606
67607         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67608         types are not being provided by gnulib.
67609         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67610         types are supported.
67611
67612 2007-03-10  Bruno Haible  <bruno@clisp.org>
67613
67614         * lib/stdio_.h (__attribute__): New macro.
67615         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67616         vsprintf): Specify __attribute__ __format__ for GCC.
67617         Suggested by Eric Blake.
67618
67619 2007-03-09  Bruno Haible  <bruno@clisp.org>
67620
67621         * modules/printf-posix-tests: New file.
67622         * tests/test-printf-posix.sh: New file.
67623         * tests/test-printf-posix.c: New file.
67624
67625         * modules/printf-posix: New file.
67626         * lib/printf.c: New file.
67627         * m4/printf-posix-rpl.m4: New file.
67628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67629         REPLACE_PRINTF.
67630         * lib/stdio_.h (printf): New declaration.
67631         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67632         ____strfmon____): New macros.
67633         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67634         REPLACE_PRINTF.
67635
67636 2007-03-09  Bruno Haible  <bruno@clisp.org>
67637
67638         * tests/test-vasnprintf-posix2.sh: New file.
67639         * tests/test-vasnprintf-posix2.c: New file.
67640         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67641         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67642         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67643
67644         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67645         a locale dependent decimal point, rather than always '.'.
67646
67647 2007-03-09  Eric Blake  <ebb9@byu.net>
67648
67649         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67650         spite of platforms like Tandem/NSK that define it to -1.
67651
67652 2007-03-08  Bruno Haible  <bruno@clisp.org>
67653
67654         * modules/vprintf-posix-tests: New file.
67655         * tests/test-vprintf-posix.sh: New file.
67656         * tests/test-vprintf-posix.c: New file.
67657         * tests/test-printf-posix.h: New file.
67658
67659         * modules/vprintf-posix: New file.
67660         * lib/vprintf.c: New file.
67661         * m4/vprintf-posix.m4: New file.
67662         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67663         REPLACE_VPRINTF.
67664         * lib/stdio_.h (vprintf): New declaration.
67665         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67666         REPLACE_VPRINTF.
67667
67668 2007-03-08  Bruno Haible  <bruno@clisp.org>
67669
67670         * modules/fprintf-posix-tests: New file.
67671         * tests/test-fprintf-posix.sh: New file.
67672         * tests/test-fprintf-posix.c: New file.
67673
67674         * modules/fprintf-posix: New file.
67675         * lib/fprintf.c: New file.
67676         * m4/fprintf-posix.m4: New file.
67677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67678         REPLACE_FPRINTF.
67679         * lib/stdio_.h (fprintf): New declaration.
67680         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67681         REPLACE_FPRINTF.
67682
67683 2007-03-08  Bruno Haible  <bruno@clisp.org>
67684
67685         * modules/vfprintf-posix-tests: New file.
67686         * tests/test-vfprintf-posix.sh: New file.
67687         * tests/test-vfprintf-posix.c: New file.
67688         * tests/test-fprintf-posix.h: New file.
67689         * tests/test-fprintf-posix.out: New file.
67690
67691         * modules/vfprintf-posix: New file.
67692         * lib/vfprintf.c: New file.
67693         * m4/vfprintf-posix.m4: New file.
67694         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67695         REPLACE_VFPRINTF.
67696         * lib/stdio_.h (vfprintf): New declaration.
67697         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67698         REPLACE_VFPRINTF.
67699
67700 2007-03-08  Bruno Haible  <bruno@clisp.org>
67701
67702         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67703
67704 2007-03-08  Bruno Haible  <bruno@clisp.org>
67705
67706         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67707         instead of 'expr' invocations.
67708         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67709         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67710         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67711         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67712         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67713         Suggested by Paul Eggert.
67714
67715 2007-03-08  Bruno Haible  <bruno@clisp.org>
67716
67717         * modules/fseterr-tests: New file.
67718         * tests/test-fseterr.c: New file.
67719
67720         * modules/fseterr: New file.
67721         * lib/fseterr.h: New file.
67722         * lib/fseterr.c: New file.
67723
67724 2007-03-08  Bruno Haible  <bruno@clisp.org>
67725
67726         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67727         * lib/getopt_.h: Likewise.
67728         * lib/mbswidth.h: Likewise.
67729         * lib/setenv.h: Likewise.
67730         * lib/vasnprintf.h: Likewise.
67731         * lib/vasprintf.h: Likewise.
67732         * lib/verror.h: Likewise.
67733         * lib/xsetenv.h: Likewise.
67734         * lib/xvasprintf.h: Likewise.
67735
67736 2007-03-08  Jim Meyering  <jim@meyering.net>
67737
67738         * users.txt: Add parted.
67739
67740         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67741
67742 2007-03-07  Bruno Haible  <bruno@clisp.org>
67743
67744         * m4/printf.m4: Make the shell script snippets copy&pastable.
67745
67746 2007-03-02  Bruno Haible  <bruno@clisp.org>
67747
67748         * lib/netinet_in_.h: New file.
67749         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67750         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67751         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67752         (Depends-on): Add absolute-header.
67753         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67754         into netinet/in.h.
67755
67756 2007-03-03  Bruno Haible  <bruno@clisp.org>
67757
67758         * lib/sys_select_.h: New file.
67759         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67760         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67761         * modules/sys_select (Files): Add lib/sys_select_.h.
67762         (Depends-on): Add absolute-header.
67763         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67764         into sys/select.h.
67765
67766 2007-03-02  Bruno Haible  <bruno@clisp.org>
67767
67768         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67769         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67770         values.
67771         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67772         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67773         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67774         * modules/sys_socket (Depends-on): Add absolute-header.
67775         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67776         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67777         (Include): Remove requirement of inclusion of <sys/types.h>.
67778
67779 2007-03-02  Bruno Haible  <bruno@clisp.org>
67780
67781         * lib/byteswap_.h (bswap_32): Fix formula.
67782
67783 2007-03-06  Bruno Haible  <bruno@clisp.org>
67784
67785         * modules/sprintf-posix-tests: New file.
67786         * tests/test-sprintf-posix.c: New file.
67787
67788         * modules/sprintf-posix: New file.
67789         * lib/sprintf.c: New file.
67790         * m4/sprintf-posix.m4: New file.
67791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67792         REPLACE_SPRINTF.
67793         * lib/stdio_.h (sprintf): New declaration.
67794         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67795         REPLACE_SPRINTF.
67796
67797 2007-03-06  Bruno Haible  <bruno@clisp.org>
67798
67799         * modules/vsprintf-posix-tests: New file.
67800         * tests/test-vsprintf-posix.c: New file.
67801         * tests/test-sprintf-posix.h: New file.
67802
67803         * modules/vsprintf-posix: New file.
67804         * lib/vsprintf.c: New file.
67805         * m4/vsprintf-posix.m4: New file.
67806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67807         REPLACE_VSPRINTF.
67808         * lib/stdio_.h (vsprintf): New declaration.
67809         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67810         REPLACE_VSPRINTF.
67811
67812 2007-03-06  Bruno Haible  <bruno@clisp.org>
67813
67814         * modules/vsnprintf (Depend-on): Remove minmax.
67815
67816 2007-03-06  Bruno Haible  <bruno@clisp.org>
67817
67818         * modules/snprintf-posix-tests: New file.
67819         * tests/test-snprintf-posix.c: New file.
67820
67821         * modules/snprintf-posix: New file.
67822         * m4/snprintf-posix.m4: New file.
67823         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67824         gl_FUNC_SNPRINTF.
67825         (gl_FUNC_SNPRINTF): Invoke it.
67826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67827         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67828         is set.
67829         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67830
67831 2007-03-06  Bruno Haible  <bruno@clisp.org>
67832
67833         * modules/vsnprintf-posix-tests: New file.
67834         * tests/test-vsnprintf-posix.c: New file.
67835         * tests/test-snprintf-posix.h: New file.
67836
67837         * modules/vsnprintf-posix: New file.
67838         * m4/vsnprintf-posix.m4: New file.
67839         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67840         gl_FUNC_VSNPRINTF.
67841         (gl_FUNC_VSNPRINTF): Invoke it.
67842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67843         * lib/stdio_.h (vsnprintf): Define as a replacement if
67844         REPLACE_VSNPRINTF is set.
67845         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67846
67847 2007-03-06  Bruno Haible  <bruno@clisp.org>
67848
67849         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67850         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67851
67852 2007-03-06  Bruno Haible  <bruno@clisp.org>
67853
67854         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67855         (asinl): Declare also if HAVE_DECL_ASINL is set.
67856         (atanl): Declare also if HAVE_DECL_ATANL is set.
67857         (ceill): Declare also if HAVE_DECL_CEILL is set.
67858         (cosl): Declare also if HAVE_DECL_COSL is set.
67859         (expl): Declare also if HAVE_DECL_EXPL is set.
67860         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67861         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67862         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67863         (logl): Declare also if HAVE_DECL_LOGL is set.
67864         (sinl): Declare also if HAVE_DECL_SINL is set.
67865         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67866         (tanl): Declare also if HAVE_DECL_TANL is set.
67867         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67869         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67870         declaration of frexpl, ldexpl.
67871         * modules/printf-frexpl (Depends-on): Add math.
67872         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67873
67874 2007-03-05  Bruno Haible  <bruno@clisp.org>
67875
67876         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67877         frexpl and ldexpl are declared.
67878         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67879
67880 2007-03-05  Bruno Haible  <bruno@clisp.org>
67881
67882         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67883         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67884
67885 2007-03-05  Bruno Haible  <bruno@clisp.org>
67886
67887         * lib/stdio_.h: Include <stddef.h>.
67888
67889 2007-03-05  Bruno Haible  <bruno@clisp.org>
67890
67891         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67892
67893 2007-03-05  Bruno Haible  <bruno@clisp.org>
67894
67895         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67896         NetBSD 4, from Ralf Wildenhues.
67897
67898 2007-03-04  Bruno Haible  <bruno@clisp.org>
67899
67900         * lib/vasprintf.h: Update #if logic for the case when the functions
67901         exist but are overridden.
67902
67903 2007-03-04  Bruno Haible  <bruno@clisp.org>
67904
67905         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67906         implementations: glibc-2.4 and MacOS X 10.3.
67907         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67908         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67909         * tests/test-vasprintf-posix.c (test_function): Likewise.
67910
67911 2007-03-04  Bruno Haible  <bruno@clisp.org>
67912
67913         * modules/vasprintf-posix-tests: New file.
67914         * tests/test-vasprintf-posix.c: New file.
67915
67916         * modules/vasprintf-posix: New file.
67917         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67918         defined.
67919         * m4/vasprintf-posix.m4: New file.
67920         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67921         gl_FUNC_VASPRINTF.
67922         (gl_FUNC_VASPRINTF): Invoke it.
67923         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67924         here.
67925         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67926
67927 2007-03-04  Bruno Haible  <bruno@clisp.org>
67928
67929         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67930         REPLACE_GETTIMEOFDAY.
67931         * modules/sys_time (Makefile.am): Likewise.
67932         * m4/sys_time_h.m4: Likewise.
67933         * m4/gettimeofday.m4: Likewise.
67934
67935 2007-03-04  Bruno Haible  <bruno@clisp.org>
67936
67937         * modules/vasnprintf-posix-tests: New file.
67938         * tests/test-vasnprintf-posix.c: New file.
67939
67940         * modules/vasnprintf-posix: New file.
67941         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67942         printf-frexpl.h.
67943         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67944         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67945         REPLACE_VASNPRINTF is defined.
67946         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67947         gl_FUNC_VASNPRINTF.
67948         (gl_FUNC_VASNPRINTF): Invoke it.
67949         * m4/vasnprintf-posix.m4: New file.
67950         * m4/printf.m4: New file.
67951
67952 2007-03-04  Bruno Haible  <bruno@clisp.org>
67953
67954         Compile progreloc.c only if --enable-relocatable is specified.
67955         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67956         if --enable-relocatable was specified.
67957         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67958         lib_SOURCES.
67959
67960 2007-03-04  Jim Meyering  <jim@meyering.net>
67961
67962         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67963         Use it consistently, rather than enumerating errno constants.
67964
67965 2007-03-04  Bruno Haible  <bruno@clisp.org>
67966
67967         * modules/xvasprintf-tests: New file.
67968         * tests/test-xvasprintf.c: New file.
67969
67970         * modules/vasprintf-tests: New file.
67971         * tests/test-vasprintf.c: New file.
67972
67973         * modules/vasnprintf-tests: New file.
67974         * tests/test-vasnprintf.c: New file.
67975
67976         * modules/vsnprintf-tests: New file.
67977         * tests/test-vsnprintf.c: New file.
67978
67979         * modules/snprintf-tests: New file.
67980         * tests/test-snprintf.c: New file.
67981
67982 2007-03-04  Bruno Haible  <bruno@clisp.org>
67983
67984         Compile relocatable.c only if --enable-relocatable is specified.
67985         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67986         gl_RELOCATABLE_LIBRARY.
67987         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67988         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67989         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67990         gl_RELOCATABLE_LIBRARY.
67991         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67992         (Makefile.am): Remove lib_SOURCES.
67993         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67994         gl_RELOCATABLE_LIBRARY.
67995         (Makefile.am): Remove lib_SOURCES.
67996         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67997         always.
67998         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67999         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68000
68001 2007-03-04  Bruno Haible  <bruno@clisp.org>
68002
68003         * modules/argmatch-tests: New file.
68004         * tests/test-argmatch.c: New file.
68005
68006         * tests/test-allocsa.c (main): Halve the number of loop runs.
68007
68008         * modules/alloca-opt-tests: New file.
68009         * tests/test-alloca-opt.c: New file.
68010
68011 2007-03-04  Jim Meyering  <jim@meyering.net>
68012
68013         Work around difference between Linux ACLs and Solaris 10 ZFS.
68014         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68015         for EINVAL.
68016
68017 2007-03-03  Bruno Haible  <bruno@clisp.org>
68018
68019         * modules/relocatable-prog (Depends-on): Add back progreloc's
68020         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68021
68022 2007-03-03  Bruno Haible  <bruno@clisp.org>
68023
68024         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68025         * modules/relocatable-lib: New file.
68026
68027 2007-03-03  Bruno Haible  <bruno@clisp.org>
68028
68029         * modules/relocatable-prog: Renamed from modules/relocatable.
68030         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68031
68032 2007-03-03  Bruno Haible  <bruno@clisp.org>
68033
68034         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68035         m4/relocatable-lib.m4.
68036         (Depends-on): Remove 'relocatable'.
68037         (configure.ac): Add gl_RELOCATABLE_NOP.
68038
68039 2007-03-03  Bruno Haible  <bruno@clisp.org>
68040
68041         * modules/relocatable-prog-wrapper: New file.
68042         * modules/relocatable (Depends-on): Add it. Remove all other
68043         dependencies except progname.
68044         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68045
68046         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68047         (gl_FUNC_STRERROR): Nop.
68048         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68049
68050         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68051         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68052
68053         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68054         (gl_FUNC_READLINK): Update.
68055
68056         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68057
68058 2007-03-03  Bruno Haible  <bruno@clisp.org>
68059
68060         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68061         * modules/xreadlink (Depends-on): Add unistd.
68062         * modules/xreadlink-with-size (Depends-on): Likewise.
68063
68064 2007-03-03  Bruno Haible  <bruno@clisp.org>
68065
68066         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68067         extracted from gt_FUNC_SETENV.
68068         (gt_FUNC_SETENV): Remove macro.
68069         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68070         remove gt_FUNC_SETENV.
68071
68072 2007-03-03  Bruno Haible  <bruno@clisp.org>
68073
68074         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68075         ENABLE_RELOCATABLE here.
68076         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68077
68078 2007-03-03  Bruno Haible  <bruno@clisp.org>
68079
68080         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68081         * tests/test-rbtreehash_list.c: Include progname.h.
68082         (main): Call set_program_name.
68083
68084         * modules/rbtree-oset-tests (Depends-on): Add progname.
68085         * tests/test-rbtree_oset.c: Include progname.h.
68086         (main): Call set_program_name.
68087
68088         * modules/rbtree-list-tests (Depends-on): Add progname.
68089         * tests/test-rbtree_list.c: Include progname.h.
68090         (main): Call set_program_name.
68091
68092         * modules/linked-list-tests (Depends-on): Add progname.
68093         * tests/test-linked_list.c: Include progname.h.
68094         (main): Call set_program_name.
68095
68096 2007-03-03  Bruno Haible  <bruno@clisp.org>
68097
68098         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68099         All uses of __restrict changed to _Restrict_.
68100         * lib/glob_.h (__restrict): Remove macro.
68101
68102 2007-03-02  Bruno Haible  <bruno@clisp.org>
68103
68104         * modules/gettext (configure.ac): Require gettext infrastructure
68105         from version 0.16.1.
68106
68107 2007-03-02  Bruno Haible  <bruno@clisp.org>
68108
68109         * modules/linkedhash-list-tests (Depends-on): Add progname.
68110         * tests/test-linkedhash_list.c: Include progname.h.
68111         (main): Call set_program_name.
68112
68113         * modules/carray-list-tests (Depends-on): Add progname.
68114         * tests/test-carray_list.c: Include progname.h.
68115         (main): Call set_program_name.
68116
68117         * modules/avltreehash-list-tests (Depends-on): Add progname.
68118         * tests/test-avltreehash_list.c: Include progname.h.
68119         (main): Call set_program_name.
68120
68121         * modules/avltree-oset-tests (Depends-on): Add progname.
68122         * tests/test-avltree_oset.c: Include progname.h.
68123         (main): Call set_program_name.
68124
68125         * modules/avltree-list-tests (Depends-on): Add progname.
68126         * tests/test-avltree_list.c: Include progname.h.
68127         (main): Call set_program_name.
68128
68129         * modules/array-oset-tests (Depends-on): Add progname.
68130         * tests/test-array_oset.c: Include progname.h.
68131         (main): Call set_program_name.
68132
68133         * modules/array-list-tests (Depends-on): Add progname.
68134         * tests/test-array_list.c: Include progname.h.
68135         (main): Call set_program_name.
68136
68137         * modules/argp-tests (Depends-on): Add progname.
68138         * tests/test-argp.c: Include argp.h first. Include progname.h.
68139         (main): Call set_program_name.
68140
68141 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68142
68143         * doc/gnulib-tool.texi (Initial import): Reword description of
68144         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68145         limited effect even if defined after the first system include.
68146
68147 2007-03-01  Bruno Haible  <bruno@clisp.org>
68148
68149         * build-aux/config.libpath: Update to libtool-1.5.22.
68150         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68151
68152 2007-03-01  Bruno Haible  <bruno@clisp.org>
68153
68154         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68155         foo_CFLAGS.
68156         Reported by Ralf Wildenhues.
68157
68158 2007-03-01  Bruno Haible  <bruno@clisp.org>
68159
68160         * build-aux/install-reloc: Remove object files left over by some
68161         compilers.
68162         Reported by Ralf Wildenhues.
68163
68164 2007-03-01  Bruno Haible  <bruno@clisp.org>
68165
68166         * build-aux/install-reloc: Break long lines.
68167
68168 2007-03-01  Bruno Haible  <bruno@clisp.org>
68169
68170         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68171         Reported by Ralf Wildenhues.
68172
68173 2007-03-01  Bruno Haible  <bruno@clisp.org>
68174
68175         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68176         include ordering constraints.
68177
68178 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68179
68180         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68181         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68182         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68183         as another example.
68184         * lib/time_.h: Fix misspelling.
68185         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68186         Require gl_HEADER_TIME_H_DEFAULTS.
68187         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68188         * m4/time_r.m4 (gl_TIME_R): Likewise.
68189         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68190
68191 2007-03-01  Bruno Haible  <bruno@clisp.org>
68192
68193         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68194         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68195
68196 2007-03-01  Jim Meyering  <jim@meyering.net>
68197
68198         * modules/xreadlink (Maintainer): Add my name.
68199         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68200
68201 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68202             Bruno Haible  <bruno@clisp.org>
68203
68204         * build-aux/install-reloc: Compile also c-ctype.c.
68205         * build-aux/relocatable.sh.in: New file.
68206         * doc/relocatable.texi: New file.
68207         * doc/relocatable-maint.texi: New file.
68208         * doc/gnulib.texi: Include relocatable-maint.texi.
68209         * lib/progreloc.c: Include unistd.h unconditionally.
68210         * lib/relocwrapper.c: Include unistd.h unconditionally.
68211         Include c-ctype.h.
68212         (add_dotbin): Use c_tolower.
68213         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68214         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68215         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68216         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68217         to m4/relocatable-lib.m4.
68218         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68219         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68220         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68221         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68222         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68223         * modules/relocatable: New file.
68224         * modules/relocatable-lib: New file.
68225         * modules/relocatable-script: New file.
68226
68227 2007-02-28  Bruno Haible  <bruno@clisp.org>
68228
68229         Import --enable-relocatable infrastructure.
68230         * build-aux/config.libpath: New file, from GNU gettext.
68231         * build-aux/install-reloc: New file, from GNU gettext.
68232         * build-aux/reloc-ldflags: New file, from GNU gettext.
68233         * lib/relocatable.h: New file, from GNU gettext.
68234         * lib/relocatable.c: New file, from GNU gettext.
68235         * lib/relocwrapper.c: New file, from GNU gettext.
68236         * m4/relocatable.m4: New file, from GNU gettext.
68237
68238 2007-02-28  Bruno Haible  <bruno@clisp.org>
68239
68240         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68241
68242         * modules/xreadlink: New file, from GNU gettext with modifications.
68243         * lib/xreadlink.c: New file, from GNU gettext.
68244         * lib/xreadlink.h: Add comments.
68245         (xreadlink): New declaration.
68246
68247         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68248         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68249         lib/xreadlink-with-size.c.
68250         (configure.ac): Remove gl_XREADLINK invocation.
68251         (Makefile.am): Augment lib_SOURCES.
68252         * m4/xreadlink.m4: Remove file.
68253         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68254         (xreadlink_with_size): Renamed from xreadink.
68255         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68256         * modules/canonicalize (Depends-on): Replace xreadlink with
68257         xreadlink-with-size.
68258         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68259
68260 2007-02-25  Jim Meyering  <jim@meyering.net>
68261
68262         * build-aux/announce-gen: When complaining about excess arguments,
68263         list them.
68264
68265 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68266
68267         * README: Document signed integer overflow situation more
68268         accurately.
68269
68270 2007-02-25  Bruno Haible  <bruno@clisp.org>
68271
68272         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68273         'a' or 'A' conversion.
68274
68275 2007-02-25  Bruno Haible  <bruno@clisp.org>
68276
68277         * modules/filename: Renamed from modules/pathname.
68278         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68279         lib/concatpath.c with lib/concat-filename.c.
68280         (Makefile.am): Update.
68281         (Include): Replace pathname.h with filename.h.
68282         * lib/filename.h: Renamed from lib/pathname.h.
68283         (concatenated_filename): Renamed from concatenated_pathname.
68284         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68285         (concatenated_filename): Renamed from concatenated_pathname.
68286         * lib/findprog.c: Include filename.h instead of pathname.h.
68287         (find_in_path): Update.
68288         * lib/javacomp.c: Include filename.h instead of pathname.h.
68289         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68290         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68291         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68292         is_oldgcj_14_13_usable, is_javac_usable): Update.
68293         * lib/javaexec.c: Include filename.h instead of pathname.h.
68294         (execute_java_class): Update.
68295         * modules/findprog: Update.
68296         * modules/javacomp: Update.
68297         * modules/javaexec: Update.
68298         * MODULES.html.sh (File system functions): Add 'filename', remove
68299         'pathname'.
68300
68301 2007-02-25  Bruno Haible  <bruno@clisp.org>
68302
68303         * modules/printf-frexpl-tests: New file.
68304         * tests/test-printf-frexpl.c: New file.
68305
68306         * modules/printf-frexpl: New file.
68307         * lib/printf-frexpl.h: New file.
68308         * lib/printf-frexpl.c: New file.
68309         * m4/printf-frexpl.m4: New file.
68310
68311 2007-02-25  Bruno Haible  <bruno@clisp.org>
68312
68313         * modules/printf-frexp-tests: New file.
68314         * tests/test-printf-frexp.c: New file.
68315
68316         * modules/printf-frexp: New file.
68317         * lib/printf-frexp.h: New file.
68318         * lib/printf-frexp.c: New file.
68319         * m4/printf-frexp.m4: New file.
68320
68321 2007-02-25  Bruno Haible  <bruno@clisp.org>
68322
68323         Assume automake >= 1.10 for the tests.
68324         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68325         * modules/arctwo-tests: Likewise.
68326         * modules/argp-tests: Likewise.
68327         * modules/avltree-list-tests: Likewise.
68328         * modules/avltree-oset-tests: Likewise.
68329         * modules/avltreehash-list-tests: Likewise.
68330         * modules/carray-list-tests: Likewise.
68331         * modules/crc-tests: Likewise.
68332         * modules/des-tests: Likewise.
68333         * modules/gc-arcfour-tests: Likewise.
68334         * modules/gc-arctwo-tests: Likewise.
68335         * modules/gc-des-tests: Likewise.
68336         * modules/gc-hmac-md5-tests: Likewise.
68337         * modules/gc-hmac-sha1-tests: Likewise.
68338         * modules/gc-md2-tests: Likewise.
68339         * modules/gc-md4-tests: Likewise.
68340         * modules/gc-md5-tests: Likewise.
68341         * modules/gc-pbkdf2-sha1-tests: Likewise.
68342         * modules/gc-rijndael-tests: Likewise.
68343         * modules/gc-sha1-tests: Likewise.
68344         * modules/gc-tests: Likewise.
68345         * modules/getaddrinfo-tests: Likewise.
68346         * modules/hmac-md5-tests: Likewise.
68347         * modules/hmac-sha1-tests: Likewise.
68348         * modules/linked-list-tests: Likewise.
68349         * modules/linkedhash-list-tests: Likewise.
68350         * modules/lock-tests: Likewise.
68351         * modules/md2-tests: Likewise.
68352         * modules/md4-tests: Likewise.
68353         * modules/md5-tests: Likewise.
68354         * modules/rbtree-list-tests: Likewise.
68355         * modules/rbtree-oset-tests: Likewise.
68356         * modules/rbtreehash-list-tests: Likewise.
68357         * modules/read-file-tests: Likewise.
68358         * modules/rijndael-tests: Likewise.
68359         * modules/stdint-tests: Likewise.
68360         * modules/tls-tests: Likewise.
68361
68362 2007-02-24  Bruno Haible  <bruno@clisp.org>
68363
68364         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68365         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68366         function; instead check whether isnan with a double argument links.
68367         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68368         function; instead check whether isnan with a 'long double' argument
68369         links.
68370         Reported by Eric Blake <ebb9@byu.net>.
68371
68372 2007-02-24  Bruno Haible  <bruno@clisp.org>
68373
68374         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68375         defined.
68376         * lib/isnanl.c: Remove all code. Just include isnan.c.
68377         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68378
68379 2007-02-25  Jim Meyering  <jim@meyering.net>
68380
68381         Avoid conflicting types for 'unsetenv' on FreeBSD.
68382         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68383         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68384         in stdlib.h.
68385
68386 2007-02-24  Bruno Haible  <bruno@clisp.org>
68387
68388         * modules/isnanl-nolibm-tests: New file.
68389         * tests/test-isnanl.c: New file.
68390
68391         * modules/isnanl-nolibm: New file.
68392         * lib/isnanl.h: New file.
68393         * lib/isnanl.c: New file.
68394         * m4/isnanl.m4: New file.
68395
68396 2007-02-24  Bruno Haible  <bruno@clisp.org>
68397
68398         * modules/isnan-nolibm-tests: New file.
68399         * tests/test-isnan.c: New file.
68400
68401         * modules/isnan-nolibm: New file.
68402         * lib/isnan.h: New file.
68403         * lib/isnan.c: New file.
68404         * m4/isnan.m4: New file.
68405
68406 2007-02-24  Bruno Haible  <bruno@clisp.org>
68407
68408         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68409         assume that an exponent fits in 20 bits.
68410
68411 2007-02-24  Jim Meyering  <jim@meyering.net>
68412
68413         * m4/regex.m4: Update the description of the configure-time option,
68414         --without-included-regex, to state accurately what the defaults are,
68415         and perhaps to give people an idea why using this option is risky.
68416
68417 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68418
68419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68420         loops on small arguments.  This attempts to avoid the problem
68421         Bruno Haible reported for AIX 4.3.2 in
68422         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68423
68424 2007-02-23  Bruno Haible  <bruno@clisp.org>
68425
68426         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68427         Needed for help2man.
68428
68429 2007-02-23  Karl Berry  <karl@gnu.org>
68430
68431         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68432         exists, foo.h should be cvs-ignored, not committed.
68433
68434 2007-02-23  Eric Blake  <ebb9@byu.net>
68435
68436         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68437         * lib/stat-time.h (includes): Likewise.
68438         * lib/utimecmp.c (includes): Likewise.
68439         * lib/utimens.h (includes): Likewise.
68440         * lib/getdate.y (includes): Also include "timespec.h" for use
68441         internal to the module.
68442         * modules/utimens (Depends-on): Revert yesterday's patch.
68443         * modules/nanosleep (Depends-on): Add missing dependency.
68444
68445 2007-02-22  Bruno Haible  <bruno@clisp.org>
68446
68447         * lib/glob.c: Don't include getlogin_r.h.
68448
68449 2007-02-22  Jim Meyering  <jim@meyering.net>
68450
68451         * modules/utimens (Depends-on): Add timespec, required for
68452         utimens.h's inclusion of timespec.h.
68453
68454 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68455
68456         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68457         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68458         Schwab in
68459         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68460         I'll try to think of a better way to fix the Solaris problem.
68461
68462         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68463         like glibc; on Solaris 10, it fails with errno == EINVAL.
68464         POSIX says the behavior is unspecified if the first argument is NULL,
68465         so play it safe and never pass NULL to the system getcwd.
68466
68467 2007-02-21  Jim Meyering  <jim@meyering.net>
68468
68469         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68470         of gettimeofday.  It would conflict with the one now always
68471         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68472         an IRIX 6.5 build failure.
68473
68474 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68475
68476         Minor fixups to port to Solaris 10 with Sun C 5.8.
68477         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68478         * modules/getcwd (Depends-on): Add dirfd.
68479         * lib/putenv.c (putenv): #undef it.
68480         (rpl_putenv): New decl.
68481         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68482
68483 2007-02-20  Bruno Haible  <bruno@clisp.org>
68484
68485         * modules/stdio-tests: New file.
68486         * tests/test-stdio.c: New file.
68487
68488         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68489         (Depends-on): Add stdio.
68490         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68491         (Include): Use <stdio.h> instead of vsnprintf.h.
68492         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68493         HAVE_DECL_VSNPRINTF.
68494         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68495
68496         * modules/snprintf (Files): Remove lib/snprintf.h.
68497         (Depends-on): Add stdio.
68498         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68499         (Include): Use <stdio.h> instead of snprintf.h.
68500         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68501         HAVE_DECL_SNPRINTF.
68502         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68503         * lib/getaddrinfo.c: Likewise.
68504
68505         * modules/stdio: New file.
68506         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68507         * lib/snprintf.h: Remove file.
68508         * lib/vsnprintf.h: Remove file.
68509         * lib/.cppi-disable: Remove snprintf.h.
68510         * m4/stdio_h.m4: New file.
68511         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68512
68513 2007-02-20  Jim Meyering  <jim@meyering.net>
68514
68515         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68516         used by e.g., mingw.  From Bruno Haible.
68517
68518 2007-02-19  Bruno Haible  <bruno@clisp.org>
68519
68520         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68521         warnings.
68522         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68523
68524 2007-02-19  Bruno Haible  <bruno@clisp.org>
68525
68526         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68527         from mingw users.
68528
68529 2007-02-19  Bruno Haible  <bruno@clisp.org>
68530
68531         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68532         warnings.
68533         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68534
68535 2007-02-19  Jim Meyering  <jim@meyering.net>
68536
68537         Don't use FD after a successful "fdopendir (fd)".
68538         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68539         Reset it by calling dirfd on the just-obtained DIR*.
68540
68541         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68542         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68543
68544 2007-02-18  Bruno Haible  <bruno@clisp.org>
68545
68546         * lib/readlink.c: Include <unistd.h>.
68547         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68548         HAVE_READLINK.
68549         * modules/readlink (Depends-on): Add unistd.
68550         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68551         (Include): Add <unistd.h>.
68552
68553         * lib/getlogin_r.h: Remove file.
68554         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68555         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68556         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68557         HAVE_DECL_GETLOGIN_R.
68558         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68559         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68560         (Include): Use <unistd.h> instead of getlogin_r.h.
68561
68562         * lib/getcwd.h: Remove file.
68563         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68564         * lib/xgetcwd.c: Likewise.
68565         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68566         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68567         * modules/getcwd (Files): Remove lib/getcwd.h.
68568         (Depends-on): Add unistd.
68569         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68570         (Include): Use <unistd.h> instad of getcwd.h.
68571
68572         * lib/ftruncate.c: Include <unistd.h> first.
68573         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68574         Set HAVE_FTRUNCATE.
68575         * modules/ftruncate (Depends-on): Add unistd.
68576         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68577
68578         * lib/fchdir.c: Include <unistd.h> first.
68579         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68581         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68582         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68583         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68584
68585         * lib/dup2.c: Include <unistd.h> first.
68586         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68587         HAVE_DUP2.
68588         * modules/dup2 (Depends-on): Add unistd.
68589         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68590
68591         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68592         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68593         REPLACE_CHOWN. Don't define chown as a macro here.
68594         * modules/chown (Depends-on): Add unistd.
68595         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68596
68597         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68598         Add definition for GL_LINK_WARNING.
68599         (chown, dup2): New declarations.
68600         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68601         link warning.
68602         (ftruncate): New declaration.
68603         (getcwd): New declaration, taken from old getcwd.h.
68604         (getlogin_r): New declaration, taken from old getlogin_r.h.
68605         (readlink): New declaration.
68606         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68607         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68608         (gl_PREREQ_UNISTD): Remove macro.
68609         (gl_UNISTD_MODULE_INDICATOR): New macro.
68610         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68611         many new variables. Don't set UNISTD_H.
68612         * modules/unistd (Description): Change.
68613         (Depends-on): Add link-warning.
68614         (configure.ac): Update.
68615         (Makefile.am): Create unistd.h always. Substitute many new variables
68616         into it.
68617
68618 2007-02-18  Bruno Haible  <bruno@clisp.org>
68619
68620         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68621         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68622         HAVE_GETSUBOPT.
68623         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68624         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68625         * lib/getsubopt.h: Remove file.
68626         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68627         (Depends-on): Add stdlib.
68628         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68629         (Includes): Use <stdlib.h> instead of getsubopt.h.
68630         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68631         Set HAVE_GETSUBOPT.
68632         * lib/getsubopt.c: Don't include getsubopt.h.
68633
68634 2007-02-18  Bruno Haible  <bruno@clisp.org>
68635
68636         * modules/fchdir (Depends-on): Add dup2.
68637
68638 2007-02-18  Bruno Haible  <bruno@clisp.org>
68639
68640         * lib/stdlib_.h: Handle glibc's special invocation convention
68641         specially.
68642
68643 2007-02-18  Bruno Haible  <bruno@clisp.org>
68644
68645         * modules/stdlib-tests: New file.
68646         * tests/test-stdlib.c: New file.
68647
68648         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68649         (Depends-on): Add stdlib.
68650         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68651         (Includes): Use <stdlib.h> instead of mkstemp.h.
68652         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68653         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68654         * lib/mkstemp.c: Don't include mkstemp.h.
68655         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68656         * lib/stdlib--.h: Don't include mkstemp.h.
68657
68658         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68659         (Depends-on): Add stdlib.
68660         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68661         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68662         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68663         HAVE_MKDTEMP.
68664         * lib/mkdtemp.c: Don't include mkdtemp.h.
68665         * lib/clean-temp.c: Don't include mkdtemp.h.
68666
68667         * modules/exit (Files): Remove lib/exit.h.
68668         (Depends-on): Add stdlib.
68669         (Makefile.am): Remove lib_SOURCES.
68670         (Include): Use <stdlib.h> instead of exit.h.
68671         * lib/argmatch.c: Don't include exit.h.
68672         * lib/execute.c: Likewise.
68673         * lib/pagealign_alloc.c: Likewise.
68674         * lib/pipe.c: Likewise.
68675         * lib/wait-process.c: Likewise.
68676         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68677         * lib/exitfail.c: Likewise.
68678         * lib/savewd.c: Likewise.
68679         * lib/xsetenv.c: Likewise.
68680
68681         * modules/stdlib: New file.
68682         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68683         and extra comments about mkstemp().
68684         * lib/exit.h: Remove file.
68685         * lib/mkdtemp.h: Remove file.
68686         * lib/mkstemp.h: Remove file.
68687         * m4/stdlib_h.m4: New file.
68688         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68689
68690 2007-02-18  Bruno Haible  <bruno@clisp.org>
68691
68692         * modules/math-tests: New file.
68693         * tests/test-math.c: New file.
68694
68695         * modules/math: New file.
68696         * modules/mathl (Files): Remove lib/mathl.h.
68697         (Depends-on): Add math.
68698         (Makefile.am): Don't mention mathl.h.
68699         (Include): Use <math.h> instead of mathl.h.
68700         * lib/math_.h: New file.
68701         * lib/mathl.h: Remove file.
68702         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68703         mathl.h.
68704         * lib/asinl.c: Likewise.
68705         * lib/atanl.c: Likewise.
68706         * lib/ceill.c: Likewise.
68707         * lib/cosl.c: Likewise.
68708         * lib/expl.c: Likewise.
68709         * lib/floorl.c: Likewise.
68710         * lib/frexpl.c: Likewise.
68711         * lib/ldexpl.c: Likewise.
68712         * lib/logl.c: Likewise.
68713         * lib/sincosl.c: Likewise.
68714         * lib/sinl.c: Likewise.
68715         * lib/sqrtl.c: Likewise.
68716         * lib/tanl.c: Likewise.
68717         * lib/trigl.c: Likewise.
68718         * m4/math_h.m4: New file.
68719         * MODULES.html.sh (Mathematics): Add math.
68720
68721 2007-02-17  Bruno Haible  <bruno@clisp.org>
68722
68723         * modules/wctype-tests: New file.
68724         * tests/test-wctype.c: New file.
68725
68726         * modules/wchar-tests: New file.
68727         * tests/test-wchar.c: New file.
68728
68729         * modules/unistd-tests: New file.
68730         * tests/test-unistd.c: New file.
68731
68732         * modules/time-tests: New file.
68733         * tests/test-time.c: New file.
68734
68735         * modules/sysexits-tests: New file.
68736         * tests/test-sysexits.c: New file.
68737
68738         * modules/sys_time-tests: New file.
68739         * tests/test-sys_time.c: New file.
68740
68741         * modules/sys_stat-tests: New file.
68742         * tests/test-sys_stat.c: New file.
68743
68744         * modules/sys_socket-tests: New file.
68745         * tests/test-sys_socket.c: New file.
68746
68747         * modules/sys_select-tests: New file.
68748         * tests/test-sys_select.c: New file.
68749
68750         * modules/string-tests: New file.
68751         * tests/test-string.c: New file.
68752
68753         * modules/stdbool-tests: New file.
68754         * tests/test-stdbool.c: New file.
68755
68756         * modules/netinet_in-tests: New file.
68757         * tests/test-netinet_in.c: New file.
68758
68759         * modules/inttypes-tests: New file.
68760         * tests/test-inttypes.c: New file.
68761
68762         * modules/fcntl-tests: New file.
68763         * tests/test-fcntl.c: New file.
68764
68765         * modules/byteswap-tests: New file.
68766         * tests/test-byteswap.c: New file.
68767
68768         * modules/arpa_inet-tests: New file.
68769         * tests/test-arpa_inet.c: New file.
68770
68771 2007-02-17  Bruno Haible  <bruno@clisp.org>
68772
68773         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68774         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68775         if the corresponding module is not enabled. Emit link warnings if
68776         the function is used nevertheless.
68777         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68778         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68779         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68780         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68781         * modules/inttypes (Depends-on): Add link-warning.
68782         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68783         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68784         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68785         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68786         * modules/imaxdiv (configure.ac): Likewise.
68787         * modules/strtoimax (configure.ac): Likewise.
68788         * modules/strtoumax (configure.ac): Likewise.
68789
68790 2007-02-17  Bruno Haible  <bruno@clisp.org>
68791
68792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68793         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68794         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68795         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68796
68797 2007-02-17  Bruno Haible  <bruno@clisp.org>
68798
68799         * modules/link-warning: New file.
68800         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68801         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68802         * modules/string (Depends-on): Add link-warning.
68803         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68804         string.h.
68805         * MODULES.html.sh (Support for building libraries and executables): Add
68806         link-warning.
68807
68808 2007-02-17  Bruno Haible  <bruno@clisp.org>
68809
68810         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68811         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68812         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68813         long lines.
68814
68815 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68816             Bruno Haible  <bruno@clisp.org>
68817
68818         * modules/tmpfile: New file.
68819         * lib/tmpfile.c: New file.
68820         * m4/tmpfile.m4: New file.
68821         * MODULES.html.sh (func_all_modules): New section "Input/output".
68822
68823 2007-02-15  Bruno Haible  <bruno@clisp.org>
68824
68825         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68826         (supports_delete_on_close): New function.
68827         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68828
68829 2007-02-14  Bruno Haible  <bruno@clisp.org>
68830
68831         * modules/mbspcasecmp-tests: New file.
68832         * tests/test-mbspcasecmp.sh: New file.
68833         * tests/test-mbspcasecmp.c: New file.
68834
68835         New module mbspcasecmp.
68836         * modules/mbspcasecmp: New file.
68837         * lib/mbspcasecmp.c: New file.
68838         * lib/string_.h (strncasecmp): Change warning message.
68839         (mbspcasecmp): New declaration.
68840         * m4/mbspcasecmp.m4: New file.
68841         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68842         GNULIB_MBSPCASECMP.
68843         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68844         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68845
68846 2007-02-14  Bruno Haible  <bruno@clisp.org>
68847
68848         * modules/mbsncasecmp-tests: New file.
68849         * tests/test-mbsncasecmp.sh: New file.
68850         * tests/test-mbsncasecmp.c: New file.
68851
68852         New module mbsncasecmp.
68853         * modules/mbsncasecmp: New file.
68854         * lib/mbsncasecmp.c: New file.
68855         * lib/string_.h (mbsncasecmp): New declaration.
68856         * m4/mbsncasecmp.m4: New file.
68857         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68858         GNULIB_MBSNCASECMP.
68859         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68860         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68861
68862 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68863
68864         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68865         Verify that it doesn't overlap with our flags.
68866         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68867         do not have the desired effect in multibyte locales; instead, use
68868         mbscasecmp.
68869         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68870         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68871         we don't require GNU fnmatch ourselves (if our users require it, they
68872         should do so explicitly).
68873
68874         Fix regex code so it doesn't rely on strcasecmp.
68875         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68876         Otherwise, include gnulib's langinfo.h.
68877         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68878         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68879         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68880         * modules/regex (FILES): Remove m4/codeset.m4.
68881         (Depends-on): Add localcharset.  Remove strcase.
68882
68883 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68884
68885         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68886         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68887
68888 2007-02-13  Bruno Haible  <bruno@clisp.org>
68889
68890         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68891         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68892
68893 2007-02-12  Bruno Haible  <bruno@clisp.org>
68894
68895         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68896         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68897         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68898         time warning rather than a link error.
68899
68900 2007-02-12  Bruno Haible  <bruno@clisp.org>
68901
68902         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68903         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68904         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68905
68906 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68907
68908         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68909         args, not 2.
68910
68911 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68912
68913         New module 'time', so that apps can include <time.h> as per
68914         POSIX and GNU instead of separate include files like time_r.h
68915         and timegm.h.  This implementation tries out a simpler approach
68916         for replacing decls in standard include files (as compared to
68917         the string module), somewhat as an experiment.
68918
68919         * config/srclist.txt: Comment out mktime.c for now.
68920         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68921         since it doesn't apply any more.  Use generic wording instead.
68922         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68923         'time'.
68924         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68925         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68926         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68927         Don't include <sys/types.h>; no longer needed since we assume C89.
68928         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68929         * lib/strftime.c: Likewise.
68930         * lib/time_r.c: Likewise.
68931         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68932         * lib/nanosleep.c: Include <time.h> first, to check interface.
68933         * lib/strptime.c: Likewise.
68934         * lib/time_r.c: Likewise.
68935         * lib/timegm.c: Likewise.
68936         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68937         needed.
68938         * lib/timegm.c: Don't include timegm.h; no longer needed.
68939         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68940         time.h now handles any problems in that area.
68941         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68942         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68943         that time.h defines struct timespec.
68944         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68945         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68946         handles that.
68947         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68948         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68949         needed.  Set REPLACE_LOCALTIME.
68950         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68951         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68952         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68953         nanosleep; time_h.m4 now does that.  Don't require
68954         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68955         module handles this now.
68956         * modules/getdate (Depends-on): Remove timespec.  Add time.
68957         * modules/nanosleep (Depends-on): Likewise.
68958         * modules/stat-time (Depends-on): Likewise.
68959         * modules/nanosleep (Include): Include time.h, not timespec.h.
68960         * modules/strptime (Files): Remove lib/strptime.h.
68961         (Depends-on): Add extensions, time.
68962         (Include): Include time.h, not strptime.h.
68963         * modules/time_r (Files): Remove lib/time_r.h.
68964         (Depends-on): Add time.
68965         (Include): Include time.h, not time_r.h.
68966         * modules/timegm: Likewise.
68967         * modules/timespec (Description): Now does timespec-related decls
68968         of our own, instead of struct timespec itself.
68969         (Depends-on): Add time; remove extensions.
68970         (Maintainer): Add self.
68971         * modules/utimecmp (Depends-on): Add time; remove timespec.
68972         * modules/utimens (Depends-on): Likewise.
68973         * modules/xnanosleep (Depends-on): Likewise.
68974
68975 2007-02-11  Bruno Haible  <bruno@clisp.org>
68976
68977         * lib/c-strstr.c: Include allocsa.h.
68978         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68979         * lib/c-strcasestr.c: Include allocsa.h.
68980         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68981         * lib/strcasestr.c: Include allocsa.h.
68982         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68983         * lib/mbsstr.c: Include allocsa.h.
68984         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68985         allocsa/freesa instead of malloc/free.
68986         * lib/mbscasestr.c: Include allocsa.h.
68987         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68988         allocsa/freesa instead of malloc/free.
68989         * modules/c-strstr (Depends-on): Add allocsa.
68990         * modules/c-strcasestr (Depends-on): Likewise.
68991         * modules/strcasestr (Depends-on): Likewise.
68992         * modules/mbsstr (Depends-on): Likewise.
68993         * modules/mbscasestr (Depends-on): Likewise.
68994
68995 2007-02-11  Bruno Haible  <bruno@clisp.org>
68996
68997         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68998
68999         * modules/mbsspn-tests: New file.
69000         * tests/test-mbsspn.sh: New file.
69001         * tests/test-mbsspn.c: New file.
69002
69003 2007-02-11  Bruno Haible  <bruno@clisp.org>
69004
69005         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69006
69007         * modules/mbspbrk-tests: New file.
69008         * tests/test-mbspbrk.sh: New file.
69009         * tests/test-mbspbrk.c: New file.
69010
69011 2007-02-11  Bruno Haible  <bruno@clisp.org>
69012
69013         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69014         unneeded cast.
69015
69016         * modules/mbscspn-tests: New file.
69017         * tests/test-mbscspn.sh: New file.
69018         * tests/test-mbscspn.c: New file.
69019
69020 2007-02-11  Bruno Haible  <bruno@clisp.org>
69021
69022         * modules/mbscasecmp-tests: New file.
69023         * tests/test-mbscasecmp.sh: New file.
69024         * tests/test-mbscasecmp.c: New file.
69025
69026 2007-02-11  Bruno Haible  <bruno@clisp.org>
69027
69028         Ensure O(n) worst-case complexity of mbscasestr.
69029         * lib/mbscasestr.c: Include stdbool.h.
69030         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69031         functions.
69032         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69033         the bookkeeping indicates that it's worth it.
69034         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69035
69036         * modules/mbscasestr-tests: New file.
69037         * tests/test-mbscasestr1.c: New file.
69038         * tests/test-mbscasestr2.sh: New file.
69039         * tests/test-mbscasestr2.c: New file.
69040         * tests/test-mbscasestr3.sh: New file.
69041         * tests/test-mbscasestr3.c: New file.
69042         * tests/test-mbscasestr4.sh: New file.
69043         * tests/test-mbscasestr4.c: New file.
69044         * m4/locale-tr.m4: New file.
69045
69046 2007-02-11  Bruno Haible  <bruno@clisp.org>
69047
69048         Ensure O(n) worst-case complexity of mbsstr.
69049         * lib/mbsstr.c: Include stdbool.h.
69050         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69051         functions.
69052         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69053         bookkeeping indicates that it's worth it.
69054         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69055
69056         * modules/mbsstr-tests: New file.
69057         * tests/test-mbsstr1.c: New file.
69058         * tests/test-mbsstr2.sh: New file.
69059         * tests/test-mbsstr2.c: New file.
69060         * tests/test-mbsstr3.sh: New file.
69061         * tests/test-mbsstr3.c: New file.
69062         * m4/locale-fr.m4: New file.
69063
69064 2007-02-11  Bruno Haible  <bruno@clisp.org>
69065
69066         * lib/mbsrchr.c (mbsrchr): Fix bug.
69067
69068         * modules/mbsrchr-tests: New file.
69069         * tests/test-mbsrchr.sh: New file.
69070         * tests/test-mbsrchr.c: New file.
69071
69072 2007-02-11  Bruno Haible  <bruno@clisp.org>
69073
69074         * lib/mbschr.c (mbschr): Fix bug.
69075
69076         * modules/mbschr-tests: New file.
69077         * tests/test-mbschr.sh: New file.
69078         * tests/test-mbschr.c: New file.
69079         * m4/locale-zh.m4: New file.
69080
69081 2007-02-11  Bruno Haible  <bruno@clisp.org>
69082
69083         Support for copying multibyte string iterators.
69084         * lib/mbiter.h: Include <string.h>.
69085         (mbiter_multi_copy): New function.
69086         (mbi_copy): New macro.
69087         * lib/mbuiter.h: Include <string.h>.
69088         (mbuiter_multi_copy): New function.
69089         (mbui_copy): New macro.
69090
69091 2007-02-11  Bruno Haible  <bruno@clisp.org>
69092
69093         New module mbslen.
69094         * modules/mbslen: New file.
69095         * lib/mbslen.c: New file.
69096         * lib/string_.h (mbslen): New declaration.
69097         * m4/mbslen.m4: New file.
69098         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69099         GNULIB_MBSLEN.
69100         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69101         * MODULES.html.sh (Internationalization functions): Add mbslen.
69102
69103 2007-02-11  Bruno Haible  <bruno@clisp.org>
69104
69105         Ensure O(n) worst-case complexity of strcasestr substitute.
69106         * lib/strcasestr.c: Include stdbool.h.
69107         (knuth_morris_pratt): New function.
69108         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69109         bookkeeping indicates that it's worth it.
69110         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69111
69112         * modules/strcasestr-tests: New file.
69113         * tests/test-strcasestr.c: New file.
69114
69115 2007-02-11  Bruno Haible  <bruno@clisp.org>
69116
69117         Ensure O(n) worst-case complexity of c_strcasestr.
69118         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69119         (knuth_morris_pratt): New function.
69120         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69121         the bookkeeping indicates that it's worth it.
69122         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69123
69124         * modules/c-strcasestr-tests: New file.
69125         * tests/test-c-strcasestr.c: New file.
69126
69127 2007-02-11  Bruno Haible  <bruno@clisp.org>
69128
69129         Ensure O(n) worst-case complexity of c_strstr.
69130         * lib/c-strstr.c: Include stdbool.h, string.h.
69131         (knuth_morris_pratt): New function.
69132         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69133         bookkeeping indicates that it's worth it.
69134         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69135
69136         * lib/c-strstr.c: Complete rewrite for maintainability.
69137
69138         * modules/c-strstr-tests: New file.
69139         * tests/test-c-strstr.c: New file.
69140
69141 2007-02-11  Bruno Haible  <bruno@clisp.org>
69142
69143         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69144         5.2.1 and earlier, whereby \055 was treated just like the range
69145         delimiter '-'.
69146         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69147
69148 2007-02-08  Bruno Haible  <bruno@clisp.org>
69149
69150         * modules/regex (Depends-on): Add stdbool.
69151         Reported by Dalibor Topic <robilad@kaffe.org>.
69152
69153 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69154
69155         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69156         Prefer returning from main to exiting from it.
69157         Remove unnecessary parens after sizeof.
69158
69159 2007-02-05  Bruno Haible  <bruno@clisp.org>
69160
69161         New module mbssep.
69162         * modules/mbssep: New file.
69163         * lib/mbssep.c: New file.
69164         * lib/string_.h (strsep): Add a conditional link warning.
69165         (mbssep): New declaration.
69166         * m4/mbssep.m4: New file.
69167         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69168         GNULIB_MBSSEP.
69169         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69170         * MODULES.html.sh (Internationalization functions): Add mbssep.
69171
69172 2007-02-05  Bruno Haible  <bruno@clisp.org>
69173
69174         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69175         Optimize search in case of 1 delimiter.
69176
69177 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69178
69179         * lib/acl.h: Include sys/types.h before sys/acl.h.
69180
69181 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69182
69183         Merge upstream fix for glibc bugzilla #3957:
69184
69185         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69186
69187         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69188         bit for RE_HAT_LISTS_NOT_NEWLINE.
69189         (build_charclass_op): Remove bogus comment.
69190
69191 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69192
69193         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69194
69195 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69196
69197         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69198         * lib/memmem.c [!defined _LIBC]: Include config.h.
69199
69200 2007-02-04  Bruno Haible  <bruno@clisp.org>
69201
69202         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69203         warning message.
69204
69205 2007-02-04  Bruno Haible  <bruno@clisp.org>
69206
69207         New module mbstok_r.
69208         * modules/mbstok_r: New file.
69209         * lib/mbstok_r.c: New file.
69210         * lib/string_.h (strtok_r): Change argument names to match the
69211         comments. Add a conditional link warning.
69212         (mbstok_r): New declaration.
69213         * m4/mbstok_r.m4: New file.
69214         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69215         GNULIB_MBSTOK_R.
69216         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69217         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69218
69219 2007-02-04  Bruno Haible  <bruno@clisp.org>
69220
69221         New module mbsspn.
69222         * modules/mbsspn: New file.
69223         * lib/mbsspn.c: New file.
69224         * lib/string_.h (strspn): Add a conditional link warning.
69225         (mbsspn): New declaration.
69226         * m4/mbsspn.m4: New file.
69227         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69228         GNULIB_MBSSPN.
69229         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69230         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69231
69232 2007-02-04  Bruno Haible  <bruno@clisp.org>
69233
69234         New module mbspbrk.
69235         * modules/mbspbrk: New file.
69236         * lib/mbspbrk.c: New file.
69237         * lib/string_.h (strpbrk): Add a conditional link warning.
69238         (mbspbrk): New declaration.
69239         * m4/mbspbrk.m4: New file.
69240         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69241         GNULIB_MBSPBRK.
69242         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69243         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69244
69245 2007-02-04  Bruno Haible  <bruno@clisp.org>
69246
69247         New module mbscspn.
69248         * modules/mbscspn: New file.
69249         * lib/mbscspn.c: New file.
69250         * lib/string_.h (strcspn): Add a conditional link warning.
69251         (mbscspn): New declaration.
69252         * m4/mbscspn.m4: New file.
69253         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69254         GNULIB_MBSCSPN.
69255         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69256         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69257
69258 2007-02-04  Bruno Haible  <bruno@clisp.org>
69259
69260         New module mbscasestr, reduced goal of strcasestr.
69261         * modules/mbscasestr: New file.
69262         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69263         (mbscasestr): Renamed from strcasestr.
69264         * lib/strcasestr.c: Don't include mbuiter.h.
69265         (strcasestr): Remove support for multibyte locales.
69266         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69267         Change the conditional link warning.
69268         (mbscasestr): New declaration.
69269         * m4/mbscasestr.m4: New file.
69270         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69271         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69272         REPLACE_STRCASESTR.
69273         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69274         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69275         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69276         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69277         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69278         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69279         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69280         (Depends-on): Remove mbuiter.
69281         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69282
69283 2007-02-04  Bruno Haible  <bruno@clisp.org>
69284
69285         Simplify handling of strncasecmp.
69286         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69287         the conditional link warning.
69288         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69289         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69290         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69291         * modules/strcase (configure.ac): Don't invoke
69292         gl_STRING_MODULE_INDICATOR.
69293         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69294
69295 2007-02-04  Bruno Haible  <bruno@clisp.org>
69296
69297         New module mbscasecmp, reduced goal of strcasecmp.
69298         * modules/mbscasecmp: New file.
69299         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69300         (mbscasecmp): Renamed from strcasecmp.
69301         * lib/strcasecmp.c: Don't include mbuiter.h.
69302         (strcasecmp): Remove support for multibyte locales.
69303         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69304         Change the conditional link warning.
69305         (mbscasecmp): New declaration.
69306         * m4/mbscasecmp.m4: New file.
69307         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69308         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69309         REPLACE_STRCASECMP.
69310         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69312         GNULIB_MBSCASECMP.
69313         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69314         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69315         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69316         (Depends-on): Remove mbuiter.
69317         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69318
69319 2007-02-04  Bruno Haible  <bruno@clisp.org>
69320
69321         New module mbsstr. Remove module strstr.
69322         * modules/mbsstr: New file.
69323         * modules/strstr: Remove file.
69324         * lib/mbsstr.c: Renamed from lib/strstr.c.
69325         (mbsstr): Renamed from strstr.
69326         * lib/string_.h (strstr): Remove declaration. Change the conditional
69327         link warning.
69328         (mbsstr): New declaration.
69329         * m4/mbsstr.m4: New file.
69330         * m4/strstr.m4: Remove file.
69331         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69332         REPLACE_STRSTR.
69333         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69334         Don't initialize GNULIB_STRSTR.
69335         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69336         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69337         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69338         (Support for systems lacking ANSI C 89): Remove strstr.
69339
69340 2007-02-04  Bruno Haible  <bruno@clisp.org>
69341
69342         New module mbsrchr.
69343         * modules/mbsrchr: New file.
69344         * lib/mbsrchr.c: New file.
69345         * lib/string_.h (strrchr): Add a conditional link warning.
69346         (mbsrchr): New declaration.
69347         * m4/mbsrchr.m4: New file.
69348         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69349         GNULIB_MBSRCHR.
69350         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69351         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69352
69353 2007-02-04  Bruno Haible  <bruno@clisp.org>
69354
69355         New module mbschr.
69356         * modules/mbschr: New file.
69357         * lib/mbschr.c: New file.
69358         * lib/string_.h (strchr): Add a conditional link warning.
69359         (mbschr): New declaration.
69360         * m4/mbschr.m4: New file.
69361         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69362         GNULIB_MBSCHR.
69363         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69364         * MODULES.html.sh (Internationalization functions): Add mbschr.
69365
69366 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69367
69368         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69369
69370         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69371
69372 2007-02-04  Bruno Haible  <bruno@clisp.org>
69373
69374         New module description section 'configure.ac-early'.
69375         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69376         (func_get_autoconf_early_snippet): New function.
69377         (func_import, func_create_testdir): Use it. Remove special cases for
69378         modules 'extensions' and 'lock'.
69379         * modules/extensions (configure.ac-early): Require
69380         gl_USE_SYSTEM_EXTENSIONS.
69381         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69382
69383 2007-02-04  Bruno Haible  <bruno@clisp.org>
69384
69385         Make use of gcj-4.3's -fsource and -ftarget option.
69386         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69387         and if so try the options -fsource and -ftarget.
69388         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69389         source_version, ftarget_option, target_version arguments.
69390         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69391         (is_envjavac_oldgcj_14_14_usable): Renamed from
69392         is_envjavac_gcj_14_14_usable.
69393         (is_envjavac_oldgcj_14_13_usable): Renamed from
69394         is_envjavac_gcj_14_13_usable.
69395         (is_gcj_present): Update.
69396         (is_gcj_43, is_gcj43_usable): New functions.
69397         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69398         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69399         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69400         try the options -fsource and -ftarget.
69401
69402 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69403
69404         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69405         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69406         larger value.
69407
69408 2007-02-03  Jim Meyering  <jim@meyering.net>
69409
69410         Give tools a better chance to allocate space for very large buffers.
69411         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69412
69413         Make pwd and readlink work also when run with an unreadable parent dir
69414         on systems with openat support.
69415         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69416         provided getcwd function, even when we have openat support.
69417         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69418
69419 2007-02-02  Bruno Haible  <bruno@clisp.org>
69420
69421         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69422         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69423         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69424         portability problems if one of these functions is only used on specific
69425         platforms.
69426         Reported by Paul Eggert.
69427
69428 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69429
69430         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69431         is causing more trouble than it's curing.
69432         * lib/regex_internal.h (__mempcpy): Remove.
69433         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69434         (and make the code a tad smaller to boot).
69435         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69436
69437 2007-02-02  Jim Meyering  <jim@meyering.net>
69438
69439         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69440         section, not in the Makefile.am: one.
69441
69442 2007-02-02  Eric Blake  <ebb9@byu.net>
69443
69444         * lib/strchrnul.c: Always include config.h first.
69445
69446         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69447         gnulib strstr is not necessary here.
69448
69449 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69450
69451         * m4/socklen.m4: Fix typo.
69452
69453 2007-02-02  Eric Blake  <ebb9@byu.net>
69454
69455         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69456         * modules/netinet_in (Makefile.am): Likewise.
69457
69458 2007-02-01  Bruno Haible  <bruno@clisp.org>
69459
69460         * lib/string_.h (GL_LINK_WARNING): New macro.
69461         (strcasecmp, strstr, strcasestr): If provided by the system,
69462         conditionally define as a macro that leads to a warning instead of to
69463         an error.
69464         (strncasecmp): Conditionally define as a macro that leads to a warning.
69465
69466 2007-02-01  Karl Berry  <karl@gnu.org>
69467
69468         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69469
69470 2007-02-01  Bruno Haible  <bruno@clisp.org>
69471
69472         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69473         renamings.
69474
69475 2007-02-01  Eric Blake  <ebb9@byu.net>
69476
69477         * modules/regex (Depends-on): Revert dependence on mempcpy.
69478         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69479         module's definition of mempcpy.
69480         Reported by Paul Eggert.
69481
69482 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69483
69484         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69485         the symbol XYZ before redefining it.  This fixes a problem with
69486         programs that don't use XYZ, when compiled on systems that define
69487         XYZ to something else.
69488
69489 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69490
69491         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69492         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69493         writeable to group or other and (2) is intended to have a special
69494         mode bit that is set or cleared.  In such a case, the directory
69495         should be neither group- nor other-writeable until the special
69496         mode bits are right.
69497
69498 2007-01-31  Eric Blake  <ebb9@byu.net>
69499
69500         * modules/mountlist (Depends-on): Add strstr.
69501
69502         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69503         bug.
69504         * modules/string (Makefile.am): Remove redundant replacement.
69505         * modules/regex (Depends-on): Add mempcpy.
69506
69507 2007-01-31  Bruno Haible  <bruno@clisp.org>
69508
69509         New module description field 'Link'.
69510         * gnulib-tool (func_usage): Document --extract-link-directive.
69511         (sed_extract_prog): Recognize 'Link' directive.
69512         (func_get_link_directive): New function.
69513         (func_import): Show summary of link directives.
69514         Handle --extract-link-directive option.
69515         * modules/acl (Link): New section.
69516         * modules/clock-time (Link): New section.
69517         * modules/euidaccess (Link): New section.
69518         * modules/gettext (Link): New section.
69519         * modules/iconv (Link): New section.
69520         * modules/lock (Link): New section.
69521         * modules/nanosleep (Link): New section.
69522         * modules/readline (Link): New section.
69523
69524 2007-01-27  Bruno Haible  <bruno@clisp.org>
69525
69526         Enforce the use of gnulib modules for unportable <string.h> functions.
69527         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69528         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69529         (gl_HEADER_STRING_H_BODY): Require it.
69530         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69531         the symbol XYZ to one that gives a link error.
69532         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69533         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69534         * modules/mempcpy (configure.ac): Likewise.
69535         * modules/memrchr (configure.ac): Likewise.
69536         * modules/stpcpy (configure.ac): Likewise.
69537         * modules/stpncpy (configure.ac): Likewise.
69538         * modules/strcase (configure.ac): Likewise.
69539         * modules/strcasestr (configure.ac): Likewise.
69540         * modules/strchrnul (configure.ac): Likewise.
69541         * modules/strdup (configure.ac): Likewise.
69542         * modules/strndup (configure.ac): Likewise.
69543         * modules/strnlen (configure.ac): Likewise.
69544         * modules/strpbrk (configure.ac): Likewise.
69545         * modules/strsep (configure.ac): Likewise.
69546         * modules/strstr (configure.ac): Likewise.
69547         * modules/strtok_r (configure.ac): Likewise.
69548
69549 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69550
69551         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69552
69553 2007-01-30  Jim Meyering  <jim@meyering.net>
69554
69555         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69556
69557 2007-01-29  Bruno Haible  <bruno@clisp.org>
69558
69559         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69560         * lib/execute.c: Likewise.
69561         * lib/pipe.c: Likewise.
69562         * lib/printf-args.h: Likewise.
69563         * lib/printf-args.c: Likewise.
69564         * lib/printf-parse.c: Likewise.
69565         * lib/vasnprintf.c: Likewise.
69566
69567 2007-01-29  Eric Blake  <ebb9@byu.net>
69568
69569         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69570         declaration.
69571
69572 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69573
69574         * lib/strptime.h (strptime): Use 'restrict' for args where
69575         POSIX requires this.
69576         * lib/strptime.c (strptime): Likewise.
69577         Change license notice from LGPL to GPL, since gnulib-tool will
69578         change this as needed.
69579         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69580         defined.
69581         Include "strptime.h" first, to check interface.
69582         Do not #undef _LIBC and _NL_CURRENT.
69583         Do not include <stdlib.h>; no longer needed.
69584         Include "time_r.h" and declare ptime_locale_status
69585         only if _LIBC is not defined.
69586         (__P): Remove unused macro.
69587         (match_string): Bring back glibc version, but use it only if _LIBC
69588         is defined.
69589         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69590         Remove unnecessary assertion and abort() call.
69591         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69592         * m4/strptime.m4: Fix serial number comment.
69593         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69594         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69595         (Depends-on): Add time_r.
69596
69597 2007-01-29  Bruno Haible  <bruno@clisp.org>
69598
69599         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69600         strptime.
69601         * modules/strptime (Depends-on): Add stdbool.
69602         * lib/strptime.h: Include <time.h> always. Add comments.
69603
69604 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69605
69606         * modules/strptime: New file.
69607         * lib/strptime.h: New file.
69608         * lib/strptime.c: New file.
69609         * m4/strptime.m4: New file.
69610
69611 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69612
69613         * MODULES.html.sh: New module mpsort.
69614         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69615
69616         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69617         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69618         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69619         All uses changed.
69620         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69621         All uses changed.
69622         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69623         to _Restrict_.
69624         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69625         the parameter matches the prototype.
69626
69627 2007-01-28  Jim Meyering  <jim@meyering.net>
69628
69629         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69630         sys/time.h here, reverting that part of the previous patch:
69631         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69632
69633 2007-01-28  Bruno Haible  <bruno@clisp.org>
69634
69635         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69636         value of $(SYS_TIME_H).
69637         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69638         remove it conditionally, too. [added by Jim Meyering]
69639         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69640         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69641         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69642         GETTIMEOFDAY_REPLACEMENT to 1.
69643
69644 2007-01-28  Bruno Haible  <bruno@clisp.org>
69645
69646         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69647         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69649         Set UNISTD_H instead of UNISTD_H2.
69650         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69651
69652 2007-01-28  Bruno Haible  <bruno@clisp.org>
69653
69654         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69655         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69656
69657 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69658
69659         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69660         (func_create_testdir): Ensure C locale for `grep' and `tr'
69661         character ranges.
69662         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69663         ACLOCAL_AMFLAGS parsing state machine.
69664
69665 2007-01-27  Bruno Haible  <bruno@clisp.org>
69666
69667         * modules/unistr/base: Update.
69668
69669 2007-01-27  Bruno Haible  <bruno@clisp.org>
69670
69671         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69672         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69673         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69674         modules/unistr/u32-mbtouc.
69675         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69676         * lib/unistr.h: Update.
69677         * lib/linebreak.c: Update.
69678         * modules/unistr/u32-mbtouc: Renamed from
69679         modules/unistr/u32-mbtouc-safe.
69680         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69681         * lib/unistr.h: Update.
69682         * lib/unistr/u32-to-u8.c: Update.
69683         * lib/unistr/u32-to-u16.c: Update.
69684
69685 2007-01-27  Bruno Haible  <bruno@clisp.org>
69686
69687         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69688         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69689         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69690         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69691         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69692         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69693         modules/unistr/u16-mbtouc.
69694         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69695         * lib/unistr.h: Update.
69696         * lib/linebreak.c: Update.
69697         * modules/linebreak: Update.
69698         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69699         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69700         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69701         * modules/unistr/u16-mbtouc: Renamed from
69702         modules/unistr/u16-mbtouc-safe.
69703         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69704         * lib/unistr.h: Update.
69705         * lib/unistr/u16-to-u8.c: Update.
69706         * modules/unistr/u16-to-u8: Update.
69707         * lib/unistr/u16-to-u32.c: Update.
69708         * modules/unistr/u16-to-u32: Update.
69709
69710 2007-01-27  Bruno Haible  <bruno@clisp.org>
69711
69712         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69713         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69714         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69715         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69716         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69717         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69718         modules/unistr/u8-mbtouc.
69719         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69720         * lib/unistr.h: Update.
69721         * lib/striconveh.c: Update.
69722         * modules/striconveh: Update.
69723         * lib/linebreak.c: Update.
69724         * modules/linebreak: Update.
69725         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69726         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69727         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69728         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69729         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69730         * lib/unistr.h: Update.
69731         * lib/striconveh.c: Update.
69732         * modules/striconveh: Update.
69733         * lib/unistr/u8-to-u16.c: Update.
69734         * modules/unistr/u8-to-u16: Update.
69735         * lib/unistr/u8-to-u32.c: Update.
69736         * modules/unistr/u8-to-u32: Update.
69737
69738 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69739
69740         Sync from Libtool.
69741         * lib/argz.c: Do not include strings.h nor memory.h, include
69742         string.h unconditionally.  Patch by Simon Josefsson.
69743
69744 2007-01-27  Bruno Haible  <bruno@clisp.org>
69745
69746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69747         from gl_HEADER_STRING_H_BODY.
69748         (gl_HEADER_STRING_H_BODY): Require it.
69749         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69750         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69751         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69752         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69753         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69754         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69755         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69756         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69757         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69758         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69759         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69760         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69761         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69762         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69763         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69764
69765 2007-01-27  Bruno Haible  <bruno@clisp.org>
69766
69767         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69768         check_PROGRAMS into noinst_PROGRAMS.
69769         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69770         check_PROGRAMS in this case.
69771         (func_import): Set for_test to false.
69772         (func_create_testdir): Set for_test to true.
69773
69774 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69775             Bruno Haible  <bruno@clisp.org>
69776
69777         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69778         (Depends-on): Add string.
69779         (Includes): Use <string.h> instead of strcasestr.h.
69780         * modules/string (Makefile.am): Also substitute the value of
69781         REPLACE_STRCASESTR.
69782         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69783         assume strcasestr is declared in <string.h> not <strings.h>. Also
69784         set REPLACE_STRCASESTR.
69785         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69786         REPLACE_STRCASESTR.
69787         * lib/strcasestr.h: Remove file.
69788         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69789         * lib/string_.h (strcasestr): New declaration.
69790
69791 2007-01-27  Bruno Haible  <bruno@clisp.org>
69792
69793         * lib/string_.h: Use 'extern'.
69794
69795 2007-01-27  Jim Meyering  <jim@meyering.net>
69796
69797         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69798         of set-but-not-used local, "q".
69799
69800         * lib/mempcpy.c: Include <config.h> before <string.h>.
69801         This fixes a compilation error on HP-UX, due to the system's
69802         "restrict"-using mempcpy prototype.
69803
69804 2007-01-26  Bruno Haible  <bruno@clisp.org>
69805
69806         Small optimization.
69807         * lib/javacomp.c: Include c-strstr.h.
69808          (is_envjavac_gcj): Use c_strstr instead of strstr.
69809         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69810
69811 2007-01-26  Bruno Haible  <bruno@clisp.org>
69812
69813         * MODULES.html.sh (Unicode string functions): Add the new modules.
69814
69815         * modules/uniconv/u32-strconv-to-locale: New file.
69816         * lib/uniconv/u32-strconv-to-locale.c: New file.
69817
69818         * modules/uniconv/u16-strconv-to-locale: New file.
69819         * lib/uniconv/u16-strconv-to-locale.c: New file.
69820
69821         * modules/uniconv/u8-strconv-to-locale: New file.
69822         * lib/uniconv/u8-strconv-to-locale.c: New file.
69823
69824         * modules/uniconv/u32-strconv-from-locale: New file.
69825         * lib/uniconv/u32-strconv-from-locale.c: New file.
69826
69827         * modules/uniconv/u16-strconv-from-locale: New file.
69828         * lib/uniconv/u16-strconv-from-locale.c: New file.
69829
69830         * modules/uniconv/u8-strconv-from-locale: New file.
69831         * lib/uniconv/u8-strconv-from-locale.c: New file.
69832
69833         * modules/uniconv/u32-strconv-to-enc: New file.
69834         * lib/uniconv/u32-strconv-to-enc.c: New file.
69835         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69836         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69837
69838         * modules/uniconv/u16-strconv-to-enc: New file.
69839         * lib/uniconv/u16-strconv-to-enc.c: New file.
69840         * lib/uniconv/u-strconv-to-enc.h: New file.
69841         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69842         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69843
69844         * modules/uniconv/u8-strconv-to-enc: New file.
69845         * lib/uniconv/u8-strconv-to-enc.c: New file.
69846         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69847         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69848
69849         * modules/uniconv/u32-strconv-from-enc: New file.
69850         * lib/uniconv/u32-strconv-from-enc.c: New file.
69851         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69852         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69853
69854         * modules/uniconv/u16-strconv-from-enc: New file.
69855         * lib/uniconv/u16-strconv-from-enc.c: New file.
69856         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69857         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69858
69859         * modules/uniconv/u8-strconv-from-enc: New file.
69860         * lib/uniconv/u8-strconv-from-enc.c: New file.
69861         * lib/uniconv/u-strconv-from-enc.h: New file.
69862         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69863         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69864
69865         * modules/uniconv/u32-conv-from-enc: New file.
69866         * lib/uniconv/u32-conv-from-enc.c: New file.
69867         * modules/uniconv/u32-conv-from-enc-tests: New file.
69868         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69869
69870         * modules/uniconv/u16-conv-from-enc: New file.
69871         * lib/uniconv/u16-conv-from-enc.c: New file.
69872         * lib/uniconv/u-conv-from-enc.h: New file.
69873         * modules/uniconv/u16-conv-from-enc-tests: New file.
69874         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69875
69876         * modules/uniconv/u8-conv-from-enc: New file.
69877         * lib/uniconv/u8-conv-from-enc.c: New file.
69878         * modules/uniconv/u8-conv-from-enc-tests: New file.
69879         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69880
69881         * modules/uniconv/base: New file.
69882         * lib/uniconv.h: New file.
69883
69884 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69885
69886         * doc/gnulib-tool.texi (Initial import): Update to match current
69887         behavior with strdup module.
69888         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69889         * lib/memmem.h: Remove; all uses removed.  This is now done
69890         by <string.h>.
69891         * lib/mempcpy.h: Likewise.
69892         * lib/memrchr.h: Likewise.
69893         * lib/stpcpy.h: Likewise.
69894         * lib/stpncpy.h: Likewise.
69895         * lib/strcase.h: Likewise.
69896         * lib/strchrnul.h: Likewise.
69897         * lib/strdup.h: Likewise.
69898         * lib/strndup.h: Likewise.
69899         * lib/strnlen.h: Likewise.
69900         * lib/strpbrk.h: Likewise.
69901         * lib/strsep.h: Likewise.
69902         * lib/strstr.h: Likewise.
69903         * lib/strtok_r.h: Likewise.
69904         * lib/string_.h: New file.
69905         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69906         Rely on <string.h> instead.
69907         * lib/canon-host.c: Likewise.
69908         * lib/chdir-long.c: Likewise.
69909         * lib/concatpath.c: Likewise.
69910         * lib/exclude.c: Likewise.
69911         * lib/fchdir.c: Likewise.
69912         * lib/getaddrinfo.c: Likewise.
69913         * lib/getcwd.c: Likewise.
69914         * lib/getsubopt.c: Likewise.
69915         * lib/glob.c: Likewise.
69916         * lib/hard-locale.c: Likewise.
69917         * lib/iconvme.c: Likewise.
69918         * lib/javacomp.c: Likewise.
69919         * lib/mempcpy.c: Likewise.
69920         * lib/memrchr.c: Likewise.
69921         * lib/regex_internal.h: Likewise.
69922         * lib/stpncpy.c: Likewise.
69923         * lib/strcasecmp.c: Likewise.
69924         * lib/strchrnul.c: Likewise.
69925         * lib/strdup.c: Likewise.
69926         * lib/striconv.c: Likewise.
69927         * lib/striconveh.c: Likewise.
69928         * lib/striconveha.c: Likewise.
69929         * lib/strncasecmp.c: Likewise.
69930         * lib/strndup.c: Likewise.
69931         * lib/strnlen.c: Likewise.
69932         * lib/strsep.c: Likewise.
69933         * lib/strstr.c: Likewise.
69934         * lib/strtok_r.c: Likewise.
69935         * lib/userspec.c: Likewise.
69936         * lib/w32spawn.h: Likewise.
69937         * lib/xstrndup.c: Likewise.
69938         * lib/mountlist.c (strstr): Remove decl.
69939         * m4/string_h.m4: New file.
69940         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69941         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69942         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69943         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69944         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69945         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69946         Set REPLACE_STRCASECMP if necessary.
69947         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69948         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69949         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69950         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69951         HAVE_DECL_STRDUP if necessary.
69952         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69953         since gl_FUNC_STRNDUP does that now.
69954         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69955         Check for decl here...
69956         (gl_PREREQ_STRNLEN): ... not here.
69957         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69958         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69959         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69960         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69961         necessary.
69962         * modules/string: New file.
69963         * modules/memmem (Files): Remove special-purpose include file.
69964         (Depends-on): Add string.
69965         (Include): Include <string.h>, not the removed file.
69966         * modules/mempcpy: Likewise.
69967         * modules/memrchr: Likewise.
69968         * modules/stpcpy: Likewise.
69969         * modules/stpncpy: Likewise.
69970         * modules/strcase: Likewise.
69971         * modules/strchrnul: Likewise.
69972         * modules/strdup: Likewise.
69973         * modules/strndup: Likewise.
69974         * modules/strnlen: Likewise.
69975         * modules/strpbrk: Likewise.
69976         * modules/strsep: Likewise.
69977         * modules/strstr: Likewise.
69978         * modules/strtok_r: Likewise.
69979         * tests/test-dirname.c: Don't include "strdup.h", since
69980         <string.h> now suffices.
69981         * tests/test-memmem.c: Don't include "memmem.h", since
69982         <string.h> now suffices.
69983
69984 2007-01-25  Bruno Haible  <bruno@clisp.org>
69985
69986         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69987         *resultp is 0.
69988
69989         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69990         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69991         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69992         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69993
69994         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69995         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69996         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69997         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69998         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69999         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70000
70001 2007-01-24  Bruno Haible  <bruno@clisp.org>
70002
70003         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70004         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70005         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70006         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70007         gl_FUNC_FTS_CORE.
70008         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70009         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70010         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70011         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70012         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70013         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70014         gl_FUNC_FCHOWNAT.
70015         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70016         gl_FUNC_STRFTIME.
70017         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70018         Reported by Ralf Wildenhues.
70019
70020 2007-01-24  Bruno Haible  <bruno@clisp.org>
70021
70022         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70023         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70024         gl_GETADDRINFO.
70025         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70026         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70027         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70028
70029 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70030
70031         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70032         Don't use 'exit'; just return from 'main'.
70033         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70034
70035         * lib/fnmatch_.h: Readjust white space and comments to match
70036         glibc, to avoid spurious diffs.
70037
70038 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70039
70040         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70041         2004-12-01 change by Jakub Jelinek, since this code won't compile
70042         if !LIBC.  Problem reported by Bob Proulx.
70043
70044 2007-01-23  Bruno Haible  <bruno@clisp.org>
70045
70046         * lib/striconveh.c: Include c-strcaseeq.h.
70047         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70048         * modules/striconveh (Depends-on): Add c-strcaseeq.
70049
70050 2007-01-23  Bruno Haible  <bruno@clisp.org>
70051
70052         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70053
70054         * modules/c-strcaseeq: New file.
70055         * lib/c-strcaseeq.h: New file.
70056
70057         * modules/streq: New file.
70058         * lib/streq.h: New file.
70059
70060 2007-01-23  Bruno Haible  <bruno@clisp.org>
70061
70062         * modules/striconveha-tests: New file.
70063         * tests/test-striconveha.c: New file.
70064
70065         * lib/striconveha.h: Include <stdbool.h>.
70066         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70067         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70068         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70069         (mem_iconveha): New function.
70070         (str_iconveha_notranslit): Renamed from str_iconveha.
70071         (str_iconveha): New function.
70072         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70073         c-strcase.
70074
70075 2007-01-23  Bruno Haible  <bruno@clisp.org>
70076
70077         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70078         encodings without forgiving before trying any encoding with handler.
70079         (str_iconveha): Try all encodings without forgiving before trying any
70080         encoding with handler.
70081
70082 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70083
70084         Import the following changes from libc.
70085
70086         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70087
70088         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70089
70090         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70091
70092         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70093         normal_bracket label.
70094
70095         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70096
70097         [BZ #361]
70098         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70099         to normal_bracket after fetching the next character.
70100
70101 2007-01-22  Bruno Haible  <bruno@clisp.org>
70102
70103         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70104         argument.
70105         * lib/striconveh.c (iconv_carefully_1): New function.
70106         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70107         argument.
70108         (str_cd_iconveh): Update.
70109         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70110         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70111         * tests/test-striconveh.c (MAGIC): New macro.
70112         (new_offsets): New function.
70113         (main): Test call with and without offsets.
70114
70115 2007-01-22  Bruno Haible  <bruno@clisp.org>
70116
70117         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70118         * modules/sys_select (Makefile.am): Likewise.
70119         * modules/sys_socket (Makefile.am): Likewise.
70120         * modules/sys_time (Makefile.am): Likewise.
70121
70122 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70123
70124         * modules/gettimeofday (License): Change from GPL to LGPL, since
70125         gettimeofday is a library function.
70126
70127 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70128
70129         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70130
70131 2007-01-21  Bruno Haible  <bruno@clisp.org>
70132
70133         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70134
70135 2007-01-21  Bruno Haible  <bruno@clisp.org>
70136
70137         * modules/striconveha: New file.
70138         * lib/striconveha.h: New file.
70139         * lib/striconveha.c: New file.
70140         * MODULES.html.sh (Internationalization functions): Add striconveha.
70141         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70142         string.
70143         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70144
70145 2007-01-21  Bruno Haible  <bruno@clisp.org>
70146
70147         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70148         * lib/striconveh.c (str_iconveh): Likewise.
70149
70150 2007-01-21  Bruno Haible  <bruno@clisp.org>
70151
70152         * lib/striconveh.h (mem_iconveh): New declaration.
70153         * lib/striconveh.c (mem_iconveh): New function.
70154         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70155
70156 2007-01-21  Bruno Haible  <bruno@clisp.org>
70157
70158         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70159
70160         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70161         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70162         original result buffer.
70163         (str_cd_iconveh): Update.
70164         * tests/test-striconveh.c (main): Update.
70165
70166         * lib/striconv.h (mem_cd_iconv): Change specification.
70167         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70168         result buffer.
70169         (str_cd_iconv): Update.
70170         * tests/test-striconv.c (main): Update.
70171
70172 2007-01-21  Bruno Haible  <bruno@clisp.org>
70173
70174         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70175
70176 2007-01-20  Jim Meyering  <jim@meyering.net>
70177
70178         * lib/userspec.c (parse_with_separator): If a user or group string
70179         starts with "+", skip the corresponding name-to-ID look-up, since
70180         such a look-up must fail: user and group names may not include "+".
70181
70182 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70183
70184         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70185         since we now assume the sys_time module.
70186         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70187         check for sys/time.h; no longer needed.
70188         * modules/poll (Depends-on): Depend on sys_time.
70189
70190 2007-01-18  Bruno Haible  <bruno@clisp.org>
70191
70192         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70193         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70194
70195         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70196         gettimeofday.
70197
70198         * tests/test-gettimeofday.c: Include <time.h>.
70199         (dummy): Remove variable.
70200
70201         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70202         gl_HEADER_SYS_TIME_H.
70203         (gl_HEADER_SYS_TIME_H): New macro.
70204
70205         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70206         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70207         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70208         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70209         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70210         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70211         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70212         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70213         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70214         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70215         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70216
70217         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70218         last change; it caused a compilation error when cross-compiling to
70219         Cygwin.
70220
70221 2007-01-18  Jim Meyering  <jim@meyering.net>
70222
70223         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70224         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70225         than the race-prone "test -d sys || mkdir sys".
70226         (configure.ac): Use AC_PROG_MKDIR_P.
70227         * modules/sys_select: Likewise.
70228         * modules/sys_socket: Likewise.
70229         * modules/sys_time: Likewise.
70230
70231 2007-01-18  Eric Blake  <ebb9@byu.net>
70232
70233         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70234         replace gettimeofday.
70235         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70236         name, to avoid infinite recursion.
70237
70238 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70239
70240         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70241         module sys_time.
70242         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70243         assume timespec.h defines struct timeval.
70244         * lib/settime.c: Likewise.
70245         * lib/utimens.c: Likewise.
70246         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70247         since we now assume the gettimeofday module.
70248         * lib/tempname.c (__gen_tempname): Likewise.
70249         * lib/gettimeofday.h: Remove.
70250         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70251         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70252         Include <time.h>, for 'time()'.
70253         (localtime_buffer_addr): Also use this workaround if
70254         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70255         to simplify the uses.  All uses changed.
70256         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70257         that #undef is inside {}, and 'const' follows type name consistently.
70258         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70259         (gettimeofday): Do not use the maximum possible value for
70260         tv->tv_usec, since that might break usages other than ls.c.
70261         Instead, we'll leave ls.c alone.  This undoes today's patch
70262         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70263         we've never observed the problem but might as well keep the
70264         canary.
70265         * lib/nanosleep.c: Include timespec.h first, for interface check.
70266         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70267         now assume the sys_time module.
70268         * lib/tempname.c: Likewise.
70269         * lib/timespec.h: Likewise.
70270         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70271         needed.
70272         * lib/strftime.c: Likewise.
70273         * lib/timespec.h: Likewise.
70274         * lib/posixtm.c: Include posixtm.h first, for interface check.
70275         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70276         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70277         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70278         * lib/sys_time_.h: New file.
70279         * lib/timespec.h (struct timespec): Use long int, not long.
70280         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70281         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70282         Remove obsolescent call to AC_HEADER_TIME.
70283         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70284         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70285         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70286         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70287         Likewise.
70288         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70289         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70290         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70291         into the sys_time module.  Check for gettimeofday just once.
70292         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70293         for gettimeofday signature to just check the signature.  Merely
70294         compile it, since linking doesn't test signature.  Improve test for
70295         whether gettimeofday.o is actually needed.
70296         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70297         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70298         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70299         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70300         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70301         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70302         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70303         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70304         than worrying about sys/time.h.
70305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70306         Don't bother worrying about TIME_WITH_SYS_TIME.
70307         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70308         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70309         * m4/sys_time_h.m4: New file.
70310         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70311         Don't include sys/time.h.  Return from main rather than exiting.
70312         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70313         all uses changed.
70314         * modules/gethrxtime (Depends-on): Add sys_time.
70315         * modules/gettime (Depends-on): Likewise.
70316         * modules/gettimeofday (Depends-on): Likewise.
70317         * modules/nanosleep (Depends-on): Likewise.
70318         * modules/settime (Depends-on): Likewise.
70319         * modules/tempname (Depends-on): Likewise.
70320         * modules/utimens (Depends-on): Likewise.
70321         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70322         (Include): Change back to <sys/time.h>.
70323         (Maintainer): Add self.
70324         * modules/sys_time: New file.
70325         * modules/tempname (Depends-on): Add gettimeofday.
70326         * tests/test-gettimeofday.c: Include <sys/time.h>
70327         rather than gettimeofday.h.
70328
70329 2007-01-17  Bruno Haible  <bruno@clisp.org>
70330
70331         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70332         the license default to GPL.
70333         (func_create_testdir): Don't complain if a module is LGPL and its
70334         tests module depends on GPLed modules.
70335
70336 2007-01-17  Bruno Haible  <bruno@clisp.org>
70337
70338         * lib/gettimeofday.c (gettimeofday): Add code for the case
70339         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70340         maximum possible value for tv->tv_usec, rather than the minimum one.
70341
70342 2005-10-08  Martin Lambers  <marlam@marlam.de>
70343 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70344 2007-01-16  Bruno Haible  <bruno@clisp.org>
70345
70346         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70347         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70348         gl_FUNC_GETTIMEOFDAY.
70349         (Include): Add gettimeofday.h.
70350         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70351         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70352         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70353         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70354         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70355         * lib/gettimeofday.h: New file.
70356         * lib/gettimeofday.c: Include <sys/timeb.h>.
70357         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70358         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70359         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70360         fall back on time().
70361
70362         * tests/test-gettimeofday.c: New file.
70363         * modules/gettimeofday-tests: New file.
70364
70365 2007-01-16  Eric Blake  <ebb9@byu.net>
70366
70367         * modules/fnmatch (Depends-on): Depend on wchar.
70368         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70369         * m4/fnmatch.m4: Likewise.
70370         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70371         * m4/mbchar.m4: Likewise.
70372         * modules/mbswidth (Depends-on): Depend on wchar.
70373         * lib/mbswidth.c: Assume <wchar.h>.
70374         * m4/mbswidth.m4: Likewise.
70375         * modules/quotearg (Depends-on): Depend on wchar.
70376         * lib/quotearg.c: Assume <wchar.h>.
70377         * m4/quotearg.m4: Likewise.
70378         * modules/regex (Depends-on): Depend on wchar.
70379         * lib/regex_internal.h: Assume <wchar.h>.
70380         * m4/regex.m4: Likewise.
70381         * modules/stdint (Depends-on): Depend on wchar.
70382         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70383         * m4/stdint.m4: Likewise.
70384         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70385         * modules/strftime (Depends-on): Depend on wchar.
70386         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70387         * modules/strtol (Depends-on): Depend on wchar.
70388         * lib/strtol.c: Assume <wchar.h>.
70389         * modules/wcwidth (Depends-on): Depend on wchar.
70390         * lib/wcwidth.h: Assume <wchar.h>.
70391         * m4/wcwidth.m4: Likewise.
70392
70393 2007-01-16  Bruno Haible  <bruno@clisp.org>
70394
70395         * modules/csharpexec-script: New, created from...
70396         * modules/csharpexec: ... this.
70397
70398 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70399
70400         * modules/javaexec-script: New, created from...
70401         * modules/javaexec: ... this.
70402
70403 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70404
70405         * modules/poll (Dependencies): Add sys_select.
70406
70407 2007-01-15  Jim Meyering  <jim@meyering.net>
70408
70409         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70410         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70411         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70412         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70413
70414 2007-01-15  Bruno Haible  <bruno@clisp.org>
70415
70416         * modules/striconveh: New file.
70417         * lib/striconveh.h: New file.
70418         * lib/striconveh.c: New file.
70419         * MODULES.html.sh (Internationalization functions): Add striconveh.
70420
70421         * modules/striconveh-tests: New file.
70422         * tests/test-striconveh.c: New file.
70423
70424 2007-01-15  Bruno Haible  <bruno@clisp.org>
70425
70426         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70427         not from GNU libiconv or GNU libc.
70428
70429 2007-01-15  Bruno Haible  <bruno@clisp.org>
70430
70431         * doc/gnulib-intro.texi (Copyright): Explain the different license
70432         terms for module descriptions, autoconf macros, tests, documentation.
70433
70434 2007-01-14  Bruno Haible  <bruno@clisp.org>
70435
70436         * modules/striconv-tests: New file.
70437         * tests/test-striconv.c: New file.
70438
70439 2007-01-14  Bruno Haible  <bruno@clisp.org>
70440
70441         * modules/iconv-tests: New file.
70442         * tests/test-iconv.c: New file.
70443
70444 2007-01-14  Bruno Haible  <bruno@clisp.org>
70445
70446         * gnulib-tool (func_get_license): For test modules, use the license of
70447         the main module.
70448
70449 2007-01-14  Bruno Haible  <bruno@clisp.org>
70450
70451         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70452         if iconv is found to exist.
70453
70454 2007-01-14  Bruno Haible  <bruno@clisp.org>
70455
70456         * modules/c-ctype-tests: New file.
70457         * tests/test-c-ctype.c: New file.
70458
70459 2007-01-14  Bruno Haible  <bruno@clisp.org>
70460
70461         * modules/binary-io-tests: New file.
70462         * tests/test-binary-io.sh: New file.
70463         * tests/test-binary-io.c: New file.
70464
70465 2007-01-14  Bruno Haible  <bruno@clisp.org>
70466
70467         * modules/array-oset-tests: New file.
70468         * tests/test-array_oset.c: New file.
70469
70470 2007-01-14  Bruno Haible  <bruno@clisp.org>
70471
70472         * modules/array-list-tests: New file.
70473         * tests/test-array_list.c: New file.
70474
70475 2007-01-14  Bruno Haible  <bruno@clisp.org>
70476
70477         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70478         and make.
70479         Reported by Simon Josefsson in
70480         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70481
70482 2007-01-14  Bruno Haible  <bruno@clisp.org>
70483
70484         * modules/allocsa-tests: New file.
70485         * tests/test-allocsa.c: New file.
70486
70487 2007-01-14  Bruno Haible  <bruno@clisp.org>
70488
70489         * modules/fchdir (Depends-on): Add absolute-header.
70490         * modules/unistd (Depends-on): Likewise.
70491
70492 2006-12-30  Bruno Haible  <bruno@clisp.org>
70493
70494         * modules/fchdir: New file.
70495         * modules/unistd (Files): Add lib/unistd_.h.
70496         (Makefile.am): Generate unistd.h from unistd_.h.
70497         * lib/fchdir.c: New file.
70498         * lib/dirent_.h: New file.
70499         * lib/unistd_.h: New file.
70500         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70501         * m4/fchdir.m4: New file.
70502         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70503         (gl_HEADER_UNISTD): Invoke it.
70504         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70505         function.
70506         * lib/backupfile.c (opendir, closedir): Undefine.
70507         * lib/chown.c (open, close): Undefine.
70508         * lib/clean-temp.c (open, close): Undefine.
70509         * lib/copy-file.c (open, close): Undefine.
70510         * lib/execute.c (open, close): Undefine.
70511         * lib/fsusage.c (open, close): Undefine.
70512         * lib/gc-gnulib.c (open, close): Undefine.
70513         * lib/getcwd.c (opendir, closedir): Undefine.
70514         * lib/glob.c (opendir, closedir): Undefine.
70515         * lib/javacomp.c (open, close): Undefine.
70516         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70517         * lib/openat-proc.c (open, close): Undefine.
70518         * lib/pagealign_alloc.c (open, close): Undefine.
70519         * lib/pipe.c (open, close): Undefine.
70520         * lib/progreloc.c (open, close): Undefine.
70521         * lib/savedir.c (opendir, closedir): Undefine.
70522         * lib/utime.c (open, close): Undefine.
70523         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70524
70525 2007-01-10  Bruno Haible  <bruno@clisp.org>
70526
70527         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70528
70529 2007-01-12  Eric Blake  <ebb9@byu.net>
70530
70531         Provide a robust <wchar.h>.  Further simplifications are now
70532         possible in other modules, but not included here.
70533         * modules/wchar: New module.
70534         * m4/wchar.m4: New file.
70535         * lib/wchar_.h: Likewise.
70536         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70537         of the new module.
70538         * MODULES.html.sh (Extended multibyte and wide character utilities):
70539         New section.
70540
70541 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70542
70543         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70544         to a reasonable default for memory allocation.
70545         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70546         file system that reports garbage st_size values for symlinks.
70547         Problem reported by Liyang Hu.
70548
70549 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70550
70551         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70552         Emacs .#* auto-save files).
70553
70554 2007-01-11  Bruno Haible  <bruno@clisp.org>
70555
70556         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70557         directory.
70558
70559 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70560
70561         Use @...@ consistently in lib/wctype_.h.
70562         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70563         on it being set to 1 or 0.
70564         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70565         go back to AC_SUBSTing it.
70566         * modules/wctype (Makefile.am): Undo previous change.
70567
70568 2007-01-10  Eric Blake  <ebb9@byu.net>
70569
70570         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70571         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70572         * modules/wctype (Makefile.am): Likewise.
70573         Reported by Chris McGuire.
70574
70575 2007-01-10  Jim Meyering  <jim@meyering.net>
70576
70577         fts.c: a small readability/maintainability improvement
70578         * lib/fts.c (fts_read): Make this code slightly more readable and
70579         maintainable by hoisting the "sp->fts_cur = p" assignments to
70580         immediately follow the statements that set P.  Derived from
70581         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70582
70583 2007-01-10  Eric Blake  <ebb9@byu.net>
70584
70585         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70586         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70587         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70588         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70589         Reported by Chris McGuire.
70590
70591 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70592
70593         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70594         in sed script.
70595
70596 2007-01-09  Bruno Haible  <bruno@clisp.org>
70597
70598         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70599         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70600         variables.
70601         (func_module): Use them.
70602
70603 2007-01-09  Bruno Haible  <bruno@clisp.org>
70604
70605         * modules/unistr/base: New file.
70606         * lib/unistr.h: New file.
70607
70608         * modules/unistr/u8-to-u16: New file.
70609         * lib/unistr/u8-to-u16.c: New file.
70610
70611         * modules/unistr/u8-to-u32: New file.
70612         * lib/unistr/u8-to-u32.c: New file.
70613
70614         * modules/unistr/u16-to-u8: New file.
70615         * lib/unistr/u16-to-u8.c: New file.
70616
70617         * modules/unistr/u16-to-u32: New file.
70618         * lib/unistr/u16-to-u32.c: New file.
70619
70620         * modules/unistr/u32-to-u8: New file.
70621         * lib/unistr/u32-to-u8.c: New file.
70622
70623         * modules/unistr/u32-to-u16: New file.
70624         * lib/unistr/u32-to-u16.c: New file.
70625
70626         * modules/unistr/u8-check: New file.
70627         * modules/unistr/u16-check: New file.
70628         * modules/unistr/u32-check: New file.
70629         * lib/unistr/u8-check.c: New file.
70630         * lib/unistr/u16-check.c: New file.
70631         * lib/unistr/u32-check.c: New file.
70632
70633         * modules/unistr/u8-chr: New file.
70634         * modules/unistr/u16-chr: New file.
70635         * modules/unistr/u32-chr: New file.
70636         * lib/unistr/u8-chr.c: New file.
70637         * lib/unistr/u16-chr.c: New file.
70638         * lib/unistr/u32-chr.c: New file.
70639
70640         * modules/unistr/u8-cmp: New file.
70641         * modules/unistr/u16-cmp: New file.
70642         * modules/unistr/u32-cmp: New file.
70643         * lib/unistr/u8-cmp.c: New file.
70644         * lib/unistr/u16-cmp.c: New file.
70645         * lib/unistr/u32-cmp.c: New file.
70646
70647         * modules/unistr/u8-cpy: New file.
70648         * modules/unistr/u16-cpy: New file.
70649         * modules/unistr/u32-cpy: New file.
70650         * lib/unistr/u8-cpy.c: New file.
70651         * lib/unistr/u16-cpy.c: New file.
70652         * lib/unistr/u32-cpy.c: New file.
70653         * lib/unistr/u-cpy.h: New file.
70654
70655         * modules/unistr/u8-cpy-alloc: New file.
70656         * modules/unistr/u16-cpy-alloc: New file.
70657         * modules/unistr/u32-cpy-alloc: New file.
70658         * lib/unistr/u8-cpy-alloc.c: New file.
70659         * lib/unistr/u16-cpy-alloc.c: New file.
70660         * lib/unistr/u32-cpy-alloc.c: New file.
70661         * lib/unistr/u-cpy-alloc.h: New file.
70662
70663         * modules/unistr/u8-endswith: New file.
70664         * modules/unistr/u16-endswith: New file.
70665         * modules/unistr/u32-endswith: New file.
70666         * lib/unistr/u8-endswith.c: New file.
70667         * lib/unistr/u16-endswith.c: New file.
70668         * lib/unistr/u32-endswith.c: New file.
70669         * lib/unistr/u-endswith.h: New file.
70670
70671         * modules/unistr/u8-mblen: New file.
70672         * modules/unistr/u16-mblen: New file.
70673         * modules/unistr/u32-mblen: New file.
70674         * lib/unistr/u8-mblen.c: New file.
70675         * lib/unistr/u16-mblen.c: New file.
70676         * lib/unistr/u32-mblen.c: New file.
70677
70678         * modules/unistr/u8-mbtouc: New file.
70679         * modules/unistr/u16-mbtouc: New file.
70680         * modules/unistr/u32-mbtouc: New file.
70681         * lib/unistr/u8-mbtouc.c: New file.
70682         * lib/unistr/u16-mbtouc.c: New file.
70683         * lib/unistr/u32-mbtouc.c: New file.
70684
70685         * modules/unistr/u8-mbtouc-safe: New file.
70686         * modules/unistr/u16-mbtouc-safe: New file.
70687         * modules/unistr/u32-mbtouc-safe: New file.
70688         * lib/unistr/u8-mbtouc-safe.c: New file.
70689         * lib/unistr/u16-mbtouc-safe.c: New file.
70690         * lib/unistr/u32-mbtouc-safe.c: New file.
70691
70692         * modules/unistr/u8-move: New file.
70693         * modules/unistr/u16-move: New file.
70694         * modules/unistr/u32-move: New file.
70695         * lib/unistr/u8-move.c: New file.
70696         * lib/unistr/u16-move.c: New file.
70697         * lib/unistr/u32-move.c: New file.
70698         * lib/unistr/u-move.h: New file.
70699
70700         * modules/unistr/u8-next: New file.
70701         * modules/unistr/u16-next: New file.
70702         * modules/unistr/u32-next: New file.
70703         * lib/unistr/u8-next.c: New file.
70704         * lib/unistr/u16-next.c: New file.
70705         * lib/unistr/u32-next.c: New file.
70706
70707         * modules/unistr/u8-prev: New file.
70708         * modules/unistr/u16-prev: New file.
70709         * modules/unistr/u32-prev: New file.
70710         * lib/unistr/u8-prev.c: New file.
70711         * lib/unistr/u16-prev.c: New file.
70712         * lib/unistr/u32-prev.c: New file.
70713
70714         * modules/unistr/u8-set: New file.
70715         * modules/unistr/u16-set: New file.
70716         * modules/unistr/u32-set: New file.
70717         * lib/unistr/u8-set.c: New file.
70718         * lib/unistr/u16-set.c: New file.
70719         * lib/unistr/u32-set.c: New file.
70720         * lib/unistr/u-set.h: New file.
70721
70722         * modules/unistr/u8-startswith: New file.
70723         * modules/unistr/u16-startswith: New file.
70724         * modules/unistr/u32-startswith: New file.
70725         * lib/unistr/u8-startswith.c: New file.
70726         * lib/unistr/u16-startswith.c: New file.
70727         * lib/unistr/u32-startswith.c: New file.
70728         * lib/unistr/u-startswith.h: New file.
70729
70730         * modules/unistr/u8-stpcpy: New file.
70731         * modules/unistr/u16-stpcpy: New file.
70732         * modules/unistr/u32-stpcpy: New file.
70733         * lib/unistr/u8-stpcpy.c: New file.
70734         * lib/unistr/u16-stpcpy.c: New file.
70735         * lib/unistr/u32-stpcpy.c: New file.
70736         * lib/unistr/u-stpcpy.h: New file.
70737
70738         * modules/unistr/u8-stpncpy: New file.
70739         * modules/unistr/u16-stpncpy: New file.
70740         * modules/unistr/u32-stpncpy: New file.
70741         * lib/unistr/u8-stpncpy.c: New file.
70742         * lib/unistr/u16-stpncpy.c: New file.
70743         * lib/unistr/u32-stpncpy.c: New file.
70744         * lib/unistr/u-stpncpy.h: New file.
70745
70746         * modules/unistr/u8-strcat: New file.
70747         * modules/unistr/u16-strcat: New file.
70748         * modules/unistr/u32-strcat: New file.
70749         * lib/unistr/u8-strcat.c: New file.
70750         * lib/unistr/u16-strcat.c: New file.
70751         * lib/unistr/u32-strcat.c: New file.
70752         * lib/unistr/u-strcat.h: New file.
70753
70754         * modules/unistr/u8-strchr: New file.
70755         * modules/unistr/u16-strchr: New file.
70756         * modules/unistr/u32-strchr: New file.
70757         * lib/unistr/u8-strchr.c: New file.
70758         * lib/unistr/u16-strchr.c: New file.
70759         * lib/unistr/u32-strchr.c: New file.
70760
70761         * modules/unistr/u8-strcmp: New file.
70762         * modules/unistr/u16-strcmp: New file.
70763         * modules/unistr/u32-strcmp: New file.
70764         * lib/unistr/u8-strcmp.c: New file.
70765         * lib/unistr/u16-strcmp.c: New file.
70766         * lib/unistr/u32-strcmp.c: New file.
70767
70768         * modules/unistr/u8-strcpy: New file.
70769         * modules/unistr/u16-strcpy: New file.
70770         * modules/unistr/u32-strcpy: New file.
70771         * lib/unistr/u8-strcpy.c: New file.
70772         * lib/unistr/u16-strcpy.c: New file.
70773         * lib/unistr/u32-strcpy.c: New file.
70774         * lib/unistr/u-strcpy.h: New file.
70775
70776         * modules/unistr/u8-strcspn: New file.
70777         * modules/unistr/u16-strcspn: New file.
70778         * modules/unistr/u32-strcspn: New file.
70779         * lib/unistr/u8-strcspn.c: New file.
70780         * lib/unistr/u16-strcspn.c: New file.
70781         * lib/unistr/u32-strcspn.c: New file.
70782         * lib/unistr/u-strcspn.h: New file.
70783
70784         * modules/unistr/u8-strdup: New file.
70785         * modules/unistr/u16-strdup: New file.
70786         * modules/unistr/u32-strdup: New file.
70787         * lib/unistr/u8-strdup.c: New file.
70788         * lib/unistr/u16-strdup.c: New file.
70789         * lib/unistr/u32-strdup.c: New file.
70790         * lib/unistr/u-strdup.h: New file.
70791
70792         * modules/unistr/u8-strlen: New file.
70793         * modules/unistr/u16-strlen: New file.
70794         * modules/unistr/u32-strlen: New file.
70795         * lib/unistr/u8-strlen.c: New file.
70796         * lib/unistr/u16-strlen.c: New file.
70797         * lib/unistr/u32-strlen.c: New file.
70798         * lib/unistr/u-strlen.h: New file.
70799
70800         * modules/unistr/u8-strmblen: New file.
70801         * modules/unistr/u16-strmblen: New file.
70802         * modules/unistr/u32-strmblen: New file.
70803         * lib/unistr/u8-strmblen.c: New file.
70804         * lib/unistr/u16-strmblen.c: New file.
70805         * lib/unistr/u32-strmblen.c: New file.
70806
70807         * modules/unistr/u8-strmbtouc: New file.
70808         * modules/unistr/u16-strmbtouc: New file.
70809         * modules/unistr/u32-strmbtouc: New file.
70810         * lib/unistr/u8-strmbtouc.c: New file.
70811         * lib/unistr/u16-strmbtouc.c: New file.
70812         * lib/unistr/u32-strmbtouc.c: New file.
70813
70814         * modules/unistr/u8-strncat: New file.
70815         * modules/unistr/u16-strncat: New file.
70816         * modules/unistr/u32-strncat: New file.
70817         * lib/unistr/u8-strncat.c: New file.
70818         * lib/unistr/u16-strncat.c: New file.
70819         * lib/unistr/u32-strncat.c: New file.
70820         * lib/unistr/u-strncat.h: New file.
70821
70822         * modules/unistr/u8-strncmp: New file.
70823         * modules/unistr/u16-strncmp: New file.
70824         * modules/unistr/u32-strncmp: New file.
70825         * lib/unistr/u8-strncmp.c: New file.
70826         * lib/unistr/u16-strncmp.c: New file.
70827         * lib/unistr/u32-strncmp.c: New file.
70828
70829         * modules/unistr/u8-strncpy: New file.
70830         * modules/unistr/u16-strncpy: New file.
70831         * modules/unistr/u32-strncpy: New file.
70832         * lib/unistr/u8-strncpy.c: New file.
70833         * lib/unistr/u16-strncpy.c: New file.
70834         * lib/unistr/u32-strncpy.c: New file.
70835         * lib/unistr/u-strncpy.h: New file.
70836
70837         * modules/unistr/u8-strnlen: New file.
70838         * modules/unistr/u16-strnlen: New file.
70839         * modules/unistr/u32-strnlen: New file.
70840         * lib/unistr/u8-strnlen.c: New file.
70841         * lib/unistr/u16-strnlen.c: New file.
70842         * lib/unistr/u32-strnlen.c: New file.
70843         * lib/unistr/u-strnlen.h: New file.
70844
70845         * modules/unistr/u8-strpbrk: New file.
70846         * modules/unistr/u16-strpbrk: New file.
70847         * modules/unistr/u32-strpbrk: New file.
70848         * lib/unistr/u8-strpbrk.c: New file.
70849         * lib/unistr/u16-strpbrk.c: New file.
70850         * lib/unistr/u32-strpbrk.c: New file.
70851         * lib/unistr/u-strpbrk.h: New file.
70852
70853         * modules/unistr/u8-strrchr: New file.
70854         * modules/unistr/u16-strrchr: New file.
70855         * modules/unistr/u32-strrchr: New file.
70856         * lib/unistr/u8-strrchr.c: New file.
70857         * lib/unistr/u16-strrchr.c: New file.
70858         * lib/unistr/u32-strrchr.c: New file.
70859
70860         * modules/unistr/u8-strspn: New file.
70861         * modules/unistr/u16-strspn: New file.
70862         * modules/unistr/u32-strspn: New file.
70863         * lib/unistr/u8-strspn.c: New file.
70864         * lib/unistr/u16-strspn.c: New file.
70865         * lib/unistr/u32-strspn.c: New file.
70866         * lib/unistr/u-strspn.h: New file.
70867
70868         * modules/unistr/u8-strstr: New file.
70869         * modules/unistr/u16-strstr: New file.
70870         * modules/unistr/u32-strstr: New file.
70871         * lib/unistr/u8-strstr.c: New file.
70872         * lib/unistr/u16-strstr.c: New file.
70873         * lib/unistr/u32-strstr.c: New file.
70874         * lib/unistr/u-strstr.h: New file.
70875
70876         * modules/unistr/u8-strtok: New file.
70877         * modules/unistr/u16-strtok: New file.
70878         * modules/unistr/u32-strtok: New file.
70879         * lib/unistr/u8-strtok.c: New file.
70880         * lib/unistr/u16-strtok.c: New file.
70881         * lib/unistr/u32-strtok.c: New file.
70882         * lib/unistr/u-strtok.h: New file.
70883
70884         * modules/unistr/u8-uctomb: New file.
70885         * modules/unistr/u16-uctomb: New file.
70886         * modules/unistr/u32-uctomb: New file.
70887         * lib/unistr/u8-uctomb.c: New file.
70888         * lib/unistr/u16-uctomb.c: New file.
70889         * lib/unistr/u32-uctomb.c: New file.
70890
70891         * MODULES.html.sh (Unicode string functions): Add the new modules.
70892
70893 2007-01-08  Bruno Haible  <bruno@clisp.org>
70894
70895         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70896         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70897         subdirectories.
70898
70899 2007-01-08  Karl Berry  <karl@gnu.org>
70900
70901         * doc/error.texi: mention that main() fns must set program_name
70902         when progname is used.
70903
70904 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70905
70906         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70907         WCTYPE_H is empty, for the benefit of builds from non-distclean
70908         directories.  Problem reported by Eric Blake in
70909         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70910
70911 2007-01-08  Bruno Haible  <bruno@clisp.org>
70912
70913         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70914         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70915         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70916         PROVIDE_CANONICALIZE_FILENAME_MODE.
70917         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70918
70919 2007-01-08  Bruno Haible  <bruno@clisp.org>
70920
70921         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70922         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70923         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70924         * lib/fts.c: Likewise.
70925         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70926
70927 2006-12-25  Bruno Haible  <bruno@clisp.org>
70928
70929         * modules/utf8-ucs4-safe: New file.
70930         * lib/utf8-ucs4-safe.h: New file.
70931         * lib/unistr/utf8-ucs4-safe.c: New file.
70932
70933         * modules/utf16-ucs4-safe: New file.
70934         * lib/utf16-ucs4-safe.h: New file.
70935         * lib/unistr/utf16-ucs4-safe.c: New file.
70936
70937         * MODULES.html.sh (Unicode string functions): Add the new modules.
70938
70939 2007-01-08  Bruno Haible  <bruno@clisp.org>
70940
70941         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70942         (Depends-on): Add unitypes.
70943         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70944         (u8_mbtouc_aux): Move out to separate file.
70945         (u8_mbtouc): Use ucs4_t, uint8_t types.
70946         * lib/unistr/utf8-ucs4.c: New file.
70947
70948         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70949         (Depends-on): Add unitypes.
70950         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70951         (u16_mbtouc_aux): Move out to separate file.
70952         (u16_mbtouc): Use ucs4_t, uint16_t types.
70953         * lib/unistr/utf16-ucs4.c: New file.
70954
70955         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70956         (Depends-on): Add unitypes.
70957         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70958         (u8_uctomb_aux): Move out to separate file.
70959         (u8_uctomb): Use ucs4_t, uint8_t types.
70960         * lib/unistr/ucs4-utf8.c: New file.
70961
70962         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70963         (Depends-on): Add unitypes.
70964         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70965         (u16_uctomb_aux): Move out to separate file.
70966         (u16_uctomb): Use ucs4_t, uint16_t types.
70967         * lib/unistr/ucs4-utf16.c: New file.
70968
70969 2006-12-25  Bruno Haible  <bruno@clisp.org>
70970
70971         * modules/unitypes: New file.
70972         * lib/unitypes.h: New file.
70973         * MODULES.html.sh (func_all_modules): New section "Unicode string
70974         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70975         this section. Add unitypes.
70976
70977 2007-01-08  Bruno Haible  <bruno@clisp.org>
70978
70979         Avoid variable names that conflict with those from libtool.
70980         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70981         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70982         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70983         library_names_spec to acl_library_names_spec, hardcode_* to
70984         acl_hardcode_*.
70985         Reported by Ralf Wildenhues.
70986
70987 2007-01-08  Bruno Haible  <bruno@clisp.org>
70988
70989         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70990         definition.
70991         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70992         definition.
70993         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70994         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70995         definition.
70996         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70997         definition.
70998         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70999         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71000         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71001         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71002         definition.
71003         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71004         definition.
71005         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71006         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71007         GC_USE_<algorithm>.
71008         * lib/gc-libgcrypt.c: Likewise.
71009         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71010         * modules/gc-arctwo (configure.ac): Likewise.
71011         * modules/gc-des (configure.ac): Likewise.
71012         * modules/gc-hmac-md5 (configure.ac): Likewise.
71013         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71014         * modules/gc-md2 (configure.ac): Likewise.
71015         * modules/gc-md4 (configure.ac): Likewise.
71016         * modules/gc-md5 (configure.ac): Likewise.
71017         * modules/gc-random (configure.ac): Likewise.
71018         * modules/gc-rijndael (configure.ac): Likewise.
71019         * modules/gc-sha1 (configure.ac): Likewise.
71020
71021 2007-01-08  Bruno Haible  <bruno@clisp.org>
71022
71023         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71024         macro definition.
71025         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71026         definition.
71027         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71028         definition.
71029         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71030         * modules/fcntl-safer (configure.ac): Likewise.
71031         * modules/fopen-safer (configure.ac): Likewise.
71032         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71033         GNULIB_FWRITEERROR macro definition.
71034
71035 2007-01-08  Bruno Haible  <bruno@clisp.org>
71036
71037         * m4/gnulib-common.m4: New file.
71038         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71039         (func_get_filelist): Add m4/gnulib-common.m4.
71040
71041 2007-01-08  Bruno Haible  <bruno@clisp.org>
71042
71043         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71044         command.
71045
71046 2007-01-08  Jim Meyering  <jim@meyering.net>
71047
71048         Use a more robust test for a "can't happen" condition.
71049         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71050         narrowed the st_size value.  Presuming the "can't happen" condition
71051         is true, that narrowing could conceivably convert an invalid st_size
71052         value into a valid one.  Instead, use a change based on Matthew
71053         Woehlke's original patch.
71054
71055         Slight readability improvement: use an assert-like macro
71056         in place of literal "abort ()" uses.
71057         * lib/fts.c (fts_assert): Define.
71058         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71059         Use this macro instead of a bare 'abort'.
71060
71061 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71062
71063         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71064         simply work around them.
71065         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71066         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71067         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71068         declaring.
71069         Don't bother to define as macros, since the standard doesn't require it.
71070         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71071         longer worry about IRIX 5.3.
71072         (HAVE_WCTYPE_CTMP_BUG): Remove.
71073
71074 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71075
71076         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71077         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71078         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71079         Problems reported by Georg Schwarz for IRIX 5.3.
71080
71081         * gnulib-tool (autoconf_minversion): Take the maximum version number
71082         found, not the minimum.  Problem reported by James Youngman.
71083
71084 2007-01-03  Karl Berry  <karl@gnu.org>
71085
71086         * doc/error.texi: new file, explaining interaction with progname.
71087         * doc/gnulib.texi: include it.  Update copyright.
71088
71089 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71090
71091         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71092         AC_CANONICAL_HOST, to improve autobuild outputs.
71093
71094 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71095             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71096
71097         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71098         sockets, server sockets, and other file descriptors.  Count errors
71099         to compute the return value.  Reorder the code a bit to be easier
71100         to follow.  Don't set event bits that were not requested (except
71101         POLLERR and POLLHUP).
71102
71103 2007-01-01  Bruno Haible  <bruno@clisp.org>
71104
71105         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71106
71107 2007-01-03  Jim Meyering  <jim@meyering.net>
71108
71109         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71110
71111 2007-01-02  Bruno Haible  <bruno@clisp.org>
71112
71113         * modules/settime (Include): Require timespec.h.
71114         * modules/nanosleep (Include): Likewise.
71115
71116 2007-01-01  Bruno Haible  <bruno@clisp.org>
71117
71118         * gnulib-tool (func_emit_copyright_notice): Bump year.
71119         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71120
71121 2007-01-01  Bruno Haible  <bruno@clisp.org>
71122
71123         Improve support for OpenBSD.
71124         * build-aux/config.rpath (libname_spec): Export.
71125         (library_names_spec): New variable. Export.
71126         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71127         library_names_spec from the config.rpath output. Locate shared library
71128         through the name pattern in library_names_spec.
71129
71130 2007-01-01  Eric Blake  <ebb9@byu.net>
71131
71132         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71133
71134 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71135
71136         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71137         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71138         assume the C locale, and avoid an "eval" that could cause trouble.
71139         Problem with SORT reported by Bob Proulx.
71140
71141         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71142         Define.  Trivial patch from Henning Nielsen Lund, originally
71143         sent to bug-grep@gnu.org today.
71144
71145 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71146
71147         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71148         struct stat.  Problem reported by Henning Nielsen Lund.
71149         * lib/acl.c: Include acl.h first, to check interface.  Don't
71150         bother to include sys/types.h and sys/stat.h again.
71151
71152 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71153
71154         Import the following change from libc; problem reported by
71155         Sven Verdoolaege.
71156
71157         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71158
71159         [BZ #1373]
71160         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71161
71162 2006-12-28  Jim Meyering  <jim@meyering.net>
71163
71164         * build-aux/announce-gen: Do not assume that the package
71165         builds any of tar.gz, tar.bz2, and .xdelta files.
71166         Suggestion from Simon Josefsson.
71167
71168 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71169
71170         * modules/announce-gen: New file.
71171
71172 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71173
71174         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71175         handles its gotchas now.
71176         * lib/mbswidth.c: Likewise.
71177         * lib/wcwidth.h: Likewise.
71178         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71179         and iswcntrl; the wctype module does this stuff now.
71180         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71181         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71182         * modules/mbchar (Depends-on): Add wctype.
71183         * modules/mbswidth (Depends-on): Likewise.
71184         * modules/wcwidth (Depends-on): Likewise.
71185
71186 2006-12-27  Eric Blake  <ebb9@byu.net>
71187
71188         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71189         module uses more than what <wctype.h> is required to provide.
71190
71191 2006-12-26  Eric Blake  <ebb9@byu.net>
71192
71193         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71194
71195 2006-12-26  Eric Blake  <ebb9@byu.net>
71196
71197         * modules/absolute-header: New module.
71198         * modules/fcntl (Depends-on): Depend on it.
71199         * modules/inttypes (Depends-on): Likewise.
71200         * modules/stdint (Depends-on): Likewise.
71201         * modules/sys_stat (Depends-on): Likewise.
71202         * modules/wctype (Depends-on): Likewise.
71203         * MODULES.html.sh (Support for building libraries and
71204         executables): Document it.
71205
71206 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71207
71208         * gnulib-tool (SED): Remove, undoing previous change.
71209         The problem was that it broke coreutils on Solaris, because
71210         "sed --posix" leaked into a makefile.
71211         (sed): New alias, if 'alias' and GNU sed.
71212
71213 2006-12-24  Jim Meyering  <jim@meyering.net>
71214
71215         Work around an fchownat bug in glibc-2.4:
71216         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71217         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71218         in spite of the -P option.
71219         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71220         New macros.
71221         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71222         * modules/openat (Files): Add lib/fchownat.c.
71223         * lib/openat.c (fchownat): Don't define here.  Move to...
71224         * lib/fchownat.c: ...this new file.
71225
71226 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71227
71228         Fix bug reported by Bruno Haible in
71229         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71230         where quotearg.c didn't compile on Mac OS X 10.2 because it
71231         lacks <wchar.h> and wint_t.
71232         * lib/wctype_.h (__wctype_wint_t): New type.
71233         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71234         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71235         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71236         Arg is now of type __wctype_wint_t, not wint_t.
71237         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71238         substitute HAVE_WINT_T.
71239         * modules/wctype (Files): Add m4/wint_t.m4.
71240         (wctype.h): Substitute HAVE_WINT_T.
71241
71242 2006-12-23  Bruno Haible  <bruno@clisp.org>
71243
71244         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71245
71246 2006-12-23  Bruno Haible  <bruno@clisp.org>
71247
71248         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71249         S_ISLNK.
71250         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71251         mingw.
71252
71253 2006-12-22  Bruno Haible  <bruno@clisp.org>
71254
71255         * lib/copy-file.c: Include acl.h.
71256         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71257         Close the file descriptors only after being done with copy_acl.
71258         * modules/copy-file (Depends-on): Add acl.
71259
71260 2006-12-22  Bruno Haible  <bruno@clisp.org>
71261
71262         * gnulib-tool (SED): New variable.
71263         Use $SED instead of sed everywhere.
71264
71265 2006-12-22  Bruno Haible  <bruno@clisp.org>
71266
71267         * modules/no-c++: New file.
71268         * m4/no-c++.m4: New file.
71269         * MODULES.html.sh (Support for building libraries and executables):
71270         Add no-c++.
71271
71272 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71273
71274         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71275         Include <limits.h>, and use its INT_MAX to rewrite the
71276         j loop so that it does not overflow 'int'.  Problem reported by
71277         Ralf Wildenhues in
71278         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71279         Play it safe by shifting left by 1 rather than multiplying by 2,
71280         as GCC is less likely to optimize this away when the value
71281         is signed (when it assumes overflow leads to undefined behavior).
71282         Also, don't assume time_t uses two's complement.
71283
71284 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71285
71286         * MODULES.html.sh: New module wctype.
71287         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71288         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71289         <wctype.h>, since the new wctype module should fix this.
71290         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71291         the wctype module should arrange for it.
71292         * lib/regex_internal.h: Likewise.
71293         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71294         since the wctype module should handle this now.
71295         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71296         * modules/fnmatch (Depends-on): Add wctype.
71297         * modules/quotearg (Depends-on): Likewise.
71298         * modules/regex (Depends-on): Likewise.
71299
71300 2006-12-19  Bruno Haible  <bruno@clisp.org>
71301
71302         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71303         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71304
71305 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71306
71307         * modules/savewd (Depends-on): Fix dependency on fcntl.
71308
71309 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71310
71311         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71312         conforms to C99, rather than relying on the user's environment
71313         setting of STDINT_H.
71314
71315 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71316         and Eric Blake  <ebb9@byu.net>
71317
71318         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71319         This is more consistent with the other defines here.
71320         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71321         Port to z/OS.  Problem reported by Paul Gilmartin.
71322         Change local vars to use gl_ prefix rather than ac_.
71323         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71324         with other defines.
71325         * modules/double-slash-root: New module.
71326         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71327         (Depends-on): Add double-slash-root.
71328         * MODULES.html.sh (File system functions): Mention new module.
71329
71330 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71331
71332         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71333         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71334         This is for the benefit of gzip, which doesn't do i18n.
71335
71336 2006-12-12  Jim Meyering  <jim@meyering.net>
71337
71338         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71339         Reported by Andreas Schwab <schwab@suse.de>.
71340
71341 2006-12-12  Bruno Haible  <bruno@clisp.org>
71342
71343         Merge these changes.
71344         2006-09-05  Bruno Haible  <bruno@clisp.org>
71345         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71346         iconv_alloc succeeded.
71347         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71348         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71349         test for " && dest " at the end - dest is always != NULL there. Call
71350         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71351         with 2xNULL arguments, also to flush the state storage. Handle the
71352         IRIX iconv behaviour. Realloc the final result, to throw away unused
71353         memory.
71354
71355 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71356
71357         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71358         and fchmodat unconditionally, since glibc 2.4 has them.
71359         Problem reported by Arkadiusz Miskiewicz.
71360
71361 2006-12-10  Bruno Haible  <bruno@clisp.org>
71362
71363         * gnulib-tool (func_import): Show the include files only for those
71364         modules that are copied and specified.
71365         Reported by Karl Berry.
71366
71367 2006-12-08  Jim Meyering  <jim@meyering.net>
71368
71369         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71370         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71371
71372         * build-aux/announce-gen: Add two new options, both optional:
71373         --bootstrap-tools=TOOL_LIST
71374               a comma-separated list of tools, e.g.,
71375               autoconf,automake,bison,gnulib
71376         --gnulib-snapshot-date=DATE
71377               if gnulib is in the bootstrap tool list,
71378               then report this as the snapshot date.
71379               If not specified, use the current date/time.
71380               If you specify a date here, be sure it's UTC.
71381
71382 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71383
71384         * tests/test-argp-2.sh: Fix test to match actual output.
71385         (func_compare): Fix sed script to be portable.
71386
71387 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71388
71389         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71390         workaround for this case.  It is not autoconfigured now; offhand
71391         it's hard to see how to autoconfigure it.
71392
71393 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71394
71395         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71396         a directory that is about to be chowned.  Such a directory's
71397         initial file permissions should permit the owner only and this
71398         should not be changed until after the chown, since the group and
71399         other bits would be incorrect if they granted permission before
71400         the chown.
71401
71402         Fix porting problem for iswctype reported by Georg Schwarz in:
71403         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71404         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71405         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71406         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71407         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71408
71409 2006-12-03  Jim Meyering  <jim@meyering.net>
71410
71411         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71412         p->fts_statp may not yet be defined.
71413         (fts_read): Instead, set it in the caller, once p->fts_statp is
71414         sure to be defined, and corresponds to a top-level directory.
71415         This bug made du -x fail.  Here's the coreutils test case:
71416         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71417         Reported by Mike Frysinger.
71418
71419 2006-12-01  Jim Meyering  <jim@meyering.net>
71420
71421         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71422         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71423         Reported by Simon Josefsson.
71424
71425 2006-11-30  Jim Meyering  <jim@meyering.net>
71426
71427         * m4/warning.m4: Use the all-permissive copyright notice
71428         recommended by RMS (rather than LGPL).
71429         * m4/vararrays.m4: Likewise.
71430         * m4/flexmember.m4: Likewise.
71431
71432 2006-11-29  Bruno Haible  <bruno@clisp.org>
71433
71434         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71435         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71436         using +=.
71437         Reported by Simon Josefsson <simon@josefsson.org>.
71438
71439 2006-11-28  James Youngman <jay@gnu.org>
71440
71441         * README: Advise users that they might find the bug-gnulib@gnu.org
71442         and autotools-announce@gnu.org mailing lists useful.
71443
71444 2006-11-28  Bruno Haible  <bruno@clisp.org>
71445
71446         * m4/ptrdiff_max.m4: Remove file.
71447
71448 2006-11-21  Bruno Haible  <bruno@clisp.org>
71449
71450         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71451         _AC_COMPUTE_INT.
71452         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71453         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71454         _AC_COMPUTE_INT.
71455         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71456         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71457         _AC_COMPUTE_INT.
71458         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71459
71460 2006-11-28  Jim Meyering  <jim@meyering.net>
71461
71462         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71463         warning from "gcc -Wshadow" about shadowing the builtin.
71464
71465 2006-11-27  Bruno Haible  <bruno@clisp.org>
71466
71467         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71468         _AC_COMPUTE_INT.
71469         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71470
71471 2006-11-27  Bruno Haible  <bruno@clisp.org>
71472             Paul Eggert  <eggert@cs.ucla.edu>
71473
71474         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71475
71476 2006-11-26  Bruno Haible  <bruno@clisp.org>
71477
71478         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71479         noinst_LTLIBRARIES.
71480
71481 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71482             Bruno Haible  <bruno@clisp.org>
71483
71484         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71485         if compiling with "gcc -ansi".
71486
71487 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71488
71489         Fix some incompatibilities with gcc -ansi -pedantic.
71490         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71491         if compiling pedantically with GCC, unless it's C99 or later.
71492         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71493         it mishandles gcc -ansi -pedantic as well.
71494         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71495         if gcc -pedantic.
71496         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71497         initializers for struct if -pedantic, unless it's C99 or later.
71498
71499 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71500
71501         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71502         Don't close an fd more than once. Identical atimes indicate
71503         success, not failure.
71504
71505 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71506
71507         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71508
71509 2006-11-23  Jim Meyering  <jim@meyering.net>
71510
71511         * build-aux/announce-gen: New file.  From coreutils.
71512
71513 2006-11-22  Jim Meyering  <jim@meyering.net>
71514
71515         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71516         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71517         (fts_read): Use a temporary to narrow the overused st_size member
71518         before using it in a switch statement.  Reported by Matthew Woehlke.
71519
71520         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71521         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71522
71523 2006-11-20  Bruno Haible  <bruno@clisp.org>
71524
71525         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71526         changequote instead of pairs of brackets.
71527         Reported by Andreas Schwab <schwab@suse.de>.
71528
71529 2006-11-21  Jim Meyering  <jim@meyering.net>
71530
71531         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71532         so as to remain compatible with older compilers.
71533         Patch from Michael Deutschmann.
71534
71535 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71536
71537         * MODULES.html.sh (File system functions): Add openat.
71538
71539         * lib/openat.h (rpl_fstatat): New macro, if
71540         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71541         (fstatat): Define to rpl_fstatat under the same conditions,
71542         unless COMPILING_FSTATAT.
71543         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71544         seems to have the bug.
71545         * lib/fstatat.c: New file.
71546         * modules/openat (Files): Add it.
71547
71548 2006-11-20  Bruno Haible  <bruno@clisp.org>
71549
71550         * Makefile: New file.
71551
71552 2006-11-20  Jim Meyering  <jim@meyering.net>
71553
71554         The beginnings of syntax-related checks for gnulib.
71555         * lib/Makefile: New file.
71556         * lib/t-idcache: New script.  Ensure that the two halves of
71557         idcache.c stay in sync.
71558
71559         * lib/idcache.c: Adjust comments in user- and group- portions to
71560         be more accurate, and to be consistent with one another.
71561
71562 2006-11-20  Jim Meyering  <jim@meyering.net>
71563
71564         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71565         continue using the flexible array member (thus, this module performs
71566         half as many malloc calls), with the addition that...
71567         (getgroup, getuser): Consistently record a non-match via an empty
71568         "name" string, and map an empty string match to a NULL return value.
71569         * modules/idcache (Depends-on): Re-add flexmember.
71570
71571         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71572         (getuidbyname, getgroup, getgidbyname): Likewise.
71573
71574         Use cleaner syntax: NULL rather than 0.
71575         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71576
71577 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71578
71579         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71580         It mishandled the case where the group was missing.
71581         Problem reported by Greg Schafer.
71582         * modules/idcache: Likewise.
71583
71584 2006-11-18  Jim Meyering  <jim@meyering.net>
71585
71586         * check-module (%exempt_header): Add exception for some
71587         conditionally-included headers.
71588
71589         * modules/i-ring (Depends-on): Add verify.
71590         (License): Change to LGPL.
71591
71592 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71593
71594         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71595         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71596         and inttostr.h.  Use snprintf rather than uinttostr, so that
71597         LGPLed code doesn't depend on GPLed.
71598
71599 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71600
71601         * modules/inline (License): Change from GPL to LGPL.
71602
71603 2006-11-17  Jim Meyering  <jim@meyering.net>
71604
71605         * modules/d-type (License): Switch to LGPL.
71606
71607 2006-11-15  Bruno Haible  <bruno@clisp.org>
71608
71609         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71610
71611 2006-11-15  Eric Blake  <ebb9@byu.net>
71612
71613         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71614         the module dependency.
71615
71616 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71617             Bruno Haible  <bruno@clisp.org>
71618
71619         * gnulib-tool (func_create_testdir): Add license consistency check.
71620
71621 2006-11-15  Eric Blake  <ebb9@byu.net>
71622
71623         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71624         random "(cached)" in configure output.
71625
71626 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71627
71628         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71629         test for conforming inttypes.h is both announced and cached.
71630
71631         * MODULES.html.sh (seen_modules, seen_files): New variables.
71632         (func_module): Rewrite to use a few less gnulib-tool and sed
71633         invocations.  Avoid a couple of quadratic algorithms for ...
71634         (missed_modules, missed_files): ... these, with ...
71635         (func_append, func_tmpdir): ... these new functions, from
71636         gnulib-tool.  Analogously, install traps for cleanup.
71637
71638         * tests/test-gc.c (main): Remove unused variables.
71639         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71640
71641 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71642
71643         * modules/inttostr (License): Change to LGPL.
71644
71645 2006-11-14  Eric Blake  <ebb9@byu.net>
71646
71647         * modules/tempname (License): Change to LGPL.
71648
71649 2006-11-14  Eric Blake  <ebb9@byu.net>
71650
71651         * doc/functions.texi (Function Portability): *printf functions on
71652         Cygwin now understand all POSIX size specifiers.
71653
71654 2006-11-14  Bruno Haible  <bruno@clisp.org>
71655
71656         * modules/c-ctype (License): Change to LGPL.
71657
71658 2006-11-12  Bruno Haible  <bruno@clisp.org>
71659
71660         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71661         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71662         for GNOME libraries, for which the include files are installed in
71663         subdirectories of $prefix/include.
71664
71665 2006-11-12  Bruno Haible  <bruno@clisp.org>
71666
71667         * m4/lib-link.m4: Require at least autoconf-2.54.
71668         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71669         name to underscores for the --with option.
71670
71671 2006-11-13  Bruno Haible  <bruno@clisp.org>
71672
71673         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71674         the tests directory.
71675         Reported by Ralf Wildenhues.
71676
71677 2006-11-13  Bruno Haible  <bruno@clisp.org>
71678
71679         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71680         (func_emit_initmacro_end): Undo the override here.
71681         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71682         Works around the famous automake error in coreutils.
71683
71684 2006-11-13  Eric Blake  <ebb9@byu.net>
71685
71686         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71687         element, not its node.
71688
71689 2006-11-12  Bruno Haible  <bruno@clisp.org>
71690
71691         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71692         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71693
71694 2006-11-12  Bruno Haible  <bruno@clisp.org>
71695
71696         * gnulib-tool: New option --local-symlink.
71697         (func_usage): Document it.
71698         (lsymbolic): New variable.
71699         (func_import, func_create_testdir): If --symlink was not specified,
71700         test whether --local-symlink was specified and the file comes from
71701         the local_gnulib_dir.
71702
71703 2006-11-12  Bruno Haible  <bruno@clisp.org>
71704
71705         * gnulib-tool (func_ln): New function.
71706         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71707
71708 2006-11-12  Bruno Haible  <bruno@clisp.org>
71709
71710         Finish support for source files in subdirectories.
71711         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71712         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71713         AUTOMAKE_OPTIONS.
71714         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71715
71716 2006-11-12  Bruno Haible  <bruno@clisp.org>
71717
71718         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71719         EXTRA_lib_SOURCES augmentation.
71720         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71721
71722 2006-11-12  Jim Meyering  <jim@meyering.net>
71723
71724         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71725         file descriptors.  This also averts a failure on systems with
71726         native openat support when a traversed directory lacks "x" access.
71727         * lib/fts_.h: Include "i-ring.h"
71728         (struct FTS) [fts_fd_ring]: New member.
71729         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71730         (FCHDIR): Add parentheses.
71731         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71732         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71733         When descending, rather than simply closing the previous
71734         fts_cwd_fd value, push that file descriptor onto the ring.
71735         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71736         (fts_open): Initialize the new fd_ring member.
71737         (fts_close): Clear the ring.
71738         (fts_safe_changedir): When possible, use our new fd_ring to skip
71739         the diropen and fstat and dev/ino comparison that would normally
71740         accompany a virtual `chdir ("..")'.
71741
71742         * modules/fts (Depends-on): Add i-ring.
71743         * modules/i-ring: New module.
71744         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71745         * m4/i-ring.m4: New file.
71746
71747 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71748
71749         * gnulib-tool (func_create_testdir): Fix replacement of
71750         `build-aux' in configure.ac.  Run autotools in gltests
71751         subdirectory.
71752         (func_create_testdir, func_create_megatestdir, test): There is
71753         no need for '--force' in most autotool invocations in a new
71754         tree.  Actually fail the whole test if any of the tools, or the
71755         configure or make stages fail.
71756
71757         Sync from Automake.
71758         * build-aux/gnupload: Revert last change.  Add pointer to upload
71759         instructions of the GNU Maintenance Instructions.
71760         Suggestion by Karl Berry.
71761
71762 2006-11-10  Jim Meyering  <jim@meyering.net>
71763
71764         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71765
71766 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71767
71768         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71769         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71770         (bind_textdomain_codeset) [! ENABLE_NLS]:
71771         Evaluate all the arguments.  That way, callers get compatible behavior
71772         if the arguments have side effects.  Also, it avoids some GCC
71773         diagnostics in some cases; Joel E. Denny reported problems when Bison
71774         was configured with --enable-gcc-warnigs.
71775
71776 2006-11-10  Jim Meyering  <jim@meyering.net>
71777
71778         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71779         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71780         account.
71781
71782 2006-11-10  Jim Meyering  <jim@meyering.net>
71783
71784         * modules/inline: New file/module.
71785         * modules/xalloc (Files): Remove m4/inline.m4.
71786         (Depends-on): Add inline, instead.
71787         * modules/oset: Likewise.
71788         * modules/list: Likewise.
71789
71790 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71791
71792         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71793         Problem reported by Matthew Woehlke.
71794
71795 2006-11-09  Bruno Haible  <bruno@clisp.org>
71796
71797         * lib/tempname.c (gen_tempname): Remove variant that invokes
71798         __gen_tempname.
71799         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71800         __gen_tempname.
71801
71802 2006-11-08  Bruno Haible  <bruno@clisp.org>
71803
71804         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71805         to 'yes' instead of 'cross-compiling'.
71806
71807 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71808
71809         * lib/quotearg.h (quotearg_free): New decl.
71810         * lib/quotearg.c (quotearg_free): New function.
71811         (slot0, nslots, slotvec0, slotvec):
71812         Now file-scope so that quotearg_free can get at them.
71813
71814 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71815
71816         Sync from Automake.
71817         * build-aux/gnupload: Add missing 'gnu' to example URL.
71818         Report by Karl Berry.
71819
71820 2006-11-08  Bruno Haible  <bruno@clisp.org>
71821
71822         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71823         Suggested by Paul Eggert.
71824
71825 2006-11-08  Jim Meyering  <jim@meyering.net>
71826
71827         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71828         It's already included if !_LIBC.
71829         (fts_safe_changedir): Add a comment.
71830
71831 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71832
71833         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71834         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71835         Matthew Woehlke.
71836
71837         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71838         definitions up, to avoid colliding with change below.
71839         (static_inline) [HAVE_INLINE]: New macro.
71840         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71841         Provide extern decls when !HAVE_INLINE.  Do not define unless
71842         static_inline is defined, either by us or by xmalloc.c.  Use
71843         static_inline rather than static inline.
71844         (XCALLOC): Optimize sizeof(T) = 1 case.
71845         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71846
71847 2006-11-07  Bruno Haible  <bruno@clisp.org>
71848
71849         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71850         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71851         AC_C_INLINE.
71852         * modules/xalloc (Files): Add m4/inline.m4.
71853
71854 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71855
71856         * README: Fix typo.
71857         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71858         (Miscellanous Notes): ...from this.
71859
71860 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71861
71862         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71863         Mention that offsetof should be used instead of sizeof.
71864         From Bruno Haible.
71865
71866 2006-11-07  Bruno Haible  <bruno@clisp.org>
71867
71868         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71869
71870 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71871
71872         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71873         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71874         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71875         (gl_tree_add_before, gl_tree_add_after):
71876         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71877         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71878         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71879         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71880         (gl_linked_add_after, gl_linked_add_at): Likewise.
71881         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71882         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71883         (gl_tree_add_before, gl_tree_add_after): Likewise.
71884         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71885         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71886         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71887
71888 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71889
71890         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71891
71892 2006-11-06  Bruno Haible  <bruno@clisp.org>
71893
71894         * m4/inline.m4: New file.
71895         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71896         * modules/list (Files): Add m4/inline.m4.
71897         * modules/oset (Files): Likewise.
71898
71899 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71900
71901         * lib/idcache.c: Include <stddef.h>, for offsetof.
71902         (struct userid.name): Change from char * to a flexible array member.
71903         All uses changed.
71904         * modules/idcache (Depends-on): Add flexmember.
71905
71906         * MODULES.html.sh (Core language properties): New module flexmember.
71907         * modules/flexmember, m4/flexmember.m4: New files.
71908
71909         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71910         inline functions that are identical with the old xnmalloc_inline,
71911         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71912         that we can avoid some unnecessary integer multiplications and
71913         divisions in the common case where the element size is known at
71914         compile time.
71915         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71916         needed.
71917         (xnboundedmalloc): Remove.
71918         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71919         arguments, for consistency with rest of this header.
71920         (xcharalloc): Rewrite using XNMALLOC.
71921         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71922         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71923         versions have been moved to lib/xalloc.h and renamed to be the
71924         non-*_inline versions.
71925         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71926         and xnrealloc functions, since those functions are now inline and
71927         now call us.
71928         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71929         renaming described above.
71930         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71931         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71932         captures the dependency in AC_C_INLINE.
71933
71934         New module canonicalize-lgpl, proposed by Charles Wilson in
71935         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71936         with a few small changes afterwards.
71937         * MODULES.html.sh (File system functions): New module
71938         canonicalize-lgpl.
71939         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71940         and canonicalize_file_name.
71941         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71942         * modules/canonicalize-lgpl: New files.
71943
71944 2006-11-05  Bruno Haible  <bruno@clisp.org>
71945
71946         * gnulib-tool (func_import, func_create_testdir): Create directories
71947         also for files in subdirectories of lib/.
71948
71949 2006-11-05  Bruno Haible  <bruno@clisp.org>
71950
71951         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71952         ANSI C compliant.
71953
71954 2006-11-03  Bruno Haible  <bruno@clisp.org>
71955
71956         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71957         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71958         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71959         (xnboundedmalloc): New inline function.
71960         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71961         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71962         xmalloc.
71963         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71964         xmalloc.
71965         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71966         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71967         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71968         xmalloc.
71969         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71970         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71971         xmalloc.
71972         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71973         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71974         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71975         xmalloc.
71976         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71977         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71978         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71979         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71980         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71981         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71982         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71983
71984 2006-11-03  Bruno Haible  <bruno@clisp.org>
71985
71986         * lib/c-ctype.h [C++]: Define functions without name mangling.
71987         * lib/fwriteerror.h [C++]: Likewise.
71988         * lib/gcd.h [C++]: Likewise.
71989         * lib/linebreak.h [C++]: Likewise.
71990
71991 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71992
71993         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71994         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71995         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71996         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71997         Check for functions and headers just once.
71998         Check for declaration of canonicalize_file_name.
71999         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72000
72001 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72002
72003         * gnulib-tool (func_import): Fix typo in actioncmd.
72004
72005 2006-11-02  Bruno Haible  <bruno@clisp.org>
72006
72007         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72008         newline sequence in the Makefile.am snippet as a space, like "make"
72009         does.
72010         Reported by Roger Persson <perrog@gmail.com>.
72011
72012 2006-11-01  Bruno Haible  <bruno@clisp.org>
72013
72014         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72015         already declared in <string.h>.
72016         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72017
72018 2006-11-01  Bruno Haible  <bruno@clisp.org>
72019
72020         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72021         * lib/strcase.h: Include <string.h>.
72022         (strcasecmp): Define to rpl_strcasecmp here.
72023
72024 2006-11-01  Bruno Haible  <bruno@clisp.org>
72025
72026         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72027
72028 2006-11-01  Eric Blake  <ebb9@byu.net>
72029
72030         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72031
72032         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72033
72034 2006-10-29  Bruno Haible  <bruno@clisp.org>
72035
72036         Make it compile in C++ mode.
72037         * lib/full-write.c (full_rw): Add a cast.
72038
72039 2006-11-01  Bruno Haible  <bruno@clisp.org>
72040
72041         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72042         be POSIX compliant.
72043         Reported by Roger Persson <perrog@gmail.com>.
72044
72045 2006-11-01  Eric Blake  <ebb9@byu.net>
72046
72047         * lib/getopt_.h: Fix comments.
72048
72049 2006-10-31  Eric Blake  <ebb9@byu.net>
72050
72051         * modules/tmpdir (Depends-on): Add sys_stat.
72052         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72053         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72054         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72055         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72056         tempname.
72057
72058 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72059
72060         Avoid some C++ diagnostics reported by Bruno Haible.
72061         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72062         xmalloc.
72063         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72064         (struct slotvec): Move to top level.
72065         (quotearg_n_options): Rewrite to avoid xmalloc.
72066         * lib/xalloc.h (xcharalloc): New function.
72067         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72068         [defined __cplusplus]: Add function template that provides result
72069         type propagation.  This part of the change is from Bruno Haible.
72070
72071 2006-10-29  Bruno Haible  <bruno@clisp.org>
72072
72073         Make it compile in C++ mode.
72074         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72075         * lib/strnlen1.c (strnlen1): Cast memchr result.
72076         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72077         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72078         (create_temp_dir): Rename local variable 'template'.
72079         (compile_csharp_using_sscli): Add cast.
72080         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72081         * lib/findprog.c (find_in_path): Likewise.
72082         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72083         * lib/wait-process.c (register_slave_subprocess): Likewise.
72084
72085 2006-10-22  Bruno Haible  <bruno@clisp.org>
72086
72087         * modules/tsearch: New file.
72088         * lib/tsearch.h: New file.
72089         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72090         * m4/tsearch.m4: New file.
72091         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72092
72093 2006-10-29  Eric Blake  <ebb9@byu.net>
72094
72095         * lib/arcfour.c: Assume config.h.
72096         * lib/arctwo.c: Likewise.
72097         * lib/base64.c: Likewise.
72098         * lib/check-version.c: Likewise.
72099         * lib/crc.c: Likewise.
72100         * lib/des.c: Likewise.
72101         * lib/gc-gnulib.c: Likewise.
72102         * lib/gc-libgcrypt.c: Likewise.
72103         * lib/gc-pbkdf2-sha1.c: Likewise.
72104         * lib/getaddrinfo.c: Likewise.
72105         * lib/getdelim.c: Likewise.
72106         * lib/getline.c: Likewise.
72107         * lib/hmac-md5.c: Likewise.
72108         * lib/hmac-sha1.c: Likewise.
72109         * lib/iconvme.c: Likewise.
72110         * lib/md2.c: Likewise.
72111         * lib/md4.c: Likewise.
72112         * lib/memxor.c: Likewise.
72113         * lib/read-file.c: Likewise.
72114         * lib/readline.c: Likewise.
72115         * lib/rijndael-alg-fst.c: Likewise.
72116         * lib/rijndael-api-fst.c: Likewise.
72117         * lib/xgetdomainname.c: Likewise.
72118
72119 2006-10-28  Eric Blake  <ebb9@byu.net>
72120
72121         * lib/xstrndup.c: Assume config.h.
72122
72123 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72124
72125         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72126         stat-macros.h is now for our own macros, whereas stat_h is for
72127         macros in the <sys/stat.h> name space.
72128         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72129         (STAT_MACROS_H): Remove.
72130         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72131         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72132         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72133         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72134         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72135         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72136         Move these macros to ...
72137         * lib/stat_.h: here.  Don't include stat-macros.h.
72138         * lib/canonicalize.c: Don't include stat-macros.h.
72139         * lib/chown.c: Likewise.
72140         * lib/euidaccess.c: Likewise.
72141         * lib/file-type.c: Likewise.
72142         * lib/filemode.c: Likewise.
72143         * lib/glob.c: Likewise.
72144         * lib/isapipe.c: Likewise.
72145         * lib/lchown.c: Likewise.
72146         * lib/lstat.c: Likewise.
72147         * lib/mkdir-p.c: Likewise.
72148         * lib/rmdir.c: Likewise.
72149         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72150         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72151         unless mkdir isn't declared, to speed up 'configure'.
72152         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72153         would define all the S_* symbols.
72154         * modules/canonicalize (Depends-on):
72155         Depend on sys_stat, not stat-macros.
72156         * modules/chown: Likewise.
72157         * modules/euidaccess: Likewise.
72158         * modules/filemode: Likewise.
72159         * modules/file-type: Likewise.
72160         * modules/glob: Likewise.
72161         * modules/isapipe: Likewise.
72162         * modules/lchown: Likewise.
72163         * modules/lstat: Likewise.
72164         * modules/mkancesdirs: Likewise.
72165         * modules/rmdir: Likewise.
72166         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72167         * modules/modechange: Likewise.
72168         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72169         (configure.ac): Remove gl_STAT_MACROS.
72170         * modules/sys_stat (Depends-on): Remove stat-macros.
72171
72172 2006-10-27  Bruno Haible  <bruno@clisp.org>
72173
72174         * m4/signed.m4: Remove file.
72175         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72176         invocation.
72177         * modules/vasnprintf (Files): Remove m4/signed.m4.
72178
72179 2006-10-27  Bruno Haible  <bruno@clisp.org>
72180
72181         Update to GNU gettext 0.16.
72182         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72183         m4/inttypes-h.m4, m4/signed.m4.
72184         * m4/gettext.m4: Update to GNU gettext 0.16.
72185         * m4/intl.m4: New file, from GNU gettext.
72186         * m4/intldir.m4: New file, from GNU gettext.
72187         * config/srclist.txt: Update
72188
72189 2006-10-27  Eric Blake  <ebb9@byu.net>
72190
72191         * MODULES.html.sh: Document tempname.
72192         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72193         dependencies.
72194         (Files): Move lib/tempname.c...
72195         * modules/tempname: ...to this new module.
72196         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72197         (gl_PREREQ_TEMPNAME): Move...
72198         * m4/tempname.m4: ...to this new file.
72199         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72200         * modules/sys_stat (Depends-on): Add stat-macros.
72201         * lib/stat_.h (includes): Pick up stat macros.
72202         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72203         if stat macros are broken.
72204         * lib/tempname.c (includes): No need to include "stat-macros.h".
72205         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72206         (direxists, __path_search) [!_LIBC]: Don't compile these in
72207         gnulib; the tmpdir module covers that.
72208         * lib/tempname.h: New file.
72209
72210 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72211
72212         * COPYING: Explain how gnulib-tool converts licence headers.
72213         Almost all wording by Eric Blake.
72214
72215 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72216
72217         * lib/mbchar.h (is_basic_table): Make read-only.
72218         * lib/mbchar.c (is_basic_table): Likewise.
72219         Reported by John Darrington.
72220
72221 2006-10-25  Bruno Haible  <bruno@clisp.org>
72222
72223         * lib/progname.h (set_program_name): Undefine before defining.
72224
72225 2006-10-25  Bruno Haible  <bruno@clisp.org>
72226
72227         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72228         false for non-gcc C++ compilers.
72229         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72230
72231 2006-10-24  Bruno Haible  <bruno@clisp.org>
72232
72233         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72234         iconv implementations like Irix iconv.
72235
72236 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72237
72238         * modules/vararrays: New file.
72239         * m4/vararrays.m4: New file, taken from diffutils.
72240         * MODULES.html.sh: New module vararrays.
72241
72242 2006-10-24  Karl Berry  <karl@gnu.org>
72243
72244         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72245         Don't call GNU Unix.
72246
72247 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72248
72249         * users.txt: Add Libtool.
72250
72251         Sync from Libtool:
72252
72253         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72254
72255         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72256         to gnulib's policy of including config.h unconditionally.
72257
72258 2006-10-24  Bruno Haible  <bruno@clisp.org>
72259
72260         * modules/wcwidth (Files): Add m4/wint_t.m4.
72261         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72262         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72263
72264 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72265
72266         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72267         to pacify GCC with some -W flags enabled.  Problem reported by
72268         Bruno Haible.
72269
72270 2006-10-24  Jim Meyering  <jim@meyering.net>
72271
72272         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72273         Reported by Karl Berry.
72274
72275 2006-10-23  Bruno Haible  <bruno@clisp.org>
72276
72277         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72278
72279 2006-10-24  Bruno Haible  <bruno@clisp.org>
72280
72281         * lib/gl_list.h: Use C comment style, not C++ comment style.
72282
72283 2006-10-23  Eric Blake  <ebb9@byu.net>
72284
72285         * lib/getaddrinfo.c (includes): Add missing include.
72286
72287 2006-10-23  Bruno Haible  <bruno@clisp.org>
72288             Paul Eggert  <eggert@cs.ucla.edu>
72289
72290         Ability to rename obstack_free.
72291         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72292         obstack_free.
72293         (obstack_free): Invoke the __obstack_free macro.
72294         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72295
72296 2006-10-23  Bruno Haible  <bruno@clisp.org>
72297             Paul Eggert  <eggert@cs.ucla.edu>
72298
72299         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72300         __argc, __argv from the declaration. (They are defined as macros on
72301         mingw.)
72302
72303 2006-10-22  Bruno Haible  <bruno@clisp.org>
72304
72305         * doc/gnulib-intro.texi: New file.
72306         * doc/gnulib.texi: Include it.
72307
72308 2006-10-21  Bruno Haible  <bruno@clisp.org>
72309
72310         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72311         "Introduction", "Miscellanous Notes", "Particular Modules".
72312
72313 2006-10-21  Bruno Haible  <bruno@clisp.org>
72314
72315         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72316         Change mostlyclean-local rule to avoid sh syntax error from bash
72317         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72318
72319 2006-10-23  Jim Meyering  <jim@meyering.net>
72320
72321         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72322         in place of snprintf.
72323
72324         * modules/inttostr (Files): Add lib/uinttostr.c.
72325         * lib/uinttostr.c (inttostr): New file/function.
72326         * lib/inttostr.h (uinttostr): Declare.
72327         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72328         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72329         Add uinttostr.
72330         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72331
72332 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72333
72334         * lib/canonicalize.c (ELOOP): Define if not already defined.
72335         Problem reported by Bruno Haible in
72336         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72337
72338 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72339
72340         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72341         Problem reported by Perry Smith and Ville Laurikari.
72342
72343         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72344         uses.
72345
72346 2006-10-19  Bruno Haible  <bruno@clisp.org>
72347
72348         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72349         for mingw.
72350
72351 2006-10-19  Bruno Haible  <bruno@clisp.org>
72352
72353         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72354         Needed for mingw.
72355
72356 2006-10-19  Bruno Haible  <bruno@clisp.org>
72357
72358         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72359
72360 2006-10-19  Bruno Haible  <bruno@clisp.org>
72361
72362         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72363         it.
72364
72365 2006-10-19  Bruno Haible  <bruno@clisp.org>
72366
72367         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72368         invocation.
72369
72370 2006-10-19  Bruno Haible  <bruno@clisp.org>
72371
72372         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72373         mountlist by default.
72374
72375 2006-10-16  Bruno Haible  <bruno@clisp.org>
72376
72377         * lib/c-strstr.c: Include c-strstr.h.
72378
72379 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72380
72381         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72382         in a slash.
72383
72384 2006-10-18  Bruno Haible  <bruno@clisp.org>
72385
72386         * lib/lock.h [C++]: Wrap definitions in extern "C".
72387
72388 2006-10-18  Bruno Haible  <bruno@clisp.org>
72389
72390         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72391         gl_LIBOBJS list.
72392
72393 2006-10-18  Bruno Haible  <bruno@clisp.org>
72394
72395         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72396
72397 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72398
72399         * lib/xstrtol.h: Include gettext.h.
72400         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72401         Problem reported by Eric Blake.
72402         * modules/xstrtol (Depends-on): Add gettext-h.
72403
72404 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72405
72406         * lib/strftime.c (advance): New macro.
72407         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72408         incomplete type, so you can't add 0 to it.  Problem and patch
72409         reported by Eelco Dolstra for dietlibc.
72410
72411 2006-10-18  Jim Meyering  <jim@meyering.net>
72412
72413         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72414         type for a local, and rename it: s/up/user_proc/.
72415
72416 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72417
72418         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72419         READ_UTMP_USER_PROCESS.
72420         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72421
72422 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72423
72424         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72425         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72426
72427 2006-10-17  Eric Blake  <ebb9@byu.net>
72428
72429         * lib/sigprocmask.c (sigprocmask): Fix typo.
72430
72431         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72432
72433         * modules/clean-temp (Makefile.am): Don't add to make output...
72434         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72435         config.h.
72436
72437 2006-10-17  Bruno Haible  <bruno@clisp.org>
72438
72439         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72440         differently if DEFAULT_TEXT_DOMAIN is set.
72441
72442 2006-10-16  Bruno Haible  <bruno@clisp.org>
72443
72444         * lib/clean-temp.c: Include fwriteerror.h.
72445
72446 2006-10-16  Bruno Haible  <bruno@clisp.org>
72447
72448         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72449
72450 2006-10-16  Bruno Haible  <bruno@clisp.org>
72451
72452         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72453         * lib/sigprocmask.h: Include <sys/types.h>.
72454         (sigset_t): Use the system's definition if present.
72455
72456 2006-10-17  Eric Blake  <ebb9@byu.net>
72457
72458         * lib/xvasprintf.c (includes): Assume config.h.
72459         * lib/xasprintf.c (includes): Likewise.
72460
72461 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72462
72463         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72464         at least as wide as intmax_t.
72465
72466 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72467
72468         (Imported from Automake.)
72469         * build-aux/gnupload: Update to version 1.1 of directive file.
72470
72471 2006-10-16  Eric Blake  <ebb9@byu.net>
72472
72473         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72474         match Automake 1.10a.
72475
72476 2006-10-14  Bruno Haible  <bruno@clisp.org>
72477
72478         * modules/sigprocmask: New file.
72479         * lib/sigprocmask.h: New file.
72480         * lib/sigprocmask.c: New file.
72481         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72482         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72483         request sigprocmask.o.
72484         (gl_PREREQ_SIGPROCMASK): New macro.
72485         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72486         (Depends-on): Add sigprocmask.
72487         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72488         gt_SIGNALBLOCKING. Test for 'raise' only once.
72489         * lib/fatal-signal.c: Include sigprocmask.h.
72490         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72491         unblock_fatal_signals): Define always.
72492         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72493         sigprocmask.
72494
72495 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72496
72497         Sync from Automake.
72498         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72499         which incorrectly sets the mode of an existing destination
72500         directory.  In some cases the unpatched install-sh could do the
72501         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72502         system.  We hope this is rare in practice, but it's clearly worth
72503         fixing.  Problem reported by Alex Unleashed in
72504         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72505         Also, don't bother to check for -m bugs unless we're using -m;
72506         suggested by Stepan Kasal.
72507
72508 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72509
72510         Sync from Automake.
72511         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72512         `-c' flag, so they appear at the same position as in %FASTDEP%
72513         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72514         which ignores unknown options only after the first non-option.
72515         Bug report against M4 by Nelson H. F. Beebe.
72516
72517 2006-10-13  Jim Meyering  <jim@meyering.net>
72518
72519         Fix a bug in yesterday's change.
72520         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72521         p->fts_statp->st_dev would be used uninitialized.
72522         Ensures that we always call fts_stat on the very first entry.
72523         Miklos Szeredi reported that find -xdev stopped working.
72524
72525 2006-10-12  Bruno Haible  <bruno@clisp.org>
72526
72527         * gnulib-tool (func_get_automake_snippet): Append an automatically
72528         computed EXTRA_DIST augmentation.
72529         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72530         * modules/alloca-opt (Makefile.am): Likewise.
72531         * modules/allocsa (Makefile.am): Likewise.
72532         * modules/arcfour (Makefile.am): Likewise.
72533         * modules/arctwo (Makefile.am): Likewise.
72534         * modules/argmatch (Makefile.am): Likewise.
72535         * modules/argz (Makefile.am): Likewise.
72536         * modules/atexit (Makefile.am): Likewise.
72537         * modules/backupfile (Makefile.am): Likewise.
72538         * modules/byteswap (Makefile.am): Likewise.
72539         * modules/c-strtod (Makefile.am): Likewise.
72540         * modules/c-strtold (Makefile.am): Likewise.
72541         * modules/calloc (Makefile.am): Likewise.
72542         * modules/canon-host (Makefile.am): Likewise.
72543         * modules/canonicalize (Makefile.am): Likewise.
72544         * modules/chdir-long (Makefile.am): Likewise.
72545         * modules/chdir-safer (Makefile.am): Likewise.
72546         * modules/check-version (Makefile.am): Likewise.
72547         * modules/chown (Makefile.am): Likewise.
72548         * modules/cloexec (Makefile.am): Likewise.
72549         * modules/close-stream (Makefile.am): Likewise.
72550         * modules/closeout (Makefile.am): Likewise.
72551         * modules/crc (Makefile.am): Likewise.
72552         * modules/csharpexec (Makefile.am): Likewise.
72553         * modules/cycle-check (Makefile.am): Likewise.
72554         * modules/des (Makefile.am): Likewise.
72555         * modules/dev-ino (Makefile.am): Likewise.
72556         * modules/dirfd (Makefile.am): Likewise.
72557         * modules/dirname (Makefile.am): Likewise.
72558         * modules/dup2 (Makefile.am): Likewise.
72559         * modules/eealloc (Makefile.am): Likewise.
72560         * modules/error (Makefile.am): Likewise.
72561         * modules/euidaccess (Makefile.am): Likewise.
72562         * modules/exclude (Makefile.am): Likewise.
72563         * modules/exitfail (Makefile.am): Likewise.
72564         * modules/fcntl-safer (Makefile.am): Likewise.
72565         * modules/fcntl (Makefile.am): Likewise.
72566         * modules/file-type (Makefile.am): Likewise.
72567         * modules/fileblocks (Makefile.am): Likewise.
72568         * modules/filemode (Makefile.am): Likewise.
72569         * modules/filenamecat (Makefile.am): Likewise.
72570         * modules/fnmatch (Makefile.am): Likewise.
72571         * modules/fopen-safer (Makefile.am): Likewise.
72572         * modules/fpending (Makefile.am): Likewise.
72573         * modules/fprintftime (Makefile.am): Likewise.
72574         * modules/free (Makefile.am): Likewise.
72575         * modules/fsusage (Makefile.am): Likewise.
72576         * modules/ftruncate (Makefile.am): Likewise.
72577         * modules/fts (Makefile.am): Likewise.
72578         * modules/gc-arcfour (Makefile.am): Likewise.
72579         * modules/gc-des (Makefile.am): Likewise.
72580         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72581         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72582         * modules/gc-md4 (Makefile.am): Likewise.
72583         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72584         * modules/gc-sha1 (Makefile.am): Likewise.
72585         * modules/gc (Makefile.am): Likewise.
72586         * modules/getaddrinfo (Makefile.am): Likewise.
72587         * modules/getcwd (Makefile.am): Likewise.
72588         * modules/getdelim (Makefile.am): Likewise.
72589         * modules/getdomainname (Makefile.am): Likewise.
72590         * modules/getgroups (Makefile.am): Likewise.
72591         * modules/gethostname (Makefile.am): Likewise.
72592         * modules/gethrxtime (Makefile.am): Likewise.
72593         * modules/getline (Makefile.am): Likewise.
72594         * modules/getloadavg (Makefile.am): Likewise.
72595         * modules/getlogin_r (Makefile.am): Likewise.
72596         * modules/getndelim2 (Makefile.am): Likewise.
72597         * modules/getopt (Makefile.am): Likewise.
72598         * modules/getpagesize (Makefile.am): Likewise.
72599         * modules/getpass-gnu (Makefile.am): Likewise.
72600         * modules/getpass (Makefile.am): Likewise.
72601         * modules/getsubopt (Makefile.am): Likewise.
72602         * modules/gettime (Makefile.am): Likewise.
72603         * modules/gettimeofday (Makefile.am): Likewise.
72604         * modules/getugroups (Makefile.am): Likewise.
72605         * modules/getusershell (Makefile.am): Likewise.
72606         * modules/glob (Makefile.am): Likewise.
72607         * modules/group-member (Makefile.am): Likewise.
72608         * modules/hard-locale (Makefile.am): Likewise.
72609         * modules/hash (Makefile.am): Likewise.
72610         * modules/hmac-md5 (Makefile.am): Likewise.
72611         * modules/hmac-sha1 (Makefile.am): Likewise.
72612         * modules/human (Makefile.am): Likewise.
72613         * modules/idcache (Makefile.am): Likewise.
72614         * modules/imaxabs (Makefile.am): Likewise.
72615         * modules/imaxdiv (Makefile.am): Likewise.
72616         * modules/inet_ntop (Makefile.am): Likewise.
72617         * modules/inet_pton (Makefile.am): Likewise.
72618         * modules/intprops (Makefile.am): Likewise.
72619         * modules/inttostr (Makefile.am): Likewise.
72620         * modules/inttypes (Makefile.am): Likewise.
72621         * modules/isapipe (Makefile.am): Likewise.
72622         * modules/javaversion (Makefile.am): Likewise.
72623         * modules/lchmod (Makefile.am): Likewise.
72624         * modules/lchown (Makefile.am): Likewise.
72625         * modules/localcharset (Makefile.am): Likewise.
72626         * modules/long-options (Makefile.am): Likewise.
72627         * modules/lstat (Makefile.am): Likewise.
72628         * modules/malloc (Makefile.am): Likewise.
72629         * modules/mathl (Makefile.am): Likewise.
72630         * modules/mbchar (Makefile.am): Likewise.
72631         * modules/md2 (Makefile.am): Likewise.
72632         * modules/md4 (Makefile.am): Likewise.
72633         * modules/md5 (Makefile.am): Likewise.
72634         * modules/memcasecmp (Makefile.am): Likewise.
72635         * modules/memchr (Makefile.am): Likewise.
72636         * modules/memcmp (Makefile.am): Likewise.
72637         * modules/memcoll (Makefile.am): Likewise.
72638         * modules/memcpy (Makefile.am): Likewise.
72639         * modules/memmem (Makefile.am): Likewise.
72640         * modules/memmove (Makefile.am): Likewise.
72641         * modules/mempcpy (Makefile.am): Likewise.
72642         * modules/memrchr (Makefile.am): Likewise.
72643         * modules/memset (Makefile.am): Likewise.
72644         * modules/memxor (Makefile.am): Likewise.
72645         * modules/mkancesdirs (Makefile.am): Likewise.
72646         * modules/mkdir-p (Makefile.am): Likewise.
72647         * modules/mkdir (Makefile.am): Likewise.
72648         * modules/mkdtemp (Makefile.am): Likewise.
72649         * modules/mkstemp (Makefile.am): Likewise.
72650         * modules/mktime (Makefile.am): Likewise.
72651         * modules/modechange (Makefile.am): Likewise.
72652         * modules/mountlist (Makefile.am): Likewise.
72653         * modules/nanosleep (Makefile.am): Likewise.
72654         * modules/obstack (Makefile.am): Likewise.
72655         * modules/openat (Makefile.am): Likewise.
72656         * modules/pagealign_alloc (Makefile.am): Likewise.
72657         * modules/pathmax (Makefile.am): Likewise.
72658         * modules/physmem (Makefile.am): Likewise.
72659         * modules/poll (Makefile.am): Likewise.
72660         * modules/posixtm (Makefile.am): Likewise.
72661         * modules/posixver (Makefile.am): Likewise.
72662         * modules/putenv (Makefile.am): Likewise.
72663         * modules/quote (Makefile.am): Likewise.
72664         * modules/quotearg (Makefile.am): Likewise.
72665         * modules/raise (Makefile.am): Likewise.
72666         * modules/read-file (Makefile.am): Likewise.
72667         * modules/readline (Makefile.am): Likewise.
72668         * modules/readlink (Makefile.am): Likewise.
72669         * modules/readtokens (Makefile.am): Likewise.
72670         * modules/readutmp (Makefile.am): Likewise.
72671         * modules/realloc (Makefile.am): Likewise.
72672         * modules/regex (Makefile.am): Likewise.
72673         * modules/rename-dest-slash (Makefile.am): Likewise.
72674         * modules/rename (Makefile.am): Likewise.
72675         * modules/rijndael (Makefile.am): Likewise.
72676         * modules/rmdir (Makefile.am): Likewise.
72677         * modules/rpmatch (Makefile.am): Likewise.
72678         * modules/safe-read (Makefile.am): Likewise.
72679         * modules/safe-write (Makefile.am): Likewise.
72680         * modules/same-inode (Makefile.am): Likewise.
72681         * modules/same (Makefile.am): Likewise.
72682         * modules/save-cwd (Makefile.am): Likewise.
72683         * modules/savedir (Makefile.am): Likewise.
72684         * modules/setenv (Makefile.am): Likewise.
72685         * modules/settime (Makefile.am): Likewise.
72686         * modules/sha1 (Makefile.am): Likewise.
72687         * modules/sig2str (Makefile.am): Likewise.
72688         * modules/snprintf (Makefile.am): Likewise.
72689         * modules/stat-macros (Makefile.am): Likewise.
72690         * modules/stat-time (Makefile.am): Likewise.
72691         * modules/stdbool (Makefile.am): Likewise.
72692         * modules/stdint (Makefile.am): Likewise.
72693         * modules/stdlib-safer (Makefile.am): Likewise.
72694         * modules/stpcpy (Makefile.am): Likewise.
72695         * modules/stpncpy (Makefile.am): Likewise.
72696         * modules/strcase (Makefile.am): Likewise.
72697         * modules/strcasestr (Makefile.am): Likewise.
72698         * modules/strchrnul (Makefile.am): Likewise.
72699         * modules/strcspn (Makefile.am): Likewise.
72700         * modules/strdup (Makefile.am): Likewise.
72701         * modules/strerror (Makefile.am): Likewise.
72702         * modules/strftime (Makefile.am): Likewise.
72703         * modules/strndup (Makefile.am): Likewise.
72704         * modules/strnlen (Makefile.am): Likewise.
72705         * modules/strpbrk (Makefile.am): Likewise.
72706         * modules/strsep (Makefile.am): Likewise.
72707         * modules/strstr (Makefile.am): Likewise.
72708         * modules/strtod (Makefile.am): Likewise.
72709         * modules/strtoimax (Makefile.am): Likewise.
72710         * modules/strtok_r (Makefile.am): Likewise.
72711         * modules/strtol (Makefile.am): Likewise.
72712         * modules/strtoll (Makefile.am): Likewise.
72713         * modules/strtoul (Makefile.am): Likewise.
72714         * modules/strtoull (Makefile.am): Likewise.
72715         * modules/strtoumax (Makefile.am): Likewise.
72716         * modules/strverscmp (Makefile.am): Likewise.
72717         * modules/sys_socket (Makefile.am): Likewise.
72718         * modules/sys_stat (Makefile.am): Likewise.
72719         * modules/sysexits (Makefile.am): Likewise.
72720         * modules/time_r (Makefile.am): Likewise.
72721         * modules/timegm (Makefile.am): Likewise.
72722         * modules/timespec (Makefile.am): Likewise.
72723         * modules/tmpfile-safer (Makefile.am): Likewise.
72724         * modules/trim (Makefile.am): Likewise.
72725         * modules/unistd-safer (Makefile.am): Likewise.
72726         * modules/unlinkdir (Makefile.am): Likewise.
72727         * modules/unlocked-io (Makefile.am): Likewise.
72728         * modules/userspec (Makefile.am): Likewise.
72729         * modules/utime (Makefile.am): Likewise.
72730         * modules/utimecmp (Makefile.am): Likewise.
72731         * modules/utimens (Makefile.am): Likewise.
72732         * modules/vasnprintf (Makefile.am): Likewise.
72733         * modules/vasprintf (Makefile.am): Likewise.
72734         * modules/vsnprintf (Makefile.am): Likewise.
72735         * modules/xalloc (Makefile.am): Likewise.
72736         * modules/xgetcwd (Makefile.am): Likewise.
72737         * modules/xnanosleep (Makefile.am): Likewise.
72738         * modules/xreadlink (Makefile.am): Likewise.
72739         * modules/xstrtod (Makefile.am): Likewise.
72740         * modules/xstrtol (Makefile.am): Likewise.
72741         * modules/xstrtold (Makefile.am): Likewise.
72742         * modules/yesno (Makefile.am): Likewise.
72743         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72744
72745 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72746
72747         * modules/error (Makefile.am): Distribute files through
72748         EXTRA_DIST, not lib_SOURCES.
72749
72750 2006-10-12  Eric Blake  <ebb9@byu.net>
72751
72752         * modules/error (Makefile.am): Distribute files in /lib.
72753         * modules/obstack (Makefile.am): Likewise.
72754
72755 2006-10-12  Bruno Haible  <bruno@clisp.org>
72756
72757         * modules/acl (Makefile.am): Distribute all files in lib/ through
72758         EXTRA_DIST.
72759         * modules/arcfour (Makefile.am): Likewise.
72760         * modules/arctwo (Makefile.am): Likewise.
72761         * modules/argmatch (Makefile.am): Likewise.
72762         * modules/argz (Makefile.am): Likewise.
72763         * modules/atexit (Makefile.am): Likewise.
72764         * modules/backupfile (Makefile.am): Likewise.
72765         * modules/c-strtod (Makefile.am): Likewise.
72766         * modules/c-strtold (Makefile.am): Likewise.
72767         * modules/calloc (Makefile.am): Likewise.
72768         * modules/canon-host (Makefile.am): Likewise.
72769         * modules/canonicalize (Makefile.am): Likewise.
72770         * modules/chdir-long (Makefile.am): Likewise.
72771         * modules/chdir-safer (Makefile.am): Likewise.
72772         * modules/check-version (Makefile.am): Likewise.
72773         * modules/chown (Makefile.am): Likewise.
72774         * modules/cloexec (Makefile.am): Likewise.
72775         * modules/close-stream (Makefile.am): Likewise.
72776         * modules/closeout (Makefile.am): Likewise.
72777         * modules/crc (Makefile.am): Likewise.
72778         * modules/cycle-check (Makefile.am): Likewise.
72779         * modules/des (Makefile.am): Likewise.
72780         * modules/dirfd (Makefile.am): Likewise.
72781         * modules/dirname (Makefile.am): Likewise.
72782         * modules/dup2 (Makefile.am): Likewise.
72783         * modules/euidaccess (Makefile.am): Likewise.
72784         * modules/exclude (Makefile.am): Likewise.
72785         * modules/exitfail (Makefile.am): Likewise.
72786         * modules/fcntl-safer (Makefile.am): Likewise.
72787         * modules/file-type (Makefile.am): Likewise.
72788         * modules/fileblocks (Makefile.am): Likewise.
72789         * modules/filemode (Makefile.am): Likewise.
72790         * modules/filenamecat (Makefile.am): Likewise.
72791         * modules/fnmatch (Makefile.am): Likewise.
72792         * modules/fopen-safer (Makefile.am): Likewise.
72793         * modules/fpending (Makefile.am): Likewise.
72794         * modules/fprintftime (Makefile.am): Likewise.
72795         * modules/free (Makefile.am): Likewise.
72796         * modules/fsusage (Makefile.am): Likewise.
72797         * modules/ftruncate (Makefile.am): Likewise.
72798         * modules/fts (Makefile.am): Likewise.
72799         * modules/gc (Makefile.am): Likewise.
72800         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72801         * modules/getaddrinfo (Makefile.am): Likewise.
72802         * modules/getcwd (Makefile.am): Likewise.
72803         * modules/getdelim (Makefile.am): Likewise.
72804         * modules/getdomainname (Makefile.am): Likewise.
72805         * modules/getgroups (Makefile.am): Likewise.
72806         * modules/gethostname (Makefile.am): Likewise.
72807         * modules/gethrxtime (Makefile.am): Likewise.
72808         * modules/getline (Makefile.am): Likewise.
72809         * modules/getloadavg (Makefile.am): Likewise.
72810         * modules/getlogin_r (Makefile.am): Likewise.
72811         * modules/getopt (Makefile.am): Likewise.
72812         * modules/getpass (Makefile.am): Likewise.
72813         * modules/getpass-gnu (Makefile.am): Likewise.
72814         * modules/getsubopt (Makefile.am): Likewise.
72815         * modules/gettime (Makefile.am): Likewise.
72816         * modules/gettimeofday (Makefile.am): Likewise.
72817         * modules/getugroups (Makefile.am): Likewise.
72818         * modules/getusershell (Makefile.am): Likewise.
72819         * modules/glob (Makefile.am): Likewise.
72820         * modules/group-member (Makefile.am): Likewise.
72821         * modules/hard-locale (Makefile.am): Likewise.
72822         * modules/hash (Makefile.am): Likewise.
72823         * modules/hmac-md5 (Makefile.am): Likewise.
72824         * modules/hmac-sha1 (Makefile.am): Likewise.
72825         * modules/human (Makefile.am): Likewise.
72826         * modules/idcache (Makefile.am): Likewise.
72827         * modules/imaxabs (Makefile.am): Likewise.
72828         * modules/imaxdiv (Makefile.am): Likewise.
72829         * modules/inet_ntop (Makefile.am): Likewise.
72830         * modules/inet_pton (Makefile.am): Likewise.
72831         * modules/inttostr (Makefile.am): Likewise.
72832         * modules/isapipe (Makefile.am): Likewise.
72833         * modules/lchown (Makefile.am): Likewise.
72834         * modules/long-options (Makefile.am): Likewise.
72835         * modules/lstat (Makefile.am): Likewise.
72836         * modules/malloc (Makefile.am): Likewise.
72837         * modules/mathl (Makefile.am): Likewise.
72838         * modules/mbchar (Makefile.am): Likewise.
72839         * modules/md2 (Makefile.am): Likewise.
72840         * modules/md4 (Makefile.am): Likewise.
72841         * modules/md5 (Makefile.am): Likewise.
72842         * modules/memcasecmp (Makefile.am): Likewise.
72843         * modules/memchr (Makefile.am): Likewise.
72844         * modules/memcmp (Makefile.am): Likewise.
72845         * modules/memcoll (Makefile.am): Likewise.
72846         * modules/memcpy (Makefile.am): Likewise.
72847         * modules/memmem (Makefile.am): Likewise.
72848         * modules/memmove (Makefile.am): Likewise.
72849         * modules/mempcpy (Makefile.am): Likewise.
72850         * modules/memrchr (Makefile.am): Likewise.
72851         * modules/memset (Makefile.am): Likewise.
72852         * modules/memxor (Makefile.am): Likewise.
72853         * modules/mkancesdirs (Makefile.am): Likewise.
72854         * modules/mkdir (Makefile.am): Likewise.
72855         * modules/mkdir-p (Makefile.am): Likewise.
72856         * modules/mkdtemp (Makefile.am): Likewise.
72857         * modules/mkstemp (Makefile.am): Likewise.
72858         * modules/mktime (Makefile.am): Likewise.
72859         * modules/modechange (Makefile.am): Likewise.
72860         * modules/mountlist (Makefile.am): Likewise.
72861         * modules/nanosleep (Makefile.am): Likewise.
72862         * modules/openat (Makefile.am): Likewise.
72863         * modules/pagealign_alloc (Makefile.am): Likewise.
72864         * modules/physmem (Makefile.am): Likewise.
72865         * modules/poll (Makefile.am): Likewise.
72866         * modules/posixtm (Makefile.am): Likewise.
72867         * modules/posixver (Makefile.am): Likewise.
72868         * modules/putenv (Makefile.am): Likewise.
72869         * modules/quote (Makefile.am): Likewise.
72870         * modules/quotearg (Makefile.am): Likewise.
72871         * modules/raise (Makefile.am): Likewise.
72872         * modules/read-file (Makefile.am): Likewise.
72873         * modules/readline (Makefile.am): Likewise.
72874         * modules/readlink (Makefile.am): Likewise.
72875         * modules/readtokens (Makefile.am): Likewise.
72876         * modules/readutmp (Makefile.am): Likewise.
72877         * modules/realloc (Makefile.am): Likewise.
72878         * modules/regex (Makefile.am): Likewise.
72879         * modules/rename (Makefile.am): Likewise.
72880         * modules/rename-dest-slash (Makefile.am): Likewise.
72881         * modules/rijndael (Makefile.am): Likewise.
72882         * modules/rmdir (Makefile.am): Likewise.
72883         * modules/rpmatch (Makefile.am): Likewise.
72884         * modules/safe-read (Makefile.am): Likewise.
72885         * modules/safe-write (Makefile.am): Likewise.
72886         * modules/same (Makefile.am): Likewise.
72887         * modules/save-cwd (Makefile.am): Likewise.
72888         * modules/savedir (Makefile.am): Likewise.
72889         * modules/setenv (Makefile.am): Likewise.
72890         * modules/settime (Makefile.am): Likewise.
72891         * modules/sha1 (Makefile.am): Likewise.
72892         * modules/sig2str (Makefile.am): Likewise.
72893         * modules/snprintf (Makefile.am): Likewise.
72894         * modules/stdlib-safer (Makefile.am): Likewise.
72895         * modules/stpcpy (Makefile.am): Likewise.
72896         * modules/stpncpy (Makefile.am): Likewise.
72897         * modules/strcase (Makefile.am): Likewise.
72898         * modules/strcasestr (Makefile.am): Likewise.
72899         * modules/strchrnul (Makefile.am): Likewise.
72900         * modules/strcspn (Makefile.am): Likewise.
72901         * modules/strdup (Makefile.am): Likewise.
72902         * modules/strerror (Makefile.am): Likewise.
72903         * modules/strftime (Makefile.am): Likewise.
72904         * modules/strndup (Makefile.am): Likewise.
72905         * modules/strnlen (Makefile.am): Likewise.
72906         * modules/strpbrk (Makefile.am): Likewise.
72907         * modules/strsep (Makefile.am): Likewise.
72908         * modules/strstr (Makefile.am): Likewise.
72909         * modules/strtod (Makefile.am): Likewise.
72910         * modules/strtoimax (Makefile.am): Likewise.
72911         * modules/strtok_r (Makefile.am): Likewise.
72912         * modules/strtol (Makefile.am): Likewise.
72913         * modules/strtoll (Makefile.am): Likewise.
72914         * modules/strtoul (Makefile.am): Likewise.
72915         * modules/strtoull (Makefile.am): Likewise.
72916         * modules/strtoumax (Makefile.am): Likewise.
72917         * modules/strverscmp (Makefile.am): Likewise.
72918         * modules/time_r (Makefile.am): Likewise.
72919         * modules/timegm (Makefile.am): Likewise.
72920         * modules/tmpfile-safer (Makefile.am): Likewise.
72921         * modules/unistd-safer (Makefile.am): Likewise.
72922         * modules/unlinkdir (Makefile.am): Likewise.
72923         * modules/userspec (Makefile.am): Likewise.
72924         * modules/utime (Makefile.am): Likewise.
72925         * modules/utimecmp (Makefile.am): Likewise.
72926         * modules/utimens (Makefile.am): Likewise.
72927         * modules/vasnprintf (Makefile.am): Likewise.
72928         * modules/vasprintf (Makefile.am): Likewise.
72929         * modules/vsnprintf (Makefile.am): Likewise.
72930         * modules/xalloc (Makefile.am): Likewise.
72931         * modules/xgetcwd (Makefile.am): Likewise.
72932         * modules/xnanosleep (Makefile.am): Likewise.
72933         * modules/xreadlink (Makefile.am): Likewise.
72934         * modules/xstrtod (Makefile.am): Likewise.
72935         * modules/xstrtol (Makefile.am): Likewise.
72936         * modules/xstrtold (Makefile.am): Likewise.
72937         * modules/yesno (Makefile.am): Likewise.
72938
72939 2006-10-12  Jim Meyering  <jim@meyering.net>
72940
72941         * m4/getloadavg.m4: Revert the change below.
72942
72943         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72944         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72945         fail with a symlink, which is what coreutils' ./bootstrap now
72946         creates by default.
72947
72948 2006-10-12  Bruno Haible  <bruno@clisp.org>
72949
72950         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72951         mingw.
72952         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72953         MSVC and mingw explicitly.
72954
72955 2006-10-11  Simon Josefsson  <jas@extundo.com>
72956             Bruno Haible  <bruno@clisp.org>
72957
72958         Add support for multiple gnulib-tool invocations in the scope of a
72959         single configure.ac file.
72960         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72961         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72962         with the same contents as the _LIBADD variable.
72963         (func_emit_initmacro_start, func_emit_initmacro_end,
72964         func_emit_initmacro_done): New functions.
72965         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72966         gl_LIBOBJS and gl_LTLIBOBJS.
72967
72968 2006-10-11  Bruno Haible  <bruno@clisp.org>
72969
72970         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72971         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72972         autoreconf. Instead, invoke autopoint explicitly but move back the
72973         *.m4 files from gnulib.
72974
72975 2006-10-11  Bruno Haible  <bruno@clisp.org>
72976
72977         * gnulib-tool (func_usage): Make module names after --create-testdir
72978         optional.
72979         (func_create_testdir): If no module was specified, use nearly all
72980         modules.
72981
72982 2006-10-12  Jim Meyering  <jim@meyering.net>
72983
72984         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72985         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72986         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72987         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72988         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72989         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72990         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72991         (fts_set_stat_required): New function.
72992         (fts_open): Defer the calls to fts_stat, if possible or requested.
72993         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72994         into fts_stat itself.
72995         (fts_read): Perform any required (deferred) fts_stat call.
72996         (fts_build): Likewise, for the directory we're about to open and read.
72997         In the readdir loop, carefully decide whether each entry will require
72998         an eventual call to fts_stat, using dirent.d_type info if available.
72999         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73000         a command line argument into this function.  Update all callers.
73001         Map a return value of FTS_DOT to FTS_D for a command line argument.
73002         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73003         Thanks to Miklos Szeredi for his tenacity and for the initial
73004         bug report about "find" failing on a FUSE-based file system.
73005
73006         * lib/fts.c (fts_open): Use consistent indentation.
73007
73008 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73009
73010         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73011         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73012         reported by Jim Meyering.  All uses of cache variables renamed
73013         to match Autoconf's.
73014         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73015         the other one.
73016
73017         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73018         Fix misspelling in diagnostic.
73019
73020 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73021
73022         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73023         defined.  Problem reported by Matthew Woehlke.
73024
73025         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73026         Add support for Tandem NonStop R series.
73027         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73028         Use new macro.
73029
73030         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73031         (has_trailing_slash): Omit size arg; all callers changed.
73032         Omit 'inline', since it doesn't help performance and we'd
73033         need to configure it.
73034         Don't count //, ///, etc. as having a trailing slash.
73035         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73036         (rpl_rename_dest_slash): On failure, use rename's errno rather
73037         than (in some cases) an incorrect or junk errno.
73038         Simplify code by removing need to compute length; this does
73039         cause it to make two passes instead of one over the file name,
73040         but it's worth it.
73041
73042         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73043         change, since Autoconf's version may no longer be appropriate now
73044         that we are using CVS Autoconf's version.  Add support for Tandem.
73045
73046 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73047             Bruno Haible  <bruno@clisp.org>
73048
73049         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73050         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73051         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73052         gl_AC_TYPE_LONG_LONG.
73053
73054         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73055         instead of HAVE_LONG_LONG.
73056         * lib/printf-args.c (printf_fetchargs): Likewise.
73057         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73058         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73059         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73060         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73061         gl_AC_TYPE_LONG_LONG.
73062
73063 2006-10-11  Bruno Haible  <bruno@clisp.org>
73064
73065         * m4/longlong.m4: Add comments.
73066         * m4/ulonglong.m4: Likewise.
73067
73068 2006-10-10  Bruno Haible  <bruno@clisp.org>
73069
73070         Make it possible to #define stpcpy, strdup to aliases.
73071         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73072         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73073
73074 2006-10-10  Bruno Haible  <bruno@clisp.org>
73075
73076         Make it possible to #define gcd to an alias.
73077         * lib/gcd.c: Include config.h.
73078
73079 2006-10-10  Bruno Haible  <bruno@clisp.org>
73080
73081         Make it possible to #define c_isascii to an alias.
73082         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73083         defined. Undefine the macros before defining them, to avoid gcc
73084         warnings.
73085         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73086         define NO_C_CTYPE_MACROS early.
73087
73088 2006-10-10  Bruno Haible  <bruno@clisp.org>
73089
73090         Make it possible to #define set_program_name to an alias.
73091         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73092         ENABLE_RELOCATABLE early.
73093
73094 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73095
73096         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73097         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73098         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73099         More generally, don't assume that 64-bit signed int is available
73100         if unsigned int is, and vice versa.
73101         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73102         unsigned symbols, not on their signed counterparts.
73103         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73104         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73105         (UINT64_C, UINTMAX_C):
73106         Likewise.
73107         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73108         unsigned counterparts.
73109         (Have_long_long, Unsigned): New macros.
73110         (Int): Renamed from INT.
73111         (strtoimax): Use the new macros.
73112         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73113         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73114         * modules/inttypes (inttypes.h): Substitute
73115         HAVE_UNSIGNED_LONG_LONG_INT.
73116         * modules/stdint (stdint.h): Likewise.
73117         (Files): Add m4/ulonglong.m4.
73118
73119 2006-10-10  Bruno Haible  <bruno@clisp.org>
73120
73121         Fix a gcc -Wshadow warning.
73122         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73123         to 'bucket'.
73124         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73125         gl_linked_indexof_from_to): Likewise.
73126         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73127         Likewise.
73128         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73129         Likewise.
73130         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73131         Reported by Eric Blake.
73132
73133 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73134
73135         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73136         for NetBSD.  Problem reported by Bruno Haible.
73137
73138 2006-10-09  Jim Meyering  <jim@meyering.net>
73139
73140         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73141         Patch from Bruno Haible.
73142
73143 2006-10-09  Jim Meyering  <jim@meyering.net>
73144
73145         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73146         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73147         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73148
73149 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73150
73151         Don't include <config.h> twice; this doesn't work in some cases,
73152         e.g., when config.h has "#define intmax_t long long int" and
73153         we include <config.h>, <inttypes.h>, <config.h> in that order.
73154         Problem reported by Matthew Woehlke in:
73155         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73156         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73157         * lib/fts-cycle.c: Don't include config.h.
73158         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73159         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73160         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73161         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73162         inttypes.h.
73163         * lib/xstrtoumax.c: Likewise.
73164         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73165         __strtol and the like, so that this module is more like its siblings.
73166         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73167         Remove; no longer needed now that we assume gnulib inttypes.h.
73168
73169 2006-10-08  Bruno Haible  <bruno@clisp.org>
73170
73171         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73172         option.
73173
73174 2006-10-07  Jim Meyering  <jim@meyering.net>
73175
73176         * modules/inttypes (inttypes.h): Revert what seems to have been
73177         an inadvertent part of today's change: use "|", not "/" in the
73178         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73179
73180 2006-10-07  Bruno Haible  <bruno@clisp.org>
73181
73182         * modules/sublist: New file.
73183
73184 2006-10-07  Bruno Haible  <bruno@clisp.org>
73185
73186         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73187         * modules/argz (argz.h): Likewise.
73188         * modules/arpa_inet (arpa/inet.h): Likewise.
73189         * modules/byteswap (byteswap.h): Likewise.
73190         * modules/configmake (configmake.h): Likewise.
73191         * modules/fcntl (fcntl.h): Likewise.
73192         * modules/fnmatch (fnmatch.h): Likewise.
73193         * modules/getopt (getopt.h): Likewise.
73194         * modules/glob (glob.h): Likewise.
73195         * modules/inttypes (inttypes.h): Likewise.
73196         * modules/netinet_in (netinet/in.h): Likewise.
73197         * modules/poll (poll.h): Likewise.
73198         * modules/stdbool (stdbool.h): Likewise.
73199         * modules/stdint (stdint.h): Likewise.
73200         * modules/sys_select (sys/select.h): Likewise.
73201         * modules/sys_socket (sys/socket.h): Likewise.
73202         * modules/sys_stat (sys/stat.h): Likewise.
73203         * modules/sysexits (sysexits.h): Likewise.
73204         * modules/unistd (unistd.h): Likewise.
73205         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73206         Add a "DO NOT EDIT" comment to the generated file.
73207         (func_import): Likewise for gnulib-comp.m4.
73208
73209 2006-10-07  Bruno Haible  <bruno@clisp.org>
73210
73211         * lib/gl_sublist.h: New file.
73212         * lib/gl_sublist.c: New file.
73213
73214 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73215
73216         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73217         name (relative to the original working directory) and the file
73218         name component (relative to the temporary working directory).  All
73219         callers changed.
73220         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73221         * lib/mkdir-p.c (make_dir_parents): Likewise.
73222         * lib/mkdir-p.h (make_dir_parents): Likewise.
73223
73224 2006-10-06  Eric Blake  <ebb9@byu.net>
73225
73226         Define several macros for use by the clean-temp module.
73227         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73228         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73229         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73230
73231         * lib/clean-temp.h (close_stream_temp): New declaration.
73232         * lib/clean-temp.c (includes): Pull in headers according to what
73233         other modules are in use.
73234         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73235
73236 2006-10-06  Bruno Haible  <bruno@clisp.org>
73237
73238         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73239         instead of fopen, fwriteerror.
73240
73241 2006-10-06  Bruno Haible  <bruno@clisp.org>
73242
73243         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73244         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73245         int.
73246         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73247         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73248         Return an error indicator.
73249         Suggested by Eric Blake.
73250
73251 2006-10-06  Bruno Haible  <bruno@clisp.org>
73252
73253         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73254         Reported by Eric Blake.
73255
73256 2006-10-06  Bruno Haible  <bruno@clisp.org>
73257
73258         * modules/closeout (Description): Mention stderr too.
73259
73260 2006-10-06  Bruno Haible  <bruno@clisp.org>
73261         and Paul Eggert  <eggert@cs.ucla.edu>
73262
73263         * lib/closeout.c (close_stdout): Also close stderr.
73264         * lib/closeout.h: Update comment.
73265
73266 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73267
73268         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73269         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73270         * lib/dirchownmod.c: Include lchown.h.
73271         * lib/lchown.c: Don't include files that lchown.h now includes.
73272         Don't declare chown, since lchown.h now does that.
73273         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73274         (lchown): Define to rpl_chown if lchown is declared but
73275         does not exist.  Declare using a prototype if lchown is not
73276         declared.  Add a copyright notice.
73277         * lib/mkstemp.h: Include <unistd.h>.
73278         * lib/openat.c: Include lchown.h.
73279
73280         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73281         we now test for that separately.
73282         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73283         rather than O_NOFOLLOW, when testing whether it's possible to
73284         avoid a race condition reliably.
73285         * lib/savewd.c (savewd_chdir): Likewise.
73286
73287         Remove macros that are no longer needed now that stdint.h is
73288         reliable.
73289         * lib/fsusage.c (UINTMAX_MAX): Remove.
73290         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73291         * lib/utimecmp.c (SIZE_MAX): Remove.
73292
73293         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73294
73295         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73296         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73297         O_NOATIME works.
73298
73299 2006-10-05  Bruno Haible  <bruno@clisp.org>
73300
73301         * lib/gl_list.h (gl_sortedlist_search_from_to,
73302         gl_sortedlist_indexof_from_to): New declarations.
73303         (gl_list_implementation): New fields sortedlist_search_from_to,
73304         sortedlist_indexof_from_to.
73305         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73306         inline functions.
73307         * lib/gl_list.c (gl_sortedlist_search_from_to,
73308         gl_sortedlist_indexof_from_to): New functions.
73309         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73310         function.
73311         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73312         (gl_array_sortedlist_search_from_to): New function.
73313         (gl_array_list_implementation): Update.
73314         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73315         function.
73316         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73317         (gl_carray_sortedlist_search_from_to): New function.
73318         (gl_carray_list_implementation): Update.
73319         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73320         gl_linked_sortedlist_indexof_from_to): New functions.
73321         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73322         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73323         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73324         gl_tree_sortedlist_indexof_from_to): New functions.
73325         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73326         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73327         Update.
73328         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73329         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73330         Update.
73331
73332 2006-10-05  Bruno Haible  <bruno@clisp.org>
73333
73334         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73335         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73336         (struct gl_list_implementation): Add fields search_from_to,
73337         indexof_from_to. Remove fields search, indexof.
73338         (gl_list_search): Use the search_from_to method.
73339         (gl_list_search_from, gl_list_search_from_to): New functions.
73340         (gl_list_indexof): Use the indexof_from_to method.
73341         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73342         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73343         (gl_list_search_from, gl_list_search_from_to): New functions.
73344         (gl_list_indexof): Use the indexof_from_to method.
73345         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73346         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73347         gl_array_indexof. Add start_index, end_index arguments.
73348         (gl_array_search_from_to): Renamed from gl_array_search. Add
73349         start_index, end_index arguments.
73350         (gl_array_remove, gl_array_list_implementation): Update.
73351         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73352         gl_carray_indexof. Add start_index, end_index arguments.
73353         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73354         start_index, end_index arguments.
73355         (gl_carray_remove, gl_carray_list_implementation): Update.
73356         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73357         gl_linked_search. Add start_index, end_index arguments.
73358         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73359         start_index, end_index arguments.
73360         (gl_linked_remove): Update.
73361         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73362         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73363         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73364         field to 'size_t'.
73365         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73366         gl_tree_search. Add start_index, end_index arguments.
73367         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73368         start_index, end_index arguments.
73369         (gl_tree_remove): Update.
73370         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73371         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73372         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73373         function.
73374         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73375         gl_tree_search. Add start_index, end_index arguments.
73376         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73377         start_index, end_index arguments.
73378         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73379         Update.
73380         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73381
73382 2006-10-05  Bruno Haible  <bruno@clisp.org>
73383
73384         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73385
73386         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73387         fwriteerror_temp): New declarations.
73388         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73389         (descriptors): New variable.
73390         (cleanup): First, close the descriptors.
73391         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73392         fclose_temp, fwriteerror_temp): New functions.
73393
73394 2006-10-04  Jim Meyering  <jim@meyering.net>
73395
73396         * lib/fts.c (fts_open): Tiny comment change.
73397
73398 2006-10-04  Bruno Haible  <bruno@clisp.org>
73399
73400         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73401         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73402         gl_LOCK_BODY.
73403         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73404         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73405         gl_LOCK_EARLY_BODY.
73406         (gl_LOCK): Require gl_LOCK_BODY.
73407
73408 2006-10-04  Bruno Haible  <bruno@clisp.org>
73409
73410         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73411         (gl_oset_search_atleast): New declaration.
73412         (struct gl_oset_implementation): Add field 'search_atleast'.
73413         (gl_oset_search_atleast): New inline function.
73414         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73415         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73416         (gl_array_oset_implementation): Update.
73417         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73418         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73419         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73420
73421 2006-10-04  Bruno Haible  <bruno@clisp.org>
73422
73423         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73424
73425 2006-10-03  Bruno Haible  <bruno@clisp.org>
73426
73427         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73428         from gl_avltreehash_list_implementation.
73429
73430 2006-10-03  Bruno Haible  <bruno@clisp.org>
73431
73432         * lib/gl_oset.c (gl_oset_add): Fix return type.
73433
73434 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73435
73436         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73437
73438 2006-10-02  Eric Blake  <ebb9@byu.net>
73439
73440         * modules/strnlen (Depends-on): Add extensions.
73441
73442 2006-10-02  Eric Blake  <ebb9@byu.net>
73443
73444         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73445         definition in 2.60+.
73446
73447 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73448
73449         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73450         checks.
73451
73452 2006-10-02  Bruno Haible  <bruno@clisp.org>
73453
73454         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73455         to the AUTOMAKE_OPTIONS.
73456         Reported by Jim Meyering.
73457
73458 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         Work around bug in Solaris 10 /proc file system:
73461         /proc/self/fd/NNN/.. isn't the parent directory of
73462         the directory whose file descriptor is NNN.  This needs to
73463         be worked around at run time, not compile time, since a
73464         program might be built on Solaris 8, where things work, and
73465         run on Solaris 10.
73466         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73467         to use the following interface instead:
73468         (OPENAT_BUFFER_SIZE): New macro.
73469         (openat_proc_name): New function.
73470         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73471         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73472         Likewise.
73473         * lib/openat-proc.c: New file.
73474         * modules/openat (Files): Add lib/openat-proc.c.
73475         (Depends-on): Add same-inode, stdbool.
73476         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73477
73478 2006-09-29  Bruno Haible  <bruno@clisp.org>
73479
73480         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73481         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73482         argument. Set stdout_closed before testing for ferror, not after.
73483         (fwriteerror, fwriteerror_no_ebadf): New functions.
73484
73485 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73486
73487         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73488
73489 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73490
73491         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73492         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73493
73494 2006-09-28  Jim Meyering  <jim@meyering.net>
73495
73496         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73497         Include <unistd.h>.
73498
73499 2006-09-28  Bruno Haible  <bruno@clisp.org>
73500
73501         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73502         * modules/linkedhash-list (Depends-on): Likewise.
73503         * modules/rbtreehash-list (Depends-on): Likewise.
73504
73505 2006-09-28  Bruno Haible  <bruno@clisp.org>
73506
73507         * lib/strndup.h: Simplify the redefinition of strndup.
73508         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73509         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73510
73511 2006-09-28  Bruno Haible  <bruno@clisp.org>
73512
73513         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73514         * lib/gl_linkedhash_list.c: Likewise.
73515         * lib/gl_rbtreehash_list.c: Likewise.
73516
73517 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73518
73519         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73520         getaddrinfo.
73521
73522         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73523         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73524         it causes <stdio_ext.h> to cause a compile-time error.
73525         Problem reported by Nelson H. F. Beebe.
73526         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73527         of HAVE_DECL___PENDING.
73528
73529         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73530         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73531         declaration.
73532
73533 2006-09-27  Jim Meyering  <jim@meyering.net>
73534
73535         This file could end up with a definition for a function
73536         named __strndup, rather than rpl_strndup on a system with
73537         incomplete weak_alias support.
73538         * lib/strndup.c (strndup): Rename from __strndup.
73539         Remove #defines that used to map __strndup to strndup.
73540         Don't use K&R prototypes.
73541         Remove LIBC-related code, since this file is not sync'd with glibc.
73542         * lib/strndup.h: Revamp, accordingly.
73543         * m4/strndup.m4: Modernize.
73544
73545 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73546
73547         * modules/savewd (Depends-on): Add 'raise'.
73548         * lib/savewd.c: Include <signal.h>, for 'raise'.
73549
73550 2006-09-26  Jim Meyering  <jim@meyering.net>
73551
73552         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73553         when we detect Darwin 8.7.0's acl_get_file bug.
73554         Rearrange to perform the new (below) run-test while $LIBS
73555         contains any acl-related library.  Set USE_ACL at the end.
73556         (gl_ACL_GET_FILE): New function.
73557
73558 2006-09-26  Eric Blake  <ebb9@byu.net>
73559
73560         * lib/verror.c: Include <config.h> unconditionally.
73561
73562 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73563
73564         * modules/clock-time (Maintainer): Add self.
73565         * modules/getlogin_r (Depends-on): Add extensions.
73566
73567 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73568
73569         * modules/clock-time: New module.
73570         * modules/nanosleep (Depends-on): Add clock-time.
73571         * modules/gethrxtime (Depends-on): Likewise.
73572         * modules/gettime (Depends-on): Likewise.
73573         * modules/settime (Depends-on): Likewise.
73574
73575         * modules/fts-lgpl: Depend on openat.
73576         * modules/mkancesdirs: Depend on savewd.
73577         * modules/mkdir-p: Likewise.
73578
73579 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73580
73581         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73582
73583         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73584         `gl_have_arbitrary_file_name_length_limit' to
73585         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73586         actually works between configure runs.
73587
73588 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73589             Bruno Haible  <bruno@clisp.org>
73590
73591         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73592
73593 2006-09-25  Jim Meyering  <jim@meyering.net>
73594
73595         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73596         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73597
73598 2006-09-25  Eric Blake  <ebb9@byu.net>
73599
73600         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73601         exec's in 2006-09-18 patch when shuffling fds.
73602
73603 2006-09-25  Bruno Haible  <bruno@clisp.org>
73604
73605         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73606         Reported by Jim Meyering.
73607
73608 2006-09-24  Jim Meyering  <jim@meyering.net>
73609
73610         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73611         compare a pointer against a literal "0".  That caused failures with
73612         at least HP-UX's hpcc.
73613
73614 2006-09-22  Simon Josefsson  <jas@extundo.com>
73615
73616         * modules/gc-sha1:
73617         * modules/gc-md4:
73618         * modules/gc-hmac-sha1:
73619         * modules/gc-hmac-md5:
73620         * modules/gc-des:
73621         * modules/gc-arcfour: Distribute more files.
73622
73623 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73624
73625         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73626         (gl_linked_iterator_from_to): Initialize struct completely.
73627         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73628         (gl_tree_iterator_from_to): Likewise
73629         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73630         * lib/gl_array_list.c [lint] (gl_array_iterator)
73631         (gl_array_iterator_from_to): Likewise.
73632         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73633         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73634         (gl_carray_iterator_from_to): Likewise.
73635
73636         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73637         * lib/md4.c (md4_process_block): Remove unused variable.
73638         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73639         parentheses for clarity.
73640
73641 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73642
73643         * modules/bison-i18n (Depends-on): Add gettext.
73644
73645 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73646
73647         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73648         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73649         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73650         also add missing comma that caused broken test.
73651         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73652         stdlib.h, for `abort'.
73653         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73654         variables.
73655         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73656         include unistd.h if present, for `rmdir'.
73657         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73658         variables.
73659         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73660         in the process include standard headers for prototypes.
73661         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73662         gets declared on GNU/Linux.
73663         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73664         unistd.h, for `rmdir'.
73665         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73666
73667         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73668         always true.
73669         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73670
73671         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73672
73673 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73674
73675         * gnulib-tool (func_version): Create output all at once.  This
73676         may help avoid triggering unnecessary SIGPIPEs, and at any
73677         rate it doesn't hurt.
73678
73679 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73680             Bruno Haible  <bruno@clisp.org>
73681
73682         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73683         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73684         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73685
73686         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73687         (gl_FUNC_VASPRINTF): Invoke it.
73688
73689 2006-09-22  Bruno Haible  <bruno@clisp.org>
73690
73691         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73692         getloadavg.c as first argument.
73693
73694 2006-09-22  Bruno Haible  <bruno@clisp.org>
73695
73696         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73697         at the beginning of the gl_INIT macro.
73698         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73699         gl_GETLOADAVG.
73700
73701 2006-09-22  Bruno Haible  <bruno@clisp.org>
73702
73703         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73704         module.
73705         Suggested by Ralf Wildenhues.
73706
73707 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73708
73709         Import this patch from libc:
73710
73711         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73712
73713         * lib/regex_internal.c (re_string_reconstruct): Handle
73714         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73715         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73716         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73717         re_string_context_at.
73718
73719         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73720         now requires it.
73721         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73722         gl_REGEX now does it for us.
73723         (gl_REGEX): Add test taken from
73724         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73725
73726         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73727         Check that large offsets work.  Modernize Autoconf usages.
73728         Prefer "yes" to mean a good thing rather than a bad.
73729         Don't put "#define mkstemp" in config.h, as this might interfere
73730         with standard system headers that "#define mkstemp mkstemp64".
73731
73732         * modules/mkstemp (Depends-on): Add extensions, so that
73733         mkstemp is visible on some platforms.
73734         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73735         (Include): Change to "mkstemp.h" from <stdlib.h>.
73736         (Files): Add mkstemp.h.
73737
73738         * lib/mkstemp.h: New file, since some standard headers
73739         #define mkstemp.
73740         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73741         Include "mkstemp.h".
73742         Make the _LIBC code resemble glibc original more,
73743         e.g., use K&R style.
73744         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73745         (mkstemp): Remove, since mkstemp.h does this for us.
73746         * lib/stdlib--.h: Include mkstemp.h.
73747
73748         Import this patch from libc:
73749
73750         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73751
73752         * lib/tempname.c (__gen_tempname): Change attempts_min
73753         into a macro.  Use preprocessor to decide how to initialize
73754         attempts [Coverity CID 67].
73755
73756 2006-09-20  Bruno Haible  <bruno@clisp.org>
73757
73758         * lib/mkdtemp.c: Import from libc.
73759         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73760                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73761                 attempts_min into a macro.  Use preprocessor to decide how to
73762                 initialize attempts [Coverity CID 67].
73763         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73764                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73765                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73766
73767 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73768
73769         * gnulib-tool (func_exit): New function, to allow to pass the
73770         exit status portably through the trap.  Use everywhere.
73771         (--help, --version): Signal a write error.
73772         (trap): catch SIGPIPE, for write errors.
73773         Exit at the end of the trap, with the correct exit status.
73774
73775 2006-09-19  Karl Berry  <karl@gnu.org>
73776
73777         * doc/gnulib.texi: note about the license texinfo files.
73778
73779 2006-09-19  Eric Blake  <ebb9@byu.net>
73780
73781         * gnulib-tool: Avoid space-tab.
73782
73783 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73784
73785         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73786         that prevented coreutils 6.1 from building.  Problem reported
73787         by Petter Reinholdtsen.
73788
73789 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73790
73791         * gnulib-tool (avoidlist): Fix typo that broke options like
73792         --avoid=lock that are used by coreutils bootstrap.
73793
73794 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73795
73796         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73797         more systematically.
73798
73799 2006-09-18  Jim Meyering  <jim@meyering.net>
73800
73801         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73802
73803 2006-09-18  Bruno Haible  <bruno@clisp.org>
73804
73805         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73806
73807 2006-09-18  Bruno Haible  <bruno@clisp.org>
73808
73809         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73810         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73811         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73812         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73813         * m4/gettext.m4: Require autoconf >= 2.52.
73814         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73815         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73816         of gl_cv_header_inttypes_h.
73817
73818 2006-09-18  Bruno Haible  <bruno@clisp.org>
73819
73820         * lib/javaversion.c: Include configmake.h.
73821
73822 2006-09-18  Bruno Haible  <bruno@clisp.org>
73823
73824         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73825         avoid that the while loops be executed in a subshell.
73826
73827 2006-09-18  Bruno Haible  <bruno@clisp.org>
73828
73829         * MODULES.html.sh (func_module): Break long lines.
73830         Suggested by Bruce Korb <bkorb@gnu.org>.
73831
73832 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73833
73834         Speed up by a factor of 1.12.
73835         * gnulib-tool (nl): New variable.
73836         (func_import): Rewrite include directive extraction to only read each
73837         directive once.
73838
73839 2006-09-17  Bruno Haible  <bruno@clisp.org>
73840
73841         * modules/javaversion (Makefile.am): Remove DEFS setting.
73842         (Depends-on): Add configmake, for PKGDATADIR definition.
73843
73844 2006-09-17  Bruno Haible  <bruno@clisp.org>
73845
73846         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73847
73848 2006-09-17  Bruno Haible  <bruno@clisp.org>
73849
73850         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73851         (func_modules_transitive_closure, func_modules_add_dummy,
73852         func_modules_to_filelist, func_import, func_create_testdir,
73853         func_create_megatestdir, ...): Use it wherever possible.
73854         Suggested by Ralf Wildenhues.
73855
73856 2006-09-16  Karl Berry  <karl@gnu.org>
73857
73858         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73859         to avoid sectioning errors.
73860         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73861         [ifinfo]: blank line after @center-ed titles.
73862         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73863         Spell FSF address consistently with others.
73864         (These changes approved by rms.)
73865
73866 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73867
73868         Speed up by a factor of 1.61.
73869         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73870         already checked module names again.
73871
73872 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73873
73874         Speed up by a factor of 1.13.
73875         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73876         for new_files, and the input to func_add_or_update.
73877
73878 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73879
73880         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73881         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73882
73883 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73884
73885         * modules/mkancesdirs (Depends-on): Add fcntl.
73886         * modules/savewd: New file.
73887         * MODULES.html.sh (File system functions): Add savewd.
73888
73889         * modules/configmake (Makefile.am): Add support for the
73890         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73891
73892 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73893
73894         * m4/savewd.m4: New file.
73895
73896 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73897
73898         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73899         (dirchownmod): New arg FD.  All callers changed.
73900         Use FD rather than opening the directory ourself, as opening is
73901         now the caller's responsibility.
73902         * lib/dirchownmod.h: Likewise.
73903         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73904         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73905         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73906         (test_dir): Remove.
73907         (mkancesdirs): Return length of prefix of FILE that has already
73908         been made, or -2 if there is a child doing the work.  Redo
73909         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73910         ".", and treat ".." specially since it might stray back into
73911         already-created areas.  Use a subprocess if necessary.  New arg
73912         WD; all users changed.  MAKE_DIR function should now return 1
73913         if it creates a directory that is not readable.  Return -2 if
73914         a child process is spun off.
73915         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73916         Adjust signature to match code.
73917         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73918         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73919         all users changed.
73920         * lib/savewd.c, lib/savewd.h: New files.
73921
73922 2006-09-15  Jim Meyering  <jim@meyering.net>
73923
73924         * modules/rename-dest-slash: New module.
73925         * MODULES.html.sh (posix_compat): Add it here.
73926
73927         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73928
73929 2006-09-15  Jim Meyering  <jim@meyering.net>
73930
73931         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73932         file.
73933
73934         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73935
73936 2006-09-15  Jim Meyering  <jim@meyering.net>
73937
73938         * lib/rename-dest-slash.c (has_trailing_slash): Use
73939         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73940         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73941         test before testing whether SRC is a directory.
73942         Suggestions from Bruno Haible.
73943
73944         Avoid a warning about an unused variable.
73945         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73946         into the #ifdef block where it's used.
73947
73948         * lib/rename-dest-slash.c: New file.
73949
73950 2006-09-14  Bruno Haible  <bruno@clisp.org>
73951
73952         * lib/allocsa.c: Include <config.h> unconditionally.
73953         * lib/asnprintf.c: Likewise.
73954         * lib/asprintf.c: Likewise.
73955         * lib/c-strcasecmp.c: Likewise.
73956         * lib/c-strcasestr.c: Likewise.
73957         * lib/c-strncasecmp.c: Likewise.
73958         * lib/c-strstr.c: Likewise.
73959         * lib/classpath.c: Likewise.
73960         * lib/clean-temp.c: Likewise.
73961         * lib/concatpath.c: Likewise.
73962         * lib/copy-file.c: Likewise.
73963         * lib/csharpcomp.c: Likewise.
73964         * lib/csharpexec.c: Likewise.
73965         * lib/execute.c: Likewise.
73966         * lib/fatal-signal.c: Likewise.
73967         * lib/findprog.c: Likewise.
73968         * lib/fwriteerror.c: Likewise.
73969         * lib/gl_array_list.c: Likewise.
73970         * lib/gl_array_oset.c: Likewise.
73971         * lib/gl_avltree_list.c: Likewise.
73972         * lib/gl_avltree_oset.c: Likewise.
73973         * lib/gl_avltreehash_list.c: Likewise.
73974         * lib/gl_carray_list.c: Likewise.
73975         * lib/gl_linked_list.c: Likewise.
73976         * lib/gl_linkedhash_list.c: Likewise.
73977         * lib/gl_list.c: Likewise.
73978         * lib/gl_oset.c: Likewise.
73979         * lib/gl_rbtree_list.c: Likewise.
73980         * lib/gl_rbtree_oset.c: Likewise.
73981         * lib/gl_rbtreehash_list.c: Likewise.
73982         * lib/imaxabs.c: Likewise.
73983         * lib/imaxdiv.c: Likewise.
73984         * lib/javacomp.c: Likewise.
73985         * lib/javaexec.c: Likewise.
73986         * lib/javaversion.c: Likewise.
73987         * lib/linebreak.c: Likewise.
73988         * lib/localcharset.c: Likewise.
73989         * lib/lock.c: Likewise.
73990         * lib/mbchar.c: Likewise.
73991         * lib/mbswidth.c: Likewise.
73992         * lib/mkdtemp.c: Likewise.
73993         * lib/pipe.c: Likewise.
73994         * lib/printf-args.c: Likewise.
73995         * lib/printf-parse.c: Likewise.
73996         * lib/progname.c: Likewise.
73997         * lib/progreloc.c: Likewise.
73998         * lib/readlink.c: Likewise.
73999         * lib/sh-quote.c: Likewise.
74000         * lib/stpcpy.c: Likewise.
74001         * lib/stpncpy.c: Likewise.
74002         * lib/strcasecmp.c: Likewise.
74003         * lib/strcasestr.c: Likewise.
74004         * lib/strcspn.c: Likewise.
74005         * lib/striconv.c: Likewise.
74006         * lib/strncasecmp.c: Likewise.
74007         * lib/strnlen1.c: Likewise.
74008         * lib/strstr.c: Likewise.
74009         * lib/strtok_r.c: Likewise.
74010         * lib/tls.c: Likewise.
74011         * lib/tmpdir.c: Likewise.
74012         * lib/unicodeio.c: Likewise.
74013         * lib/unsetenv.c: Likewise.
74014         * lib/vasnprintf.c: Likewise.
74015         * lib/vasprintf.c: Likewise.
74016         * lib/wait-process.c: Likewise.
74017         * lib/xallocsa.c: Likewise.
74018         * lib/xsetenv.c: Likewise.
74019         * lib/xstriconv.c: Likewise.
74020
74021 2006-09-13  Simon Josefsson  <jas@extundo.com>
74022
74023         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74024         that internally, suggested by Ralf Wildenhues
74025         <Ralf.Wildenhues@gmx.de>.
74026
74027 2006-09-13  Simon Josefsson  <jas@extundo.com>
74028
74029         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74030         @LIBOBJS@.
74031         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74032
74033 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74034
74035         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74036         longer worry about uses that don't define HAVE_CONFIG_H.
74037         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74038         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74039         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74040         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74041         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74042         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74043         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74044         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74045         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74046         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74047         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74048         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74049         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74050         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74051         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74052         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74053         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74054         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74055         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74056         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74057         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74058         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74059         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74060         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74061         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74062         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74063         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74064         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74065         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74066         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74067         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74068         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74069         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74070         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74071         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74072         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74073         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74074         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74075         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74076         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74077         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74078         Likewise.
74079
74080 2006-09-13  Eric Blake  <ebb9@byu.net>
74081
74082         * lib/getopt.c: Fix typo in last commit.
74083
74084 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74085
74086         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74087         dgettext.
74088
74089 2006-09-12  Jim Meyering  <jim@meyering.net>
74090
74091         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74092         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74093         Reported by Nelson H. F. Beebe.
74094
74095 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74096
74097         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74098         program_invocation_name and program_invocation_short_name are
74099         initialized.
74100         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74101         and program_invocation_short_name to argp.h, so they are visible
74102         to user programs.
74103         * lib/argp.h: Likewise
74104
74105 2006-09-10  Bruno Haible  <bruno@clisp.org>
74106
74107         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74108         m4/inttypes_h.m4, m4/uintmax_t.m4.
74109
74110 2006-09-10  Bruno Haible  <bruno@clisp.org>
74111
74112         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74113         gl_AC_TYPE_UINTMAX_T.
74114
74115 2006-09-10  Bruno Haible  <bruno@clisp.org>
74116
74117         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74118
74119 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74120
74121         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74122         convention.  Text proposed by Bruno Haible.
74123         (struct argp_option): Document the use of N_() wrappers.
74124
74125         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74126         '\v', and translate the two parts separately, instead of feeding
74127         the whole string to gettext.  This allows to exclude
74128         '\v' from the strings visible to the translator by writing doc
74129         strings as N_("..") "\v" N_("..").
74130
74131 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * config/srclist.txt: Undo latest change; the bug was fixed.
74134
74135 2006-09-09  Bruno Haible  <bruno@clisp.org>
74136
74137         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74138         assignments if building a library without libtool.
74139         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74140         in func_emit_lib_Makefile_am.
74141         (func_import): When building a static library libfoo.a, arrange to
74142         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74143         (func_create_testdir): Likewise.
74144         * modules/gc (configure.ac, Makefile.am): If building statically,
74145         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74146         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74147         * modules/striconv (configure.ac, Makefile.am): Likewise.
74148         Based on a suggestion by Ralf Wildenhues.
74149
74150 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74151
74152         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74153         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74154         Also:
74155
74156         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74157         Add year_2050_test to catch glibc bug 2821
74158         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74159
74160         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74161         Prefer #ifdef to #if.
74162
74163         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74164         Return from 'main' instead of calling 'exit'.
74165
74166 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74167
74168         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74169         returned the maximum time_t value rather than (time_t) -1.
74170         Problem originally reported by William Bardwell
74171         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74172
74173         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74174         Moved to here ...
74175         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74176         ... from here.
74177
74178 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74179
74180         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74181         2821 is fixed.
74182
74183 2006-09-08  Jim Meyering  <jim@meyering.net>
74184
74185         Don't make generated files read-only.  That would bother too many
74186         people.  However, do retain the ability to work when targets are
74187         read-only: remove the destination and temporary files before writing
74188         them (when generated via sed or echo), or by using the -f option for
74189         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74190         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74191         * modules/byteswap, modules/configmake, modules/fcntl:
74192         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74193         * modules/localcharset, modules/netinet_in, modules/poll:
74194         * modules/stdbool, modules/stdint, modules/sys_select:
74195         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74196
74197 2006-09-08  Jim Meyering  <jim@meyering.net>
74198
74199         Avoid new build failure on FreeBSD 6.0.
74200         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74201         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74202         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74203
74204 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74205
74206         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74207
74208 2006-09-07  Jim Meyering  <jim@meyering.net>
74209
74210         Fix global typo in last change: use chmod u-w, not chmod u-x.
74211         Spotted by Paul Eggert and Bruce Korb.
74212         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74213         * modules/byteswap, modules/configmake, modules/fcntl:
74214         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74215         * modules/localcharset, modules/netinet_in, modules/poll:
74216         * modules/stdbool, modules/stdint, modules/sys_select:
74217         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74218
74219 2006-09-06  Jim Meyering  <jim@meyering.net>
74220
74221         Make generated files be read-only.
74222         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74223         Ensure that each generated file is now read-only.
74224         * modules/argz: Likewise.
74225         * modules/arpa_inet: Likewise.
74226         * modules/byteswap: Likewise.
74227         * modules/configmake: Likewise.
74228         * modules/fcntl: Likewise.
74229         * modules/fnmatch: Likewise.
74230         * modules/getopt: Likewise.
74231         * modules/glob: Likewise.
74232         * modules/inttypes: Likewise.
74233         * modules/netinet_in: Likewise.
74234         * modules/poll: Likewise.
74235         * modules/stdbool: Likewise.
74236         * modules/stdint: Likewise.
74237         * modules/sys_select: Likewise.
74238         * modules/sys_socket: Likewise.
74239         * modules/sys_stat: Likewise.
74240         * modules/sysexits: Likewise.
74241         * modules/localcharset: Same as above, but continue using temporary
74242         file named "t-$@" (why different?) rather than the "$@-t" used
74243         everywhere else.
74244
74245         * modules/sysexits (Makefile.am): Replace literal occurrences
74246         of "sysexit.h" more readable, and more consistent, "$@".
74247
74248 2006-09-06  Bruno Haible  <bruno@clisp.org>
74249
74250         * modules/striconv: New file.
74251         * modules/xstriconv: New file.
74252         * MODULES.html.sh (Internationalization functions): Add striconv,
74253         xstriconv.
74254
74255 2006-09-06  Bruno Haible  <bruno@clisp.org>
74256
74257         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74258         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74259         not using libtool correctly.
74260
74261 2006-09-06  Bruno Haible  <bruno@clisp.org>
74262
74263         * lib/striconv.h: New file.
74264         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74265         iconvstring.c.
74266         * lib/xstriconv.h: New file.
74267         * lib/xstriconv.c: New file.
74268
74269 2006-09-06  Bruno Haible  <bruno@clisp.org>
74270
74271         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74272         lib_..._LDFLAGS.
74273
74274 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74275
74276         * lib/argz_.h: Sync from Libtool.
74277
74278         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74279                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74280
74281         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74282
74283 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74284
74285         * modules/trim: New file.
74286
74287 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74288
74289         * lib/trim.h: New file.
74290         * lib/trim.c: New file.
74291
74292 2006-09-05  Bruno Haible  <bruno@clisp.org>
74293
74294         * MODULES.html.sh (String handling): Add trim.
74295
74296 2006-09-04  Karl Berry  <karl@gnu.org>
74297
74298         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74299         until next release.
74300
74301 2006-09-03  Bruno Haible  <bruno@clisp.org>
74302
74303         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74304         correctly.
74305
74306 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74307
74308         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74309         not gl_GETLOADAVG.  Omit unneeded semicolons.
74310         Problems reported by Ralf Wildenhues in
74311         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74312         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74313         at the end, which is the usual gnulib style.
74314
74315         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74316         of doing all the work ourselves.
74317         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74318         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74319
74320 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74321
74322         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74323         Problem reported by Ralf Wildenhues in
74324         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74325
74326         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74327         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74328
74329 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74330
74331         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74332         yesterday's patch by changing test -n to test -z.
74333
74334 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74335
74336         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74337         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74338         the former is now obsolescent.
74339
74340         * modules/chdir-long (Depends-on): Add fcntl.
74341
74342 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74343
74344         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74345         obsolescent, and programs should use gnulib instead.
74346         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74347         but with prefixes changed.
74348
74349 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74350
74351         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74352         or stdbool.h, because they might not exist while configuring.
74353
74354         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74355         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74356         does that for us.
74357         (O_DIRECTORY): Remove.
74358
74359 2006-08-31  Eric Blake  <ebb9@byu.net>
74360
74361         * gnulib-tool: Don't let emacs change spaces to TAB.
74362
74363 2006-08-31  Bruno Haible  <bruno@clisp.org>
74364
74365         * gnulib-tool: When calling func_import more than once, do it in a
74366         subshell.
74367         Reported by Eric Blake <ebb9@byu.net>.
74368
74369 2006-08-31  Bruno Haible  <bruno@clisp.org>
74370
74371         * gnulib-tool (nl): Remove variable.
74372         (sed_transform_lib_file): Use more robust test for config-h module.
74373         (func_import): Fix typo in 2006-08-25 patch.
74374
74375 2006-08-31  Bruno Haible  <bruno@clisp.org>
74376
74377         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74378         specified, augment Makefile.am variables instead of assigning them.
74379
74380 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74381
74382         Work around a bug in both the Linux and SunOS 64-bit kernels:
74383         nanosleep mishandles sleeps for longer than 2**31 seconds.
74384         Problem reported by Frank v Waveren in
74385         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74386         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74387         Check for nanosleep bug.
74388         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74389
74390 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74391
74392         Work around a bug in both the Linux and SunOS 64-bit kernels:
74393         nanosleep mishandles sleeps for longer than 2**31 seconds.
74394         Problem reported by Frank v Waveren in
74395         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74396         * lib/nanosleep.c (BILLION): New constant.
74397         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74398         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74399         implementation.
74400
74401 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74402
74403         * modules/nanosleep (Depends-on): Add gettime.
74404
74405 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74406         and Simon Josefsson  <jas@extundo.com>
74407         and Oskar Liljeblad  <oskar@osk.mine.nu>
74408
74409         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74410         * gnulib-tool (func_import): New license type 'unmodifiable license
74411         text'.
74412         * modules/fdl: Use it.  Longer description.
74413         * module/gpl, module/lgpl: New files.
74414
74415 2006-08-30  Jim Meyering  <jim@meyering.net>
74416
74417         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74418         shadowing the parameter.
74419
74420 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74421
74422         Sync from Libtool:
74423
74424         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74425
74426         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74427         sharing with gnulib.  Report by Eric Blake.
74428
74429 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74430
74431         * modules/isapipe: New file.
74432         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74433
74434 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74435
74436         * modules/configmake (Makefile.am): Add a comment, and omit
74437         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74438         by Bruno Haible.
74439
74440 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74441
74442         * m4/isapipe.m4: New file.
74443
74444 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74445
74446         * lib/isapipe.c, lib/isapipe.h: New files.
74447
74448 2006-08-29  Jim Meyering  <jim@meyering.net>
74449
74450         * modules/configmake (Makefile.am): Make configmake.h depend on
74451         Makefile.  Otherwise, a stale configmake.h could hang around.
74452
74453 2006-08-29  Eric Blake  <ebb9@byu.net>
74454
74455         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74456         resolution of upstream bug 3044.
74457
74458 2006-08-29  Bruno Haible  <bruno@clisp.org>
74459
74460         * modules/localcharset (Depends-on): Add configmake.
74461         (Makefile.am): Remove setting of LIBDIR through DEFS.
74462
74463 2006-08-29  Bruno Haible  <bruno@clisp.org>
74464
74465         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74466         defined.
74467
74468 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74469
74470         * modules/fcntl: New file.
74471         * modules/chdir-safer (Depends-on): Add fcntl.
74472         * modules/fts: Likewise.
74473         * modules/mkdir-p: Likewise.
74474
74475         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74476         This undoes the most recent change, since we're now addressing the
74477         problem in a different way.
74478
74479         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74480         into output, since the output might be called Makefile.am even
74481         if $makefile_name is something different.
74482         (func_import): Use $makefile_am rather than
74483         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74484         empty.
74485
74486         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74487
74488 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74489
74490         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74491         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74492         recent change to stdint.m4, since we're now addressing the problem in a
74493         different way.
74494
74495 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74496
74497         * m4/fcntl_h.m4: New file.
74498
74499 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74500
74501         * lib/fcntl_.h: New file.
74502         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74503         the fcntl module.
74504         * lib/dirchownmod.c: Likewise.
74505         * lib/fts.c: Likewise.
74506
74507         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74508         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74509         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74510         just before including <inttypes.h>, to avoid circular inclusion.
74511
74512 2006-08-28  Jim Meyering  <jim@meyering.net>
74513
74514         * doc/visibility.texi: Actually read and correct the grammar of the
74515         sentence affected by yesterday's change.
74516
74517 2006-08-28  Eric Blake  <ebb9@byu.net>
74518
74519         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74520         needs wrapper.
74521
74522 2006-08-28  Eric Blake  <ebb9@byu.net>
74523
74524         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74525
74526 2006-08-28  Eric Blake  <ebb9@byu.net>
74527
74528         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74529
74530 2006-08-28  Bruno Haible  <bruno@clisp.org>
74531
74532         * modules/c-strstr: New file, from GNU gettext.
74533         * MODULES.html.sh (String handling): Add c-strstr.
74534
74535 2006-08-28  Bruno Haible  <bruno@clisp.org>
74536
74537         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74538         macros.
74539         Reported by Eric Blake.
74540
74541 2006-08-28  Bruno Haible  <bruno@clisp.org>
74542
74543         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74544         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74545         * lib/vasprintf.c: Include errno.h, limits.h.
74546         (EOVERFLOW): New fallback definition.
74547         (vasprintf): Test here whether the string length is > INT_MAX.
74548         * lib/vsnprintf.c: Include errno.h, limits.h.
74549         (EOVERFLOW): New fallback definition.
74550         (vsnprintf): Fix bug when generated string was too long for the buffer.
74551         Test here whether the string length is > INT_MAX.
74552
74553 2006-08-28  Bruno Haible  <bruno@clisp.org>
74554
74555         * lib/inttypes_.h (SCNX*): Remove definitions.
74556         Reported by Eric Blake.
74557
74558 2006-08-28  Bruno Haible  <bruno@clisp.org>
74559
74560         * lib/c-strstr.h: New file, from GNU gettext.
74561         * lib/c-strstr.c: New file, from GNU gettext.
74562
74563 2006-08-28  Bruno Haible  <bruno@clisp.org>
74564
74565         * gnulib-tool: Reorder some statements.
74566
74567 2006-08-28  Bruno Haible  <bruno@clisp.org>
74568
74569         * gnulib-tool: New option --makefile-name.
74570         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74571         $makefile_name.
74572         (func_import): Write $makefile_name to the cache file, and read it from
74573         there unless explicitly specified. Use $makefile_name as file name
74574         instead of Makefile.am. Adjust the recommendations accordingly.
74575
74576 2006-08-28  Bruno Haible  <bruno@clisp.org>
74577
74578         * gnulib-tool (func_verify_module): Check against misapplying patch.
74579
74580 2006-08-28  Bruno Haible  <bruno@clisp.org>
74581
74582         * gnulib-tool (func_relativize, func_relconcat): New functions.
74583         Give an error if --local-dir is given with --update.
74584         Remove trailing slashes from $local_gnulib_dir.
74585         (func_import): Store the relativized $local_gnulib_dir in
74586         gnulib-cache.m4, and read it from there if not specified explicitly.
74587
74588 2006-08-28  Bruno Haible  <bruno@clisp.org>
74589
74590         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74591         is the current directory. Respect also $local_gnulib_dir.
74592
74593 2006-08-28  Bruno Haible  <bruno@clisp.org>
74594             Simon Josefsson  <jas@extundo.com>
74595
74596         BeOS portability.
74597         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74598
74599 2006-08-27  Jim Meyering  <jim@meyering.net>
74600
74601         * doc/visibility.texi: Remove duplicate word: "pointer".
74602
74603 2006-08-26  Bruno Haible  <bruno@clisp.org>
74604
74605         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74606         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74607         (Makefile.am): Create inttypes.h from inttypes_.h.
74608         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74609
74610         * modules/imaxabs: New file.
74611
74612         * modules/imaxdiv: New file.
74613
74614 2006-08-26  Bruno Haible  <bruno@clisp.org>
74615
74616         * m4/inttypes.m4: New file.
74617         * m4/_inttypes_h.m4: Remove file.
74618         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74619         PRI_MACROS_BROKEN.
74620         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74621
74622         * m4/imaxabs.m4: New file.
74623
74624         * m4/imaxdiv.m4: New file.
74625
74626 2006-08-26  Bruno Haible  <bruno@clisp.org>
74627
74628         * lib/inttypes_.h: New file.
74629         * lib/inttypes.h: Remove file.
74630         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74631
74632         * lib/imaxabs.c: New file.
74633
74634         * lib/imaxdiv.c: New file.
74635
74636 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74637
74638         New config-h module, so that "make" output needn't be cluttered
74639         by -DHAVE_CONFIG_H.
74640         * MODULES.html.sh (Support for building libraries and executables):
74641         Add config-h.
74642         * modules/config-h: New file.
74643         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74644         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74645         the config-h module is used.
74646
74647         New configmake module, so that "make" output needn't be cluttered
74648         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74649         * MODULES.html.sh (Support for building libraries and executables):
74650         Add configmake.
74651         * modules/configmake: New file.
74652
74653 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74654
74655         * m4/config-h.m4: New file.
74656
74657 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74658
74659         * config/srclist.txt: Add elisp-comp.
74660
74661 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74662
74663         * MODULES.html.sh (Support for building libraries and executables):
74664         Add elisp-comp.
74665         * build-aux/elisp-comp: New file.
74666         * modules/elisp-comp: New file.
74667
74668 2006-08-24  Bruno Haible  <bruno@clisp.org>
74669
74670         * gnulib-tool (func_create_testdir): Use non-default values of
74671         sourcebase and m4base.
74672
74673 2006-08-24  Bruno Haible  <bruno@clisp.org>
74674
74675         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74676         HTML structure.
74677
74678 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74679
74680         * modules/openat (Depends-on): Add lchown.
74681
74682 2006-08-23  Bruno Haible  <bruno@clisp.org>
74683
74684         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74685         of gl_LOCK_EARLY instead of gl_LOCK.
74686
74687 2006-08-23  Bruno Haible  <bruno@clisp.org>
74688
74689         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74690         on OSF/1 to no.
74691         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74692
74693 2006-08-23  Bruno Haible  <bruno@clisp.org>
74694
74695         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74696         as unusable.
74697
74698         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74699         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74700         (gl_LOCK): New macro.
74701
74702 2006-08-22  Simon Josefsson  <jas@extundo.com>
74703
74704         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74705         to md5 module.
74706
74707 2006-08-22  Simon Josefsson  <jas@extundo.com>
74708
74709         * MODULES.html.sh: Add "Support for maintaining and release
74710         projects".
74711
74712         * build-aux/gnupload: New file, from coreutils.
74713
74714 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74715
74716         Avoid the need for AC_LIBSOURCES in m4 macros.
74717         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74718         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74719         * modules/check-version (EXTRA_DIST): Add check-version.h.
74720         * modules/crc (EXTRA_DIST): Add crc.h.
74721         * modules/des (EXTRA_DIST): Add des.h.
74722         * modules/gc (EXTRA_DIST): Add gc.h.
74723         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74724         * modules/getline (EXTRA_DIST): Add getline.h.
74725         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74726         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74727         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74728         * modules/md2 (EXTRA_DIST): Add md2.h.
74729         * modules/md4 (EXTRA_DIST): Add md4.h.
74730         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74731         * modules/read-file (EXTRA_DIST): Add read-file.h.
74732         * modules/readline (EXTRA_DIST): Add readline.h.
74733         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74734         rijndael-api-fst.h.
74735
74736 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74737
74738         * m4/rijndael.m4 (gl_ARCFOUR):
74739         * m4/arctwo.m4 (gl_ARCTWO):
74740         * m4/check-version.m4 (gl_CHECK_VERSION):
74741         * m4/crc.m4 (gl_CRC):
74742         * m4/des.m4 (gl_DES):
74743         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74744         * m4/gc.m4 (gl_GC):
74745         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74746         * m4/getline.m4 (gl_FUNC_GETLINE):
74747         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74748         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74749         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74750         * m4/md2.m4 (gl_MD2):
74751         * m4/md4.m4 (gl_MD4):
74752         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74753         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74754         * m4/readline.m4 (gl_FUNC_READLINE):
74755         * m4/rijndael.m4 (gl_RIJNDAEL):
74756         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74757         to get the necessary .h files and whatnot.
74758
74759 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74760
74761         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74762         gnulib rather than the other way around.
74763         * config/srclistvars.sh (COREUTILS): Remove.
74764
74765 2006-08-22  Jim Meyering  <jim@meyering.net>
74766
74767         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74768
74769         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74770
74771 2006-08-22  Eric Blake  <ebb9@byu.net>
74772
74773         * modules/regexprops-generic: New file.
74774         * MODULES.html.sh (Support for building documentation): List it.
74775
74776 2006-08-22  Eric Blake  <ebb9@byu.net>
74777
74778         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74779         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74780         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74781         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74782
74783 2006-08-22  Bruno Haible  <bruno@clisp.org>
74784
74785         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74786         and lib_LTLIBRARIES like the other lib_* variables.
74787
74788 2006-08-22  Bruno Haible  <bruno@clisp.org>
74789
74790         * build-aux/x-to-1.in: New file, from GNU gettext.
74791
74792 2006-08-22  Bruno Haible  <bruno@clisp.org>
74793
74794         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74795         <utmpx.h> exists.
74796
74797 2006-08-22  Bruno Haible  <bruno@clisp.org>
74798
74799         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74800         <utmpx.h> exists.
74801
74802 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74803
74804         BeOS portability.
74805         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74806         exist.
74807         Problem reported by Bruno Haible.
74808
74809 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74810
74811         Avoid the need for AC_LIBSOURCES in m4 macros.
74812         * modules/acl (EXTRA_DIST): Add acl.h.
74813         * modules/argmatch (Files): Add m4/argmatch.m4.
74814         (configure.ac): Add gl_ARGMATCH.
74815         (EXTRA_DIST): Renamed from lib_SOURCES, for
74816         consistency with the other modules.  Remove argmatch.c.
74817         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74818         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74819         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74820         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74821         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74822         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74823         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74824         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74825         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74826         * modules/closeout (EXTRA_DIST): Add closeout.h.
74827         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74828         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74829         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74830         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74831         dirname.h; remove basename.c and stripslash.c.
74832         * modules/exclude (EXTRA_DIST): Add exclude.h.
74833         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74834         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74835         * modules/file-type (EXTRA_DIST): Add file-type.h.
74836         * modules/filemode (EXTRA_DIST): Add filemode.h.
74837         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74838         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74839         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74840         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74841         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74842         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74843         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74844         * modules/getdate (EXTRA_DIST): Add getdate.c.
74845         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74846         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74847         * modules/getpass (EXTRA_DIST): Add getpass.h.
74848         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74849         * modules/group-member (EXTRA_DIST): Add group-member.h.
74850         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74851         * modules/hash (EXTRA_DIST): Add hash.h.
74852         * modules/human (EXTRA_DIST): Add human.h.
74853         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74854         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74855         * modules/lchown (EXTRA_DIST): Add lchown.h.
74856         * modules/long-options (EXTRA_DIST): Add long-options.h.
74857         * modules/lstat (EXTRA_DIST): Add lstat.h.
74858         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74859         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74860         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74861         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74862         * modules/memxor (EXTRA_DIST): Add memxor.h.
74863         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74864         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74865         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74866         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74867         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74868         * modules/physmem (EXTRA_DIST): Add physmem.h.
74869         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74870         * modules/posixver (EXTRA_DIST): Add posixver.h.
74871         * modules/quote (EXTRA_DIST): Add quote.h.
74872         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74873         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74874         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74875         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74876         regex_internal.h regexec.c.
74877         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74878         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74879         * modules/same (EXTRA_DIST): Add same.h.
74880         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74881         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74882         * modules/savedir (EXTRA_DIST): Add savedir.h.
74883         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74884         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74885         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74886         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74887         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74888         * modules/strdup (EXTRA_DIST): Add strdup.h.
74889         * modules/strftime (EXTRA_DIST): Add strftime.h.
74890         * modules/strndup (EXTRA_DIST): Add strndup.h.
74891         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74892         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74893         * modules/time_r (EXTRA_DIST): Add time_r.h.
74894         * modules/timespec (EXTRA_DIST): Add timespec.h.
74895         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74896         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74897         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74898         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74899         * modules/userspec (EXTRA_DIST): Add userspec.h.
74900         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74901         * modules/utimens (EXTRA_DIST): Add utimens.h.
74902         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74903         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74904         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74905         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74906         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74907         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74908         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74909         * modules/yesno (EXTRA_DIST): Add yesno.h.
74910
74911 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74912
74913         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74914
74915         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74916         * m4/dev-ino.m4, same-inode.m4: Remove.
74917
74918         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74919         * m4/acl.m4 (AC_FUNC_ACL):
74920         * m4/backupfile.m4 (gl_BACKUPFILE):
74921         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74922         * m4/canon-host.m4 (gl_CANON_HOST):
74923         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74924         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74925         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74926         * m4/cloexec.m4 (gl_CLOEXEC):
74927         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74928         * m4/closeout.m4 (gl_CLOSEOUT):
74929         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74930         * m4/dirname.m4 (gl_DIRNAME):
74931         * m4/exclude.m4 (gl_EXCLUDE):
74932         * m4/exitfail.m4 (gl_EXITFAIL):
74933         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74934         * m4/file-type.m4 (gl_FILE_TYPE):
74935         * m4/filemode.m4 (gl_FILEMODE):
74936         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74937         * m4/fpending.m4 (gl_FUNC_FPENDING):
74938         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74939         * m4/fts.m4 (gl_FUNC_FTS):
74940         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74941         * m4/getdate.m4 (gl_GETDATE):
74942         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74943         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74944         * m4/getpass.m4 (gl_FUNC_GETPASS):
74945         * m4/gettime.m4 (gl_GETTIME):
74946         * m4/getugroups.m4 (gl_GETUGROUPS):
74947         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74948         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74949         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74950         * m4/hash.m4 (gl_HASH):
74951         * m4/idcache.m4 (gl_IDCACHE):
74952         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74953         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74954         * m4/long-options.m4 (gl_LONG_OPTIONS):
74955         * m4/lstat.m4 (gl_FUNC_LSTAT):
74956         * m4/md5.m4 (gl_MD5):
74957         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74958         * m4/memcoll.m4 (gl_MEMCOLL):
74959         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74960         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74961         * m4/memxor.m4 (gl_MEMXOR):
74962         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74963         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74964         * m4/modechange.m4 (gl_MODECHANGE):
74965         * m4/mountlist.m4 (gl_MOUNTLIST):
74966         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74967         * m4/openat.m4 (gl_FUNC_OPENAT):
74968         * m4/pathmax.m4 (gl_PATHMAX):
74969         * m4/physmem.m4 (gl_PHYSMEM):
74970         * m4/posixtm.m4 (gl_POSIXTM):
74971         * m4/posixver.m4 (gl_POSIXVER):
74972         * m4/quote.m4 (gl_QUOTE):
74973         * m4/quotearg.m4 (gl_QUOTEARG):
74974         * m4/readtokens.m4 (gl_READTOKENS):
74975         * m4/readutmp.m4 (gl_READUTMP):
74976         * m4/regex.m4 (gl_REGEX):
74977         * m4/safe-read.m4 (gl_SAFE_READ):
74978         * m4/safe-write.m4 (gl_SAFE_WRITE):
74979         * m4/same.m4 (gl_SAME):
74980         * m4/save-cwd.m4 (gl_SAVE_CWD):
74981         * m4/savedir.m4 (gl_SAVEDIR):
74982         * m4/settime.m4 (gl_SETTIME):
74983         * m4/sha1.m4 (gl_SHA1):
74984         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74985         * m4/stat-macros.m4 (gl_STAT_MACROS):
74986         * m4/stat-time.m4 (gl_STAT_TIME):
74987         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74988         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74989         * m4/strdup.m4 (gl_FUNC_STRDUP):
74990         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74991         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74992         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74993         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74994         * m4/time_r.m4 (gl_TIME_R):
74995         * m4/timespec.m4 (gl_TIMESPEC):
74996         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74997         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74998         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74999         * m4/userspec.m4 (gl_USERSPEC):
75000         * m4/utimecmp.m4 (gl_UTIMECMP):
75001         * m4/utimens.m4 (gl_UTIMENS):
75002         * m4/xalloc.m4 (gl_XALLOC):
75003         * m4/xgetcwd.m4 (gl_XGETCWD):
75004         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75005         * m4/xreadlink.m4 (gl_XREADLINK):
75006         * m4/xstrtod.m4 (gl_XSTRTOD):
75007         * m4/yesno.m4 (gl_YESNO):
75008         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75009         to get the necessary .h files and whatnot.
75010
75011 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75012             Bruno Haible  <bruno@clisp.org>
75013
75014         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75015         /bin/sh understanding of '!' conditional negation.
75016
75017 2006-08-21  Jim Meyering  <jim@meyering.net>
75018
75019         * modules/openat (Depends-on): Really alphabetize.
75020
75021         * modules/acl (Depends-on): Add error and quote.
75022
75023         * check-module (find_included_lib_files): Add at-func.c to the
75024         ok-to-include-more-than-once white list.
75025
75026         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75027
75028 2006-08-21  Bruno Haible  <bruno@clisp.org>
75029
75030         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75031         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75032         Reported by Martin Lambers <marlam@marlam.de>.
75033
75034 2006-08-21  Bruno Haible  <bruno@clisp.org>
75035
75036         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75037         specify an installation location, don't emit a noinst_LIBRARIES or
75038         noinst_LTLIBRARIES assignment.
75039
75040 2006-08-21  Bruno Haible  <bruno@clisp.org>
75041
75042         BeOS portability.
75043         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75044         BeOS has mbrtowc() but no <wctype.h>.
75045
75046 2006-08-21  Bruno Haible  <bruno@clisp.org>
75047
75048         BeOS portability.
75049         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75050         exist.
75051
75052 2006-08-21  Bruno Haible  <bruno@clisp.org>
75053
75054         BeOS portability.
75055         * lib/mbchar.h: Include <wctype.h> only if it exists.
75056
75057 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75058
75059         Remove files that are no longer needed by their respective modules.
75060         * m4/obstack.m4: Remove.
75061         * m4/strerror_r.m4: Remove.
75062         * m4/uint32_t.m4: Remove.
75063         * m4/uintptr_t.m4: Remove.
75064         * m4/ullong_max.m4: Remove.
75065         * m4/xstrtoimax.m4: Remove.
75066         * m4/xstrtoumax.m4: Remove.
75067
75068         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75069         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75070         dependencies now capture this.
75071
75072         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75073         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75074         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75075         * m4/human.m4 (gl_HUMAN): Likewise.
75076         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75077         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75078
75079         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75080
75081         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75082         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75083         stdint.
75084         * m4/human.m4 (gl_HUMAN): Likewise.
75085         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75086         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75087         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75088         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75089         * m4/xstrtol (gl_XSTRTOL): Likewise.
75090
75091         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75092         AC_TYPE_LONG_LONG_INT.
75093         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75094         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75095         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75096         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75097
75098         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75099         on stdbool.
75100
75101         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75102         (gl_PREREQ_XSTRTOUL): Remove.
75103
75104         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75105
75106         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75107         mode.
75108
75109 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75110
75111         Add and change modules to make it easier for coreutils to use
75112         gnulib-tool.
75113         * modules/backupfile (Files): Remove m4/d-ino.m4.
75114         (Depends-on): Add d-ino.
75115         * modules/cycle-check (Depends-on): Add stdint.
75116         (lib_SOURCES): Add cycle-check.h.
75117         * modules/d-ino: New module.
75118         * modules/d-type: New module.
75119         * modules/error (Files): Remove m4/strerror_r.m4.
75120         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75121         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75122         m4/inttypes_h.m4, m4/uintmax_t.m4.
75123         (Depends-on): Add stdint.
75124         (lib_SOURCES): Add fsusage.h.
75125         * modules/getcwd (Files): Remove d-ino.m4.
75126         (Depends-on): Add d-ino.
75127         * modules/getndelim2 (Depends-on): Add stdint.
75128         * modules/glob (Files): Remove m4/d-type.m4.
75129         (Depends-on): Add d-type.
75130         * modules/host-os: New module.
75131         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75132         m4/inttypes_h.m4, m4/uintmax_t.m4.
75133         * Depends-on: Add stdint.
75134         (lib_SOURCES): Add human.h.
75135         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75136         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75137         m4/uintmax_t.m4, m4/ulonglong.m4.
75138         (Depends-on): Add stdint.
75139         (EXTRA_DIST): Add inttostr.h.
75140         * modules/lchmod: New module.
75141         * modules/link-follow: New module.
75142         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75143         (Depends-on): Add lchmod.
75144         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75145         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75146         (Depends-on): Add stdint.
75147         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75148         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75149         (Depends-on): Add stdint.
75150         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75151         * modules/perl: New module.
75152         * modules/regex (Depends-on): Add stdint.
75153         * modules/rmdir-errno: New module.
75154         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75155         m4/intmax_t.m4.
75156         (Depends-on): Add stdint.
75157         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75158         m4/uintmax_t.m4.
75159         (Depends-on): Add stdint.
75160         * modules/unlink-busy: New module.
75161         * modules/utimecmp (Depends-on): Add stdint.
75162         * modules/uptime: New module.
75163         * modules/winsz-ioctl: New module.
75164         * modules/winsz-termios: New module.
75165         * modules/xnanosleep (Depends-on): Add nanosleep.
75166         * modules/ullong_max: Remove.
75167         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75168         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75169         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75170         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75171         (Depends-on): Add inttypes.
75172         (lib_SOURCES): Add xstrtol.h.
75173         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75174         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75175         * MODULES.html.sh: Move 'assert' into the assert section.
75176         Move 'dummy' into the linking section.
75177         Remove ullong_max.
75178         Add section for compatibility checks for POSIX:2001 functions,
75179         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75180         winsz-ioctl, and winsz-termios into it.
75181         Add lchmod.
75182         Add top-level Misc section and put host-os, perl, and uptime
75183         into it.
75184
75185 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75186
75187         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75188         now assume the stdint module.  Do not include inttypes.h.
75189         * lib/fsusage.h: Likewise.
75190         * lib/getndelim2.c: Likewise.
75191         * lib/human.h: Likewise.
75192         * lib/inttostr.h: Likewise.
75193         * lib/obstack.c: Likewise.
75194         * lib/regex_internal.h: Likewise.
75195         * lib/tempname.c: Likewise.
75196         * lib/utimecmp.c: Likewise.
75197         * lib/xstrtol.h: Likewise.
75198
75199         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75200
75201         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75202         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75203         * lib/xtime.h: Likewise.
75204
75205 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75206
75207         * modules/openat (Files): Add lib/fchmodat.c.
75208         Fixes problem reported by Jay Youngman.
75209
75210 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75211
75212         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75213         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75214
75215 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75216             Bruno Haible  <bruno@clisp.org>
75217
75218         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75219         and is a script that invokes bison. Tighten the code. Add comments.
75220
75221 2006-08-18  Jim Meyering  <jim@meyering.net>
75222
75223         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75224         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75225         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75226         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75227
75228 2006-08-18  Bruno Haible  <bruno@clisp.org>
75229
75230         * modules/bison-i18n: New file.
75231         * MODULES.html.sh (Internationalization functions): Add it.
75232
75233 2006-08-18  Bruno Haible  <bruno@clisp.org>
75234
75235         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75236         sys/statvfs.h. When getmntinfo was found, check its declaration and
75237         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75238
75239 2006-08-18  Bruno Haible  <bruno@clisp.org>
75240
75241         * m4/bison-i18n.m4: New file, from bison.
75242
75243 2006-08-18  Bruno Haible  <bruno@clisp.org>
75244
75245         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75246         (ME_DUMMY): Treat "kernfs" as a dummy.
75247         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75248
75249 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75250
75251         Update from coreutils.
75252
75253         2006-08-15  Jim Meyering  <jim@meyering.net>
75254
75255         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75256
75257         2006-01-17  Jim Meyering  <jim@meyering.net>
75258
75259         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75260
75261         2006-01-11  Jim Meyering  <jim@meyering.net>
75262
75263         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75264         Check for the lchmod function.
75265
75266 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75267
75268         Update from coreutils.
75269
75270         * lib/__fpending.h: Add copyright notice.
75271         * lib/fprintftime.h: Likewise.
75272         * lib/savedir.c: Use (C) in copyright notice.
75273         * lib/savedir.h: Likewise.
75274
75275         2006-08-15  Jim Meyering  <jim@meyering.net>
75276
75277         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75278         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75279         in support of the EXPECTED_ERRNO macro.
75280         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75281         definitions.  Instead, define the appropriate symbols and include
75282         "at-func.c".
75283         * lib/mkdirat.c (mkdirat): Likewise.
75284         * lib/fchmodat.c (fchmodat): Likewise.
75285         (ENOSYS): Remove definition.
75286         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75287         it.  Don't include "unistd--.h" -- it wasn't ever used.
75288
75289         2006-01-17  Jim Meyering  <jim@meyering.net>
75290
75291         Rewrite fts.c not to change the current working directory,
75292         by using openat, fstatat, fdopendir, etc..
75293
75294         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75295         (HAVE_OPENAT_SUPPORT): Define.
75296         [_LIBC] (fchdir): Don't undef or define; no longer used.
75297         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75298         Now, this `function' always succeeds, and consumes its file descriptor
75299         parameter -- so callers must not close such FDs.  Update callers.
75300         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75301         (diropen): Add parameter, SP.  Adjust all callers.
75302         Implement using diropen_fd, rather than open.
75303         (fts_open): Initialize new member, fts_cwd_fd.
75304         Remove fts_rft-setting code.
75305         (fts_close): Close fts_cwd_fd, if necessary.
75306         (__opendir2): Define in terms of opendir or opendirat,
75307         depending on whether the FST_NOCHDIR flag is set.
75308         (fts_build): Since fts_safe_changedir consumes its FD, and since
75309         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75310         and close the dup'd file descriptor upon failure.
75311         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75312         (fts_safe_changedir): Tweak semantics to reflect that this function
75313         now calls cwd_advance_fd and hence consumes its FD argument.
75314         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75315         [struct FTS] (fts_rft): Remove now-unused member.
75316         [struct FTS] (fts_cycle.state): Improve comment.
75317
75318         * lib/openat.c (openat_needs_fchdir): New function.
75319         * lib/openat.h (openat_needs_fchdir): Declare it.
75320
75321 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75322
75323         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75324         Problem and fix reported by Pádraig Brady in
75325         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75326
75327 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75328
75329         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75330
75331 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75332
75333         * lib/memcoll.c (memcoll): Optimize for the common case where the
75334         arguments are bytewise equal.
75335
75336 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75337
75338         * doc/regexprops-generic.texi: Add a copyright notice.
75339
75340 2006-08-15  Bruno Haible  <bruno@clisp.org>
75341
75342         * modules/tmpdir (License): Change to LGPL.
75343
75344 2006-08-15  Bruno Haible  <bruno@clisp.org>
75345
75346         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75347         module.
75348
75349 2006-08-14  Simon Josefsson  <jas@extundo.com>
75350
75351         * config/srclist.txt: Add gnupload.
75352
75353 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75354
75355         Change copyright notice from LGPL 2 to GPL 2, since that's the
75356         standard form used in the gnulib repository.
75357         * tests/test-lock.c: Likewise.
75358         * tests/test-stdint.c: Likewise.
75359         * tests/test-tls.c: Likewise.
75360
75361         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75362         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75363         Add copyright notice.
75364
75365         * check-module: Add copyright notice.  Output a copyright
75366         notice if "--version" is specified.
75367         * modules/COPYING: New file.
75368         * tests/test-getaddrinfo.c: Add copyright notice.
75369         * tests/test-verify.c: Likewise.
75370
75371 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75372
75373         Change copyright notice from LGPL 2 to GPL 2, since that's the
75374         standard form used in the gnulib repository.
75375         * lib/lock.c: LGPL -> GPL.
75376         * lib/lock.h: Likewise.
75377         * lib/strnlen1.c: Likewise.
75378         * lib/strnlen1.h: Likewise.
75379         * lib/tls.c: Likewise.
75380         * lib/tls.h: Likewise.
75381         * lib/tmpdir.c: Likewise.
75382
75383         * lib/TODO: Remove; this belongs only in coreutils.
75384
75385 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75386
75387         Add copyright notices to long-enough files that lack them, since
75388         otherwise the files aren't clearly free.  Use the same notice that
75389         getdate.texi already uses.
75390         * doc/alloca-opt.texi: Add copyright notice.
75391         * doc/alloca.texi: Likewise.
75392         * doc/ctime.texi: Likewise.
75393         * doc/functions.texi: Likewise.
75394         * doc/gcd.texi: Likewise.
75395         * doc/gnulib-tool.texi: Likewise.
75396         * doc/inet_ntoa.texi: Likewise.
75397         * doc/visibility.texi: Likewise.
75398
75399         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75400         * doc/quote.texi: Add copyright notice.
75401
75402         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75403         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75404         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75405         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75406         is now obsolete, and give a pointer to the Sun list.
75407         Add copyright notice.
75408
75409 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75410
75411         * config/srclistvars.sh: Add copyright notice.
75412
75413 2006-08-14  Eric Blake  <ebb9@byu.net>
75414
75415         Import the following change from libc:
75416
75417         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75418
75419         Upstream bug 2997.
75420         * lib/misc/error.c: Add space between program name and message if file
75421         name is missing.
75422
75423 2006-08-12  Karl Berry  <karl@gnu.org>
75424
75425         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75426         remove, these originate in gnulib now.
75427
75428 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75429
75430         * doc/Makefile (standards.info standards.html standards.dvi):
75431         Also depend on make-stds.texi.
75432
75433 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75434
75435         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75436         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75437
75438         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75439         in wchar_t.  Problem reported by Eric Blake.
75440
75441         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75442         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75443         Also, help the compiler to keep LEN in a register.
75444
75445 2006-08-11  Eric Blake  <ebb9@byu.net>
75446
75447         * users.txt: Sort.  Add tar.
75448
75449 2006-08-11  Bruno Haible  <bruno@clisp.org>
75450
75451         * users.txt: New file.
75452
75453 2006-08-11  Bruno Haible  <bruno@clisp.org>
75454
75455         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75456         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75457
75458 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75459
75460         * modules/snprintf (Depends-on): Remove minmax.
75461         (Maintainer): Add self and Bruno.
75462
75463 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75464
75465         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75466         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75467         (EOVERFLOW): Define if the system does not.
75468         Do not include "minmax.h"; it wasn't used.
75469         (snprintf): Don't assume size_t promotes to an unsigned type.
75470         Fix bug when generated string was too long for the buffer: the
75471         buffer's contents are supposed to be the initial prefix of the
75472         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75473         exceeds INT_MAX; do the check ourselves.
75474
75475         Import the following changes from libc:
75476
75477         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75478
75479         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75480         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75481         set wc to the byte which couldn't be converted.
75482         (re_string_reconstruct): Don't clear valid_raw_len before calling
75483         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75484         tip_context using re_string_context_at.
75485
75486         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75487
75488         * lib/posix/regex.h: g++ still cannot handled [restrict].
75489
75490         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75491
75492         * lib/posix/regex.h: Remove special handling for VMS.
75493
75494 2006-08-10  Jim Meyering  <jim@meyering.net>
75495
75496         * modules/same-inode: New module.
75497         * modules/dev-ino: New module.
75498         * modules/cycle-check: Depend on these modules, rather than simply
75499         including their .h files.
75500         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75501         required via m4/cycle-check.m4.
75502         * modules/same: Depend on new same-inode module, rather than
75503         including same-inode.h.
75504         * modules/chdir-safer: New file.
75505
75506         * modules/chown (Depends-on): Add stat-macros.
75507
75508 2006-08-10  Jim Meyering  <jim@meyering.net>
75509
75510         * m4/cycle-check.m4: New file.
75511         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75512         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75513
75514 2006-08-10  Eric Blake  <ebb9@byu.net>
75515
75516         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75517         in from original proposal.
75518
75519 2006-08-10  Eric Blake  <ebb9@byu.net>
75520         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75521
75522         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75523         namespace.
75524
75525 2006-08-10  Bruno Haible  <bruno@clisp.org>
75526
75527         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75528         as well.
75529
75530 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75531
75532         Sync from coreutils.
75533
75534         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75535
75536         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75537         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75538
75539 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75540
75541         * modules/restrict: Remove; no longer needed now that we assume
75542         Autoconf 2.59 or later.
75543         * MODULES.html.sh: Remove 'restrict'.
75544         * modules/argp (Depends-on): Remove 'restrict'.
75545         * modules/base64 (Depends-on): Likewise.
75546         * modules/gc (Depends-on): Likewise.
75547         * modules/getaddrinfo (Depends-on): Likewise.
75548         * modules/glob (Depends-on): Likewise.
75549         * modules/inet_ntop (Depends-on): Likewise.
75550         * modules/inet_pton (Depends-on): Likewise.
75551         * modules/memxor (Depends-on): Likewise.
75552         * modules/regex (Depends-on): Likewise.
75553         * modules/strtok_r (Depends-on): Likewise.
75554         * modules/time_r (Depends-on): Likewise.
75555
75556 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75557
75558         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75559         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75560         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75561         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75562         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75563         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75564         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75565         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75566
75567         Merge from coreutils.
75568         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75569         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75570         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75571         * m4/time_r.m4 (gl_TIME_R): Likewise.
75572
75573 2006-08-09  Karl Berry  <karl@gnu.org>
75574
75575         * config/srclist.txt: no more gettext-tools, per Bruno.
75576
75577 2006-08-08  Eric Blake  <ebb9@byu.net>
75578
75579         * modules/verror: New module.
75580         * MODULES.html.sh: Document it.
75581
75582 2006-08-08  Eric Blake  <ebb9@byu.net>
75583
75584         * lib/verror.h, lib/verror.c: New files.
75585
75586 2006-08-08  Eric Blake  <ebb9@byu.net>
75587
75588         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75589         verror_at_line output complies with GNU Coding Standards even when
75590         file is NULL.
75591
75592 2006-08-07  Bruno Haible  <bruno@clisp.org>
75593
75594         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75595         versions of AIX.
75596         Reported by Ralf Wildenhues.
75597
75598 2006-08-07  Bruno Haible  <bruno@clisp.org>
75599
75600         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75601         in an AC_DEFUN. Needed so that the autoconf snippets can use
75602         AC_REQUIRE.
75603
75604 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75605
75606         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75607         Initialize pkgdata_DATA.
75608         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75609         overriding it.
75610
75611 2006-08-06  Eric Blake  <ebb9@byu.net>
75612
75613         * lib/error.h: Fold in some upstream changes from glibc.
75614         * lib/error.c: Likewise.
75615
75616 2006-08-04  Bruno Haible  <bruno@clisp.org>
75617
75618         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75619         Make the mostlyclean-local rule depend on mostlyclean-generic.
75620         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75621
75622 2006-07-31  Bruno Haible  <bruno@clisp.org>
75623
75624         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75625         <stdlib.h>, <string.h>.
75626
75627 2006-07-30  Bruno Haible  <bruno@clisp.org>
75628
75629         * modules/readlink (License): Change to LGPL.
75630
75631 2006-07-30  Bruno Haible  <bruno@clisp.org>
75632
75633         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75634         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75635         set PKGDATADIR to point to it.
75636
75637 2006-07-30  Bruno Haible  <bruno@clisp.org>
75638
75639         * modules/csharpexec (configure.ac): Comment out macro invocation.
75640         * modules/javaexec (configure.ac): Likewise.
75641         * modules/javacomp-script (configure.ac): Likewise.
75642
75643         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75644
75645 2006-07-30  Bruno Haible  <bruno@clisp.org>
75646
75647         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75648         linked-list.
75649
75650 2006-07-30  Bruno Haible  <bruno@clisp.org>
75651
75652         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75653
75654 2006-07-30  Bruno Haible  <bruno@clisp.org>
75655
75656         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75657         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75658         get removed.
75659
75660 2006-07-29  Bruno Haible  <bruno@clisp.org>
75661
75662         Make it possible for gnulib-tool to work with locally modified or
75663         augmented gnulib repositories.
75664         * gnulib-tool (func_usage): Document --local-dir option.
75665         (local_gnulib_dir): New variable.
75666         Handle --local-dir option.
75667         (func_lookup_file): New function.
75668         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75669         (func_get_description, func_get_filelist, func_get_description,
75670         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75671         func_get_automake_snippet, func_get_include_directive,
75672         func_get_license, func_get_maintainer): Use func_lookup_file.
75673         (func_import, func_create_testdir): Use func_lookup_file.
75674
75675 2006-07-29  Bruno Haible  <bruno@clisp.org>
75676
75677         * modules/setenv (Depends-on): Add unistd.
75678
75679 2006-07-29  Bruno Haible  <bruno@clisp.org>
75680
75681         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75682
75683 2006-07-29  Bruno Haible  <bruno@clisp.org>
75684
75685         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75686
75687 2006-07-29  Bruno Haible  <bruno@clisp.org>
75688
75689         * gnulib-tool (import, update): If there is no Makefile.am, look at
75690         aclocal.m4, instead of bailing out.
75691
75692 2006-07-29  Bruno Haible  <bruno@clisp.org>
75693
75694         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75695         Categorize the options by when they are useful.
75696
75697 2006-07-29  Bruno Haible  <bruno@clisp.org>
75698
75699         * gnulib-tool (func_usage): Document option --no-libtool.
75700         Handle option --no-libtool.
75701         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75702         for changed semantics of $libtool variable.
75703         (func_import): Likewise. If libtool is not used, show this through
75704         an option --no-libtool.
75705         (func_create_testdir): Update.
75706
75707 2006-07-29  Bruno Haible  <bruno@clisp.org>
75708
75709         * gnulib-tool (func_import): Extend error message about missing
75710         --doc-base.
75711
75712 2006-07-29  Bruno Haible  <bruno@clisp.org>
75713
75714         * gnulib-tool (func_import): Don't create the $docbase directory if
75715         there is no file to store there.
75716
75717 2006-07-29  Bruno Haible  <bruno@clisp.org>
75718
75719         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75720         relevant, look for configure.ac there, not in the current directory.
75721         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75722
75723 2006-07-29  Bruno Haible  <bruno@clisp.org>
75724
75725         * gnulib-tool (SORT): New variable.
75726         (func_usage): Undocument --assume-autoconf option.
75727         Remove --assume-autoconf option handling.
75728         (autoconf_minversion): Determine from the contents of configure.ac.
75729         (func_import): Remove autoconf_minversion handling.
75730         Suggested by Eric Blake.
75731
75732 2006-07-29  Bruno Haible  <bruno@clisp.org>
75733
75734         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75735
75736 2006-07-29  Bruno Haible  <bruno@clisp.org>
75737
75738         * config/srclist.txt (*setenv.[ch]): Remove rules.
75739
75740 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75741
75742         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75743
75744 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75745
75746         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75747         arpa/inet.h.
75748
75749 2006-07-28  Simon Josefsson  <jas@extundo.com>
75750
75751         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75752         * modules/inet_pton (Depends-on): Likewise.
75753
75754 2006-07-28  Simon Josefsson  <jas@extundo.com>
75755
75756         * m4/netinet_in_h.m4: New file.
75757
75758 2006-07-28  Simon Josefsson  <jas@extundo.com>
75759
75760         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75761         #include's.
75762
75763 2006-07-28  Simon Josefsson  <jas@extundo.com>
75764
75765         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75766         #include's.
75767
75768 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75769
75770         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75771         setgid on directories only if they set these bits.
75772         * lib/modechange.h: Remove obsolete comment about masks.
75773
75774 2006-07-28  Eric Blake  <ebb9@byu.net>
75775
75776         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75777         macro expansion.
75778
75779 2006-07-28  Bruno Haible  <bruno@clisp.org>
75780
75781         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75782
75783 2006-07-28  Bruno Haible  <bruno@clisp.org>
75784
75785         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75786
75787 2006-07-28  Bruno Haible  <bruno@clisp.org>
75788
75789         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75790         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75791         Define fallbacks.
75792         Avoids link error on FreeBSD 4.x.
75793         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75794
75795         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75796         encoding.
75797         * lib/mbswidth.c (iswcntrl): Likewise.
75798
75799 2006-07-27  Bruno Haible  <bruno@clisp.org>
75800
75801         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75802         test.
75803
75804 2006-07-27  Bruno Haible  <bruno@clisp.org>
75805
75806         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75807         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75808         defined.
75809
75810 2006-07-26  Eric Blake  <ebb9@byu.net>
75811
75812         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75813
75814 2006-07-26  Eric Blake  <ebb9@byu.net>
75815
75816         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75817         like mingw that lack mkstemp.
75818         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75819         avoid compilation warning on mingw.
75820
75821 2006-07-26  Bruno Haible  <bruno@clisp.org>
75822
75823         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75824         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75825         INT_FAST*_MIN, INTPTR_MIN.
75826
75827 2006-07-25  Bruno Haible  <bruno@clisp.org>
75828
75829         * modules/version-etc (Depends-on): Add stdarg.
75830
75831 2006-07-25  Bruno Haible  <bruno@clisp.org>
75832
75833         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75834         complex commands.
75835
75836 2006-07-25  Bruno Haible  <bruno@clisp.org>
75837
75838         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75839         defined in <stdarg.h> or config.h.
75840
75841 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75842
75843         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75844         (gl_STDIO_SAFER): Remove.
75845
75846 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75847
75848         * MODULES.html.sh (File stream based Input/Output):
75849         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75850         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75851         * modules/fopen-safer, modules/tmpfile-safer: New files.
75852         * modules/stdio-safer: Remove.
75853
75854 2006-07-24  Bruno Haible  <bruno@clisp.org>
75855
75856         * modules/tmpdir: New file.
75857         * MODULES.html.sh (File system functions): Add it.
75858
75859 2006-07-24  Bruno Haible  <bruno@clisp.org>
75860
75861         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75862         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75863
75864 2006-07-24  Bruno Haible  <bruno@clisp.org>
75865
75866         * modules/clean-temp: New file.
75867
75868 2006-07-24  Bruno Haible  <bruno@clisp.org>
75869
75870         * m4/tmpdir.m4: New file, from GNU gettext.
75871
75872 2006-07-24  Bruno Haible  <bruno@clisp.org>
75873
75874         * lib/tmpdir.h: New file, from GNU gettext.
75875         * lib/tmpdir.c: New file, from GNU gettext.
75876
75877 2006-07-24  Bruno Haible  <bruno@clisp.org>
75878
75879         * lib/clean-temp.h: New file, from GNU gettext.
75880         * lib/clean-temp.c: New file, from GNU gettext.
75881
75882 2006-07-23  Eric Blake  <ebb9@byu.net>
75883
75884         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75885         (Depends-on): Add binary-io.
75886
75887 2006-07-23  Eric Blake  <ebb9@byu.net>
75888
75889         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75890
75891 2006-07-23  Eric Blake  <ebb9@byu.net>
75892
75893         * lib/tmpfile-safer.c: New file.
75894         * lib/stdio-safer.h (fopen_safer): Add prototype.
75895         * lib/stdio--.h (tmpfile): Make safer.
75896
75897 2006-07-23  Bruno Haible  <bruno@clisp.org>
75898
75899         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75900         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75901         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75902         gl_linked_remove_at): Use it.
75903
75904 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75905         and Simon Josefsson <jas@extundo.com>
75906
75907         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75908
75909         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75910
75911 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75912
75913         * modules/close-stream: New file.
75914         * modules/closeout (Description): Make it clear that it exits
75915         with a diagnostic on error.
75916         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75917         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75918
75919 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75920
75921         * m4/close-stream.m4: New file.
75922
75923 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75924
75925         * lib/close-stream.c, lib/close-stream.h: New files.
75926
75927 2006-07-22  Bruno Haible  <bruno@clisp.org>
75928
75929         Merge from GNU gettext 0.15.
75930
75931         2006-05-01  Bruno Haible  <bruno@clisp.org>
75932
75933                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75934
75935         2006-07-22  Bruno Haible  <bruno@clisp.org>
75936
75937                 * modules/javaversion: New file.
75938                 * MODULES.html.sh (Java): Add javaversion.
75939
75940         2006-03-12  Bruno Haible  <bruno@clisp.org>
75941
75942                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75943
75944         2005-12-04  Bruno Haible  <bruno@clisp.org>
75945
75946                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75947                 (untested).
75948
75949         2006-06-21  Bruno Haible  <bruno@clisp.org>
75950
75951                 Avoid warnings from recent versions of mcs.
75952                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75953                 -o, -L, -r any more. Use options documented since mcs-1.0
75954                 instead. Similarly for -g.
75955
75956         2005-12-04  Bruno Haible  <bruno@clisp.org>
75957
75958                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75959                 .resources, not .resource.
75960
75961         2005-07-09  Bruno Haible  <bruno@clisp.org>
75962
75963                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75964                 add a .dll suffix.
75965                 Reported by Mark Junker <mjscod@gmx.de>.
75966
75967         2006-07-22  Bruno Haible  <bruno@clisp.org>
75968
75969                 * modules/gettext: Upgrade to gettext-0.15.
75970                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75971                 m4/visibility.m4.
75972                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75973
75974 2006-07-22  Bruno Haible  <bruno@clisp.org>
75975
75976         Merge from GNU gettext 0.15.
75977
75978         2006-03-25  Bruno Haible  <bruno@clisp.org>
75979
75980                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75981
75982         2006-07-21  Bruno Haible  <bruno@clisp.org>
75983
75984                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75985                 "1.1".
75986
75987         2006-05-09  Bruno Haible  <bruno@clisp.org>
75988
75989                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75990                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75991                 for the conftestver execution.
75992
75993         2006-05-01  Bruno Haible  <bruno@clisp.org>
75994
75995                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75996                 optional target-version argument. Verify that the compiler
75997                 groks source of the specified source-version, or add -source
75998                 option as necessary. Verify that the compiler produces
75999                 bytecode in the specified target-version, or add -target and
76000                 -source options as necessary. Make the result of the test
76001                 available as variable CONF_JAVAC. Also log error output in
76002                 config.log.
76003
76004         2006-03-11  Bruno Haible  <bruno@clisp.org>
76005
76006                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76007
76008         2006-05-09  Bruno Haible  <bruno@clisp.org>
76009
76010                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76011                 CLASSPATH_SEPARATOR to a semicolon.
76012
76013         2006-03-12  Bruno Haible  <bruno@clisp.org>
76014
76015                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76016                 available as variable CONF_JAVA, for subsequent autoconf
76017                 tests. Also log error output in config.log.
76018
76019         2006-07-19  Bruno Haible  <bruno@clisp.org>
76020
76021                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76022                 that getline works on glibc2 systems. Needed to avoid trouble
76023                 in relocatable.c.
76024                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76025
76026         2005-12-04  Bruno Haible  <bruno@clisp.org>
76027
76028                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76029                 launcher (untested).
76030
76031         2005-12-04  Bruno Haible  <bruno@clisp.org>
76032
76033                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76034
76035         2006-07-22  Bruno Haible  <bruno@clisp.org>
76036
76037                 * gettext.m4: Update from GNU gettext-0.15.
76038                 * nls.m4: Likewise.
76039                 * po.m4: Likewise.
76040                 * inttypes-pri.m4: Likewise.
76041                 * inttypes-h.m4: Renamed from inttypes.m4.
76042                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76043
76044 2006-07-22  Bruno Haible  <bruno@clisp.org>
76045
76046         Merge from GNU gettext 0.15.
76047
76048         2005-07-05  Bruno Haible  <bruno@clisp.org>
76049
76050                 * printf-args.c (printf_fetchargs): Work around broken
76051                 definition of wint_t on mingw.
76052
76053         2005-02-12  Bruno Haible  <bruno@clisp.org>
76054
76055                 * xallocsa.h: Add extern "C" for C++.
76056
76057         2006-05-17  Bruno Haible  <bruno@clisp.org>
76058
76059                 Cygwin portability.
76060                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76061
76062         2006-04-30  Bruno Haible  <bruno@clisp.org>
76063
76064                 * progreloc.c: Include <mach-o/dyld.h> if available.
76065                 (find_executable): Use _NSGetExecutablePath when possible.
76066
76067         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76068
76069                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76070                 function.
76071
76072         2005-12-29  Bruno Haible  <bruno@clisp.org>
76073
76074                 * progreloc.c (set_program_name_and_installdir): Fix
76075                 compilation error.
76076
76077         2005-12-04  Bruno Haible  <bruno@clisp.org>
76078
76079                 Cygwin portability.
76080                 * progreloc.c: Include <windows.h> also on Cygwin.
76081                 (find_executable): Add support for Cygwin.
76082                 (set_program_name_and_installdir): Handle also platforms with
76083                 nonempty EXEEXT.
76084
76085         2006-07-11  Bruno Haible  <bruno@clisp.org>
76086
76087                 * javacomp.c: Fix a comment.
76088                 Reported by Jim Meyering.
76089
76090         2006-04-30  Bruno Haible  <bruno@clisp.org>
76091
76092                 * javacomp.h (compile_java_class): Add source_version,
76093                 target_version arguments.
76094                 * javacomp.c: Rewritten to choose only a compiler that
76095                 respects the specified source_version and target_version.
76096
76097         2006-06-27  Bruno Haible  <bruno@clisp.org>
76098
76099                 Assume correct S_ISDIR macro.
76100                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76101
76102         2006-07-22  Bruno Haible  <bruno@clisp.org>
76103
76104                 * javaversion.h: New file, from GNU gettext.
76105                 * javaversion.c: New file, from GNU gettext.
76106                 * javaversion.java: New file, from GNU gettext.
76107                 * javaversion.class: New file, from GNU gettext.
76108
76109         2006-05-17  Bruno Haible  <bruno@clisp.org>
76110
76111                 Cygwin portability.
76112                 * javaexec.c (execute_java_class): Test for jview program
76113                 also on Cygwin.
76114
76115         2006-04-09  Bruno Haible  <bruno@clisp.org>
76116
76117                 * fatal-signal.c: Don't include string.h.
76118                 (at_fatal_signal): Use a copying loop instead of memcpy.
76119
76120         2005-12-04  Bruno Haible  <bruno@clisp.org>
76121
76122                 * csharpexec.c: Add support for 'clix' launcher (untested).
76123                 (execute_csharp_using_sscli): New function.
76124                 (execute_csharp_program): Call it.
76125
76126         2006-06-21  Bruno Haible  <bruno@clisp.org>
76127
76128                 Avoid warnings from recent versions of mcs.
76129                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76130                 -o, -L, -r any more. Use options documented since mcs-1.0
76131                 instead. Similarly for -g.
76132
76133         2005-07-09  Bruno Haible  <bruno@clisp.org>
76134
76135                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76136                 add a .dll suffix.
76137                 Reported by Mark Junker <mjscod@gmx.de>.
76138
76139         2006-06-17  Bruno Haible  <bruno@clisp.org>
76140
76141                 * config.charset: Update for NetBSD 3.0.
76142
76143         2006-05-17  Bruno Haible  <bruno@clisp.org>
76144
76145                 Cygwin portability.
76146                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76147
76148         2006-05-16  Bruno Haible  <bruno@clisp.org>
76149
76150                 * localcharset.c [CYGWIN]: Include <windows.h>.
76151                 (get_charset_aliases): For Cygwin, return the same CPxxx
76152                 aliases list as under WIN32.
76153                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76154                 the environment variables. Fall back to GetACP().
76155
76156         2006-04-05  Bruno Haible  <bruno@clisp.org>
76157
76158                 * config.charset: Update Juan Manuel Guerrero's address.
76159
76160         2005-02-12  Bruno Haible  <bruno@clisp.org>
76161
76162                 * allocsa.h: Add extern "C" for C++.
76163
76164         2005-02-10  Bruno Haible  <bruno@clisp.org>
76165
76166                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76167                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76168
76169         2006-07-22  Bruno Haible  <bruno@clisp.org>
76170
76171                 * gettext.h: Update to GNU gettext-0.15.
76172
76173 2006-07-22  Bruno Haible  <bruno@clisp.org>
76174
76175         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76176         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76177         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76178
76179 2006-07-21  Eric Blake  <ebb9@byu.net>
76180
76181         * modules/stdlib-safer: New file.
76182         * MODULES.html.sh (File stream based Input/Output): Add
76183         stdlib-safer.
76184
76185 2006-07-21  Eric Blake  <ebb9@byu.net>
76186
76187         * lib/stdlib-safer.h: New file from coreutils, required by
76188         stdlib--.h.
76189
76190 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76191
76192         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76193
76194 2006-07-20  Bruno Haible  <bruno@clisp.org>
76195
76196         * gnulib-tool: Recognize new option --assume-autoconf.
76197         (autoconf_minversion): New variable.
76198         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76199
76200 2006-07-20  Bruno Haible  <bruno@clisp.org>
76201
76202         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76203
76204 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76205
76206         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76207         Reindent and repaginate.
76208
76209 2006-07-19  Derek Price  <derek@ximbiot.com>
76210
76211         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76212         Correct grammar.
76213
76214 2006-07-17  Bruno Haible  <bruno@clisp.org>
76215
76216         * modules/list: New file.
76217         * modules/array-list: New file.
76218         * modules/carray-list, modules/carray-list-tests: New files.
76219         * modules/linked-list, modules/linked-list-tests: New files.
76220         * modules/avltree-list, modules/avltree-list-tests: New files.
76221         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76222         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76223         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76224         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76225         * modules/oset: New file.
76226         * modules/array-oset: New file.
76227         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76228         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76229         * tests/test-carray_list.c: New file.
76230         * tests/test-linked_list.c: New file.
76231         * tests/test-avltree_list.c: New file.
76232         * tests/test-rbtree_list.c: New file.
76233         * tests/test-linkedhash_list.c: New file.
76234         * tests/test-avltreehash_list.c: New file.
76235         * tests/test-rbtreehash_list.c: New file.
76236         * tests/test-avltree_oset.c: New file.
76237         * tests/test-rbtree_oset.c: New file.
76238         * MODULES.html.sh (Container data structures): New section.
76239
76240 2006-07-17  Bruno Haible  <bruno@clisp.org>
76241
76242         * m4/gl_list.m4: New file.
76243
76244 2006-07-17  Bruno Haible  <bruno@clisp.org>
76245
76246         * lib/gl_list.h: New file.
76247         * lib/gl_list.c: New file.
76248         * lib/gl_array_list.h: New file.
76249         * lib/gl_array_list.c: New file.
76250         * lib/gl_carray_list.h: New file.
76251         * lib/gl_carray_list.c: New file.
76252         * lib/gl_linked_list.h: New file.
76253         * lib/gl_linked_list.c: New file.
76254         * lib/gl_anylinked_list1.h: New file.
76255         * lib/gl_anylinked_list2.h: New file.
76256         * lib/gl_avltree_list.h: New file.
76257         * lib/gl_avltree_list.c: New file.
76258         * lib/gl_anyavltree_list1.h: New file.
76259         * lib/gl_anyavltree_list2.h: New file.
76260         * lib/gl_rbtree_list.h: New file.
76261         * lib/gl_rbtree_list.c: New file.
76262         * lib/gl_anyrbtree_list1.h: New file.
76263         * lib/gl_anyrbtree_list2.h: New file.
76264         * lib/gl_anytree_list1.h: New file.
76265         * lib/gl_anytree_list2.h: New file.
76266         * lib/gl_linkedhash_list.h: New file.
76267         * lib/gl_linkedhash_list.c: New file.
76268         * lib/gl_anyhash_list1.h: New file.
76269         * lib/gl_anyhash_list2.h: New file.
76270         * lib/gl_avltreehash_list.h: New file.
76271         * lib/gl_avltreehash_list.c: New file.
76272         * lib/gl_rbtreehash_list.h: New file.
76273         * lib/gl_rbtreehash_list.c: New file.
76274         * lib/gl_anytreehash_list1.h: New file.
76275         * lib/gl_anytreehash_list2.h: New file.
76276
76277         * lib/gl_oset.h: New file.
76278         * lib/gl_oset.c: New file.
76279         * lib/gl_array_oset.h: New file.
76280         * lib/gl_array_oset.c: New file.
76281         * lib/gl_avltree_oset.h: New file.
76282         * lib/gl_avltree_oset.c: New file.
76283         * lib/gl_rbtree_oset.h: New file.
76284         * lib/gl_rbtree_oset.c: New file.
76285         * lib/gl_anytree_oset.h: New file.
76286
76287 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76288
76289         * m4/mkancesdirs.m4: New file.
76290         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76291         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76292         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76293         it.
76294
76295 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76296
76297         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76298         * lib/mkancesdirs.h: New files.
76299         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76300         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76301         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76302         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76303         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76304         callers changed.  Revamp internals significantly, by not
76305         attempting to create directories that are temporarily more
76306         permissive than the final results.  Do not attempt to use
76307         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76308         This removes some race conditions, fixes some bugs, and simplifies
76309         things.  Use new dirchownmod function to do owner and mode changes.
76310         * lib/mkdir-p.h: Likewise.
76311         * lib/modechange.c (octal_to_mode): New function.
76312         (struct mode_change): New member mentioned.
76313         (make_node_op_equals): New arg mentioned.  All callers changed.
76314         (mode_compile): Keep track of which mode bits the user has explicitly
76315         mentioned.
76316         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76317         New arg PMODE_BITS, to keep track of which mode bits the user
76318         mentioned; it treats S_ISUID and S_ISGID speciall.
76319         All callers changed.
76320         * lib/modechange.h: Likewise.
76321
76322 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76323
76324         * MODULES.html.sh: Add mkancestors.
76325         * modules/mkancesdirs: New module.
76326         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76327         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76328         The chdir-safer and afs files are now orphans; I'll remove them
76329         unless someone speaks up.
76330         Add lib/dirchownmod.c, lib/dirchownmod.h.
76331         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76332         Add lchown, mkancesdirs.
76333         (Maintainer): Add self.
76334
76335 2006-07-15  Karl Berry  <karl@gnu.org>
76336
76337         * gnulib-tool: help message wording/arrangement.
76338
76339 2006-07-14  Simon Josefsson  <jas@extundo.com>
76340
76341         * doc/gnulib.texi (Libtool and Windows): New section.
76342
76343 2006-07-12  Simon Josefsson  <jas@extundo.com>
76344
76345         * modules/gendocs (License): Fix license, approved by Karl.
76346
76347 2006-07-12  Eric Blake  <ebb9@byu.net>
76348
76349         * MODULES.html.sh: Add gendocs.
76350
76351 2006-07-11  Eric Blake  <ebb9@byu.net>
76352
76353         * modules/fdl: New module, to install doc/fdl.texi.
76354         * MODULES.html.sh: Add new section for documentation modules.
76355         * gnulib-tool: Avoid space-tab.
76356         (--doc-base): New option, to manage files from doc.
76357
76358 2006-07-11  Eric Blake  <ebb9@byu.net>
76359
76360         * m4/absolute-header.m4: Fix comments to match recent change.
76361
76362 2006-07-11  Eric Blake  <ebb9@byu.net>
76363
76364         * gnulib-tool: List --doc-base before --tests-base.
76365
76366 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76367
76368         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76369
76370 2006-07-11  Bruno Haible  <bruno@clisp.org>
76371
76372         * README: Mention where to put documentation.
76373
76374 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76375
76376         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76377
76378 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76379
76380         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76381         to stdint.m4.
76382
76383 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76384
76385         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76386         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76387         "no/such/file/stdint.h" when there is no such file, so that
76388         the resulting C code can be parsed by dodgy compilers.
76389         Problems reported by Bob Proulx.
76390
76391 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76392
76393         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76394         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76395         macros into the GNU _D_EXACT_NAMLEN.
76396         * lib/savedir.c:  Likewise.
76397         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76398
76399 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76400         and Paul Eggert  <eggert@cs.ucla.edu>
76401
76402         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76403         * m4/savedir.m4:
76404         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76405         macros into the GNU _D_EXACT_NAMLEN.
76406
76407 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76408
76409         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76410         around the absolute name, to work around a problem with the HP-UX
76411         11.23 native C compiler, reported by Bob Proulx.
76412
76413 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76414
76415         * doc/maintain.texi, make-stds.texi: Sync from
76416         <http://savannah.gnu.org/projects/gnustandards>.
76417
76418 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76419
76420         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76421
76422 2006-07-09  Jim Meyering  <jim@meyering.net>
76423
76424         * m4/glob.m4: Remove a doubled word in a comment.
76425
76426 2006-07-09  Jim Meyering  <jim@meyering.net>
76427
76428         * lib/argp-pv.c: Remove a doubled word in a comment.
76429         * lib/check-version.c (check_version): Likewise.
76430         * lib/javacomp.c (compile_java_class): Likewise.
76431
76432 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76433
76434         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76435         for the benefit of people using Autoconf 2.60.  If you want to
76436         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76437         (or m4/onceonly.m4, if pre-2.57) manually.
76438
76439 2006-07-08  Jim Meyering  <jim@meyering.net>
76440
76441         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76442         comment.
76443         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76444         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76445         comment.
76446
76447 2006-07-08  Jim Meyering  <jim@meyering.net>
76448
76449         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76450
76451 2006-07-07  Simon Josefsson  <jas@extundo.com>
76452
76453         * tests/test-crc.c: Change expected crc value, the test vector
76454         were probably computed using the old broken crc.c?
76455
76456 2006-07-06  Simon Josefsson  <jas@extundo.com>
76457
76458         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76459         now the canonical place for the M4 file).
76460
76461         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76462         from the sys_socket dependency now.
76463
76464         * modules/inet_pton (Files): Ditto.
76465
76466         * modules/inet_ntop (Files): Ditto.
76467
76468 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76469
76470         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76471         not gl_PREREQ_GETUSERSHELL.
76472
76473 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76474
76475         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76476         with only one argument, for Autoconf 2.60.
76477         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76478         expand to nothing, so add a shell command to avoid syntax error.
76479         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76480
76481 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76482
76483         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76484
76485 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76486
76487         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76488         no longer needed.  Check for isblank decl.
76489         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76490         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76491         of existence.
76492
76493 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76494
76495         * lib/getloadavg.c: Use __VMS, not VMS.
76496         * lib/getopt.c: Likewise.
76497         * lib/getpagesize.h: Likewise.
76498         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76499         and probably does not work.
76500
76501 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76502
76503         * lib/.cppi-disable: Add wcwidth.
76504         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76505         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76506         (ISGRAPH): Remove.  All uses changed to isgraph.
76507         (FOLD) [!defined _LIBC]: Remove special case.
76508         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76509         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76510         HAVE_ISBLANK.
76511         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76512         case.
76513
76514 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76515
76516         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76517         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76518         brackets.  Other minor changes to suppress some compiler
76519         warnings.
76520
76521 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76522         and Paul Eggert  <eggert@cs.ucla.edu>
76523
76524         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76525         of invoking obsolescent AC_HEADER_DIRENT macro.
76526         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76527         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76528         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76529         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76530         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76531         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76532         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76533         * m4/readdir.m4: Remove; no longer needed.
76534
76535 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76536         and Paul Eggert  <eggert@cs.ucla.edu>
76537
76538         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76539         Don't worry about this obsolete case any more.
76540         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76541         directories.
76542         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76543         worry about this obsolete case any more.
76544         * lib/fts.c: Likewise.
76545         * lib/getcwd.c: Likewise.
76546         * lib/glob.h: Likewise.
76547         * lib/savedir.c: Likewise.
76548
76549 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76550
76551         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76552         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76553         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76554         needed.
76555         All uses removed.
76556         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76557         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76558         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76559         needed.
76560         * m4/getdate.m4 (gl_GETDATE): Likewise.
76561         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76562         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76563         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76564         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76565         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76566         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76567         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76568         needed.
76569
76570 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76571
76572         * lib/memcasecmp.c: Include <limits.h>.
76573         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76574         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76575         Don't assume isdigit succeeds only on '0' through '9'.
76576
76577 2006-07-05  Eric Blake  <ebb9@byu.net>
76578
76579         * modules/getaddrinfo (Depends-on): Add snprintf.
76580
76581 2006-07-05  Eric Blake  <ebb9@byu.net>
76582
76583         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76584         to avoid 'header present but could not be compiled' on cygwin.
76585
76586 2006-07-05  Eric Blake  <ebb9@byu.net>
76587
76588         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76589         missing from netdb.h.
76590         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76591
76592 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76593
76594         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76595         no longer needed.
76596         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76597         * m4/getdate.m4 (gl_GETDATE): Likewise.
76598         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76599         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76600         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76601         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76602         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76603
76604 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76605
76606         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76607         All uses of is_space replaced by isspace.
76608         * lib/exit.h: Don't talk about STDC_HEADERS.
76609         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76610         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76611         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76612         replaced by isprint etc.
76613         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76614         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76615         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76616         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76617         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76618         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76619
76620 2006-07-05  Bruno Haible  <bruno@clisp.org>
76621
76622         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76623         the function exists, before testing against AIX.
76624         Reported by Martin Lambers <marlam@marlam.de>.
76625
76626 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76627
76628         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76629         From Mark D. Baushke.
76630
76631 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76632
76633         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76634         to the absolute name, not just one, to bypass Sun C 5.8's
76635         "warning: #include of /usr/include/... may be non-portable".
76636
76637 2006-07-04  Eric Blake  <ebb9@byu.net>
76638
76639         * modules/dirname-tests: New test module.
76640         * tests/test-dirname.c: New file, replacing dirname.c
76641         TEST_DIRNAME section that was recently deleted.
76642
76643 2006-07-04  Bruno Haible  <bruno@clisp.org>
76644
76645         Assume ANSI C header files and <ctype.h> functions.
76646         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76647         (mbsnwidth): Use isprint, iscntrl instead.
76648
76649 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76650
76651         Merge from coreutils.
76652         * MODULES.html.sh: Add xstrtold.
76653         * modules/xstrtold: New file.
76654         * modules/cycle-check (Files): Add lib/same-inode.h.
76655         * modules/dirname (Files): Add m4/double-slash-root.m4.
76656         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76657         * modules/mkdir-p (Files): Add lib/same-inode.h.
76658         * modules/same (Files): Add lib/same-inode.h.
76659
76660 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76661
76662         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76663         This is to keep the terminology clean; POSIX talks about
76664         "absolute pathnames", not "full pathnames", but the GNU
76665         Coding Standards say to use "path" for something else;
76666         so use "absolute" to keep both sides happy.
76667         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76668         Set gl_absolute_header, not gl_full_header_path.
76669         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76670         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76671         All uses changed.
76672
76673         Merge from coreutils.
76674
76675         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76676
76677         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76678         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76679         want to require the building of c-strtod.o.
76680         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76681         needs -lm directly.
76682         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76683
76684         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76685
76686         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76687         --as-needed option if available.  Problem reported by Albert Chin in
76688         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76689         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76690         cc merely issues a bunch of annoying warnings for --as-needed
76691         (this problem was reported by Bob Proulx).  Also, try linking with
76692         -lm to detect a bug in binutils 2.16 (this problem was reported
76693         by Ralf Wildenhues).
76694
76695         2006-06-18  Jim Meyering  <jim@meyering.net>
76696
76697         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76698         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76699         macro.
76700         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76701         also check for glibc-2.4's abort-inducing bug.
76702
76703         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76704         Low-probability clean-up should be to use rmdir to get rid of
76705         the just-created directory, not unlink.
76706
76707         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76708         configure fail, and request a bug report to inform us about it.
76709         Add a comment that, barring reports to the contrary, in 2007 we'll
76710         assume ftruncate is universally available.
76711
76712         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76713
76714         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76715
76716         2006-03-12  Jim Meyering  <jim@meyering.net>
76717
76718         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76719         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76720         * m4/same.m4 (gl_SAME): Likewise.
76721         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76722
76723         2006-03-11  Eric Blake  <ebb9@byu.net>
76724
76725         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76726         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76727         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76728         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76729
76730 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76731
76732         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76733         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76734         reported by Mark D. Baushke, one in
76735         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76736
76737         Merge from coreutils.
76738
76739         * lib/.cppi-disable: Add stdint_.h.
76740         * lib/.cvsignore: Add stdint.h.
76741
76742         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76743
76744         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76745         both double and long double versions.
76746         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76747         * lib/xstrtold.c: New file.
76748         * lib/xstrtod.h (xstrtold): New decl.
76749
76750         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76751
76752         * lib/filemode.c (setst): Remove.
76753         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76754         (arguably) clearer, and the generated code is a bit smaller on my
76755         Debian GNU/Linux stable x86 host.
76756
76757         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76758
76759         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76760         Assume that filemode.h includes sys/types.h and sys/stat.h.
76761         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76762         (ftypelet): Reorder to put common cases first, for efficiency.
76763         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76764         to do 'M'.
76765         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76766         of 10, for compatibility with FreeBSD.  All callers changed.
76767         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76768         types that can't be deduced solely from st_mode.  First arg is now a
76769         const pointer.
76770         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76771         (strmode): Renamed from mode_string.
76772         (filemodestring): New decl.
76773         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76774         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76775         needed.
76776         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76777
76778         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76779
76780         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76781         fsusage.h now does that.  Include fsusage.h first, to test interface.
76782         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76783         at most one method (the old code could have generated decls that
76784         didn't conform to C89, not that this was ever exercised).
76785         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76786
76787         2006-03-19  Jim Meyering  <jim@meyering.net>
76788
76789         Work even in a chroot where d_ino values for entries in "/"
76790         don't match the stat.st_ino values for the same names.
76791         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76792         number, iterate through all entries again, using lstat instead.
76793         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76794         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76795
76796         * lib/getcwd.c (__getcwd): Clarify a comment.
76797         Use memcpy in place of a call to strcpy.
76798
76799         2006-03-12  Jim Meyering  <jim@meyering.net>
76800
76801         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76802         matches that of the current directory (which we're about to chdir ".."
76803         out of), then save the dev-ino of the parent, instead.
76804
76805         * lib/same-inode.h (SAME_INODE): New file/macro.
76806         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76807         Include "same-inode.h", instead.
76808         * lib/same.c: Likewise.
76809         * lib/cycle-check.h: Include "same-inode.h".
76810         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76811         * lib/cycle-check.c (SAME_INODE): Remove definition.
76812         * lib/root-dev-ino.h: Include "same-inode.h".
76813
76814         2006-03-11  Eric Blake  <ebb9@byu.net>
76815
76816         * lib/same.c (same_name): s/base_name/last_component/
76817         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76818         * lib/filenamecat.c (file_name_concat): Likewise.
76819
76820         2006-03-11  Eric Blake  <ebb9@byu.net>,
76821                     Paul Eggert  <eggert@cs.ucla.edu>
76822
76823         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76824         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76825         drive prefix.
76826         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76827         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76828         (last_component): New method.
76829         * lib/dirname.c (dir_len): Determine when drive letters need a
76830         subsequent slash.  Preserve // when it is special.
76831         (dir_name): Don't append dot when drive letter is absolute.
76832         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76833         * lib/basename.c (base_name): New semantics - malloc the result.
76834         Preserve // when it is special.  Preserve relative files that look
76835         like drive letters.
76836         (base_len): Preserve // when it is special.
76837         (last_component): New method, similar to old base_name semantics.
76838         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76839         base_name.  Strip redundant slashes from ///.
76840
76841 2006-07-03  Jim Meyering  <jim@meyering.net>
76842
76843         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76844         macro is used before the first cycle_check call.
76845
76846 2006-07-03  Eric Blake  <ebb9@byu.net>
76847
76848         * modules/dirname (Depends-on): Add xstrndup.
76849
76850 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76851
76852         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76853         test cases, so that config.log is a bit easier to follow.
76854
76855 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76856
76857         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76858         both are 64 bits, since this seems to be the tradition, and this
76859         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76860         we ever run into a host that prefers long long to long in this
76861         case, we'll need another configure-time test.  Problem reported by
76862         Jim Meyering.
76863
76864 2006-07-02  Eric Blake  <ebb9@byu.net>
76865
76866         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76867
76868 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76869
76870         * modules/inttypes (Depends-on): No longer depends on stdint.
76871         * modules/stdint (Description): Say more about assumptions.
76872         Say that the fast types might differ.  Say macros are used.
76873         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76874         (Makefile.am): Revise list of substituted symbols to match
76875         new stdint.m4.
76876         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76877         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76878         * tests/test-stdint.c (verify_same_types)
76879         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76880         the code conforms to C99/C89.
76881         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76882         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76883
76884 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76885
76886         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76887         but fix a bug, by requiring at least 64 bits.
76888         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76889         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76890         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76891         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76892
76893         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76894         changes.  Make 2.59 a prerequisite.  Check and substitute for
76895         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76896         inttypes.h.  Do not use special include files; just use the
76897         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76898         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76899         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76900         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76901         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76902         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76903         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76904         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76905         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76906         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76907         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76908         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76909         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76910         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76911         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76912         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76913         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76914         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76915         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76916         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76917         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76918         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76919         not check for things that C99 does not require, e.g., int8_t.  If
76920         a test isn't needed unless <stdint.h> isn't working, and is
76921         unlikely to be needed for any other reason, then don't do it
76922         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76923         size_t, since we assume C89 freestanding at least.  Do not check
76924         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76925         the right thing even if the types are not defined.  Instead use:
76926         (gl_STDINT_TYPE_PROPERTIES): New macro.
76927         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76928         testing whether <sys/types.h> clashes, as Autoconf does this for
76929         us now.  All uses removed.
76930         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76931         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76932         (gl_CHECK_TYPE_SAME):
76933         Remove; no longer needed.
76934         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76935         exists, since we'll return 0 anyway in that case.
76936         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76937
76938 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76939
76940         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76941         possible collision with system files.
76942         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76943         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76944         WCHAR_MIN and WCHAR_MAX in this case.
76945         (<stddef.h>): Do not include; no longer needed.
76946         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76947         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76948         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76949         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76950         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76951         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76952         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76953         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76954         !defined(__c99))]: Include in this case too, since it's harmless
76955         now.
76956         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76957         dangerous to do so.
76958         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76959         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76960         (_STDINT_MIN, _STDINT_MAX): New macros.
76961         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76962         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76963         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76964         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76965         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76966         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76967         macros, not typedefs; this simplifies things quite a bit.
76968         Use long int for all types narrower than int64_t.
76969         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76970         Define in terms of long long int or int64_t or long int,
76971         not int64_t or int32_t.  This saves some compile-time testing.
76972         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76973         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76974         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76975         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76976         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76977         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76978         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76979         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76980         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76981         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76982         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76983         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76984         undef any previous version and define our own version, for
76985         simplicity and consistency with the new macros for types.
76986         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76987         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76988         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76989         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76990         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76991         @WINT_T_SUFFIX@ to keep things simple here.
76992         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76993         Simplify by assuming typical 8/16/32/64 host, since we're
76994         already doing that elsewhere anyway.
76995         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76996         and assume long long int is 64 bits if available.  This
76997         speeds up 'configure'.
76998
76999 2006-07-01  Eric Blake  <ebb9@byu.net>
77000
77001         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77002         Reported by Andreas Buening.
77003
77004 2006-07-01  Eric Blake  <ebb9@byu.net>
77005
77006         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77007
77008 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77009
77010         * lib/getaddrinfo.c: fixed typo
77011
77012 2006-06-29  Jim Meyering  <jim@meyering.net>
77013
77014         * modules/strftime (Maintainer): Add my name, since with the
77015         FPRINTFTIME changes strftime.c has forked from glibc.
77016
77017 2006-06-29  Eric Blake  <ebb9@byu.net>
77018
77019         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77020
77021 2006-06-29  Eric Blake  <ebb9@byu.net>
77022
77023         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77024
77025 2006-06-29  Eric Blake  <ebb9@byu.net>
77026
77027         * lib/stat_.h: New file.
77028
77029 2006-06-29  Eric Blake  <ebb9@byu.net>
77030
77031         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77032         unused static function.
77033
77034 2006-06-29  Eric Blake  <ebb9@byu.net>
77035
77036         * doc/functions.texi (Function Portability): Document missing lstat
77037         on mingw.
77038
77039 2006-06-29  Eric Blake  <ebb9@byu.net>
77040
77041         * MODULES.html.sh: Add sys_stat.
77042         * modules/sys_stat: New module.
77043         * modules/mkstemp (Depends-on): Add sys_stat.
77044
77045 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77046
77047         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77048
77049 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77050
77051         * m4/c-bs-a.m4: Removed.
77052
77053 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77054
77055         * lib/strftime.c: Assume strftime() exists.
77056
77057 2006-06-29  Derek Price  <derek@ximbiot.com>
77058
77059         * modules/c-bs-a: Removed - \a is C89.
77060         * MODULES.html.sh: Remove c-bs-a.
77061
77062 2006-06-29  Bruno Haible  <bruno@clisp.org>
77063
77064         * modules/wcwidth (License): Change to LGPL.
77065
77066 2006-06-28  Simon Josefsson  <jas@extundo.com>
77067
77068         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77069         on _WIN32.
77070
77071         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77072         getnameinfo.
77073
77074 2006-06-28  Simon Josefsson  <jas@extundo.com>
77075
77076         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77077
77078 2006-06-28  Simon Josefsson  <jas@extundo.com>
77079
77080         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77081         functions there.  It will succeed on Windows XP, but on Windows
77082         2000 and (presumably) earlier, it will fail, and use the internal
77083         re-implementation.
77084         (use_win32_p): New function.
77085         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77086         Support AI_NUMERICSERV to disable getservbyname.
77087         (getnameinfo): New function, only supports
77088         NI_NUMERICHOST|NI_NUMERICSERV for now.
77089
77090         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77091         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77092         getnameinfo.
77093
77094 2006-06-28  Eric Blake  <ebb9@byu.net>
77095
77096         * modules/wcwidth: New file.
77097         * modules/mbchar (Depends-on): Add wcwidth.
77098         * modules/mbswidth (Depends-on): Add wcwidth.
77099         * MODULES.html.sh: Add wcwidth.
77100
77101 2006-06-28  Eric Blake  <ebb9@byu.net>
77102
77103         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77104         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77105
77106 2006-06-28  Eric Blake  <ebb9@byu.net>
77107
77108         * lib/xvasprintf.h: Fix comments.
77109
77110 2006-06-28  Eric Blake  <ebb9@byu.net>
77111
77112         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77113         * lib/mbswidth.c (wcwidth): Move from here...
77114         * lib/wcwidth.h: ...to this new file.
77115
77116 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77117
77118         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77119
77120         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77121         it's obsolete.
77122         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77123
77124 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77125
77126         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77127         Autoconf 2.60 says this stuff was obsolete.
77128
77129 2006-06-28  Bruno Haible  <bruno@clisp.org>
77130
77131         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77132
77133 2006-06-28  Bruno Haible  <bruno@clisp.org>
77134
77135         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77136         gt_TYPE_WCHAR_T.
77137
77138 2006-06-28  Bruno Haible  <bruno@clisp.org>
77139
77140         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77141         declaration for wcwidth.
77142         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77143
77144 2006-06-28  Bruno Haible  <bruno@clisp.org>
77145
77146         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77147         (mkdir): Define using _mkdir.
77148
77149 2006-06-28  Bruno Haible  <bruno@clisp.org>
77150
77151         * lib/getaddrinfo.h: Fix POSIX URL.
77152         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77153         _WIN32.
77154         (use_win32_p): Make static.
77155         (getaddrinfo): Reject service name if it is empty or does not consist
77156         solely of decimal digits, or if its value is > 65535.
77157         (getnameinfo): Remove useless casts.
77158
77159 2006-06-27  Simon Josefsson  <jas@extundo.com>
77160
77161         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77162         Eggert and Martin Lambers.
77163
77164 2006-06-27  Simon Josefsson  <jas@extundo.com>
77165
77166         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77167         Eggert and Martin Lambers.
77168
77169 2006-06-27  Bruno Haible  <bruno@clisp.org>
77170
77171         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77172         result to 0, not to empty.
77173         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77174
77175 2006-06-27  Bruno Haible  <bruno@clisp.org>
77176
77177         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77178
77179 2006-06-26  Simon Josefsson  <jas@extundo.com>
77180
77181         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77182         present.
77183
77184 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77185
77186         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77187         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77188         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77189
77190 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77191
77192         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77193
77194 2006-06-26  Bruno Haible  <bruno@clisp.org>
77195
77196         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77197
77198 2006-06-26  Bruno Haible  <bruno@clisp.org>
77199
77200         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77201
77202 2006-06-26  Bruno Haible  <bruno@clisp.org>
77203
77204         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77205         SGI C compiler in pre-C99 mode.
77206         Suggested by Mark D. Baushke and Larry Jones.
77207
77208 2006-06-26  Bruno Haible  <bruno@clisp.org>
77209
77210         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77211         WCHAR_MAX.
77212         Reported by Mark D. Baushke and Larry Jones.
77213
77214 2006-06-26  Bruno Haible  <bruno@clisp.org>
77215
77216         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77217         in pre-C99 mode.
77218         Suggested by Mark D. Baushke and Larry Jones.
77219
77220 2006-06-23  Simon Josefsson  <jas@extundo.com>
77221             Bruno Haible  <bruno@clisp.org>
77222
77223         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77224         Emit mostlyclean-local rule.
77225         (func_emit_tests_Makefile_am): Likewise.
77226         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77227
77228 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77229
77230         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77231
77232 2006-06-23  Bruno Haible  <bruno@clisp.org>
77233
77234         * tests/test-stdint.c: Update to match ISO C 99 Technical
77235         Corrigendum 1.
77236
77237 2006-06-23  Bruno Haible  <bruno@clisp.org>
77238
77239         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77240
77241 2006-06-23  Bruno Haible  <bruno@clisp.org>
77242
77243         * lib/stdint_.h: Treat IRIX like OpenBSD.
77244
77245 2006-06-23  Bruno Haible  <bruno@clisp.org>
77246
77247         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77248         ISO C 99 Technical Corrigendum 1.
77249
77250 2006-06-22  Simon Josefsson  <jas@extundo.com>
77251
77252         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77253         MinGW.
77254
77255 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77256
77257         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77258         needed.  Some compiler complained about some of them.  Problem reported
77259         by Larry Jones in
77260         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77261
77262 2006-06-21  Simon Josefsson  <jas@extundo.com>
77263
77264         * tests/test-getaddrinfo.c: New file.
77265
77266         * modules/getaddrinfo-tests: New file.
77267
77268         * MODULES.html.sh: Add inet_pton.
77269
77270         * modules/inet_pton: New file.
77271
77272 2006-06-21  Simon Josefsson  <jas@extundo.com>
77273
77274         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77275         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77276         of using the (limited) gnulib implementation on Windows XP.
77277
77278         * m4/inet_pton.m4: New file.
77279
77280 2006-06-21  Simon Josefsson  <jas@extundo.com>
77281
77282         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77283         variable.
77284
77285         * lib/socket_.h: Don't define WINVER.
77286
77287         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77288         slightly modified to work in gnulib.
77289
77290 2006-06-21  Simon Josefsson  <jas@extundo.com>
77291
77292         * doc/gnulib.texi (Windows sockets): Add.
77293
77294 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77295
77296         * lib/read-file.c (fread_file): Start with buffer allocation of
77297         0 bytes rather than 1 byte; this simplifies the code.
77298         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77299         code to free buffer and save/restore errno.
77300         (internal_read_file): Remove unused local.
77301
77302 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77303
77304         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77305         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77306         Problem reported by Denis Excoffier in
77307         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77308
77309 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77310
77311         * modules/sys_socket, modules/socklen: Include sys/types since
77312         FreeBSD 4.x's sys/socket.h needs it.
77313
77314 2006-06-19  Simon Josefsson  <jas@extundo.com>
77315
77316         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77317
77318 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77319
77320         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77321
77322 2006-06-19  Bruno Haible  <bruno@clisp.org>
77323
77324         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77325         and FULL_PATH_INTTYPES_H in angle brackets.
77326         Reported by Mark D. Baushke <mdb@gnu.org>.
77327
77328 2006-06-17  Eric Blake  <ebb9@byu.net>
77329
77330         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77331         errno.
77332
77333 2006-06-17  Bruno Haible  <bruno@clisp.org>
77334
77335         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77336         <sys/inttypes.h>.
77337
77338 2006-06-17  Bruno Haible  <bruno@clisp.org>
77339
77340         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77341         whether errno is declared. Assume <errno.h> declares errno.
77342
77343 2006-06-17  Bruno Haible  <bruno@clisp.org>
77344
77345         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77346
77347 2006-06-17  Bruno Haible  <bruno@clisp.org>
77348
77349         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77350         problem on Solaris 2.5.1.
77351
77352 2006-06-16  Eric Blake  <ebb9@byu.net>
77353
77354         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77355         * lib/unicodeio.c [!defined errno]: Likewise.
77356         * lib/strtol.c [!defined errno]: Likewise.
77357         * lib/strtod.c [!defined errno]: Likewise.
77358
77359 2006-06-15  Eric Blake  <ebb9@byu.net>
77360
77361         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77362
77363 2006-06-15  Eric Blake  <ebb9@byu.net>
77364
77365         * config/srclist.txt (ssize_t.m4): Lose sync.
77366
77367 2006-06-15  Bruno Haible  <bruno@clisp.org>
77368
77369         * modules/stdint (Files): Include m4/full-header-path.m4,
77370         m4/size_max.m4, m4/wchar_t.m4.
77371         (Makefile.am): Many more substitutions.
77372         * modules/stdint-tests: New file.
77373         * tests/test-stdint.c: New file.
77374
77375 2006-06-15  Bruno Haible  <bruno@clisp.org>
77376
77377         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77378         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77379         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77380         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77381         gl_CHECK_TYPE_SAME): New macros.
77382
77383 2006-06-15  Bruno Haible  <bruno@clisp.org>
77384
77385         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77386
77387 2006-06-15  Bruno Haible  <bruno@clisp.org>
77388
77389         * lib/stdint_.h: Rewritten to be fully auto-configured.
77390         Fixes bug on HP-UX/IA64.
77391
77392 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77393
77394         * lib/getdate.y (__attribute__): Don't define if already defined.
77395         Problem reported by Larry Jones.
77396         * lib/utimens.c (__attribute__): Likewise.
77397
77398 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77399
77400         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77401         reported by Andreas Schwab.
77402
77403 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77404             Bruno Haible  <bruno@clisp.org>
77405
77406         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77407         check for the declaration of strnlen and a run test that exposes the
77408         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77409         rpl_strndup.
77410
77411 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77412             Bruno Haible  <bruno@clisp.org>
77413
77414         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77415
77416 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77417
77418         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77419         compile test, for Tru64 4.0D.
77420
77421 2006-05-28  Karl Berry  <karl@gnu.org>
77422
77423         * config/srclist.txt (printf-args.c): lose sync.
77424
77425 2006-05-26  Martin Lambers  <marlam@marlam.de>
77426
77427         * lib/getpass.c: Updates the test for the native W32 API, and adds
77428         missing includes, thus fixing compilation warnings.
77429
77430 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77431
77432         * lib/exclude.c (exclude_fnmatch): New function.
77433         (excluded_file_name): Call exclude_fnmatch.
77434         * lib/exclude.h (excluded_file_name): New prototype
77435
77436 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77437
77438         * lib/tempname.c (small_open, large_open): New macros.
77439         (__open, __open64) [!_LIBC]: Remove.
77440         (__gen_tempname): Use small_open and large_open instead of __open
77441         and __open64.  This fixes a portability bug on HP-UX 11.11i
77442         reported by Simon Wing-Tang in
77443         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77444
77445 2006-05-24  Bruno Haible  <bruno@clisp.org>
77446
77447         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77448         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77449         Reported by Thorsten Maerz <torte@netztorte.de> via
77450         Aaron Stone <aaron@serendipity.cx>.
77451
77452 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77453
77454         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77455         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77456         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77457         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77458         not really conditional on the cache.
77459         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77460
77461 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77462
77463         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77464         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77465         (my_usleep): Don't mishandle maximum value.
77466
77467 2006-05-19  Jim Meyering  <jim@meyering.net>
77468
77469         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77470
77471 2006-05-17  Bruno Haible  <bruno@clisp.org>
77472
77473         Cygwin portability.
77474         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77475
77476 2006-05-17  Bruno Haible  <bruno@clisp.org>
77477
77478         * lib/stdint_.h: Fix recognition of Cygwin.
77479
77480 2006-05-15  Bruno Haible  <bruno@clisp.org>
77481
77482         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77483         on libtool patch by Ralf Wildenhues.
77484
77485 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77486
77487         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77488         test for C99 conformance; (bool) 0.5 is an integer constant
77489         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77490         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77491
77492 2006-05-11  Simon Josefsson  <jas@extundo.com>
77493
77494         * m4/xvasprintf.m4: Fix obvious typo.
77495
77496 2006-05-11  Jim Meyering  <jim@meyering.net>
77497
77498         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77499         James Lemley.
77500
77501 2006-05-10  Simon Josefsson  <jas@extundo.com>
77502
77503         * lib/md4.c: Typo fix, update copyright years.
77504         (K1, K2): Don't use L because it turn computations into 64-bit on
77505         64-bit platforms.
77506
77507 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77508
77509         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77510         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77511         unwanted sign propagation, e.g., on hosts with 64-bit int.
77512         There still are some problems with reeelly weird theoretical hosts
77513         (e.g., 33-bit int) but it's not worth worrying about now.
77514         * lib/sha1.c (rol): Likewise.
77515         (K1, K2, K3, K4): Remove unnecessary L suffix.
77516
77517 2006-05-10  Bruno Haible  <bruno@clisp.org>
77518
77519         * lib/des.c: Cast to avoid warnings.
77520
77521 2006-05-09  Bruno Haible  <bruno@clisp.org>
77522
77523         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77524         (Depends-on): Depend also on xsize, stdarg.
77525         (configure.ac): Add gl_XVASPRINTF.
77526
77527 2006-05-09  Bruno Haible  <bruno@clisp.org>
77528
77529         * m4/xvasprintf.m4: New file.
77530
77531 2006-05-09  Bruno Haible  <bruno@clisp.org>
77532
77533         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77534         (EOVERFLOW): Define fallback value.
77535         (xstrcat): New function.
77536         (xvasprintf): Recognize the special case of a string concatenation.
77537
77538 2006-05-08  Eric Blake  <ebb9@byu.net>
77539
77540         * gnulib-tool (func_version): Base copyright year on CVS date.
77541         (func_emit_copyright_notice): New function.
77542         (func_emit_lib_Makefile_am): Use it.
77543         (func_emit_tests_Makefile_am): Likewise.
77544         (func_import): Likewise.
77545
77546 2006-05-08  Bruno Haible  <bruno@clisp.org>
77547
77548         * modules/stdarg: New file.
77549         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77550
77551 2006-05-08  Bruno Haible  <bruno@clisp.org>
77552
77553         * m4/stdarg.m4: New file, from GNU gettext.
77554
77555 2006-05-08  Bruno Haible  <bruno@clisp.org>
77556
77557         * config/srclist.txt (build-aux/config.rpath): different from latest
77558         release.
77559
77560 2006-05-08  Bruno Haible  <bruno@clisp.org>
77561
77562         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77563
77564 2006-05-05  Jim Meyering  <jim@meyering.net>
77565
77566         * m4/warning.m4: New file, derived from bison's file by the same name.
77567
77568 2006-05-03  Bruno Haible  <bruno@clisp.org>
77569
77570         * lib/stdint_.h: Shorter URL.
77571         * lib/inttypes.h: Likewise.
77572
77573 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77574
77575         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77576
77577 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77578
77579         * lib/verify.h: Document the internals better.  Most of this change
77580         was written by Bruno Haible.
77581
77582 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77583
77584         * doc/verify.texi: New file, partly based on a proposal by
77585         Bruno Haible.
77586
77587 2006-05-02  Bruno Haible  <bruno@clisp.org>
77588
77589         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77590         test from here...
77591         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77592
77593 2006-04-29  Bruno Haible  <bruno@clisp.org>
77594
77595         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77596         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77597
77598 2006-04-29  Bruno Haible  <bruno@clisp.org>
77599
77600         * gnulib-tool: Make --update option actually work.
77601
77602 2006-04-29  Bruno Haible  <bruno@clisp.org>
77603
77604         * doc/gcd.texi: New file.
77605         * doc/gnulib.texi: Include it.
77606
77607 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77608
77609         * lib/getdate.y (get_date): When adding relative date, start with the
77610         initial time, not with the result of the first mktime call.
77611
77612 2006-04-25  Bruno Haible  <bruno@clisp.org>
77613
77614         * gnulib-tool (func_import): Output the include directives in three
77615         blocks, sorted separately.
77616         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77617
77618 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77619
77620         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77621         to define main with arguments, for C++.  Reported by Eric Blake.
77622         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77623         Prefer 'int main ()' to 'int main (void)', for C++.
77624         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77625         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77626         for 'main', for C99 and C++.
77627
77628 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77629
77630         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77631         Don't assume that exit status -1 is valid.
77632         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77633         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77634         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77635         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77636         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77637         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77638         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77639         functions can be used without declaring them, or that you can
77640         exit with status -1.
77641         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77642
77643 2006-04-24  Karl Berry  <karl@gnu.org>
77644
77645         * config/srclist.txt (longdouble.m4): sync lost.
77646
77647 2006-04-24  Eric Blake  <ebb9@byu.net>
77648
77649         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77650
77651 2006-04-24  Bruno Haible  <bruno@clisp.org>
77652
77653         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77654         poll() implementation in AIX.
77655         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77656
77657 2006-04-24  Bruno Haible  <bruno@clisp.org>
77658
77659         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77660         assigned exactly once.
77661
77662 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77663             Bruno Haible  <bruno@clisp.org>
77664
77665         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77666         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77667         for AM_CPPFLAGS.
77668
77669 2006-04-23  Bruno Haible  <bruno@clisp.org>
77670
77671         * modules/copy-file: Depend on unistd.
77672         * modules/execute: Likewise.
77673         * modules/fatal-signal: Likewise.
77674         * modules/findprog: Likewise.
77675         * modules/mkdtemp : Likewise.
77676         * modules/pipe: Likewise.
77677         * modules/wait-process: Likewise.
77678
77679 2006-04-23  Bruno Haible  <bruno@clisp.org>
77680
77681         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77682         condition was already detected.
77683         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77684
77685 2006-04-23  Bruno Haible  <bruno@clisp.org>
77686
77687         * lib/copy-file.c: Include <unistd.h> unconditionally.
77688         * lib/execute.c: Likewise.
77689         * lib/fatal-signal.c: Likewise.
77690         * lib/findprog.c: Likewise.
77691         * lib/mkdtemp.c: Likewise.
77692         * lib/pipe.h: Likewise.
77693         * lib/pipe.c: Likewise.
77694         * lib/wait-process.h: Likewise.
77695
77696 2006-04-23  Bruno Haible  <bruno@clisp.org>
77697
77698         * gnulib-tool (func_usage): Fix --import description. Document
77699         --update.
77700         (func_import): Create temporary file in a temporary directory, if
77701         --dry-run is specified. Silence errors from 'grep' when there are no
77702         m4 files in $m4dir.
77703         (func_create_testdir): Silence errors from 'grep' when there are no
77704         m4 files in $m4dir.
77705         Reported by Karl Berry <karl@freefriends.org>.
77706
77707 2006-04-20  Bruno Haible  <bruno@clisp.org>
77708
77709         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77710         one argument, so that the code will be portable to Autoconf 2.60.
77711         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77712         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77713         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77714
77715 2006-04-19  Derek Price  <derek@ximbiot.com>
77716             Eric Blake  <ebb9@byu.net>
77717
77718         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77719         rather than "/full/path.h".  Update comment to match.  Shorten &
77720         generalize m4_translit call via AS_TR_CPP.
77721
77722 2006-04-19  Derek Price  <derek@ximbiot.com>
77723             Eric Blake  <ebb9@byu.net>
77724
77725         * lib/inttypes.h: Correct grammar in comment.
77726
77727 2006-04-18  Derek Price  <derek@ximbiot.com>
77728             Paul Eggert  <eggert@cs.ucla.edu>
77729
77730         * modules/inttypes: New file.
77731         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77732
77733 2006-04-18  Derek Price  <derek@ximbiot.com>
77734             Paul Eggert  <eggert@cs.ucla.edu>
77735
77736         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77737         New files.
77738
77739 2006-04-18  Derek Price  <derek@ximbiot.com>
77740             Paul Eggert  <eggert@cs.ucla.edu>
77741
77742         * lib/inttypes.h: New file.
77743         * lib/strtoimax.c: Assume <inttypes.h>.
77744
77745 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77746
77747         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77748         isn't mounted.  Problem reported by Kir Kolyshkin.
77749
77750 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77751
77752         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77753         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77754         Derek R. Price.
77755         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77756         implementation.
77757
77758 2006-04-12  Eric Blake  <ebb9@byu.net>
77759
77760         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77761         is now done automatically by the corresponding Autoconf macro.
77762
77763 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77764
77765         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77766         time_r.h.
77767
77768 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77769
77770         Merge regex changes from libc, removing some of our
77771         POSIX-conformance changes that were rejected and redoing them in a
77772         less-intrusive way.
77773
77774         * lib/regcomp.c (re_compile_internal, init_dfa):
77775         Length arg is now size_t, not Idx.  All uses changed.
77776         (peek_token): Forward decl now says internal_function.
77777         (__re_error_msgid, __re_error_msgid_idx):
77778         Now static rather than extern with attribute_hidden.
77779         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77780         For some reason libc prefers K&R style defns for external functions.
77781         (regerror) [!defined _LIBC]: Likewise.
77782         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77783         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77784         (build_range_exp, build_collating_symbol):
77785         Use K&R-style defn.
77786         (re_compile_fastmap): Use '\0' to memset, not 0.
77787         (utf8_sb_map): Make the calculations more obvious.
77788         (init_dfa, parse_bracket_exp, build_charclass_op):
77789         Call calloc and cast result, as glibc does.
77790         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77791         (build_range_exp, build_collating_symbol):
77792         Now internal functions.
77793
77794         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77795
77796         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77797         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77798         Don't depend on VMS; depend on __VMS instead, for POSIX
77799         namespace cleanness.
77800         (regoff_t): Define to ssize_t, not long int.
77801
77802         Remove the REG_ macros named below.  Instead, make the old names
77803         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77804         __USE_GNU_REGEX.
77805         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77806         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77807         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77808         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77809         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77810         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77811         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77812         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77813         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77814         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77815         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77816         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77817         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77818         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77819         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77820         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77821         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77822         (REG_NREGS):
77823         Remove.  All uses replaced by the old RE_* names.
77824         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77825         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77826         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77827         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77828         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77829         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77830         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77831         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77832         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77833         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77834         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77835         Don't bother having these macros be independent of each others'
77836         values, since they no longer exist in the POSIX name space.
77837
77838         Rename the following member names back to their old names,
77839         unless !__USE_GNU_REGEX.  All uses changed back.
77840         (buffer): Renamed from re_buffer.
77841         (allocated): Renamed from re_allocated.
77842         (used): Renamed from re_used.
77843         (syntax): Renamed from re_syntax.
77844         (fastmap): Renamed from re_fastmap.
77845         (translate): Renamed from re_translate.
77846         (can_be_null): Renamed from re_can_be_null.
77847         (regs_allocated): Renamed from re_regs_allocated.
77848         (fastmap_accurate): Renamed from re_fastmap_accurate.
77849         (no_sub): Renamed from re_no_sub.
77850         (not_bol): Renamed from re_not_bol.
77851         (not_eol): Renamed from re_not_eol.
77852         (newline_anchor): Renamed from re_newline_anchor.
77853         (num_regs): Renamed from rm_num_regs.
77854         (start): Renamed from rm_start.
77855         (end): Renamed from rm_end.
77856
77857         (free_state): Move up a bit.
77858
77859         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77860         #define to be empty.
77861         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77862         when that is what is intended.
77863         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77864         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77865         (MAX): New macro.
77866         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77867         All uses changed back to re_malloc, etc.  It's now the caller's
77868         responsibility to check for overflow; all callers changed.
77869         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77870         (re_x2nrealloc): Remove.
77871         (free_state): Remove decl.
77872
77873         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77874         (re_set_registers, re_exec):
77875         Use K&R-style defn.
77876
77877         2006-01-31  Roland McGrath  <roland@redhat.com>
77878
77879         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77880         Reported by Mike Frysinger <vapier@gentoo.org>.
77881
77882         2006-01-15  Andreas Jaeger  <aj@suse.de>
77883
77884         [BZ #1950]
77885         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77886         build_wcs_upper_buffer change.
77887         (build_wcs_upper_buffer): Change return type.
77888
77889         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77890
77891         * lib/regex_internal.h: Include <stdint.h> if available.
77892
77893         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77894
77895         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77896
77897         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77898
77899         * lib/regcomp.c: Adjust for changed secondary hash function.
77900
77901         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77902
77903         * lib/regex.h: Pretty printing.
77904         Clean up namespace a bit.
77905
77906         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77907
77908         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77909         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77910
77911         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77912                     Ulrich Drepper  <drepper@redhat.com>
77913
77914         [BZ #1302]
77915         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77916         changed.
77917         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77918
77919         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77920
77921         [BZ #281]
77922         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77923         * lib/regcomp.c: Remove unnecessary uses of
77924         unsigned RE_TRANSLATE_TYPE.
77925         * lib/regex_internal.h: Likewise.
77926         * lib/regex_internal.c: Likewise.
77927         * lib/regexec.c: Likewise.
77928         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77929
77930         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77931
77932         * lib/regexec.c (find_recover_state): Remove unnecessary
77933         initialization.
77934         (transit_state_bkref): Make DFA a const pointer.
77935         (get_subexp): Likewise.
77936         (check_arrival): Likewise.
77937         (update_cur_sifted_state): Likewise.
77938         (re_search_internal): Likewise.
77939         (prune_impossible_nodes): Likewise.
77940         (acquire_init_state_context): Likewise.
77941         (proceed_next_node): Likewise.
77942         (set_regs): Likewise.
77943         (free_fail_stack_return): Likewise.
77944         (check_arrival_expand_ecl): Mark DFA parameter as const.
77945         (check_arrival_expand_ecl_sub): Likewise.
77946         (check_subexp_limits): Likewise.
77947         (sub_epsilon_src_nodes):  Likewise.
77948         (add_epsilon_src_nodes):  Likewise.
77949         (merge_state_array): Likewise.
77950         (update_regs): Likewise.
77951         (build_trtable): Likewise.
77952         (sift_states_backward): Mark MCTX parameter as const.
77953         (build_sifted_states): Likewise.
77954         (update_cur_sifted_state): Likewise.
77955         (sift_states_mkref): Likewise.
77956         (check_arrival_expand_ecl): Mark eclosure as const.
77957         (check_dst_limits_calc_pos_1): Likewise.
77958         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77959         pointer.
77960
77961         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77962
77963         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77964         (transit_state_sb): Likewise.
77965         (transit_state_mb): Likewise.
77966         (sift_states_iter_mb): Likewise.
77967         (check_arrival_add_next_nodes): Likewise.
77968         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77969         [_LIBC] (re_search_2_stub): Use mempcpy.
77970
77971         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77972         mbrtowc for very simple UTF-8 case.
77973
77974         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77975         a pointer-to-const.
77976         (re_acquire_state_context): Likewise.
77977         * lib/regex_internal.h: Adjust prototypes.
77978
77979         * lib/regex.c: Prevent using C++ compilers.
77980
77981         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77982         (re_acquire_state_context): Likewise.
77983
77984 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77985
77986         * modules/regex (Depends-on): Add ssize_t.
77987
77988 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77989
77990         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77991         translation table.
77992
77993 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77994
77995         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77996
77997 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77998             Bruno Haible  <bruno@clisp.org>
77999
78000         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78001         <sys/types.h> and <inttypes.h>.
78002
78003 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78004
78005         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78006         `__error_t_defined', so argp.h will not typedef the former.
78007
78008 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78009
78010         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78011         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78012         glibc names.  Even if glibc is changed to conform to POSIX, the
78013         traditional names will be available anyway, since regex depends on
78014         the extensions module.  Also, fix a longstanding typo in the
78015         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78016         reported by Emanuele Giaquinta.  Also, change sense of cached
78017         variable, so that the message makes sense.
78018
78019 2006-03-24  Simon Josefsson  <jas@extundo.com>
78020
78021         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78022         including some doc fixes.
78023         (base64_encode_alloc): Fix +1 bug on allocation failures.
78024
78025 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78026
78027         * lib/base64.c (base64_encode): Do not read past end of array with
78028         unsanitized input on systems with CHAR_BIT > 8.
78029
78030 2006-03-24  Eric Blake  <ebb9@byu.net>
78031
78032         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78033
78034 2006-03-22  Karl Berry  <karl@gnu.org>
78035
78036         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78037         * config/srclistvars.sh (COREUTILS): new var.
78038
78039 2006-03-17  Jim Meyering  <jim@meyering.net>
78040
78041         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78042         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78043
78044 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78045
78046         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78047         no longer needs it.  Instead, check that regoff_t is as least
78048         as wide as ptrdiff_t.
78049
78050         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78051         so that our regex.h stays compatible with the installed regex.
78052         This is helpful for installers who configure --without-included-regex.
78053         Problem reported by Emanuele Giaquinta.
78054
78055 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78056
78057         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78058         Typedef to long int, not to off_, as POSIX will likely change
78059         in that direction.
78060
78061 2006-03-15  Eric Blake  <ebb9@byu.net>
78062
78063         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78064
78065 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78066
78067         * lib/argp-help.c (validate_uparams): Fix typo
78068         * lib/argp-parse.c (argp_default_options): Consistently begin help
78069         messages with a lowercase letter.
78070
78071 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78072
78073         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78074         overrun buffers and shouldn't be used (much as gets shouldn't be
78075         used).
78076         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78077
78078 2006-03-08  Simon Josefsson  <jas@extundo.com>
78079
78080         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78081         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78082
78083 2006-03-08  Simon Josefsson  <jas@extundo.com>
78084
78085         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78086         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78087
78088 2006-03-08  Simon Josefsson  <jas@extundo.com>
78089
78090         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78091         signal that configure disabled the device.
78092
78093 2006-03-08  Simon Josefsson  <jas@extundo.com>
78094
78095         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78096         languages.
78097
78098 2006-03-07  Simon Josefsson  <jas@extundo.com>
78099
78100         * modules/getopt (Depends-on): Add unistd.
78101
78102         * modules/unistd: New file.
78103
78104 2006-03-07  Simon Josefsson  <jas@extundo.com>
78105
78106         * modules/gc-random: New file.
78107
78108 2006-03-07  Simon Josefsson  <jas@extundo.com>
78109
78110         * m4/unistd_h.m4: New file.
78111
78112 2006-03-07  Simon Josefsson  <jas@extundo.com>
78113
78114         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78115         test to be side-effect free by storing the result in the cache
78116         variable gl_cv_lib_readline, and moving the assignment of
78117         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78118         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78119
78120 2006-03-07  Simon Josefsson  <jas@extundo.com>
78121
78122         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78123         error on missing devices (the functions will return an error).
78124
78125         * m4/gc.m4: Move random stuff to gc-random.m4
78126
78127 2006-03-07  Simon Josefsson  <jas@extundo.com>
78128
78129         * lib/unistd_.h: New file.
78130
78131 2006-03-07  Simon Josefsson  <jas@extundo.com>
78132
78133         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78134
78135 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78136
78137         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78138         Problem reported by Juan Manuel Guerrero.
78139
78140 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78141
78142         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78143         the unistd module.
78144         * lib/getlogin_r.c: Likewise.
78145         * lib/getlogin_r.h: Likewise.
78146         * lib/glob.c: Likewise.
78147         * lib/pagealign_alloc.c: Likewise.
78148         * lib/unistd_.h: Remove; no longer needed.
78149
78150 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78151
78152         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78153         Add unistd.
78154         * modules/c-stack (Depends-on): Add unistd.
78155         * modules/getlogin_r: Likewise.
78156         * modules/glob: Likewise.
78157         * modules/pagealign_alloc: Likewise.
78158         * modules/unistd (Files): Remove lib/unistd_.h.
78159         (EXTRA_DIST): Remove.
78160         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78161         need unistd_.h.
78162         (MOSTLYCLEANFILES): Remove unistd.h-t.
78163
78164 2006-03-03  Simon Josefsson  <jas@extundo.com>
78165
78166         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78167
78168 2006-03-03  Simon Josefsson  <jas@extundo.com>
78169
78170         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78171         libidn and bison.
78172
78173 2006-03-03  Simon Josefsson  <jas@extundo.com>
78174
78175         * build-aux/maint.mk: Add indent target.
78176
78177 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78178
78179         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78180         our replacement poll.h in any case, to avoid a differing
78181         declaration from a system header.  Seen on AIX.
78182
78183 2006-03-01  Simon Josefsson  <jas@extundo.com>
78184
78185         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78186         <kasal@ucw.cz>.
78187
78188 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78189
78190         * modules/gettime (Depends-on): Add extensions module.
78191         * modules/nanosleep (Depends-on): Likewise.
78192         * modules/settime (Depends-on): Likewise.
78193
78194 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78195
78196         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78197         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78198         pedantically.
78199         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78200         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78201
78202         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78203         not "==".  Reported by Ralf Wildenhues.
78204
78205 2006-03-01  Karl Berry  <karl@gnu.org>
78206
78207         * doc/Copyright/request-*: new files, synced from gnuorg.
78208
78209 2006-03-01  Karl Berry  <karl@gnu.org>
78210
78211         * config/srclist.txt (Copyright/*): new entries.
78212
78213 2006-02-28  Simon Josefsson  <jas@extundo.com>
78214
78215         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78216
78217 2006-02-27  Simon Josefsson  <jas@extundo.com>
78218
78219         * lib/base64.h: Indent #define's.  From Jim Meyering
78220         <jim@meyering.net>.
78221
78222 2006-02-27  Jim Meyering  <jim@meyering.net>
78223
78224         Revert the change of 2006-02-24, so these files can continue
78225         to be sync'd from gettext.
78226         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78227         of `config.h'.
78228
78229 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78230
78231         * modules/intprops: New file.
78232         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78233         Add intprops.
78234         * modules/getloadavg (Files): Remove lib/intprops.h.
78235         (Depends-on): Add intprops.
78236         * modules/human: Likewise.
78237         * modules/inttostr: Likewise.
78238         * modules/openat: Likewise.
78239         * modules/sig2str: Likewise.
78240         * modules/userspec: Likewise.
78241         * modules/utimecmp: Likewise.
78242         * modules/xnanosleep: Likewise.
78243         * modules/xstrtol: Likewise.
78244
78245 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78246
78247         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78248         * modules/lock-tests (TESTS): Use $(EXEEXT).
78249         * modules/tls-tests: Likewise.
78250         * modules/argp-tests: Likewise.
78251         (check_PROGRAMS): New var, replacing...
78252         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78253
78254 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78255
78256         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78257         `config.h'.
78258
78259 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78260
78261         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78262
78263 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78264
78265         Sync from coreutils.
78266         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78267         gl_CHDIR_SAFER.
78268
78269 2006-02-22  Jim Meyering  <jim@meyering.net>
78270
78271         Sync from coreutils.
78272         * m4/chdir-safer.m4: New file.
78273
78274 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78275
78276         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78277         AT_FDCWD exceeds INT_MAX.
78278         * lib/openat.h (AT_FDCWD): Likewise.
78279
78280 2006-02-17  Eric Blake  <address@hidden>
78281
78282         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78283
78284 2006-02-16  Simon Josefsson  <jas@extundo.com>
78285
78286         * modules/getaddrinfo (Depends-on): Add sys_socket.
78287
78288 2006-02-15  Simon Josefsson  <jas@extundo.com>
78289
78290         * build-aux/maint.mk: Add dsyntax-check rule.
78291
78292 2006-02-15  Eric Blake  <ebb9@byu.net>
78293
78294         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78295         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78296         'present but cannot compile' warnings on cygwin.
78297         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78298         use ws2tcpip.h if sys/socket.h works.
78299         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78300         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78301
78302 2006-02-14  Simon Josefsson  <jas@extundo.com>
78303
78304         * modules/maintainer-makefile (Files): Rename.
78305
78306         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78307         and (the local) Makefile.cfg to maint-cfg.mk.
78308
78309         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78310         to the latter.
78311
78312         * modules/maintainer-makefile: New module.
78313
78314         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78315         severaly stripped to make it possible to build it up from scratch
78316         with reliable tests.
78317
78318         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78319         fixes to permit overriding the default actions when configure and
78320         makefile are not available.
78321
78322 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78323
78324         Sync from coreutils.
78325         * modules/lstat (Depends-on): Don't depend on xalloc.
78326         (License): Change from GPL to LGPL, since this is now simply a
78327         replacement for a libc function.
78328
78329 2006-02-14  Jim Meyering  <jim@meyering.net>
78330
78331         Sync from coreutils.
78332
78333         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78334         failure on deficient systems, and simplify gnulib lgpl dependencies.
78335         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78336         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78337
78338         * lib/xalloc-die.c: Remove unused definition of N_.
78339
78340 2006-02-14  Jim Meyering  <jim@meyering.net>
78341
78342         Sync from coreutils.
78343         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78344         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78345         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78346         double-quote uses of that variable, to accommodate the rare case in
78347         which getmntent is available in none of the libraries checked.  This
78348         happens at least on FreeBSD 5.0.
78349
78350 2006-02-13  Simon Josefsson  <jas@extundo.com>
78351
78352         * gnulib-tool (Usage): Fix --import, from
78353         karl@freefriends.org (Karl Berry).
78354
78355 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78356
78357         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78358
78359 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78360
78361         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78362         "autoupdate" on 2005-12-12.
78363
78364 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78365
78366         * modules/closeout (Depends-on): Remove atexit.
78367
78368 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78369
78370         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78371         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78372
78373 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78374
78375         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78376         __EXTENSIONS__ if this causes compilation to fail.  Problem
78377         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78378         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78379
78380 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78381
78382         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78383         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78384         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78385         All uses changed.
78386
78387 2006-01-26  Simon Josefsson  <jas@extundo.com>
78388
78389         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78390         prototype is visible on mingw32.
78391
78392         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78393         for mingw32.
78394
78395         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78396         mingw32).
78397
78398 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78399
78400         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78401         attempt to open for write; this always fails, at least on POSIX
78402         hosts.  This reinstates the 2006-01-09 change, which was
78403         inadvertently removed.
78404
78405 2006-01-26  Bruno Haible  <bruno@clisp.org>
78406
78407         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78408         Reported by Paul Eggert.
78409
78410 2006-01-26  Bruno Haible  <bruno@clisp.org>
78411             Paul Eggert  <eggert@cs.ucla.edu>
78412
78413         * lib/stdbool_.h (_Bool)
78414         [(! (defined __cplusplus || defined __BEOS__)
78415           && !defined __GNUC__
78416           && !(defined __HP_cc || defined __xlc__
78417                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78418                || defined __sgi))]:
78419         #define to signed char in these cases too; this simplifies
78420         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78421         etc., separately) and makes it more conservative.
78422
78423 2006-01-25  Simon Josefsson  <jas@extundo.com>
78424
78425         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78426         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78427         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78428
78429 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78430
78431         * lib/argp-namefrob.h: Bugfix. Remove stray #
78432
78433 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78434
78435         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78436         so that we test the test.
78437         Check for yet another HP-UX cc bug involving *bool |= bool.
78438
78439 2006-01-25  Karl Berry  <karl@gnu.org>
78440
78441         * config/srclist.txt (vasnprintf.c): sync lost.
78442
78443 2006-01-25  Jim Meyering  <jim@meyering.net>
78444
78445         Sync from the stable (b5) branch of coreutils:
78446
78447         * lib/fts.c (fts_children): Don't let close() clobber errno from
78448         failed fchdir().
78449
78450         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78451         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78452         a dangling symlink.  That can also happen at least for ELOOP.
78453         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78454         FYI, this bug predates the inclusion of fts.c in coreutils.
78455
78456         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78457         in their own block, so pre-c99 compilers don't object.
78458
78459         Avoid the double-free (first in fts_read, second in fts_close) that
78460         would occur when an `active' directory is made inaccessible (e.g.,
78461         via chmod a-x) during a traversal.
78462         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78463         before returning.  Reproduce this failure by
78464         mkdir -p a/b; cd a; chmod a-x . b
78465         Reported by Stavros Passas.
78466
78467 2006-01-25  Jim Meyering  <jim@meyering.net>
78468
78469         * lib/fileblocks.c: Remove more useless parentheses.
78470         * lib/readutmp.h: Likewise.
78471
78472 2006-01-25  Bruno Haible  <bruno@clisp.org>
78473
78474         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78475         warnings.
78476         Reported by Paul Eggert.
78477
78478 2006-01-25  Bruno Haible  <bruno@clisp.org>
78479
78480         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78481         rid of a trap command. For Solaris sh.
78482         Reported by Mark D. Baushke <mdb@gnu.org>.
78483
78484 2006-01-24  Simon Josefsson  <jas@extundo.com>
78485
78486         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78487         Bruno.
78488
78489 2006-01-24  Karl Berry  <karl@gnu.org>
78490
78491         * config/srclist.txt (argp-namefrob.h): sync lost.
78492
78493 2006-01-24  Jim Meyering  <jim@meyering.net>
78494
78495         * modules/openat (Files): Add lib/intprops.h.
78496         From Mark D. Baushke.
78497
78498 2006-01-24  Jim Meyering  <jim@meyering.net>
78499
78500         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78501         Reported by Mark D. Baushke.
78502
78503 2006-01-24  Jim Meyering  <jim@meyering.net>
78504
78505         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78506
78507 2006-01-24  Bruno Haible  <bruno@clisp.org>
78508
78509         * modules/strnlen (Maintainer): Change from glibc to all.
78510
78511 2006-01-24  Bruno Haible  <bruno@clisp.org>
78512
78513         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78514         Patch by Paul Eggert.
78515
78516 2006-01-24  Bruno Haible  <bruno@clisp.org>
78517
78518         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78519         already has it.
78520         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78521         2005-11-26.
78522
78523         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78524         'signed char' to avoid problems with the built-in _Bool type.
78525         Reported by Paul Eggert on 2005-11-26.
78526
78527 2006-01-24  Bruno Haible  <bruno@clisp.org>
78528
78529         * gnulib-tool (func_import): Avoid constructing complicated sed
78530         expressions inside backquote.
78531         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78532
78533 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78534
78535         These changes imported from libc.
78536         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78537         test and two separate function calls.
78538         * lib/strndup.c (__strndup): Add libc_hidden_def.
78539
78540 2006-01-23  Simon Josefsson  <jas@extundo.com>
78541
78542         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78543         Remove the test_*_SOURCES variable: automake infers it by default.
78544         * modules/tls-tests: Likewise.
78545
78546 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78547
78548         Work around porting bugs reported by Dieter in
78549         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78550         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78551         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78552         Include "getopt.h" first, to check interface.
78553         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78554         !HAVE_DECL_GETENV.
78555         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78556         (__strndup): Revert to K&R-style function dfns, the glibc style.
78557         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78558         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78559         Include strnlen.h first, to get prototype properly.
78560         (strnlen): Renamed from __strnlen.
78561         Remove weak alias.
78562
78563 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78564
78565         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78566
78567 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78568
78569         * config/srclist.txt: Adjust to reflect glibc reorganization.
78570         This affects only comments.
78571
78572 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78573
78574          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78575          Reported by Bruce Korb <bkorb@gnu.org>.
78576
78577 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78578
78579         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78580         to pacify gcc -Wswitch-default.
78581
78582 2006-01-22  Bruno Haible  <bruno@clisp.org>
78583
78584         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78585         temporary buffer for sprintf, take into account the precision also
78586         for 'd', 'i', 'u', 'o', 'x', 'X'.
78587
78588 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78589
78590         * modules/argp-tests: New module
78591         * tests/test-argp.c: New file
78592         * tests/test-argp-2.sh: New file
78593
78594 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78595
78596         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78597         (__argp_base_name): Removed
78598         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78599         typo.
78600         (__argp_base_name): Provide macro definition or extern declaration
78601         depending on the configuration
78602
78603 2006-01-20  Simon Josefsson  <jas@extundo.com>
78604
78605         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78606
78607 2006-01-20  Simon Josefsson  <jas@extundo.com>
78608
78609         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78610
78611 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78612
78613         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78614         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78615         Suggested by Bruno Haible.
78616
78617 2006-01-20  Karl Berry  <karl@gnu.org>
78618
78619         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78620         until changes propagate, I guess.
78621
78622 2006-01-19  Simon Josefsson  <jas@extundo.com>
78623
78624         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78625
78626 2006-01-19  Simon Josefsson  <jas@extundo.com>
78627
78628         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78629
78630 2006-01-19  Simon Josefsson  <jas@extundo.com>
78631
78632         * gnulib-tool: Set check_PROGRAMS.
78633
78634         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78635         modules/des-tests, modules/gc-arcfour-tests,
78636         modules/gc-arctwo-tests, modules/gc-des-tests,
78637         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78638         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78639         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78640         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78641         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78642         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78643         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78644         test_*_SOURCES.
78645
78646 2006-01-18  Simon Josefsson  <jas@extundo.com>
78647
78648         * modules/socklen (Depends-on): Depend on sys_socket.
78649
78650 2006-01-18  Simon Josefsson  <jas@extundo.com>
78651
78652         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78653         modules/des-tests, modules/gc-arcfour-tests,
78654         modules/gc-arctwo-tests, modules/gc-des-tests,
78655         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78656         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78657         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78658         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78659         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78660         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78661         $(EXEEXT) to automake TESTS variable, for mingw32.
78662
78663 2006-01-17  Simon Josefsson  <jas@extundo.com>
78664
78665         * modules/socklen (Include): Need sys/socket.h.
78666
78667 2006-01-17  Bruno Haible  <bruno@clisp.org>
78668
78669         * modules/ssize_t (Include): Add <sys/types.h>.
78670
78671 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78672
78673         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78674         it's not portable and it doesn't work with cross-compiles.
78675         Problem reported by Bruno Haible.  Fix missing-$ typo in
78676         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78677         -zignore from being used with Sun's C compiler.
78678
78679 2006-01-12  Simon Josefsson  <jas@extundo.com>
78680
78681         * lib/base64.c: Fix warning, reported by Bruno Haible
78682         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78683
78684 2006-01-12  Bruno Haible  <bruno@clisp.org>
78685
78686         * modules/ldd: New file.
78687         * build-aux/ldd.sh.in: New file.
78688         * MODULES.html.sh (Support for building libraries and executables): Add
78689         ldd.
78690
78691 2006-01-12  Bruno Haible  <bruno@clisp.org>
78692
78693         * m4/ldd.m4: New file.
78694
78695 2006-01-12  Bruno Haible  <bruno@clisp.org>
78696
78697         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78698         endless loop while replacing $auxdir with build-aux.
78699
78700 2006-01-11  Simon Josefsson  <jas@extundo.com>
78701
78702         * lib/stdint_.h (SIZE_MAX): Add missing (.
78703
78704 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78705
78706         Sync from coreutils.
78707         * lib/md5.c: Fix commentary typos.
78708         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78709         * lib/md5.h (__attribute__): Remove; unused.
78710         * lib/sha1.c: Fix commentary to match md5 better.
78711         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78712         so that we don't need to worry about alignment.  All uses changed.
78713         This merges the 2005-10-28 md5 change into sha1.
78714
78715 2006-01-11  Jim Meyering  <jim@meyering.net>
78716
78717         Sync from coreutils.
78718         * lib/md5.c (OP): Fix spacing.
78719
78720 2006-01-11  Bruno Haible  <bruno@clisp.org>
78721
78722         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78723         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78724         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78725
78726 2006-01-11  Bruno Haible  <bruno@clisp.org>
78727
78728         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78729         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78730         the "early" section as well.
78731
78732 2006-01-11  Bruno Haible  <bruno@clisp.org>
78733
78734         Avoid "ar: no archive members specified" error on MacOS X.
78735         * gnulib-tool (func_modules_add_dummy): New function.
78736         (func_import, func_create_testdir): Invoke it.
78737
78738 2006-01-11  Bruno Haible  <bruno@clisp.org>
78739
78740         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78741         with $auxdir in AC_CONFIG_FILES statements.
78742
78743 2006-01-11  Bruno Haible  <bruno@clisp.org>
78744
78745         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78746         Initialize also noinst_HEADERS to empty.
78747
78748 2006-01-11  Bruno Haible  <bruno@clisp.org>
78749
78750         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78751         variables.
78752         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78753         autoreconf.
78754
78755 2006-01-11  Bruno Haible  <bruno@clisp.org>
78756
78757         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78758         overridable by the user.
78759         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78760
78761 2006-01-10  Simon Josefsson  <jas@extundo.com>
78762
78763         * modules/sys_socket: New file.
78764
78765 2006-01-10  Simon Josefsson  <jas@extundo.com>
78766
78767         * m4/sys_socket_h.m4: New file.
78768
78769 2006-01-10  Simon Josefsson  <jas@extundo.com>
78770
78771         * lib/socket_.h: New file.
78772
78773 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78774
78775         * modules/readutmp (Maintainer): Add myself.
78776
78777 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78778
78779         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78780         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78781         People who are still concerned with buggy memcmp implementations
78782         can invoke gl_FUNC_MEMCMP themselves.
78783
78784 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78785
78786         * lib/regex_internal.h (BITSET_WORD_BITS):
78787         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78788         preprocessor mishandles large unsigned values as if they were signed.
78789         Problem reported by Claudio Fontana in
78790         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78791
78792 2006-01-10  Jim Meyering  <jim@meyering.net>
78793
78794         Avoid the double-free (first in fts_read, second in fts_close) that
78795         would occur when an `active' directory is made inaccessible (e.g.,
78796         via chmod a-x) during a traversal.
78797         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78798         before returning.  Reproduce this failure by
78799         mkdir -p a/b; cd a; chmod a-x . b
78800         Reported by Stavros Passas.
78801
78802         Sync from coreutils.
78803         * lib/sha1.c: Tweak grammar in a comment.
78804
78805 2006-01-10  Jim Meyering  <jim@meyering.net>
78806
78807         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78808         Patch by Joerg Sonnenberger.
78809
78810 2006-01-10  Bruno Haible  <bruno@clisp.org>
78811
78812         * modules/readutmp: Depend on module free.
78813         * modules/strtok_r: Depend on module restrict.
78814
78815 2006-01-10  Bruno Haible  <bruno@clisp.org>
78816
78817         * modules/gettext (configure.ac): Add an invocation of
78818         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78819
78820 2006-01-10  Bruno Haible  <bruno@clisp.org>
78821
78822         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78823         Reported by Werner Lemberg <wl@gnu.org>.
78824
78825 2006-01-10  Bruno Haible  <bruno@clisp.org>
78826
78827         * lib/localcharset.c: Update from GNU gettext.
78828
78829 2006-01-10  Bruno Haible  <bruno@clisp.org>
78830
78831         * lib/argp.h (__const): Remove macro. Use const instead.
78832         * lib/argp-fmtstream.h (__const): Likewise.
78833         * lib/glob_.h (__const): Remove macro.
78834         * lib/glob-libc.h: Use const instead of __const.
78835
78836 2006-01-10  Bruno Haible  <bruno@clisp.org>
78837
78838         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78839         variable.
78840         Needed to avoid an automake error regarding the 'gettext' module.
78841
78842 2006-01-09  Simon Josefsson  <jas@extundo.com>
78843
78844         * modules/inet_ntop (Depends-on): Add restrict.
78845
78846 2006-01-09  Simon Josefsson  <jas@extundo.com>
78847
78848         * modules/gc-rijndael-tests (License): Put under LGPL.
78849
78850         * modules/gc-des-tests (License): Likewise.
78851
78852         * modules/gc-arcfour-tests (License): Likewise.
78853
78854         * modules/gc-arctwo-tests (License): Likewise.
78855
78856         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78857
78858         * modules/gc-hmac-sha1-tests (Files): Likewise.
78859
78860         * modules/gc-hmac-md5-tests (License): Likewise.
78861
78862         * modules/gc-sha1-tests (License): Likewise.
78863
78864         * modules/gc-md5-tests (License): Likewise.
78865
78866         * modules/gc-md4-tests (License): Likewise.
78867
78868         * modules/gc-md2-tests (License): Likewise.
78869
78870         * modules/gc-tests (License): Likewise.
78871
78872         * modules/des-tests (License): Likewise.
78873
78874         * modules/md4-tests (License): Likewise.
78875
78876         * modules/md2-tests (License): Likewise.
78877
78878 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78879
78880         Sync from coreutils:
78881
78882         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78883         * modules/lib-ignore: New file.
78884         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78885         chdir-safer.m4, lchmod.m4.
78886         * modules/openat: Add mkdirat.c, openat-priv.h.
78887
78888 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78889
78890         Sync from coreutils.
78891         * m4/lib-ignore.m4: New file.
78892         * m4/lchmod.m4: New file.
78893
78894 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78895
78896         Sync from coreutils.
78897         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78898         for write access: POSIX says that must fail.
78899         * lib/fts.c (diropen): Likewise.
78900         * lib/save-cwd.c (save_cwd): Likewise.
78901         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78902         well, for minor improvements on hosts that lack O_DIRECTORY.
78903         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78904         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78905         Fall back on chown if open failed with EACCES.
78906
78907         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78908         Report an error at compile-time if only a 1-second nominal clock
78909         resolution is found.
78910
78911         * lib/lchmod.h: New file.
78912         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78913         (make_dir_parents): Use lchown rather than chown, and
78914         lchmod rather than chmod.
78915
78916         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78917         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78918         "proc" reported by n0dalus.
78919
78920         * lib/mountlist.c: Include <limits.h>.
78921         (dev_from_mount_options)
78922         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78923         New function.  It no longer assumes "dev=" has the System V meaning
78924         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78925         (read_file_system_list)
78926         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78927         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78928         dev= in that case.
78929
78930         * lib/posixtm.h (PDS_PRE_2000): New macro.
78931         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78932         allow_century.  All usages changed.  Reject dates outside the range
78933         1969-1999 if PDS_PRE_2000 is used.
78934
78935 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78936
78937         Sync from coreutils.
78938         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78939         (Time of day items): Mention the possibility of leap seconds.
78940         Problem reported by Dr. David Alan Gilbert.
78941
78942 2006-01-09  Jim Meyering  <jim@meyering.net>
78943
78944         Sync from coreutils.
78945
78946         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78947
78948         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78949
78950         * lib/modechange.c (mode_compile): Reject an invalid mode string
78951         that starts with an octal digit.  From Andreas Gruenbacher.
78952
78953         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78954         and dup to open_safer and dup_safer, respectively.
78955         (openat_permissive): Fix typo in comment.
78956
78957         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78958         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78959         (_): Remove; no longer needed.
78960         (openat): Renamed from rpl_openat; no need for rpl_openat
78961         since openat.h renames openat for us.
78962         Replace most of the body with a call to openat_permissive,
78963         to avoid duplicate code.
78964         Port to (probably hypothetical) environments were mode_t is
78965         wider than int.
78966         (openat_permissive): Require mode arg, so that we can check
78967         types better.  Put it just after flags.  Change cwd failure
78968         indicator from pointer-to-bool to pointer-to-errno-value.
78969         All callers changed.
78970         Invoke openat_save_fail and/or openat_restore_fail if
78971         cwd_errno is null, so that openat can call us.
78972         (openat_permissive, fdopendir, fstatat, unlinkat):
78973         Simplify errno handling to avoid some duplicate code,
78974         as it's OK to set errno on success.
78975         * lib/openat.h: Revamp code so that function macros depend on
78976         __OPENAT_PREFIX only, not also on AT_FDCWD.
78977         (openat_ro): Remove.  Caller changed to use openat_permissive.
78978         (openat_permissive): Now a macro, if not a function.
78979         (openat_restore_fail, openat_save_fail): Now always functions,
78980         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78981
78982         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78983         and openat.c.
78984         * lib/mkdirat.c: Include openat-priv.h.
78985         Remove definitions of macros defined therein.
78986         * lib/openat.c: Likewise.
78987
78988         * lib/mkdirat.c (mkdirat): New file and function.
78989         * lib/openat.h (mkdirat): Declare.
78990
78991         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78992
78993         * lib/openat.h (openat_permissive): Declare.
78994         (openat_ro): Define.
78995
78996         * lib/openat.c (EXPECTED_ERRNO): New macro.
78997         (openat_permissive): New function -- used in remove.c rewrite.
78998         (all functions): Set errno just before returning, only if there
78999         was an actual failure.
79000         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79001
79002         Emulate openat-family functions using Linux's procfs, if possible.
79003         Idea and some code based on Ulrich Drepper's glibc changes.
79004
79005         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79006         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79007         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79008         before falling back on save_cwd and restore_cwd.
79009         (fdopendir, fstatat, unlinkat): Likewise.
79010
79011         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79012         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79013
79014         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79015         as second argument to va_arg.  Otherwise, some versions of gcc
79016         warn that `if this code is reached, the program will abort'.
79017
79018 2006-01-09  Jim Meyering  <jim@meyering.net>
79019
79020         Sync from coreutils.
79021         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79022         Require openat-priv.h.
79023
79024 2006-01-09  Bruno Haible  <bruno@clisp.org>
79025
79026         * modules/strnlen (Include): Use strnlen.h.
79027
79028 2006-01-09  Bruno Haible  <bruno@clisp.org>
79029
79030         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79031
79032 2006-01-09  Bruno Haible  <bruno@clisp.org>
79033
79034         * lib/sysexit_.h (EX_OK): New macro.
79035         Suggested by Martin Lambers <marlam@marlam.de>.
79036
79037 2006-01-09  Bruno Haible  <bruno@clisp.org>
79038
79039         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79040         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79041
79042 2006-01-09  Bruno Haible  <bruno@clisp.org>
79043
79044         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79045         numbers.
79046
79047 2006-01-09  Bruno Haible  <bruno@clisp.org>
79048
79049         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79050         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79051         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79052         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79053
79054 2006-01-09  Bruno Haible  <bruno@clisp.org>
79055
79056         * build-aux/javacomp.sh.in: New file, moved from lib/.
79057         * modules/javacomp-script (Files): Update.
79058         (configure.ac): Add AC_CONFIG_FILES invocation.
79059         (EXTRA_DIST): Remove variable.
79060
79061         * build-aux/javaexec.sh.in: New file, moved from lib/.
79062         * modules/javaexec (Files): Update.
79063         (configure.ac): Add AC_CONFIG_FILES invocation.
79064         (EXTRA_DIST): Remove javaexec.sh.in.
79065
79066         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79067         * modules/csharpcomp-script (Files): Update.
79068         (configure.ac): Add AC_CONFIG_FILES invocation.
79069         (EXTRA_DIST): Remove variable.
79070
79071         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79072         * modules/csharpexec (Files): Update.
79073         (configure.ac): Add AC_CONFIG_FILES invocation.
79074         (EXTRA_DIST): Remove csharpexec.sh.in.
79075
79076 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79077
79078         Sync from coreutils.
79079
79080         Add POSIX ACL support
79081         * lib/acl.h (copy_acl, set_acl): Add declarations.
79082         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79083         systems other than Linux.
79084         (chmod_or_fchmod): New function: use fchmod when possible,
79085         and chmod otherwise.
79086         (file_has_acl): Add a POSIX ACL implementation, with a
79087         Linux-specific subcase.
79088         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79089         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79090         acls are unsupported.
79091         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79092         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79093         are unsupported.
79094
79095 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79096
79097         Sync from coreutils.
79098         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79099
79100 2006-01-07  Bruno Haible  <bruno@clisp.org>
79101
79102         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79103         gl_EARLY.
79104
79105 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79106
79107         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79108         Problem reported for Mingw by Mark Junker.
79109
79110 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79111
79112         * README: Gnulib normally doesn't generate a tarball.
79113
79114 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79115
79116         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79117         long int, not int, for nanosecond counts, so that people who are
79118         used to POSIX struct timespec won't be surprised.  Reported by Jim
79119         Meyering.
79120
79121 2005-12-28  Bruno Haible  <bruno@clisp.org>
79122
79123         * build-aux/config.rpath: Update from GNU gettext.
79124
79125 2005-12-16  Jim Meyering  <jim@meyering.net>
79126
79127         * modules/fprintftime: New module.
79128         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79129
79130 2005-12-16  Jim Meyering  <jim@meyering.net>
79131
79132         * m4/fprintftime.m4: New file.
79133
79134 2005-12-16  Jim Meyering  <jim@meyering.net>
79135
79136         * lib/fprintftime.c, lib/fprintftime.h: New files.
79137
79138 2005-12-15  Simon Josefsson  <jas@extundo.com>
79139
79140         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79141         new m4/socklen.m4.
79142
79143 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79144
79145         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79146         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79147
79148 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79149
79150         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79151         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79152         struct uparams is valid. Fall back to the default values if it is
79153         not.
79154
79155 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79156
79157         * modules/argp (Files): Add argp-pin.c
79158         (Depends-on): dirname
79159         (lib_SOURCES): Add argp-pin.c
79160
79161 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79162
79163         * m4/argp.m4:  Check if program_invocation_name and
79164         program_invocation_short_name are declared and define appropriate
79165         macros if they are not.
79166
79167 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79168
79169         * lib/argp-help.c (__argp_base_name): New function
79170         (__argp_short_program_name): Rewrite using __argp_base_name
79171         * lib/argp-namefrob.h: Define program_invocation_name and
79172         program_invocation_short_name if requested
79173         (__argp_base_name): Add prototype
79174         * lib/argp-parse.c (argp_def): Use gettext wrappers
79175         (argp_default_parser): Use __argp_base_name
79176         * lib/argp-pin.c: New file. Defines program_invocation_name and
79177         program_invocation_short_name on systems that lack them.
79178
79179 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79180
79181         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79182         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79183         porting problem reported by Georg Schwarz in
79184         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79185
79186 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79187
79188         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79189         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79190         porting problem reported by Georg Schwarz in
79191         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79192
79193 2005-12-05  Bruno Haible  <bruno@clisp.org>
79194
79195         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79196         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79197         Reported by Mark Junker <mjscod@gmx.de>.
79198
79199 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79200
79201         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79202         Use implementation from Albert Chin, with some
79203         comments/corrections by Stepan Kasal and myself.
79204
79205 2005-12-02  Bruno Haible  <bruno@clisp.org>
79206
79207         * gnulib-tool (func_import): Accept GPLed build tool modules when
79208         --lgpl is given.
79209         * modules/csharpcomp-script: New file.
79210         * modules/csharpcomp: Depend on it.
79211         * modules/javacomp-script: New file.
79212         * modules/javacomp: Depend on it.
79213         Suggested by Simon Josefsson.
79214
79215 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79216
79217         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79218         statement, to work around an HP-UX 10.20 compiler bug reported by
79219         Peter O'Gorman.
79220
79221 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79222
79223         * modules/savedir (Depends-on): Add openat.
79224
79225 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79226
79227         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79228         (uintmax_t) [defined uintmax_t]: Do not declare.
79229         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79230         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79231         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79232         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79233         sake of portability to weird hosts that C allows (though we don't
79234         know of any practical examples).
79235
79236         * lib/savedir.h (fdsavedir): New decl.
79237         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79238         contains most of the former guts of savedir.
79239         (savedir): Use savedirstream.
79240         Include "openat.h".
79241
79242 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79243
79244         * modules/obstack (Files): Add m4/ulonglong.m4.
79245         Problem reported by Davide Angelocola.
79246
79247 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79248
79249         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79250         coreutils no longer futzes with rounding modes.
79251
79252 2005-11-14  Jim Meyering  <jim@meyering.net>
79253
79254         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79255         replacement of mkstemp.
79256
79257 2005-11-10  Simon Josefsson  <jas@extundo.com>
79258
79259         * lib/readline.c: Remove EOL.
79260
79261 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79262
79263         * modules/gethrxtime (Depends-on): Add gettime.
79264
79265 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79266
79267         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79268         or gettimeofday; no longer needed.
79269
79270 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79271
79272         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79273         time business.
79274         (gethrxtime) [! (HAVE_NANOUPTIME
79275         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79276         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79277         our own approximation.
79278
79279 2005-11-08  Eric Blake  <ebb9@byu.net>
79280
79281         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79282
79283 2005-11-08  Eric Blake  <ebb9@byu.net>
79284
79285         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79286
79287 2005-11-04  Bruno Haible  <bruno@clisp.org>
79288
79289         * gnulib-tool: Implement --update mode.
79290
79291 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79292
79293         Fix porting problem reported by Theodoros V. Kalamatianos.
79294         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79295         Don't assume that futimes failing means we must fail.
79296
79297 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79298
79299         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79300         variables to suggest the intended function of the PATH_MAX check.
79301
79302 2005-10-30  Kean Johnston  <jkj@sco.com>
79303
79304         Trivial changes to support SCO systems.
79305         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79306         as PATH_MAX.
79307         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79308         where __ptr is null when no I/O is pending.
79309
79310 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79311
79312         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79313         leave errno alone.  Problem reported by Dmitry V. Levin.
79314
79315 2005-10-28  Simon Josefsson  <jas@extundo.com>
79316
79317         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79318         Test more.
79319
79320         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79321
79322         * modules/md2, modules/md2-tests: New files.
79323
79324 2005-10-28  Simon Josefsson  <jas@extundo.com>
79325
79326         * m4/inet_ntop.m4: More tests.
79327
79328         * m4/gc-md2.m4, md2.m4: New file.
79329
79330 2005-10-28  Simon Josefsson  <jas@extundo.com>
79331
79332         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79333         "restrict" keywords, as per POSIX.  Protect the function
79334         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79335         Don't use K&R prototypes.  Check the sprintf return values.
79336         Re-define EAFNOSUPPORT if not present.  Indent.
79337
79338         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79339         suggested by Bruno Haible <bruno@clisp.org>.
79340
79341         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79342
79343         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79344
79345         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79346         libgcrypt).
79347
79348         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79349
79350         * lib/md2.h, lib/md2.c: New files.
79351
79352 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79353
79354         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79355         errno alone.  Problem reported by Frederic Jolliton.
79356
79357 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79358
79359         * modules/verify (License): Change from GPL to LGPL.  This is a
79360         tiny module and there are apparently near-equivalents that are
79361         under the BSD license.
79362
79363 2005-10-24  Simon Josefsson  <jas@extundo.com>
79364
79365         * modules/sha1: Relicense to LGPL.
79366
79367 2005-10-24  Simon Josefsson  <jas@extundo.com>
79368
79369         * lib/md4.h: Shrink buffer size, now that we changed the type.
79370
79371 2005-10-23  Simon Josefsson  <jas@extundo.com>
79372
79373         * gnulib-tool (func_import): Fix --tests-base.
79374
79375 2005-10-22  Simon Josefsson  <jas@extundo.com>
79376
79377         * modules/arcfour (Depends-on): Need stdint.
79378
79379 2005-10-22  Simon Josefsson  <jas@extundo.com>
79380
79381         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79382         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79383
79384 2005-10-22  Simon Josefsson  <jas@extundo.com>
79385
79386         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79387         suggested by Bruno Haible <bruno@clisp.org>.
79388
79389 2005-10-22  Simon Josefsson  <jas@extundo.com>
79390
79391         * lib/crc.h: Include stddef.h, for size_t.
79392
79393 2005-10-22  Simon Josefsson  <jas@extundo.com>
79394
79395         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79396         arcfour_context struct (simplify test vector testing in GNU
79397         Shishi).
79398
79399 2005-10-21  Simon Josefsson  <jas@extundo.com>
79400
79401         * modules/des, modules/des-tests: New files.
79402
79403         * modules/gc-des, modules/gc-des-tests: New files.
79404
79405         * tests/test-des.c, tests/test-gc-des.c: New file.
79406
79407 2005-10-21  Simon Josefsson  <jas@extundo.com>
79408
79409         * modules/arctwo, modules/arctwo-tests: New files.
79410
79411         * tests/test-arctwo.c: New file.
79412
79413         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79414
79415         * tests/test-gc-arctwo.c: New file.
79416
79417 2005-10-21  Simon Josefsson  <jas@extundo.com>
79418
79419         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79420         Bruno Haible <bruno@clisp.org>.
79421
79422         * m4/gc-des.m4: New file.
79423
79424 2005-10-21  Simon Josefsson  <jas@extundo.com>
79425
79426         * m4/arctwo.m4: New file.
79427
79428         * m4/gc-arctwo.m4: New file.
79429
79430 2005-10-21  Simon Josefsson  <jas@extundo.com>
79431
79432         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79433         block.
79434
79435 2005-10-21  Simon Josefsson  <jas@extundo.com>
79436
79437         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79438         <bruno@clisp.org>.
79439
79440         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79441
79442         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79443         Bruno Haible <bruno@clisp.org>.
79444
79445         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79446         <bruno@clisp.org>.
79447
79448 2005-10-21  Simon Josefsson  <jas@extundo.com>
79449
79450         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79451
79452 2005-10-21  Simon Josefsson  <jas@extundo.com>
79453
79454         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79455
79456 2005-10-21  Simon Josefsson  <jas@extundo.com>
79457
79458         * lib/des.h, lib/des.c: New files.
79459
79460         * lib/gc-gnulib.c: Support DES.c
79461
79462 2005-10-21  Simon Josefsson  <jas@extundo.com>
79463
79464         * lib/arctwo.h, lib/arctwo.c: New files.
79465
79466         * lib/gc-gnulib.c: Support ARCTWO.
79467
79468 2005-10-21  Simon Josefsson  <jas@extundo.com>
79469
79470         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79471         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79472
79473 2005-10-21  Simon Josefsson  <jas@extundo.com>
79474
79475         * gnulib-tool (func_import, func_create_testdir): Define automake
79476         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79477         Makefile.am snippet),
79478         suggested by Bruno Haible <bruno@clisp.org>.
79479
79480         * modules/gc (Makefile.am): Use it.
79481
79482 2005-10-21  Bruno Haible  <bruno@clisp.org>
79483
79484         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79485         patch.
79486
79487 2005-10-19  Simon Josefsson  <jas@extundo.com>
79488
79489         * tests/test-gc-rijndael.c: New file.
79490
79491         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79492
79493 2005-10-19  Simon Josefsson  <jas@extundo.com>
79494
79495         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79496         interface too.
79497
79498 2005-10-19  Simon Josefsson  <jas@extundo.com>
79499
79500         * tests/test-gc-arcfour.c: New file.
79501
79502         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79503
79504 2005-10-19  Simon Josefsson  <jas@extundo.com>
79505
79506         * modules/gc-md4, modules/gc-md4-tests: New file.
79507
79508         * tests/test-gc-md4.c: New file.
79509
79510 2005-10-19  Simon Josefsson  <jas@extundo.com>
79511
79512         * m4/gc-md4.m4: New file.
79513
79514 2005-10-19  Simon Josefsson  <jas@extundo.com>
79515
79516         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79517         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79518         <kasal@ucw.cz>.
79519
79520 2005-10-19  Simon Josefsson  <jas@extundo.com>
79521
79522         * m4/gc-arcfour.m4: New file.
79523
79524         * m4/gc-rijndael.m4: New file.
79525
79526 2005-10-19  Simon Josefsson  <jas@extundo.com>
79527
79528         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79529
79530 2005-10-19  Simon Josefsson  <jas@extundo.com>
79531
79532         * lib/gc-gnulib.c: Support ARCFOUR.
79533
79534 2005-10-19  Simon Josefsson  <jas@extundo.com>
79535
79536         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79537         support.
79538
79539         * lib/gc.h: Add ECB enum type.
79540
79541         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79542
79543 2005-10-18  Simon Josefsson  <jas@extundo.com>
79544
79545         * tests/test-md5.c: New file.
79546
79547         * modules/md5-tests: New file.
79548
79549 2005-10-18  Simon Josefsson  <jas@extundo.com>
79550
79551         * tests/test-md4.c: New file.
79552
79553         * modules/md4, modules/md4-tests: New files.
79554
79555 2005-10-18  Simon Josefsson  <jas@extundo.com>
79556
79557         * m4/md4.m4: New file.
79558
79559 2005-10-18  Simon Josefsson  <jas@extundo.com>
79560
79561         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79562
79563 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79564
79565         * gnulib-tool (func_create_testdir): Omit the second check whether
79566         BUILT_SOURCES in nonempty.
79567
79568 2005-10-17  Simon Josefsson  <jas@extundo.com>
79569
79570         * tests/test-rijndael.c: New file.
79571
79572 2005-10-17  Simon Josefsson  <jas@extundo.com>
79573
79574         * modules/sha1: Depend on stdint instead of md5.
79575
79576         * modules/md5: Depend on stdint, remove uint32_t.
79577
79578 2005-10-17  Simon Josefsson  <jas@extundo.com>
79579
79580         * modules/gc-sha1-tests: New file.
79581
79582         * tests/test-gc-sha1.c: New file.
79583
79584 2005-10-17  Simon Josefsson  <jas@extundo.com>
79585
79586         * m4/md5.m4: Remove call to uint32_t.m4.
79587
79588 2005-10-17  Simon Josefsson  <jas@extundo.com>
79589
79590         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79591
79592         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79593         md5.h.
79594
79595         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79596
79597         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79598
79599 2005-10-17  Simon Josefsson  <jas@extundo.com>
79600
79601         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79602
79603 2005-10-17  Simon Josefsson  <jas@extundo.com>
79604
79605         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79606
79607 2005-10-17  Simon Josefsson  <jas@extundo.com>
79608
79609         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79610
79611         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79612
79613 2005-10-17  Bruno Haible  <bruno@clisp.org>
79614
79615         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79616         that it can also be used in a test.
79617
79618 2005-10-16  Bruno Haible  <bruno@clisp.org>
79619
79620         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79621         TESTS_ENVIRONMENT, so that individual tests can augment it.
79622
79623         * gnulib-tool (func_create_testdir): Use an intermediate target for
79624         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79625         macros, like $(ALLOCA_H), which cannot be passed through the command
79626         line.
79627
79628 2005-10-15  Simon Josefsson  <jas@extundo.com>
79629
79630         * modules/rijndael-tests: New file.
79631
79632         * modules/rijndael: New file.
79633
79634 2005-10-15  Simon Josefsson  <jas@extundo.com>
79635
79636         * m4/rijndael.m4: New file.
79637
79638 2005-10-15  Simon Josefsson  <jas@extundo.com>
79639
79640         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79641
79642         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79643
79644 2005-10-14  Simon Josefsson  <jas@extundo.com>
79645
79646         * tests/test-arcfour.c: New file.
79647
79648         * modules/arcfour, modules/arcfour-tests: New files.
79649
79650 2005-10-14  Simon Josefsson  <jas@extundo.com>
79651
79652         * m4/arcfour.m4: New file.
79653
79654 2005-10-14  Simon Josefsson  <jas@extundo.com>
79655
79656         * lib/arcfour.h, lib/arcfour.c: New files.
79657
79658 2005-10-14  Roland McGrath  <roland@redhat.com>
79659
79660         Import from libc.  [BZ #1331]
79661         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79662         macro argument.
79663         Reported by Matej Vela <vela@debian.org>.
79664
79665 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79666
79667         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79668         include <wchar.h>; no longer needed.
79669
79670 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79671
79672         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79673
79674 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79675         and  Ulrich Drepper  <drepper@redhat.com>
79676
79677         Import from libc.
79678         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79679         instead of inline stream orientation test and two separate
79680         function calls.  Pay no attention to USE_IN_LIBIO.
79681
79682 2005-10-13  Simon Josefsson  <jas@extundo.com>
79683
79684         * modules/gc-hmac-md5-tests: New file.
79685
79686         * tests/test-gc-hmac-sha1.c: New file.
79687
79688         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79689
79690         * modules/gc-hmac-md5-tests: New file.
79691
79692         * tests/test-gc-md5.c: New file.
79693
79694         * modules/gc-md5-tests: New file.
79695
79696 2005-10-13  Simon Josefsson  <jas@extundo.com>
79697
79698         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79699         Move memory allocation outside of loop.
79700
79701 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79702
79703         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79704         intermediate directory is in a read-only file system.  Problem
79705         reported by Eric Blake.
79706
79707 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79708
79709         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79710
79711 2005-10-12  Simon Josefsson  <jas@extundo.com>
79712
79713         * tests/test-hmac-sha1.c: New file.
79714
79715         * modules/hmac-sha1-tests: New file.
79716
79717         * modules/hmac-sha1: New file.
79718
79719 2005-10-12  Simon Josefsson  <jas@extundo.com>
79720
79721         * modules/gc-sha1: New file.
79722
79723 2005-10-12  Simon Josefsson  <jas@extundo.com>
79724
79725         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79726
79727         * tests/test-gc-pbkdf2-sha1.c: New file.
79728
79729 2005-10-12  Simon Josefsson  <jas@extundo.com>
79730
79731         * modules/gc-md5, modules/gc-hmac-md5: New files.
79732
79733         * modules/gc (Files): Remove md5, memxor and hmac files.
79734
79735 2005-10-12  Simon Josefsson  <jas@extundo.com>
79736
79737         * m4/gc-pbkdf2-sha1.m4: New file.
79738
79739         * m4/gc-hmac-sha1.m4: New file.
79740
79741         * m4/gc-sha1: New file.
79742
79743         * m4/hmac-sha1.m4: New file.
79744
79745 2005-10-12  Simon Josefsson  <jas@extundo.com>
79746
79747         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79748
79749         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79750
79751 2005-10-12  Simon Josefsson  <jas@extundo.com>
79752
79753         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79754         suggested by Bruno Haible <bruno@clisp.org>.
79755
79756 2005-10-12  Simon Josefsson  <jas@extundo.com>
79757
79758         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79759
79760 2005-10-12  Simon Josefsson  <jas@extundo.com>
79761
79762         * lib/gc-pbkdf2-sha1.c: New file.
79763
79764         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79765
79766 2005-10-12  Simon Josefsson  <jas@extundo.com>
79767
79768         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79769
79770         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79771
79772 2005-10-12  Simon Josefsson  <jas@extundo.com>
79773
79774         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79775         GC_USE_HMAC_MD5, respectively.
79776
79777         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79778         (gc_md5): Fix typo.
79779
79780         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79781
79782         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79783
79784         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79785
79786 2005-10-12  Bruno Haible  <bruno@clisp.org>
79787
79788         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79789         Reported by Stepan Kasal <kasal@ucw.cz>.
79790
79791 2005-10-11  Simon Josefsson  <jas@extundo.com>
79792
79793         * tests/test-crc.c: New file.
79794
79795         * modules/crc, modules/crc-tests: New files.
79796
79797 2005-10-11  Simon Josefsson  <jas@extundo.com>
79798
79799         * m4/crc.m4: New file.
79800
79801 2005-10-11  Simon Josefsson  <jas@extundo.com>
79802
79803         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79804
79805         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79806
79807         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79808
79809 2005-10-11  Simon Josefsson  <jas@extundo.com>
79810
79811         * lib/crc.h, lib/crc.c: New files.
79812
79813         * lib/gc.h (gc_hash_buffer): Add doc.
79814
79815 2005-10-11  Bruno Haible  <bruno@clisp.org>
79816
79817         * modules/c-strcasestr: New file.
79818         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79819
79820 2005-10-11  Bruno Haible  <bruno@clisp.org>
79821
79822         * modules/c-strcase: New file.
79823         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79824
79825 2005-10-11  Bruno Haible  <bruno@clisp.org>
79826
79827         * lib/strcasecmp.c: Include limits.h.
79828         (strcasecmp): Avoid integer overflow on exotic platforms.
79829         * lib/strncasecmp.c: Include limits.h.
79830         (strncasecmp): Avoid integer overflow on exotic platforms.
79831         Reported by Paul Eggert.
79832
79833 2005-10-11  Bruno Haible  <bruno@clisp.org>
79834
79835         * lib/c-strcasestr.h: New file, from GNU gettext.
79836         * lib/c-strcasestr.c: New file, from GNU gettext.
79837
79838 2005-10-11  Bruno Haible  <bruno@clisp.org>
79839
79840         * lib/c-strcase.h: New file, from GNU gettext.
79841         * lib/c-strcasecmp.c: New file, from GNU gettext.
79842         * lib/c-strncasecmp.c: New file, from GNU gettext.
79843
79844 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79845
79846         * modules/mempcpy (License): GPL -> LGPL.
79847         * modules/strchrnul (License): Likewise.
79848         * modules/sysexits (License): Likewise.
79849
79850 2005-10-08  Simon Josefsson  <jas@extundo.com>
79851
79852         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79853
79854 2005-10-07  Simon Josefsson  <jas@extundo.com>
79855
79856         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79857
79858 2005-10-06  Simon Josefsson  <jas@extundo.com>
79859
79860         * tests/test-hmac-md5.c: New file.
79861
79862         * modules/hmac-md5-tests: New file.
79863
79864         * modules/hmac-md5: New file.
79865
79866 2005-10-06  Simon Josefsson  <jas@extundo.com>
79867
79868         * m4/hmac-md5.m4: New file.
79869
79870         * m4/memxor.m4: Require gl_C_RESTRICT.
79871
79872 2005-10-06  Simon Josefsson  <jas@extundo.com>
79873
79874         * lib/memxor.c (memxor): Avoid casts and warnings.
79875
79876 2005-10-06  Simon Josefsson  <jas@extundo.com>
79877
79878         * lib/hmac-md5.c: New file.
79879
79880         * lib/hmac.h: New file.
79881
79882 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79883
79884         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79885         promotes to int, not unsigned int, to catch the AIX 5.3
79886         compiler bug.
79887
79888 2005-10-05  Simon Josefsson  <jas@extundo.com>
79889
79890         * modules/memxor: New file.
79891
79892         * modules/iconv (Files): Move config.rpath to havelib, it is used
79893         there.
79894
79895         * modules/havelib (Files): Add config.rpath.
79896
79897 2005-10-05  Simon Josefsson  <jas@extundo.com>
79898
79899         * m4/memxor.m4: New file.
79900
79901 2005-10-05  Simon Josefsson  <jas@extundo.com>
79902
79903         * lib/memxor.c (memxor): Fix compiler error.
79904
79905         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79906         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79907
79908         * lib/memxor.h, lib/memxor.c: New files.
79909
79910         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79911         we assume all systems have it, suggested by Jim Meyering
79912         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79913         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79914         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79915         same reasons.
79916
79917 2005-10-05  Simon Josefsson  <jas@extundo.com>
79918
79919         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79920
79921 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79922
79923         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79924         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79925         needed, since the source code now assumes these .h files.
79926
79927 2005-10-05  Derek Price  <derek@ximbiot.com>
79928
79929         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79930
79931 2005-10-05  Bruno Haible  <bruno@clisp.org>
79932
79933         * modules/stdint (License): Change to LGPL.
79934
79935 2005-10-04  Simon Josefsson  <jas@extundo.com>
79936
79937         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79938         D. Baushke" <mdb@gnu.org>.
79939
79940 2005-10-04  Bruno Haible  <bruno@clisp.org>
79941
79942         * lib/verify.h (verify_true): Provide alternative definition for C++.
79943
79944 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79945
79946         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79947         (SSIZE_MAX): New macro, if not already defined.
79948         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79949         than 2 GiB.
79950
79951 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79952
79953         Sync from coreutils.
79954         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79955         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79956         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79957         ULLONG_MAX doesn't work with 2.7.2.1.
79958
79959 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79960
79961         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79962         From Ben Pfaff.
79963
79964         * modules/exclude (Depends-on): Depend on verify.
79965         * modules/strtoimax (Depends-on): Likewise.
79966         * modules/utimecmp (Depends-on): Likewise.
79967
79968 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79969
79970         * lib/exclude.c: Include verify.h.
79971         (verify): Remove.  All callers changed to use verify.h's version.
79972         * lib/strtoimax.c: Likewise.
79973         * lib/utimecmp.c: Likewis.e
79974
79975         Sync from coreutils.
79976         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79977         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79978         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79979         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79980         bother returning ENOSYS if settimeofday or stime fails; just let
79981         them return whatever errno they want to return.
79982         * lib/utimens.c: Include unistd.h, for dup2.
79983         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79984         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79985
79986 2005-10-02  Jim Meyering  <jim@meyering.net>
79987
79988         Sync from coreutils.
79989         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79990         from glibc-2.2.5 that fails for read-only files.
79991
79992 2005-10-02  Jim Meyering  <jim@meyering.net>
79993
79994         Sync from coreutils.
79995         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79996         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79997         `#if HAVE_CONFIG_H'.
79998         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79999         Remove AT_FDCWD test.
80000         Do not consume the fd unless successful.
80001         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80002         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80003         block, so that we don't even try to compile it if settimeofday is
80004         available.  This works around a compilation failure on OSF1 V5.1,
80005         due to stime requiring a `long int*' while tv_sec is `int'.
80006
80007 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80008
80009         Sync from coreutils.
80010         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80011         against `yes', rather than just testing for nonempty.
80012
80013 2005-10-01  Simon Josefsson  <jas@extundo.com>
80014
80015         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80016         and Darwin.
80017
80018         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80019         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80020         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80021         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80022         Check if struct addrinfo is declared.
80023
80024 2005-10-01  Simon Josefsson  <jas@extundo.com>
80025
80026         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80027         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80028         AI_* and EAI_* definitions.  Protect function declarations.
80029
80030 2005-10-01  Jim Meyering  <jim@meyering.net>
80031
80032         Sync from coreutils.
80033
80034         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80035         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80036         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80037         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80038         in the inet and nsl libraries.  Required on Solaris 5.7.
80039
80040 2005-10-01  Jim Meyering  <jim@meyering.net>
80041
80042         Sync from coreutils.
80043         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80044         in the inet and nsl libraries.  Required on Solaris 5.7.
80045
80046 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80047
80048         * lib/getdelim.c (getdelim): Remove unused variables.
80049
80050 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80051
80052         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80053         so that the code works even with ancient cpp.  Portability problem
80054         with GCC 2.7.2.1 reported by Thomas M.Ott.
80055
80056 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80057
80058         * modules/regex (Depends-on): Add strcase.
80059
80060         * modules/gethostname (Licence): Change from GPL to LGPL, since
80061         gethostname.c is a trivial implementation of a standard library
80062         function.
80063         * modules/poll (License): Change from GPL to LGPL, since it's
80064         derived from LGPL code.
80065
80066 2005-09-27  Jim Meyering  <jim@meyering.net>
80067
80068         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80069         HAVE_CONFIG_H.
80070
80071         * lib/intprops.h (signed_type_or_expr__): Define.
80072         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80073         for unsigned types.
80074
80075 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80076
80077         * lib/verify.h (verify_expr): Remove, replacing with:
80078         (verify_true): New macro that returns true instead of void.
80079         (verify_type__): Remove.
80080         (verify): Use verify_true rather than verify_type__.
80081
80082 2005-09-26  Bruno Haible  <bruno@clisp.org>
80083
80084         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80085         is necessary.
80086         (lib_SOURCES): Remove mbchar.c.
80087         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80088         (Files): Add m4/mbrtowc.m4.
80089         * modules/mbiter: Likewise.
80090         * modules/mbuiter: Likewise.
80091
80092 2005-09-26  Bruno Haible  <bruno@clisp.org>
80093
80094         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80095         compile mbchar.c if they are not both present.
80096         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80097         * m4/mbiter.m4 (gl_MBITER): Likewise.
80098         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80099         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80100         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80101
80102 2005-09-25  Jim Meyering  <jim@meyering.net>
80103
80104         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80105         also uses socklen_t.
80106
80107 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80108
80109         * lib/utimens.c (ENOSYS): Define if not already defined.
80110         (futimens): Support having a null PATH if the file descriptor
80111         is nonnegative.
80112
80113         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80114         Remove.
80115         (__attribute): Define to empty unless GCC 3.1 or later.
80116         This works around a core dump on OpenBSD 3.4, which has GCC
80117         2.95.3, which dumps core when given __attribute__(()).  It also
80118         simplifies other tests, since we really don't want to bother with
80119         worrying about which ancient version of GCC supported what.
80120         Original problem reported by Yoann Vandoorselaere, with part of
80121         the fix suggested by Derek Price.
80122
80123 2005-09-24  Jim Meyering  <jim@meyering.net>
80124
80125         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80126         so we can once again use a positive bitfield width of 1 -- now we
80127         don't have to explain why we were using a bitfield width of 2.
80128
80129 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80130
80131         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80132         and similarly for the other external symbols.  Problem reported
80133         by James Gallager.
80134
80135         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80136         bug reported by Jim Meyering.
80137
80138         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80139         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80140         not needed, since socklen is a prerequisite module.
80141
80142 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80143
80144         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80145         Problem reported by Eric Blake.
80146         (getaddrinfo): Initialize se so that it's not garbage.
80147         Redo internal storage allocation so that it doesn't make unportable
80148         assumptions about alignment.
80149         Fix a memory leak.
80150
80151         * lib/utimens.c (futimens): Use futimesat if available.
80152         Prefer it to futimes since it doesn't have the futimes bug.
80153
80154         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80155         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80156         Instead, declare a function that returns a pointer to an array,
80157         and use verify_type__ to declare the size of the array.
80158         Problem and germ of a solution reported by Bruno Haible.
80159         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80160         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80161
80162 2005-09-23  Jim Meyering  <jim@meyering.net>
80163
80164         Sync from coreutils.
80165         Correct build failure (socklen_t not defined) on at least
80166         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80167         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80168
80169 2005-09-23  Jim Meyering  <jim@meyering.net>
80170
80171         * modules/getaddrinfo (Depends-on): Add socklen.
80172
80173 2005-09-23  Bruno Haible  <bruno@clisp.org>
80174
80175         * tests/test-verify.c: New file.
80176
80177 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80178
80179         Sync from coreutils.
80180
80181         * modules/argmatch (Depends-on): Add verify.
80182         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80183         unistd-safer.
80184         * modules/save-cwd (Depends-on): Likewise.
80185
80186         * modules/openat (Files): Add lib/openat-die.c.
80187         (Depends-on): Remove error, exitfail.
80188         Add dirname.
80189
80190         * modules/verify: New file.
80191         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80192         with "verify" module.
80193
80194 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80195
80196         Sync from coreutils.
80197
80198         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80199         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80200         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80201         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80202         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80203         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80204         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80205         Don't bother checking for string.h, stdlib.h, unistd.h.
80206         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80207         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80208         module's job.
80209         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80210         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80211
80212         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80213         (gl_GETDATE): Use it.
80214
80215         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80216
80217 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80218
80219         Sync from coreutils.
80220
80221         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80222         stat-time.h.
80223         * lib/argmatch.h: Include verify.h
80224         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80225         (ARGMATCH_ASSERT): Remove; unused.
80226         * lib/canonicalize.c: Assume STDC_HEADERS.
80227         * lib/exclude.c: Include "strcase.h".
80228         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80229         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80230         and stdio-safer.h.
80231         (getusershell): Call fopen, not fopen_safer.
80232         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80233         Do not include unistd-safer.h.
80234         (save_cwd): Don't call fd_safer; no longer needed
80235         now that we include fcntl--.h.
80236
80237         * lib/getdate.y (relative_time): New type.
80238         (RELATIVE_TIME_0): New constant.
80239         (parser_control): Use relative_time instead of doing it ourselves.
80240         (%union): Add new relative_time rel member.
80241         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80242         Now typeless.
80243         (relunit, relunit_snumber): Now of type rel.
80244         (zone, rel, relunit, get_date): Adjust to above changes.
80245
80246         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80247         Do not include unistd-safer.h.
80248         (getloadavg): Don't call fd_safer; no longer needed
80249         now that we include fcntl--.h.
80250
80251         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80252         (make_dir_parents): Treat ENOSYS like EEXIST.
80253
80254         Improve quality of diagnostics on restore_cwd failure.
80255         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80256         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80257         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80258         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80259         each time through the loop.  Do not diagnose restore_cwd failure;
80260         that is the caller's job (and perhaps the caller does not care).
80261
80262         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80263         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80264         If the file already exists but is not a directory, don't bother
80265         to try to make its parents.
80266         Close potential file descriptor leak if we can't chdir("/") (!).
80267         Don't always return true if chdir($PWD) fails; return true only
80268         if the requested action was done successfully (except for the
80269         chdir($PWD)).
80270         Don't log final directory unless we actually made it.
80271         Refactor to avoid duplicate code to fix up permissions.
80272         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80273
80274         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80275         to make it a bit faster and (I hope) clearer.
80276         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80277         Fix bug in formats like %2N.
80278
80279         * lib/verify.h: New file.
80280
80281 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80282
80283         Sync from coreutils.
80284         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80285
80286 2005-09-22  Jim Meyering  <jim@meyering.net>
80287
80288         Sync from coreutils.
80289
80290         * m4/lstat.m4 (gl_FUNC_LSTAT):
80291         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80292         Remove obsolete comment.
80293         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80294         * m4/xstrtod.m4: Likewise.
80295
80296         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80297
80298 2005-09-22  Jim Meyering  <jim@meyering.net>
80299
80300         Sync from coreutils.
80301
80302         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80303
80304         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80305         the .tm_year member, since otherwise gcc-4.0 would now warn about
80306         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80307
80308         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80309         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80310
80311         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80312         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80313         when run in a time zone for which daylight savings time is in effect
80314         for the starting date.
80315
80316         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80317         stop us from restricting permissions of just-created absolute-named
80318         directories.
80319         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80320         to restore initial working directory.
80321         * lib/mkdir-p.c (make_dir_parents): New parameter:
80322         different_working_dir, to tell caller if/when we change the working
80323         directory and are unable to return to the initial one.
80324         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80325         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80326         `return false'.  This fixes a bug introduced on 2004-07-30.
80327
80328         * lib/openat.c (fdopendir): Be sure to close the supplied
80329         file descriptor before returning.  This makes our replacement
80330         implementation a little closer to Solaris's, where fdopendir
80331         ties the file descriptor to the returned DIR* pointer.
80332         * lib/openat.c (unlinkat): New function.
80333         * lib/openat.h (unlinkat): Add prototype.
80334         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80335         (openat_restore_fail): Rename from openat_restore_die.
80336         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80337
80338         Provide an alternative to exiting immediately upon save_cwd or
80339         restore_cwd failure.  Now, an application can arrange e.g.,
80340         to perform a longjump in that case.
80341         * lib/openat.c: Include dirname.h.
80342         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80343         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80344         and openat_restore_die rather than calling error directly.
80345         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80346
80347         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80348         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80349         define.
80350
80351         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80352         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80353                             int utc, int nanoseconds);
80354         Background:
80355         date should not have to allocate a megabyte of virtual memory to
80356         handle a format argument like +%1048575T.  When implemented with
80357         strftime, it must allocate such a buffer, use strftime to fill it
80358         in, print it, then free it.
80359         With fprintftime, it simply prints everything and exits.
80360         With no need for memory allocation, that's one fewer way to fail.
80361         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80362         optional field width, not before, so we accept %9:z, not %:9z.
80363         (my_strftime): Be sure to use L_('x') for literals.
80364
80365         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80366         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80367         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80368         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80369         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80370         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80371         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80372         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80373         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80374         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80375         * lib/xgethostname.c, lib/xreadlink.c:
80376         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80377
80378         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80379         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80380         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80381         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80382         and don't include <sys/file.h>).
80383
80384 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80385
80386         Sync from coreutils.
80387
80388         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80389         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80390         [!LDAV_DONE]: Avoid unused variable warning.
80391
80392 2005-09-21  Bruno Haible  <bruno@clisp.org>
80393
80394         * lib/unicodeio.h (unicode_to_mb): New declaration.
80395
80396 2005-09-20  Derek Price  <derek@ximbiot.com>
80397
80398         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80399         getaddrinfo.h.
80400
80401 2005-09-20  Bruno Haible  <bruno@clisp.org>
80402
80403         * gnulib-tool: Remove trailing slashes from the values specified for
80404         --source-base, --m4-base, --tests-base, --aux-dir.
80405         Suggested by Simon Josefsson <jas@extundo.com>.
80406
80407 2005-09-20  Bruno Haible  <bruno@clisp.org>
80408
80409         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80410         func_modules_to_filelist, func_import, func_create_testdir): Make all
80411         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80412         change when gnulib-tool is invoked in a different locale.
80413
80414 2005-09-19  Simon Josefsson  <jas@extundo.com>
80415
80416         * m4/socklen.m4: Fix typo.
80417
80418 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80419
80420         Use a consistent style for including <config.h>.
80421         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80422         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80423         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80424         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80425         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80426         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80427         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80428         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80429         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80430         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80431         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80432         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80433         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80434         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80435         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80436         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80437         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80438         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80439         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80440         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80441         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80442         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80443         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80444         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80445         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80446         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80447         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80448         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80449         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80450         lib/xstrtoumax.c, lib/yesno.c:
80451         Standardize inclusion of config.h.
80452         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80453         lib/inttostr.h:  Removed inclusion of config.h from header files.
80454         * lib/inttostr.c:  Adjusted in-tree users.
80455         * lib/timespec.h: Remove superfluous warning to include config.h.
80456         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80457         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80458         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80459         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80460         config.h with HAVE_CONFIG_H.
80461
80462 2005-09-19  Jim Meyering  <jim@meyering.net>
80463
80464         * modules/pathmax (License): Change to LGPL.
80465
80466 2005-09-19  Derek Price  <derek@ximbiot.com>
80467
80468         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80469
80470 2005-09-19  Bruno Haible  <bruno@clisp.org>
80471
80472         * gnulib-tool (import): Provide default for --tests-base.
80473
80474 2005-09-19  Bruno Haible  <bruno@clisp.org>
80475
80476         * doc/quote.texi: New file, extracted from gnulib.texi.
80477         * doc/ctime.texi: New file, extracted from gnulib.texi.
80478         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80479         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80480         * doc/gnulib.texi: Include them.
80481
80482 2005-09-18  Bruno Haible  <bruno@clisp.org>
80483
80484         Portability fix.
80485         * gnulib-tool (func_readlink): New function.
80486         (func_ln_if_changed): Use it.
80487
80488 2005-09-18  Bruno Haible  <bruno@clisp.org>
80489
80490         * gnulib-tool: Support --with-tests also with --import.
80491         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80492         (func_import): Use variables $testsbase and $inctests. Emit a
80493         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80494         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80495         SUBDIRS += $testsdir.
80496         (func_create_testdir): Update.
80497
80498 2005-09-18  Bruno Haible  <bruno@clisp.org>
80499
80500         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80501         instead of $dry_run.
80502         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80503         (func_ln_if_changed): Don't handle dry-run here.
80504         (func_import): In dry-run mode, detect more precisely which actions
80505         would be performed, and don't use "...ing" verbs.
80506
80507 2005-09-18  Bruno Haible  <bruno@clisp.org>
80508
80509         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80510         (func_import): Use join on two temporary files instead of three nested
80511         loops, in order to determine which files are new or old.
80512
80513 2005-09-18  Bruno Haible  <bruno@clisp.org>
80514
80515         * gnulib-tool (func_import): Comment out code that spits out the
80516         new files with --dry-run.
80517
80518 2005-09-18  Bruno Haible  <bruno@clisp.org>
80519
80520         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80521
80522 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80523
80524         * lib/stat-time.h: New file.
80525         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80526         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80527         in a different way.
80528         (timespec_cmp): New function.
80529         * lib/utimecmp.c: Include stat-time.h.
80530         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80531         members exist, not on the obsolescent ST_MTIM_NSEC.
80532         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80533
80534 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80535
80536         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80537
80538 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80539
80540         * MODULES.html.sh (File system functions): Add stat-time.
80541         * modules/stat-time: New file.
80542         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80543         is now done in a different way, by the stat-time module.
80544         * modules/utimecmp (Depends-on): Add stat-time.
80545
80546 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80547
80548         * m4/st_mtim.m4: Remove.  Superseded by...
80549         * m4/stat-time.m4: New file.
80550         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80551         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80552
80553 2005-09-15  Derek Price  <derek@ximbiot.com>
80554
80555         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80556
80557 2005-09-15  Derek Price  <derek@ximbiot.com>
80558
80559         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80560         * lib/regex_internal.c: Ditto, using this...
80561         (__GNUC_PREREQ): ...new macro.
80562         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80563         using...
80564         (__GNUC_PREREQ): ...this new macro.
80565
80566         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80567
80568 2005-09-15  Derek Price  <derek@ximbiot.com>
80569             Paul Eggert  <eggert@cs.ucla.edu>
80570
80571         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80572         changes, consolidating in...
80573         * lib/regex_internal.h: ...this file.
80574
80575 2005-09-13  Jim Meyering  <jim@meyering.net>
80576
80577         * lib/canon-host.c: Filter through gnu indent and reword comments
80578         slightly.
80579         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80580
80581 2005-09-13  Derek Price  <derek@ximbiot.com>
80582
80583         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80584         failure.
80585         Reported by Jim Meyering  <jim@meyering.net>.
80586
80587 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80588
80589         * lib/base64.c: Typo.
80590         (base64_encode): Put b64str in initialized data section.
80591
80592 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80593
80594         Merge glibc and coreutils changes into gnulib, plus a few
80595         extra fixes.
80596         * lib/md5.c: Use #error rather than a string.
80597         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80598         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80599         (__attribute__): Define to empty for non recent-GCC.
80600         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80601         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80602         Renamed from their non-__ counterparts, with new macros replacing
80603         them if not _LIBC.  Add __THROW attribute.
80604         (rol): Remove.
80605         (struct md5_ctx): Align buffer if using GCC.
80606         * lib/sha1.h (struct sha1_ctx): Likewise.
80607         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80608         The old name was backwards.
80609         (NOTSWAP): Remove; not used.
80610         (rol): New macro, moved here from md5.h.
80611         (sha1_process_block): Remove a FIXME that doesn't make sense.
80612
80613 2005-09-12  Derek Price  <derek@ximbiot.com>
80614
80615         Return usable errors from canon-host.
80616         * lib/canon-host.h: New file.
80617         * lib/canon-host.c (canon_host): Wrap...
80618         (canon_host_r): ...this new function, which now relies exclusively on
80619         getaddrinfo.
80620         (ch_strerror): New function.
80621         (last_cherror): New global.
80622         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80623         interface.
80624         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80625         void *.
80626         (freeaddrinfo): Free ai->ai_canonname when set.
80627
80628 2005-09-12  Derek Price  <derek@ximbiot.com>
80629
80630         Make canon-host require getaddrinfo.
80631         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80632         AC_LIBSOURCE canon-host.h.  Call...
80633         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80634         gl_GETADDRINFO.
80635         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80636
80637 2005-09-12  Derek Price  <derek@ximbiot.com>
80638
80639         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80640         LGPL.
80641         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80642
80643 2005-09-12  Derek Price  <derek@ximbiot.com>
80644
80645         * lib/gai_strerror.c: Include config.h when available.  Include
80646         getaddrinfo.h before other headers to test interface.
80647         Reported by Larry Jones <lawrence.jones@ugs.com>.
80648
80649 2005-09-12  Derek Price  <derek@ximbiot.com>
80650             Paul Eggert  <eggert@cs.ucla.edu>
80651
80652         * modules/glob (Files): Add glob-libc.h.
80653
80654 2005-09-12  Derek Price  <derek@ximbiot.com>
80655             Paul Eggert  <eggert@cs.ucla.edu>
80656
80657         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80658         glob_.h, glob-libc.h.
80659         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80660
80661 2005-09-12  Derek Price  <derek@ximbiot.com>
80662             Paul Eggert  <eggert@cs.ucla.edu>
80663
80664         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80665         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80666         protecting things that should be done only in gnulib contexts.
80667         * lib/glob_.h: New file, containing only the glob things needed for
80668         gnulib.
80669         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80670         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80671         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80672         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80673         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80674         and to respect the namespace rules better.
80675
80676 2005-09-08  Simon Josefsson  <jas@extundo.com>
80677
80678         * modules/socklen: New file.
80679
80680 2005-09-08  Simon Josefsson  <jas@extundo.com>
80681
80682         * m4/socklen.m4: New file.
80683
80684 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80685
80686         * modules/utimens (Files): Add m4/utimbuf.m4, since
80687         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80688         Reported by Sergey Poznyakoff.
80689
80690 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80691
80692         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80693         definitions, since that's the preferred style in glibc.
80694         Fix a minor spacing issue, and update copyright notice to match
80695         glibc's.
80696
80697 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80698
80699         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80700
80701 2005-09-06  Simon Josefsson  <jas@extundo.com>
80702
80703         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80704         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80705
80706 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80707
80708         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80709         warning.
80710
80711 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80712
80713         * config/srclist.txt: Add glibc bug 1302.
80714
80715 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80716
80717         Change bitset word type from unsigned int to unsigned long int,
80718         as this has better performance on typical 64-bit hosts.
80719         Port bitset code to hosts with unusual word sizes.
80720         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80721         (build_collating_symbol):
80722         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80723         argument is a bitset.  This is merely a style issue, but it makes
80724         it clearer that an entire array is expected.
80725         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80726         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80727         Port to the case where bitset_word is not the same as unsigned int.
80728         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80729         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80730         Likewise.
80731         * lib/regexec.c (check_dst_limits_calc_pos_1,
80732         check_subexp_matching_top):
80733         (build_trtable, group_nodes_into_DFAstates):
80734         Likewise.
80735         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80736         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80737         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80738         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80739         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80740         * lib/regcomp.c (optimize_subexps, lower_subexp):
80741         Work even if bitset_word has holes in its bitwise representation.
80742         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80743         * lib/regexec.c (check_dst_limits_calc_pos_1,
80744         check_subexp_matching_top):
80745         Likewise.
80746         * lib/regex_internal.c (re_string_reconstruct):
80747         Don't assume UCHAR_MAX == 255.
80748         * lib/regex_internal.h (bitset_set_all): Likewise.
80749         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80750         All uses changed.
80751         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80752         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80753         All uses changed.
80754         (BITSET_WORD_MAX): New macro.
80755         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80756         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80757         (bitset_empty, bitset_copy):
80758         Prefer sizeof (bitset) to multiplying it out ourselves.
80759         (bitset_not_merge): Remove; unused.
80760         (bitset_contain): Return bool, not unsigned int with one bit on.
80761         All callers changed.
80762         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80763         alignment than re_node_set; do this by defining a new internal
80764         type struct dests_alloc and using it to allocate memory.
80765
80766 2005-09-05  Bruno Haible  <bruno@clisp.org>
80767
80768         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80769         links.
80770
80771 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80772
80773         * modules/size_max (Makefile.am): Add size_max.h
80774
80775 2005-09-04  Derek Price  <derek@ximbiot.com>
80776
80777         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80778
80779 2005-09-03  Simon Josefsson  <jas@extundo.com>
80780
80781         * gnulib-tool: Fix typo.
80782
80783 2005-09-03  Simon Josefsson  <jas@extundo.com>
80784
80785         * config/srclist.txt: Add glibc bug 1293.
80786
80787 2005-09-03  Derek Price  <derek@ximbiot.com>
80788
80789         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80790         From Larry Jones <lawrence.jones@ugs.com>.
80791
80792 2005-09-02  Simon Josefsson  <jas@extundo.com>
80793
80794         * modules/socklen: New file.
80795
80796 2005-09-02  Simon Josefsson  <jas@extundo.com>
80797
80798         * modules/havelib: New module.
80799
80800         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80801         Use havelib.
80802
80803 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80804
80805         Check for arithmetic overflow when calculating sizes, to prevent
80806         some buffer-overflow issues.  These patches are conservative, in the
80807         sense that when I couldn't determine whether an overflow was possible,
80808         I inserted a run-time check.
80809         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80810         macros.
80811         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80812         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80813         (re_xnrealloc, re_x2nrealloc): New inline functions.
80814         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80815         parse_bracket_exp):
80816         (build_equiv_class, build_charclass): Check for arithmetic overflow
80817         in size expression calculations.
80818         * lib/regex_internal.c (re_string_realloc_buffers):
80819         (build_wcs_upper_buffer, re_node_set_add_intersect):
80820         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80821         (re_dfa_add_node, register_state): Likewise.
80822         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80823         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80824         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80825         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80826
80827 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80828
80829         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80830         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80831
80832 2005-09-02  Bruno Haible  <bruno@clisp.org>
80833
80834         Support for lib vs. lib64 distinction on biarch platforms.
80835         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80836         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80837         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80838
80839 2005-09-02  Bruno Haible  <bruno@clisp.org>
80840
80841         * gnulib-tool (import): In the other first-use case, provide defaults
80842         as well.
80843
80844 2005-09-02  Bruno Haible  <bruno@clisp.org>
80845
80846         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80847         patches not yet found in the latest gettext release.
80848
80849 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80850
80851         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80852         to avoid a collision with bits/local_lim.h in glibc.
80853         All uses changed.  Problem reported by Dmitry V. Levin in
80854         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80855
80856         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80857         bugs in int versus size_t comparisons.
80858         (re_string_context_at): Fix bug where the code assumed that
80859         Idx is signed.
80860
80861         Use bool where appropriate.
80862         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80863         All callers changed.
80864         (calc_eclosure_iter): Likewise, for ROOT arg.
80865         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80866         (build_charclass_op): Likewise, for NON_MATCH arg.
80867         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80868         (re_string_construct_common): Likewise, for ICASE arg.
80869         * lib/regexec.c (re_search_2_stub, re_search_stub):
80870         Likewise, for RET_LEN arg.
80871         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80872         (set_regs): Likewise, for FL_BACKTRACK arg.
80873         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80874         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80875         (calc_eclosure_iter, parse_bracket_exp):
80876         Use bool for internal variables that are booleans.
80877         * lib/regexec.c (re_search_internal, check_matching,
80878         proceed_next_node):
80879         (set_regs, build_sifted_states, sift_states_bkref):
80880         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80881         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80882         (find_collation_sequence_value):
80883         Likewise.
80884         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80885         (re_node_set_compare):
80886         Return bool, not int. All callers changed.
80887         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80888         (build_trtable, check_node_accept): Likewise.
80889         * lib/regex_internal.h: Include stdbool.h.
80890
80891         Fix bugs uncovered when converting to bool.
80892         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80893         failure instead of charging ahead blindly.
80894         * lib/regex_internal.c (register_state): Likewise.
80895         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80896         for freeing internal storage.
80897         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80898         bitset pieces used as boolean, to avoid undefined behavior
80899         on hosts that do int overflow checking.
80900
80901 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80902
80903         * config/srclist.txt: Add glibc bugs 1285-1287.
80904
80905 2005-09-01  Jim Meyering  <jim@meyering.net>
80906
80907         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80908         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80909         Require gl_STAT_MACROS, too.
80910
80911 2005-09-01  Bruno Haible  <bruno@clisp.org>
80912
80913         * gnulib-tool (import): In the first-use case, provide defaults.
80914
80915 2005-09-01  Bruno Haible  <bruno@clisp.org>
80916
80917         * gnulib-tool (func_import): Remove the .tmp files.
80918
80919 2005-09-01  Bruno Haible  <bruno@clisp.org>
80920
80921         * gnulib-tool (func_import): Fix handling of symbolic links.
80922
80923 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80924
80925         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80926         old glibc regex code mishandles strings longer than 2**31 bytes.
80927         This patch fixes this when the regex code is used in gnulib
80928         (i.e., outside glibc).
80929
80930         This patch should not affect the use of the regex code inside
80931         glibc.  No doubt this problem also needs to be handled for glibc
80932         as well, but the result will be an incompatible change to the
80933         glibc ABI, and the old ABI will have to be supported too.  That
80934         can be the the subject for another patch.
80935
80936         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80937         governing whether the rest of this patch is active.  By default,
80938         the macro is disabled and the patch has no effect.
80939         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80940         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80941         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80942         (re_match_2, re_set_registers): Use the new types.
80943         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80944         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80945         New macros.
80946         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80947         (re_string_context_at, bin_tree_t, re_dfastate_t):
80948         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80949         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80950         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80951         (re_string_char_size_at, re_string_wchar_at):
80952         (re_string_elem_size_at):
80953         Use the new types and macros to port to 64-bit hosts.
80954         Use unsigned types for internal values, so that the code
80955         mostly works even for arrays larger than SSIZE_MAX.
80956         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80957         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80958         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80959         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80960         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80961         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80962         (calc_inveclosure, parse_dup_op, build_range_exp):
80963         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80964         (fetch_number, create_token_tree, mark_opt_subexp):
80965         Likewise.
80966         * lib/regex_internal.c (re_string_construct_common,
80967         create_ci_newstate):
80968         (create_cd_newstate, re_string_allocate, re_string_construct):
80969         (re_string_realloc_buffers, build_wcs_upper_buffer):
80970         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80971         (re_string_reconstruct, re_string_peek_byte_case):
80972         (re_string_fetch_byte_case, re_string_context_at):
80973         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80974         (re_node_set_init_copy, re_node_set_add_intersect):
80975         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80976         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80977         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80978         (re_acquire_state, re_acquire_state_context, register_state):
80979         Likewise.
80980         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80981         search_cur_bkref_entry):
80982         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80983         (re_search_internal, re_search_2_stub, re_search_stub)
80984         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80985         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80986         (update_cur_sifted_state, check_dst_limits):
80987         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80988         (check_subexp_limits, sift_states_bkref, merge_state_array):
80989         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80990         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80991         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80992         (expand_bkref_cache, check_node_accept_bytes):
80993         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80994         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80995         (acquire_init_state_context, check_halt_node_context):
80996         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80997         (sift_states_backward, clean_state_log_if_needed):
80998         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80999         (find_recover_state, transit_state_sb, transit_state_mb):
81000         (transit_state_bkref, build_trtable, match_ctx_clean):
81001         Likewise.
81002         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81003         to work around an assumption that REG_MISSING is negative.
81004
81005         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81006         (seek_collating_symbol_entry) [defined _LIBC]:
81007         (lookup_collation_sequence_value) [defined _LIBC]:
81008         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81009         Use prototypes rather than old-style function definitions.
81010         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81011         (transit_state_sb) [0]:
81012         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81013
81014         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81015         rm_eo.
81016
81017         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81018         (optimize_subexps, lower_subexp):
81019         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81020         since the signed shift might overflow.  Use 1u<<31 instead.
81021         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81022         Likewise.
81023         * lib/regexec.c (check_dst_limits_calc_pos_1,
81024         check_subexp_matching_top): Likewise.
81025
81026         * lib/regcomp.c (optimize_subexps, lower_subexp):
81027         Use CHAR_BIT rather than 8, for clarity.
81028         * lib/regexec.c (check_dst_limits_calc_pos_1):
81029         (check_subexp_matching_top): Likewise.
81030         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81031         have to worry about portability issues when shifting it left.
81032         Remove no-longer-needed test for table_size > 0.
81033         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81034         in a word, as the resulting behavior is undefined.
81035         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81036         in one case, a <= should have been an <, and in another case the
81037         whole test was missing.
81038         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81039         the standard name CHAR_BIT.
81040         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81041         this is not true on one's complement and signed-magnitude hosts.
81042
81043         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81044         next_last_offset.
81045         (struct re_dfa_t): Remove unused member states_alloc.
81046         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81047
81048 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81049
81050         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81051         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81052         and large-file glibc and in 32-bit large-file Solaris.
81053
81054 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81055
81056         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81057         lengths fit in regoff_t; this isn't true if regoff_t is the same
81058         width as size_t.
81059         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81060         (= START + RANGE) instead of RANGE.  This avoids overflow
81061         problems when regoff_t is the same width as size_t.
81062         All callers changed.
81063         (re_search_2_stub): Check for overflow when adding the
81064         sizes of the two strings.
81065         (re_search_stub): Check for overflow when adding START
81066         to RANGE; if it occurs, substitute the extreme value.
81067
81068 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81069
81070         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81071
81072 2005-08-31  Jim Meyering  <jim@meyering.net>
81073
81074         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81075         a pointer-to-const.
81076         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81077         (register_state): Likewise.
81078         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81079         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81080         (group_nodes_into_DFAstates): Likewise.
81081
81082 2005-08-31  Jim Meyering  <jim@meyering.net>
81083
81084         * check-module: Add a FIXME comment.
81085
81086 2005-08-31  Eric Blake  <ebb9@byu.net>
81087
81088         * modules/unistd-safer (Files): Add unistd--.h.
81089         * modules/stdio-safer (Files): Add stdio--.h.
81090
81091 2005-08-31  Derek Price  <derek@ximbiot.com>
81092
81093         * lib/getdelim.c (getdelim): Return EOF on EOF.
81094         Reported by Larry Jones <lawrence.jones@ugs.com>.
81095
81096 2005-08-31  Bruno Haible  <bruno@clisp.org>
81097
81098         Avoid unnecessary diffs in the generated lib/Makefile.am.
81099         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81100         the generated files.
81101         (func_import): Don't set cmd.
81102
81103 2005-08-31  Bruno Haible  <bruno@clisp.org>
81104
81105         * lib/strstr.c: Include <stddef.h>, for NULL.
81106         * lib/strcasestr.c: Likewise.
81107         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81108
81109 2005-08-31  Bruno Haible  <bruno@clisp.org>
81110
81111         * gnulib-tool: New option --macro-prefix.
81112         (func_import): Use macro_prefix.
81113         (import): Handle option --macro-prefix.
81114
81115 2005-08-31  Bruno Haible  <bruno@clisp.org>
81116
81117         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81118         Also use new variables cached_lgpl, cached_libtool.
81119
81120 2005-08-31  Bruno Haible  <bruno@clisp.org>
81121
81122         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81123         always instantiating them.
81124
81125 2005-08-31  Bruno Haible  <bruno@clisp.org>
81126
81127         * gnulib-tool (func_import): Read the previous cached settings
81128         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81129         earlier added by gnulib but are now dropped. Warn when a gnulib file
81130         overwrites a non-gnulib file.
81131
81132 2005-08-31  Bruno Haible  <bruno@clisp.org>
81133
81134         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81135         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81136         projects that don't keep autogenerated files in CVS. Put into
81137         actioncmd only the specified modules, not the transitive closure.
81138
81139 2005-08-31  Bruno Haible  <bruno@clisp.org>
81140
81141         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81142         Create directories that shall be filled.
81143         (import): Don't look for gl_* macros in configure.ac. Recurse across
81144         all directories containing a gnulib-cache.m4 files, if meaningful.
81145
81146 2005-08-31  Bruno Haible  <bruno@clisp.org>
81147
81148         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81149         (import): Set seen_libtool when we see gl_LIBTOOL.
81150
81151 2005-08-31  Bruno Haible  <bruno@clisp.org>
81152
81153         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81154         declaration macro definitions from generated gnulib.m4.
81155
81156 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81157
81158         * lib/iconvme.h: Add prototype for iconv_alloc.
81159
81160 2005-08-29  Simon Josefsson  <jas@extundo.com>
81161
81162         * lib/iconvme.c: Fix errno.
81163
81164 2005-08-29  Bruno Haible  <bruno@clisp.org>
81165
81166         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81167         that it works when the directory contains spaces.
81168
81169 2005-08-29  Bruno Haible  <bruno@clisp.org>
81170
81171         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81172
81173 2005-08-29  Bruno Haible  <bruno@clisp.org>
81174
81175         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81176         Emit more advice.
81177
81178 2005-08-29  Bruno Haible  <bruno@clisp.org>
81179         and Stepan Kasal  <kasal@ucw.cz>
81180
81181         * check-module: If more parameters are given, check each of them
81182         separately; add more exceptions, as noted by Jim Meyering.
81183         (check_module): New procedure.
81184         (%exempt_header): Now contains all exceptions.
81185
81186 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81187
81188         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81189
81190 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81191
81192         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81193
81194 2005-08-28  Bruno Haible  <bruno@clisp.org>
81195
81196         * m4/gnulib-tool.m4: New file.
81197
81198 2005-08-27  Jim Meyering  <jim@meyering.net>
81199
81200         * modules/unistd-safer (Files): Add pipe-safer.c.
81201         * modules/fcntl-safer (Files): Add creat-safer.c.
81202
81203 2005-08-27  Jim Meyering  <jim@meyering.net>
81204
81205         * m4/stdlib-safer.m4: New file.  From coreutils.
81206         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81207         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81208         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81209         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81210         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81211
81212 2005-08-27  Jim Meyering  <jim@meyering.net>
81213
81214         * lib/fopen-safer.c: Merge minor changes from coreutils.
81215         * lib/dup-safer.c: Likewise.
81216         * lib/fd-safer.c: Likewise.
81217
81218         Merge from coreutils.
81219         * lib/stdio--.h: New file.
81220         * lib/stdlib--.h: New file.
81221         * lib/mkstemp-safer.c: New file.
81222
81223         GNU tar needs these.
81224         * lib/pipe-safer.c: New file.
81225         * lib/creat-safer.c: New file.
81226         * lib/fcntl--.h (creat): Define to creat_safer.
81227         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81228         * lib/unistd--.h (pipe): Define to pipe_safer.
81229         * lib/unistd-safer.h: Declare pipe_safer.
81230
81231 2005-08-26  Simon Josefsson  <jas@extundo.com>
81232
81233         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81234         Haible <bruno@clisp.org>.
81235
81236 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81237
81238         * lib/regex_internal.h: Remove all references to
81239         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81240         or better.
81241         (bitset_not, bitset_merge, bitset_not_merge):
81242         (bitset_mask, re_string_allocate, re_string_construct):
81243         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81244         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81245         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81246         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81247         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81248         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81249         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81250         (re_acquire_state_context):
81251         Remove unnecessary forward decls.
81252         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81253         Put __attribute at function definition,
81254         now that the function decl has been removed.
81255         * lib/regex_internal.c (re_string_peek_byte_case):
81256         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81257         Likewise.
81258
81259 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81260
81261         * m4/regex.m4: Add AC_PREREQ(2.50).
81262         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81263
81264 2005-08-25  Simon Josefsson  <jas@extundo.com>
81265
81266         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81267         __fsetlocking.
81268
81269 2005-08-25  Simon Josefsson  <jas@extundo.com>
81270
81271         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81272         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81273         GLIBC specific code.
81274
81275 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81276
81277         Make regex safe for g++.  This fixes one real bug (an "err"
81278         that should have been "*err").  g++ problem reported by
81279         Sam Steingold.
81280         * lib/regex_internal.h (re_calloc): New macro, consistent with
81281         re_malloc etc.  All callers of calloc changed to use re_calloc.
81282         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81283         not int.  All callers changed.
81284         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81285         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81286         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81287         (find_recover_state): Change "err" to "*err"; this fixes what
81288         appears to be a real bug.
81289         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81290         versus int.
81291
81292 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81293
81294         * modules/regex (Depends-on): Add malloc, since the code
81295         assumes that !malloc(0) means failure.
81296
81297 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81298
81299         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81300
81301         alloca modernization/simplification for regex.
81302         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81303         needs to be at the start of the file, and can be moved into
81304         regex_internal.h and simplified.
81305         * lib/regex_internal.h: Include <alloca.h>.
81306         (__libc_use_alloca) [!defined _LIBC]: New macro.
81307         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81308         now works outside glibc.
81309
81310 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81311
81312         * config/srclist.txt: Add glibc bugs 1241, 1245.
81313
81314 2005-08-25  Jim Meyering  <jim@meyering.net>
81315
81316         * lib/open-safer.c: Include <config.h>.
81317         Otherwise, we'd lose LARGEFILE support in any file using
81318         e.g. "fcntl--.h"
81319
81320 2005-08-25  Bruno Haible  <bruno@clisp.org>
81321
81322         * m4/minmax.m4: Require autoconf 2.52.
81323         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81324         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81325         alternatives of translit over the alphabet.
81326         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81327
81328 2005-08-24  Simon Josefsson  <jas@extundo.com>
81329
81330         * tests/test-getpass.c: New file.
81331
81332 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81333
81334         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81335         for GNU regex features.
81336
81337 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81338
81339         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81340         * lib/regex.h (regerror): Likewise.
81341
81342         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81343         requires this.  (The code never needed it.)
81344
81345         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81346         All uses of recently-renamed identifiers changed to use the new,
81347         POSIX-compliant names.  The code will build and run just fine
81348         without these changes, but it's better to eat our own dog food
81349         and use the standard-conforming names.
81350
81351         * lib/regex.h: Fix a multitude of POSIX name space violations.
81352         These changes have an effect only for programs that define
81353         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81354         do not change anything for programs compiled in the normal way.
81355         Also, there is no effect on the ABI.
81356
81357         (_REGEX_SOURCE): New macro.
81358         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81359         defined and _GNU_SOURCE is not; this fixes a name space violation.
81360
81361         Rename the following macros to obey POSIX requirements.
81362         The old names are still visible as macros if _REGEX_SOURCE is defined.
81363         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81364         RE_BACKSLASH_ESCAPE_IN_LISTS.
81365         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81366         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81367         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81368         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81369         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81370         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81371         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81372         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81373         (REG_INTERVALS): renamed from RE_INTERVALS.
81374         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81375         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81376         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81377         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81378         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81379         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81380         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81381         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81382         RE_UNMATCHED_RIGHT_PAREN_ORD.
81383         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81384         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81385         (REG_DEBUG): renamed from RE_DEBUG.
81386         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81387         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81388         unusual, since we can't clash with the POSIX REG_ICASE.
81389         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81390         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81391         (REG_NO_SUB): renamed from RE_NO_SUB.
81392         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81393         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81394         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81395         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81396         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81397         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81398         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81399         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81400         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81401         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81402         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81403         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81404         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81405         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81406         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81407         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81408         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81409         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81410         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81411         (REG_FIXED): Renamed from REGS_FIXED.
81412         (REG_NREGS): Renamed from RE_NREGS.
81413
81414         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81415         of other REG_* macros, since POSIX says the user is allowed to
81416         #undef these macros selectively.
81417
81418         (reg_errcode_t): Update comment stating what other tables need
81419         to be consistent.
81420
81421         Rename the following enum values to obey POSIX requirements.
81422         The old names are still visible as macros.
81423         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81424         is not defined, since GNU is supposed to be a superset of POSIX as
81425         much as possible, and since we want reg_errcode_t to be a signed
81426         type for implementation consistency.
81427         (_REG_NOERROR): Renamed from REG_NOERROR.
81428         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81429         (_REG_BADPAT): Renamed from REG_BADPAT.
81430         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81431         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81432         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81433         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81434         (_REG_EBRACK): Renamed from REG_EBRACK.
81435         (_REG_EPAREN): Renamed from REG_EPAREN.
81436         (_REG_EBRACE): Renamed from REG_EBRACE.
81437         (_REG_BADBR): Renamed from REG_BADBR.
81438         (_REG_ERANGE): Renamed from REG_ERANGE.
81439         (_REG_ESPACE): Renamed from REG_ESPACE.
81440         (_REG_BADRPT): Renamed from REG_BADRPT.
81441         (_REG_EEND): Renamed from REG_EEND.
81442         (_REG_ESIZE): Renamed from REG_ESIZE.
81443         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81444         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81445         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81446         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81447         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81448
81449         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81450         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81451         changed.  But support the old name if the new one is not defined
81452         and if _REGEX_SOURCE.
81453
81454         Change the following member names in struct re_pattern_buffer.
81455         The old names are still supported if !_REGEX_SOURCE.
81456         The new names are always supported, regardless of _REGEX_SOURCE.
81457         (re_buffer): Renamed from buffer.
81458         (re_allocated): Renamed from allocated.
81459         (re_used): Renamed from used.
81460         (re_syntax): Renamed from syntax.
81461         (re_fastmap): Renamed from fastmap.
81462         (re_translate): Renamed from translate.
81463         (re_can_be_null): Renamed from can_be_null.
81464         (re_regs_allocated): Renamed from regs_allocated.
81465         (re_fastmap_accurate): Renamed from fastmap_accurate.
81466         (re_no_sub): Renamed from no_sub.
81467         (re_not_bol): Renamed from not_bol.
81468         (re_not_eol): Renamed from not_eol.
81469         (re_newline_anchor): Renamed from newline_anchor.
81470
81471         Change the following member names in struct re_registers.
81472         The old names are still supported if !_REGEX_SOURCE.
81473         The new names are always supported, regardless of _REGEX_SOURCE.
81474         (rm_num_regs): Renamed from num_regs.
81475         (rm_start): Renamed from start.
81476         (rm_end): Renamed from end.
81477
81478         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81479         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81480         Prepend __ to parameter names.
81481
81482         Undo yesterday's changes.
81483
81484 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81485
81486         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81487         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81488         lib/regex.c.
81489
81490 2005-08-24  Jim Meyering  <jim@meyering.net>
81491
81492         Sync from coreutils.
81493         * m4/fcntl-safer.m4: New file.
81494
81495         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81496         and object files for this module.
81497
81498 2005-08-24  Jim Meyering  <jim@meyering.net>
81499
81500         Sync from coreutils.
81501         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81502
81503 2005-08-24  Jim Meyering  <jim@meyering.net>
81504
81505         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81506         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81507
81508 2005-08-24  Jim Meyering  <jim@meyering.net>
81509
81510         * modules/fcntl-safer: New module.
81511         * modules/fts (Depends-on): Add fcntl-safer.
81512         * MODULES.html.sh (File descriptor based Input/Output):
81513         Add fcntl-safer.
81514
81515 2005-08-24  Bruno Haible  <bruno@clisp.org>
81516
81517         Support for unit test modules.
81518         * modules/README: Mention tests modules.
81519         * modules/TEMPLATE-TESTS: New file.
81520         * gnulib-tool: New options --extract-tests-module, --with-tests and
81521         --tests-base (unused for the moment).
81522         (testsbase, inctests): New variables.
81523         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81524         (func_verify_module): Exclude TEMPLATE-TESTS.
81525         (func_verify_nontests_module, func_verify_tests_module): New functions.
81526         (func_get_dependencies): Add implicit dependency for tests modules.
81527         (func_get_tests_module): New function.
81528         (func_modules_transitive_closure): When --with-tests was specified,
81529         include the unit tests as well, unless explicitly avoided.
81530         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81531         (func_emit_tests_Makefile_am): New function.
81532         (func_create_testdir): When --with-tests was specified, emit a
81533         tests/ directory.
81534         * MODULES.html.sh (Future developments): Update.
81535
81536 2005-08-24  Bruno Haible  <bruno@clisp.org>
81537
81538         * modules/tls-tests: New file.
81539         * tests/test-tls.c: New file, from GNU gettext.
81540
81541 2005-08-24  Bruno Haible  <bruno@clisp.org>
81542
81543         * modules/lock-tests: New file.
81544         * tests/test-lock.c: New file, from GNU gettext.
81545
81546 2005-08-24  Bruno Haible  <bruno@clisp.org>
81547
81548         * lib/lock.h: Add multiple inclusion guard.
81549         * lib/tls.h: Add multiple inclusion guard.
81550
81551 2005-08-24  Bruno Haible  <bruno@clisp.org>
81552
81553         * gnulib-tool: Add support for the --aux-dir option to
81554         --create-testdir, --create-megatestdir, --test, --megatest.
81555         (func_create_testdir, func_create_megatestdir): Optionally emit a
81556         AC_CONFIG_AUX_DIR directive.
81557         (create-testdir, create-megatestdir, test, megatest): Provide a
81558         default value for $auxdir.
81559
81560 2005-08-24  Bruno Haible  <bruno@clisp.org>
81561
81562         * gnulib-tool (import): Use compound statement instead of subshell
81563         where possible.
81564
81565 2005-08-24  Bruno Haible  <bruno@clisp.org>
81566
81567         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81568
81569 2005-08-24  Bruno Haible  <bruno@clisp.org>
81570
81571         * gnulib-tool (func_version): Update.
81572
81573 2005-08-24  Bruno Haible  <bruno@clisp.org>
81574
81575         * gnulib-tool (func_import, func_create_testdir,
81576         func_create_megatestdir): Quote all autoconf macro arguments.
81577
81578 2005-08-24  Bruno Haible  <bruno@clisp.org>
81579
81580         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81581         option --force, because --force causes the aclocal.m4 of each
81582         subdirectory to be newer than the corresponding config.h.in.
81583
81584 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81585
81586         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81587         All contents moved to gl_REGEX.
81588         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81589         assume that it does.
81590
81591 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81592
81593         * lib/regex.h (REG_NOSYS)
81594         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81595         Define, since POSIX requires it as of 2001.
81596         (_REG_ENOSYS)
81597         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81598         New private symbol, used to keep the enum signed in all cases.
81599         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81600         Youngman in
81601         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81602
81603         * lib/regex_internal.c (re_string_skip_chars, register_state):
81604         (calc_state_hash):
81605         Remove forward decls; no longer needed now that we use prototypes.
81606         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81607         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81608         (clean_state_log_if_needed): Likewise.
81609
81610 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81611
81612         * config/srclist.txt: Add glibc bugs 1231-1233.
81613
81614 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81615
81616         Fix problems reported by Sam Steingold in
81617         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81618         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81619         assumed that reg_errcode_t is a signed type, which is not
81620         necessarily true if _XOPEN_SOURCE is not defined.
81621         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81622         since some compilers warn about it otherwise.
81623
81624 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81625
81626         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81627         (init_word_char, create_initial_state, duplicate_node_closure):
81628         (fetch_token, peek_token_bracket, build_range_exp):
81629         (build_collating_symbol): Remove forward decls; no longer needed
81630         now that we use prototypes.
81631
81632         * lib/regcomp.c:
81633         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81634         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81635         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81636         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81637         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81638         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81639         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81640         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81641         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81642         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81643         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81644         (build_charclass, build_charclass_op, fetch_number, create_tree):
81645         (create_token_tree, mark_opt_subexp, duplicate_tree):
81646         Use prototypes rather than old-style definitions.
81647
81648         * lib/regex_internal.c:
81649         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81650         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81651         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81652         (re_string_reconstruct, re_string_peek_byte_case):
81653         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81654         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81655         (re_node_set_init_copy, re_node_set_add_intersect):
81656         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81657         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81658         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81659         (re_acquire_state, re_acquire_state_context, register_state):
81660         (create_ci_newstate, create_cd_newstate, free_state):
81661         Likewise.
81662         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81663         re_search_2):
81664         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81665         (re_search_internal, prune_impossible_nodes):
81666         (acquire_init_state_context, check_matching, static):
81667         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81668         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81669         (update_regs, sift_states_backward, build_sifted_states):
81670         (clean_state_log_if_needed, merge_state_array):
81671         (update_cur_sifted_state, add_epsilon_src_nodes):
81672         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81673         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81674         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81675         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81676         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81677         (check_arrival, check_arrival_add_next_nodes):
81678         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81679         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81680         (check_node_accept_bytes, check_node_accept, extend_buffers):
81681         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81682         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81683         (sift_ctx_init):
81684         Likewise.
81685
81686         * lib/regex_internal.h:
81687         (re_string_allocate, re_string_construct, re_string_reconstruct):
81688         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81689         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81690         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81691         (re_string_context_at, re_string_peek_byte_case):
81692         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81693         is defined, since we now use prototypes always.
81694
81695         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81696         C89 or better.  All uses removed.
81697
81698 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81699
81700         * config/srclist.txt: Add glibc bugs 1220-1227.
81701
81702 2005-08-20  Jim Meyering  <jim@meyering.net>
81703
81704         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81705         of unused local, dfa.
81706
81707 2005-08-20  Bruno Haible  <bruno@clisp.org>
81708
81709         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81710
81711 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81712
81713         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81714         (re_node_set_insert_last, re_dfa_add_node):
81715         Rename local variables to avoid GCC shadowing warnings.
81716
81717 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81718
81719         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81720         [defined lint]: Suppress bogus uninitialized-variable warnings.
81721
81722         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81723         and let the caller return REG_ESPACE if out of space.  This
81724         removes an uninitialied-variable warning with GCC 4.0.1, and also
81725         avoids taking the address of a local variable.  All callers
81726         changed.
81727
81728 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81729
81730         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81731         $LIBCSRC/posix/regexec.c.
81732         Add glibc bug 1217 for regcomp.c.
81733
81734 2005-08-19  Jim Meyering  <jim@meyering.net>
81735
81736         * lib/regexec.c (proceed_next_node): Redo local variables to
81737         avoid GCC shadowing warnings.
81738
81739 2005-08-18  Bruno Haible  <bruno@clisp.org>
81740
81741         * lib/strstr.c (strstr): Fix return value in multibyte case.
81742         * lib/strcasestr.c (strcasestr): Likewise.
81743
81744 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81745
81746         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81747
81748 2005-08-17  Jim Meyering  <jim@meyering.net>
81749
81750         Make the %s format (seconds since the epoch) work for a negative
81751         number and when used with a zero-padded field width, e.g. %015s.
81752
81753         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81754         label so that it precedes the code to set `digits'.  Otherwise,
81755         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81756         print `00-22'.  Now, it prints `-0022', as it should.
81757
81758 2005-08-17  Bruno Haible  <bruno@clisp.org>
81759
81760         * modules/strstr (Files): Add m4/mbrtowc.m4.
81761         (Depends-on): Add mbuiter.
81762
81763 2005-08-17  Bruno Haible  <bruno@clisp.org>
81764
81765         * modules/strcasestr: New file.
81766         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81767         strcasestr.
81768
81769 2005-08-17  Bruno Haible  <bruno@clisp.org>
81770
81771         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81772
81773 2005-08-17  Bruno Haible  <bruno@clisp.org>
81774
81775         * modules/mbuiter: New file.
81776         * MODULES.html.sh (Extended multibyte and wide character utilities):
81777         Add mbuiter.
81778
81779 2005-08-17  Bruno Haible  <bruno@clisp.org>
81780
81781         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81782         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81783
81784 2005-08-17  Bruno Haible  <bruno@clisp.org>
81785
81786         * m4/strcasestr.m4: New file.
81787
81788 2005-08-17  Bruno Haible  <bruno@clisp.org>
81789
81790         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81791         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81792
81793 2005-08-17  Bruno Haible  <bruno@clisp.org>
81794
81795         * lib/strcasestr.h: New file.
81796         * lib/strcasestr.c: New file.
81797
81798 2005-08-17  Bruno Haible  <bruno@clisp.org>
81799
81800         * lib/strcasecmp.c: Use mbuiter.h.
81801
81802 2005-08-17  Bruno Haible  <bruno@clisp.org>
81803
81804         * lib/mbuiter.h: New file.
81805
81806 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81807
81808         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81809         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81810         and gl_GETOPT are both invoked via different paths (as happens
81811         with GNU tar CVS because it uses both argp and getopt), the former
81812         wins.
81813
81814 2005-08-16  Bruno Haible  <bruno@clisp.org>
81815
81816         * modules/tls: New file.
81817         * MODULES.html.sh (Multithreading): Add tls.
81818
81819 2005-08-16  Bruno Haible  <bruno@clisp.org>
81820
81821         * modules/strnlen1: New file.
81822         * MODULES.html.sh (String handling): Add strnlen1.
81823
81824 2005-08-16  Bruno Haible  <bruno@clisp.org>
81825
81826         * modules/strcase (Files): Add m4/mbrtowc.m4.
81827         (Depends-on): Add strnlen1, mbchar.
81828
81829 2005-08-16  Bruno Haible  <bruno@clisp.org>
81830
81831         * modules/mbiter: New file.
81832         * MODULES.html.sh (Extended multibyte and wide character utilities):
81833         Add mbiter.
81834
81835 2005-08-16  Bruno Haible  <bruno@clisp.org>
81836
81837         * modules/mbfile: New file.
81838         * MODULES.html.sh (Extended multibyte and wide character utilities):
81839         Add mbfile.
81840
81841 2005-08-16  Bruno Haible  <bruno@clisp.org>
81842
81843         * modules/mbchar: New file.
81844         * MODULES.html.sh (Extended multibyte and wide character utilities):
81845         New section.
81846
81847 2005-08-16  Bruno Haible  <bruno@clisp.org>
81848
81849         * m4/tls.m4: New file, from GNU gettext.
81850
81851 2005-08-16  Bruno Haible  <bruno@clisp.org>
81852
81853         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81854         always.
81855         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81856
81857 2005-08-16  Bruno Haible  <bruno@clisp.org>
81858
81859         * m4/mbiter.m4: New file.
81860
81861 2005-08-16  Bruno Haible  <bruno@clisp.org>
81862
81863         * m4/mbfile.m4: New file.
81864
81865 2005-08-16  Bruno Haible  <bruno@clisp.org>
81866
81867         * m4/mbchar.m4: New file.
81868
81869 2005-08-16  Bruno Haible  <bruno@clisp.org>
81870
81871         * lib/tls.h: New file, from GNU gettext.
81872         * lib/tls.c: New file, from GNU gettext.
81873
81874 2005-08-16  Bruno Haible  <bruno@clisp.org>
81875
81876         * lib/strnlen1.h: New file.
81877         * lib/strnlen1.c: New file.
81878
81879 2005-08-16  Bruno Haible  <bruno@clisp.org>
81880
81881         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81882         (mbi_init): Update.
81883         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81884         NUL byte, not after it.
81885
81886 2005-08-16  Bruno Haible  <bruno@clisp.org>
81887
81888         * lib/strcase.h (strcasecmp): Add note in comments.
81889         * lib/strncasecmp.c: Use code from strcasecmp.c.
81890         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81891         (strcasecmp): Work correctly in multibyte locales.
81892
81893 2005-08-16  Bruno Haible  <bruno@clisp.org>
81894
81895         * lib/mbiter.h: New file.
81896
81897 2005-08-16  Bruno Haible  <bruno@clisp.org>
81898
81899         * lib/mbfile.h: New file.
81900
81901 2005-08-16  Bruno Haible  <bruno@clisp.org>
81902
81903         * lib/mbchar.h: New file.
81904         * lib/mbchar.c: New file.
81905
81906 2005-08-16  Bruno Haible  <bruno@clisp.org>
81907
81908         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81909         the valid ones. Makes the comparison operations transitive:
81910         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81911         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81912
81913 2005-08-15  Simon Josefsson  <jas@extundo.com>
81914
81915         * modules/ssize_t (License): Change to 'unlimited'.
81916
81917         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81918
81919 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81920
81921         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81922         Add comments for each pending glibc patch.
81923
81924 2005-08-15  Bruno Haible  <bruno@clisp.org>
81925
81926         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81927         __cplusplus is defined.
81928
81929 2005-08-14  Jim Meyering  <jim@meyering.net>
81930
81931         Sync from coreutils.
81932
81933         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81934         Use the hash-table-based cycle-detection code not just when
81935         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81936         Reported by James Youngman in
81937         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81938         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81939         FTS_TIGHT_CYCLE_CHECK.
81940         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81941         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81942         once again.
81943         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81944         * lib/fts.c (fd_safer): Remove decl.
81945         Include fcntl--.h rather than unistd-safer.h
81946         (fts_safe_changedir): Don't call fd_safer; no longer needed
81947         now that we include fcntl--.h.
81948
81949 2005-08-12  Simon Josefsson  <jas@extundo.com>
81950
81951         * modules/getndelim2: Use ssize_t module.
81952         * modules/getnline: Likewise.
81953         * modules/safe-read: Likewise.
81954         * modules/xreadlink: Likewise.
81955
81956         * modules/ssize_t: New file.
81957
81958 2005-08-12  Simon Josefsson  <jas@extundo.com>
81959
81960         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81961
81962 2005-08-12  Simon Josefsson  <jas@extundo.com>
81963
81964         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81965         ssize_t.
81966
81967 2005-08-12  Simon Josefsson  <jas@extundo.com>
81968
81969         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81970         readline, getdelim and check_version.
81971         (Support for systems lacking ISO C 99: Sizes of integer types):
81972         Add size_max.
81973
81974 2005-08-12  Bruno Haible  <bruno@clisp.org>
81975
81976         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81977
81978 2005-08-11  Simon Josefsson  <jas@extundo.com>
81979
81980         * modules/readline: New file.
81981
81982         * modules/strnlen (Files): Add strnlen.h.
81983
81984 2005-08-11  Simon Josefsson  <jas@extundo.com>
81985
81986         * m4/readline.m4: New file.
81987
81988 2005-08-11  Simon Josefsson  <jas@extundo.com>
81989
81990         * lib/readline.h, readline.c: New file.
81991
81992 2005-08-11  Simon Josefsson  <jas@extundo.com>
81993
81994         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81995         gl_AVOID.
81996
81997 2005-08-11  Bruno Haible  <bruno@clisp.org>
81998
81999         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82000
82001 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82002
82003         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82004
82005 2005-08-10  Simon Josefsson  <jas@extundo.com>
82006
82007         * tests/test-iconvme.c: New file.
82008
82009 2005-08-10  Simon Josefsson  <jas@extundo.com>
82010
82011         * m4/strnlen.m4: New file.
82012
82013         * m4/strndup.m4: Don't check for strnlen declaration, done in
82014         strnlen.m4.
82015
82016 2005-08-10  Simon Josefsson  <jas@extundo.com>
82017
82018         * lib/strndup.c: Use strnlen.h.
82019
82020         * lib/strnlen.h: New file.
82021
82022 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82023
82024         * README: Typos.
82025
82026 2005-08-02  Simon Josefsson  <jas@extundo.com>
82027
82028         * modules/readline: New file.
82029
82030 2005-08-02  Simon Josefsson  <jas@extundo.com>
82031
82032         * modules/getdelim: New file.
82033
82034         * modules/getline: Rewrite, don't use getndelim2.
82035
82036 2005-08-02  Simon Josefsson  <jas@extundo.com>
82037
82038         * m4/getline.m4: Separate out getdelim stuff into separate module.
82039
82040         * m4/getdelim.m4: New file.
82041
82042 2005-08-02  Simon Josefsson  <jas@extundo.com>
82043
82044         * lib/getline.h, getline.c: Rewrite.
82045
82046         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82047
82048 2005-07-31  Bruno Haible  <bruno@clisp.org>
82049
82050         * lib/lock.h (gl_lock_initializer): New macro.
82051         (gl_lock_define_initialized): Use it.
82052         (gl_rwlock_initializer): New macro.
82053         (gl_rwlock_define_initialized): Use it.
82054         (gl_recursive_lock_initializer): New macro.
82055         (gl_recursive_lock_define_initialized): Use it.
82056
82057 2005-07-30  Karl Berry  <karl@gnu.org>
82058
82059         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82060         Report from Ben Pfaff, regarding getopt.
82061
82062 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82063
82064         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82065         normal way.
82066         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82067         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82068         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82069         (gl_GETOPT): Use the new macros.  Most of the implementation
82070         is moved to the new macros.  This is for programs like Emacs
82071         that don't want all the functionality of gl_GETOPT.
82072
82073 2005-07-26  Bruno Haible  <bruno@clisp.org>
82074
82075         * m4/lock.m4: Update from GNU gettext.
82076
82077 2005-07-26  Bruno Haible  <bruno@clisp.org>
82078
82079         * lib/lock.h: Update from GNU gettext.
82080         * lib/lock.c: Update from GNU gettext.
82081
82082 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82083
82084         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82085         obsolescent AC_TRY_RUN.  Include the default includes files, for
82086         'exit'.
82087
82088 2005-07-24  Bruno Haible  <bruno@clisp.org>
82089
82090         * modules/visibility: New file.
82091         * MODULES.html.sh (Misc): Add visibility.
82092
82093 2005-07-24  Bruno Haible  <bruno@clisp.org>
82094
82095         * m4/visibility.m4: New file.
82096
82097 2005-07-24  Bruno Haible  <bruno@clisp.org>
82098
82099         * doc/visibility.texi: New file.
82100
82101 2005-07-22  Bruno Haible  <bruno@clisp.org>
82102
82103         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82104         $(ALLOCA_H), redundant through BUILT_SOURCES.
82105         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82106         redundant through BUILT_SOURCES.
82107         * modules/byteswap (Makefile.am): Remove explicit dependency on
82108         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82109         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82110         $(FNMATCH_H), redundant through BUILT_SOURCES.
82111         * modules/getopt (Makefile.am): Remove explicit dependency on
82112         $(GETOPT_H), redundant through BUILT_SOURCES.
82113         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82114         redundant through BUILT_SOURCES.
82115         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82116         redundant through BUILT_SOURCES.
82117         * modules/stdbool (Makefile.am): Remove explicit dependency on
82118         $(STDBOOL_H), redundant through BUILT_SOURCES.
82119         * modules/stdint (Makefile.am): Remove explicit dependency on
82120         $(STDINT_H), redundant through BUILT_SOURCES.
82121         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82122         Remove explicit dependency on $(SYSEXITS_H).
82123         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82124
82125 2005-07-18  Simon Josefsson  <jas@extundo.com>
82126
82127         * lib/check-version.c (check_version): Accept identical versions too.
82128
82129 2005-07-18  Bruno Haible  <bruno@clisp.org>
82130
82131         * modules/lock: New file.
82132         * MODULES.html.sh (Multithreading): New section.
82133
82134 2005-07-18  Bruno Haible  <bruno@clisp.org>
82135
82136         * m4/lock.m4: New file, from GNU gettext.
82137
82138 2005-07-18  Bruno Haible  <bruno@clisp.org>
82139
82140         * lib/lock.h: New file, from GNU gettext.
82141         * lib/lock.c: New file, from GNU gettext.
82142
82143 2005-07-18  Bruno Haible  <bruno@clisp.org>
82144
82145         * lib/lock.h (gl_once_t): New type.
82146         (gl_once_define, gl_once): New macros.
82147         * lib/lock.c (fresh_once): New variable.
82148         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82149         functions.
82150
82151 2005-07-16  Simon Josefsson  <jas@extundo.com>
82152
82153         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82154         workaround, suggested by Bruno.
82155
82156 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82157
82158         * modules/xalloc (Depends-on): Add xalloc-die.
82159         * modules/xvasprintf (Depends-on): Add xalloc-die.
82160
82161 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82162
82163         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82164         with a minor change.
82165
82166 2005-07-15  Bruno Haible  <bruno@clisp.org>
82167
82168         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82169         When using lib/poll.c, define poll as rpl_poll.
82170
82171 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82172
82173         * modules/argp (Depends-on): Remove unlocked-io.
82174
82175 2005-07-14  Derek Price  <derek@ximbiot.com>
82176
82177         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82178         for glob symlink bug.
82179
82180 2005-07-14  Bruno Haible  <bruno@clisp.org>
82181
82182         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82183         Instead, test for *_unlocked function declarations directly.
82184
82185 2005-07-11  Simon Josefsson  <jas@extundo.com>
82186
82187         * modules/size_max: New file.
82188
82189         * modules/xsize: Depend on size_max module for size_max.m4.
82190
82191 2005-07-11  Simon Josefsson  <jas@extundo.com>
82192
82193         * lib/size_max.h: New file.
82194
82195 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82196
82197         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82198         copyright symbol and the year.
82199         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82200         (version_etc_va): Use parameterized copyright notice.
82201         Reword to conform to the current GNU coding standards.
82202
82203 2005-07-11  Karl Berry  <karl@gnu.org>
82204
82205         * doc/gnulib.texi (Quoting): new node.
82206         (Initial import): more info, from Patrice.
82207
82208 2005-07-11  Bruno Haible  <bruno@clisp.org>
82209
82210         * gnulib-tool (func_usage): Document option --avoid.
82211         (Command line options): Handle --avoid.
82212         (func_acceptable): New function.
82213         (func_modules_transitive_closure): Use it.
82214
82215 2005-07-11  Bruno Haible  <bruno@clisp.org>
82216
82217         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82218         Reported by Jim Meyering.
82219
82220 2005-07-10  Bruno Haible  <bruno@clisp.org>
82221
82222         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82223         Needed when size_t is smaller than 'unsigned int'.
82224         Reported by Paul Eggert.
82225
82226 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82227
82228         * modules/argp (Depends-on): Add unlocked-io
82229
82230 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82231
82232         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82233         block of defines.
82234
82235 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82236
82237         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82238         fix now.
82239
82240 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82241         and Paul Eggert  <eggert@cs.ucla.edu>
82242
82243         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82244         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82245
82246 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82247
82248         * modules/regex (Files): Add lib/regex_internal.c,
82249         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82250         (Depends-on): Add extensions.
82251         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82252
82253 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82254
82255         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82256         pathconf.
82257         * m4/same.m4 (gl_SAME): Likewise.
82258         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82259
82260         * m4/regex.m4: Adjust to new libc regex implementation.
82261         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82262         all the .c and .h parts of (the new) regex.
82263         Quote the m4 stuff better.
82264         Check for RE_ICASE bug of old gnulib.
82265         Check for REG_STARTEND of recent libc.
82266         Rename local variables from jm_* to gl_*.
82267         Quote operand of "test -f".
82268         Say "recent enough" version of libc, not "version 2".
82269         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82270         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82271         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82272         Remove check for btowc, isascii.
82273         Require AM_LANGINFO_CODESET.
82274
82275 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82276
82277         * lib/regex.c, regex.h: Sync from libc.
82278         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82279         * lib/regexec.c:
82280         New files, synced from libc, except that regex_internal.h
82281         currently has a small porting fix.
82282
82283 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82284
82285         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82286         regex_internal.c, regexec.c.
82287         Add regex_internal.h too, but as a comment, since the libc version
82288         is currently broken in gnulib mode.
82289
82290 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82291
82292         Support programs like Emacs that use gnulib but not gettext.
82293         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82294         * modules/gettext-h: New file.
82295         * modules/gettext (Files): Remove lib/gettext.h.
82296         (Depends-on): Add gettext-h.
82297         (Makefile.am): Remove lib_SOURCES.
82298         * modules/argmatch, modules/c-stack, modules/closeout:
82299         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82300         * modules/execute, modules/file-type, modules/getaddrinfo:
82301         * modules/getopt, modules/human, modules/javacomp:
82302         * modules/javaexec, modules/mkdir-p, modules/obstack:
82303         * modules/openat, modules/pagealign_alloc, modules/pipe:
82304         * modules/quotearg, modules/regex, modules/rpmatch:
82305         * modules/unicodeio, modules/userspec, modules/version-etc:
82306         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82307         * modules/xsetenv:
82308         Depend on gettext-h, not gettext.
82309
82310 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82311
82312         * gnulib-tool (func_import): Add support for 'public domain' license.
82313         * modules/alloca, modules/atexit, modules/memmove:
82314         Now public domain, not GPL.
82315         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82316         * modules/realloc, modules/strerror, modules/strtod:
82317         Now LGPL, not GPL.
82318
82319 2005-07-05  Bruno Haible  <bruno@clisp.org>
82320
82321         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82322         autoconf CVS. Needed for mingw.
82323
82324 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82325
82326         Remove the dependency of the strftime module on the tzset module.
82327         * modules/strftime (Depends-on): Remove dependency on tzset.
82328
82329 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82330
82331         Remove the dependency of the strftime module on the tzset module.
82332         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82333         gl_FUNC_TZSET_CLOBBER.
82334
82335 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82336
82337         Remove the dependency of the strftime module on the tzset module.
82338         * lib/strftime.c (my_strftime)
82339         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82340         Copy the input structure, to work around some of the bug with
82341         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82342         Solaris releases, you should also use the tzset module, but we won't
82343         require it as a dependency any more since we don't want LGPLed code
82344         to depend on GPLed code.
82345
82346 2005-07-02  Jim Meyering  <jim@meyering.net>
82347
82348         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82349         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82350         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82351         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82352
82353 2005-07-02  Jim Meyering  <jim@meyering.net>
82354
82355         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82356
82357 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82358
82359         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82360         declares only 'struct timespec;' (!).
82361
82362 2005-07-01  Jim Meyering  <jim@meyering.net>
82363
82364         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82365         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82366         * lib/save-cwd.c, tempname.c:
82367         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82368         and don't include <sys/file.h>).
82369
82370 2005-06-29  Jim Meyering  <jim@meyering.net>
82371
82372         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82373         type name.  Use the variable name instead.
82374         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82375         Likewise.
82376
82377 2005-06-28  Simon Josefsson  <jas@extundo.com>
82378
82379         * modules/check-version (Files): Add check-version.m4.
82380
82381 2005-06-28  Simon Josefsson  <jas@extundo.com>
82382
82383         * m4/check-version.m4: New file, suggested by Jim Meyering
82384         <jim@meyering.net>.
82385
82386 2005-06-28  Simon Josefsson  <jas@extundo.com>
82387
82388         * lib/check-version.h, lib/check-version.c: New files.
82389
82390 2005-06-28  Simon Josefsson  <jas@extundo.com>
82391
82392         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82393         collision with global variable.  Better indentation.  Don't
82394         increment buffer pointer beyond buffer end.  Based on comments
82395         from Paul Eggert <eggert@cs.ucla.edu>.
82396
82397         * lib/base64.h: Indent.
82398
82399 2005-06-28  Simon Josefsson  <jas@extundo.com>
82400
82401         * doc/gnulib.texi (Library version handling): New section.
82402
82403 2005-06-28  Jim Meyering  <jim@meyering.net>
82404
82405         * check-module (find_included_lib_files): Hard-code another
82406         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82407         but modules/fts-lgpl (correctly) does not list those files.
82408
82409         * modules/canonicalize (Files): Add lib/pathmax.h.
82410
82411 2005-06-25  Simon Josefsson  <jas@extundo.com>
82412
82413         * modules/check-version: New file.
82414
82415 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82416
82417         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82418         initializer of struct addrinfo, as an indication that we don't
82419         care how many members the structure has.
82420
82421 2005-06-24  Derek Price  <derek@ximbiot.com>
82422         and Bruno Haible  <bruno@clisp.org>
82423
82424         Remove stat module & update lstat.
82425         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82426         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82427         * m4/stat.m4: Remove this file.
82428
82429 2005-06-24  Derek Price  <derek@ximbiot.com>
82430         and Bruno Haible  <bruno@clisp.org>
82431
82432         Remove stat module & update lstat.
82433         * lib/stat.c: Remove this file...
82434         (slash_aware_lstat): ...moving this content and its support...
82435         * lib/lstat.c (rpl_lstat): ...into here.
82436         * lib/lstat.h: New file.
82437
82438 2005-06-24  Derek Price  <derek@ximbiot.com>
82439         and Bruno Haible  <bruno@clisp.org>
82440
82441         Remove stat module & update lstat.
82442         * config/srclist.txt (libc sources): Remove stat.
82443
82444 2005-06-24  Derek Price  <derek@ximbiot.com>
82445         and Bruno Haible  <bruno@clisp.org>
82446
82447         Remove stat module & update lstat.
82448         * MODULES.html.sh (stat): Remove.
82449         * MODULES.html: Regenerated.
82450         * modules/lstat (Description): Correct function name.
82451         (Files): Add "lstat.h".
82452         (Depends-on): Remove stat, add xalloc, stat-macros.
82453         * modules/stat: Remove this file.
82454         (Include): Add "lstat.h", remove <sys/stat.h>.
82455
82456 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82457
82458         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82459         (ranged_convert): Don't save conversion in a temporary struct.
82460         This causes a warning with GCC 4.0.0, and anyway in the typical
82461         case it's not worth the extra 100 bytes or so of code.
82462         (ranged_convert, __mktime_internal): When calling a function via a
82463         pointer P, use P () rather than (*P) (), as we now assume C89 or
82464         better.
82465
82466 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82467
82468         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82469         "who -r" failed to give output.  Problem reported by Tim Waugh.
82470
82471         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82472         (xcalloc): Use it to avoid needless tests.
82473         Problem reported by Jim Meyering.
82474
82475 2005-06-20  Derek Price  <derek@ximbiot.com>
82476
82477         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82478         unnecessary for Autoconfs > 2.59c.
82479
82480 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82481
82482         * lib/argp.h (__option_is_short): Check upper limit of
82483         __key. Isprint() requires its argument to have the value
82484         of an unsigned char or EOF.
82485
82486 2005-06-16  Jim Meyering  <jim@meyering.net>
82487
82488         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82489         when either N or S is zero.
82490
82491 2005-06-16  Derek Price  <derek@ximbiot.com>
82492
82493         * m4/bison.m4: Declare YACC & YFLAGS precious.
82494
82495 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82496
82497         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82498         multibyte string or pattern, fall back on unibyte matching.
82499         Problem reported by James Youngman.
82500
82501 2005-06-08  Bruno Haible  <bruno@clisp.org>
82502
82503         * modules/csharpcomp: New file.
82504         * MODULES.html.sh (C#): Add csharpcomp.
82505
82506 2005-06-08  Bruno Haible  <bruno@clisp.org>
82507
82508         * m4/csharpcomp.m4: New file, from GNU gettext.
82509
82510 2005-06-08  Bruno Haible  <bruno@clisp.org>
82511
82512         * lib/csharpcomp.h: New file, from GNU gettext.
82513         * lib/csharpcomp.c: New file, from GNU gettext.
82514         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82515
82516 2005-06-08  Bruno Haible  <bruno@clisp.org>
82517
82518         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82519         warning on mingw.
82520
82521 2005-06-07  Derek Price  <derek@ximbiot.com>
82522
82523         Sync from CVS.
82524         * lib/glob_.h: Indent nested #ifdef.
82525
82526 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82527
82528         Sync from coreutils.
82529         Use "file name" when talking about file names, instead of "filename"
82530         or "path", as per the GNU coding standards.
82531         * lib/mkdir-p.c: Renamed from makepath.c.
82532         (make_dir_parents): Renamed from make_path.  All callers changed.
82533         * lib/mkdir-p.h: Likewise.  All includers changed.
82534         * lib/filenamecat.c: Renamed from path-concat.c.
82535         (file_name_concat): Renamed from path_concat.  All callers changed.
82536         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82537         * lib/filenamecat.h: Likewise.  All includers changed.
82538         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82539         in comments or local variable names.
82540         * lib/basename.c: Likewise.
82541         * lib/canonicalize.c, canonicalize.h: Likewise.
82542         * lib/dirname.c, dirname.h: Likewise.
82543         * lib/euidaccess.c: Likewise.
82544         * lib/exclude.c: Likewise
82545         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82546         * lib/fsusage.c, fsuage.h: Likewise.
82547         * lib/fts.c, fts_.h: Likewise.
82548         * lib/getcwd.c: Likewise.
82549         * lib/getloadavg.c: Likewise.
82550         * lib/mkstemp.c: Likewise.
82551         * lib/mountlist.c, mountlist.h: Likewise.
82552         * lib/openat.c, openat.h: Likewise.
82553         * lib/readlink-stub.c: Likewise.
82554         * lib/readutmp.c, readutmp.h: Likewise.
82555         * lib/rename.c: Likewise.
82556         * lib/rmdir.c: Likewise.
82557         * lib/same.c: Likewise.
82558         * lib/savedir.c: Likewise.
82559         * lib/stripslash.c: Likewise.
82560         * lib/tempname.c: Likewise.
82561         * lib/xreadlink.c: Likewise.
82562         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82563         All uses changed.
82564         * lib/exclude.h: Likewise.
82565
82566         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82567         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82568         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82569         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82570         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82571         files have been getting away with it for years (MORE/BSD 4.3
82572         is extinct now).
82573         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82574         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82575
82576         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82577         Define to 256, not 255, as per modern POSIX.
82578
82579 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82580
82581         Sync from coreutils.
82582         Use "file name" when talking about file names, instead of "filename"
82583         or "path", as per the GNU coding standards.
82584         * MODULES.html.sh: mkdir-p renamed from makepath.
82585         filenamecat renamed from path-concat.
82586         * modules/filenamecat: Renamed from modules/path-concat.
82587         (Files): filenamecat.h and filenamecat.c renamed from
82588         path-concat.h and path-concat.c.
82589         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82590         (Include): filenamecat.h, not path-concat.h.
82591         * modules/mkdir-p: Renamed from modules/makepath.
82592         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82593         makepath.c.
82594         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82595         (Include): mkdir-p.h, not makepath.h.
82596
82597 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82598
82599         Sync from coreutils.
82600         * m4/mkdir-p.m4: Renamed from makepath.m4.
82601         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82602         Rename files from makepath.c to mkdir-p.c, and from
82603         makepath.h to mkdir-p.h.
82604         * m4/filenamecat.m4: Renamed from path-concat.m4.
82605         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82606         Rename files from path-concat.c to filenamecat.c,
82607         and from path-concat.h to filenamecat.h.
82608         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82609         "file name" in local variables or comments.
82610         * m4/rename.m4: Likewise.
82611
82612 2005-06-01  Bruno Haible  <bruno@clisp.org>
82613
82614         * modules/csharpexec: New file.
82615         * MODULES.html.sh (C#): New section.
82616
82617 2005-06-01  Bruno Haible  <bruno@clisp.org>
82618
82619         * m4/csharp.m4: New file, from GNU gettext.
82620         * m4/csharpexec.m4: New file, from GNU gettext.
82621
82622 2005-06-01  Bruno Haible  <bruno@clisp.org>
82623
82624         * lib/csharpexec.h: New file, from GNU gettext.
82625         * lib/csharpexec.c: New file, from GNU gettext.
82626         * lib/csharpexec.sh.in: New file, from GNU gettext.
82627
82628 2005-05-31  Derek Price  <derek@ximbiot.com>
82629             Paul Eggert  <eggert@cs.ucla.edu>
82630
82631         Sync from cvs.
82632         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82633
82634 2005-05-31  Derek Price  <derek@ximbiot.com>
82635             Paul Eggert  <eggert@cs.ucla.edu>
82636
82637         Sync from cvs.
82638         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82639
82640 2005-05-29  Derek Price  <derek@ximbiot.com>
82641
82642         * config/srclist.txt (glob_.h, glob.c): Add these files.
82643
82644 2005-05-29  Derek Price  <derek@ximbiot.com>
82645
82646         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82647         * modules/glob: New file.
82648         * modules/getlogin_r: Add link to POSIX spec in description.
82649
82650 2005-05-29  Derek Price  <derek@ximbiot.com>
82651             Paul Eggert  <eggert@cs.ucla.edu>
82652
82653         * m4/glob.m4: New file.
82654
82655 2005-05-29  Derek Price  <derek@ximbiot.com>
82656             Paul Eggert  <eggert@cs.ucla.edu>
82657
82658         * lib/glob_.h, lib/glob.c: New files.
82659
82660 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82661
82662         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82663         * modules/fts-lgpl (Depends-on): Remove gettext.
82664
82665 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82666
82667         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82668         and don't require gt_INTTYPES_PRI.
82669
82670 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82671
82672         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82673
82674         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82675         the configuration hassle isn't worth it.
82676         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82677         (LONGEST_MODIFIER, PRIuMAX): Remove.
82678
82679 2005-05-27  Bruno Haible  <bruno@clisp.org>
82680
82681         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82682
82683 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82684
82685         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82686         _POSIX_PTHREAD_SEMANTICS for Solaris.
82687
82688 2005-05-25  Derek Price  <derek@ximbiot.com>
82689
82690         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82691
82692 2005-05-25  Derek Price  <derek@ximbiot.com>
82693             Paul Eggert  <eggert@cs.ucla.edu>
82694
82695         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82696         * lib/getlogin_r.c, getlogin_r.h: New files.
82697
82698 2005-05-25  Bruno Haible  <bruno@clisp.org>
82699             Derek Price  <derek@ximbiot.com>
82700
82701         * lib/getlogin_r.h: Simplify API documentation.
82702
82703 2005-05-23  Derek Price  <derek@ximbiot.com>
82704
82705         * modules/minmax (Files): Add m4/minmax.m4.
82706         (configure.ac): Add gl_MINMAX.
82707
82708 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82709
82710         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82711         so that unistd-safer.h (GPL'ed code) need not be included.
82712
82713 2005-05-22  Bruno Haible  <bruno@clisp.org>
82714
82715         * m4/minmax.m4: New file.
82716         Based on a patch by Derek Price <derek@ximbiot.com>.
82717
82718 2005-05-22  Bruno Haible  <bruno@clisp.org>
82719
82720         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82721         (INT64_MIN): Fix definition.
82722         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82723
82724         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82725         NEED_SIGNED_INT_TYPES.
82726
82727         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82728         HAVE_SYSTEM_INTTYPES.
82729
82730 2005-05-22  Bruno Haible  <bruno@clisp.org>
82731
82732         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82733         Also include <sys/param.h> if it defines MIN, MAX.
82734         Based on a patch by Derek Price <derek@ximbiot.com>.
82735
82736 2005-05-21  Jim Meyering  <jim@meyering.net>
82737
82738         * modules/fts (Files): Add m4/inttypes-pri.m4.
82739         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82740
82741 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82742
82743         New fts module.
82744         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82745         (setup_dir, free_dir): New functions.
82746         (enter_dir, leave_dir): Define trivial
82747         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82748         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82749         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82750         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82751         Move to fts-cycle.c.
82752         (fts_open): Use setup_dir.
82753         (fts_close): Use free_dir.
82754         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82755         This adds a label and some gotos, but the alternatives were messier.
82756         Check for memory allocation failure when entering a dir.
82757         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82758         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82759         (FTS): New member fts_cycle, that is a union that contains the
82760         old active_dir_ht and cycle_state.  All uses changed to mention
82761         fts_cycle.ht and fts_cycle.state.
82762         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82763         fts.c, with the following changes:
82764         (setup_dir, free_dir): New functions.
82765         (enter_dir): Now returns bool.  Return true if successful, false
82766         if memory exhausted.  All callers changed.
82767         Do not bother partly cleaning up on
82768         memory allocation failure; that is free_dir's job.
82769         However, free ad if hash_insert fails, to avoid memory leak.
82770         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82771         fts->fts_options to see which union member to use.
82772
82773 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82774
82775         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82776         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82777
82778 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82779
82780         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82781
82782 2005-05-20  Jim Meyering  <jim@meyering.net>
82783
82784         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82785         Now a macro, to pacify GCC.
82786
82787 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82788
82789         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82790         of -1.
82791
82792 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82793
82794         * lib/chown.c (rpl_chown): Return -1 on failure.
82795
82796 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82797
82798         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82799         Don't check for stddef.h.
82800         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82801         don't use its results.
82802         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82803         since we include them unconditionally.  Don't require
82804         AM_STDBOOL_H, since stdbool is a prerequisite.
82805         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82806         since we assume C89 or better.
82807         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82808         as we don't use their results.
82809         Don't check for fchdir, memmove, memset, strrchr, as we use
82810         them unconditionally.
82811         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82812         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82813
82814 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82815
82816         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82817         Include <stddef.h> unconditionally, since we assume C89 now.
82818         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82819         * lib/fts.c: Include fts_.h first, to check interface.
82820         Do not include intprops.h; no longer needed.
82821         Include cycle-check.h and hash.h, since fts_.h no longer does.
82822         Remove unnecessary casts of closedir to void.
82823         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82824         decide whether to decrement nlinks.
82825         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82826         (FTS): Use struct hash_table * instead of Hash_table, so that
82827         we no longer need to include hash.h here.
82828
82829 2005-05-18  Jim Meyering  <jim@meyering.net>
82830
82831         * modules/dirfd (License): Change to LGPL.  Most of the code
82832         is already in the public domain.
82833
82834 2005-05-18  Jim Meyering  <jim@meyering.net>
82835
82836         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82837         Reported by Yoann Vandoorselaere.
82838
82839 2005-05-17  Jim Meyering  <jim@meyering.net>
82840
82841         * m4/fts.m4: New file, from coreutils.
82842
82843 2005-05-17  Jim Meyering  <jim@meyering.net>
82844
82845         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82846
82847 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82848
82849         Sync from coreutils.
82850         * m4/unlinkdir.m4: New file.
82851
82852 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82853
82854         Sync from coreutils.
82855         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82856         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82857         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82858         White space changes only.
82859         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82860         special.
82861         * lib/yesno.c: Include getline.h, not ctype.h.
82862         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82863         Use getline to remove arbitrary restriction on response length.
82864
82865 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82866
82867         * config/srclist-update: Spell out "Street" in FSF postal
82868         mail address; this is the style the FSF seems to prefer.
82869
82870         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82871         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82872         this updates FSF postal mail address.
82873
82874         Sync from coreutils.
82875         * modules/unlinkdir: New file.
82876         * modules/yesno (Depends-on): Add getline.
82877         * MODULES.html.sh (File system functions): Add unlinkdir.
82878
82879 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82880
82881         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82882         lib/strsep.h:
82883         Change the initial comment to refer to GPL, not LGPL.
82884         gnulib-tool will change it to LGPL as needed.
82885
82886         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82887         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82888         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82889         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82890         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82891         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82892         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82893         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82894         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82895         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82896         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82897         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82898         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82899         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82900         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82901         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82902         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82903         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82904         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82905         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82906         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82907         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82908         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82909         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82910         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82911         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82912         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82913         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82914         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82915         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82916         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82917         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82918         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82919         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82920         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82921         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82922         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82923         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82924         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82925         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82926         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82927         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82928         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82929         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82930         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82931         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82932         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82933         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82934         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82935         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82936         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82937         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82938         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82939         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82940         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82941         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82942         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82943         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82944         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82945         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82946         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82947         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82948         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82949         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82950         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82951         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82952         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82953         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82954         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82955         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82956         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82957         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82958         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82959         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82960         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82961         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82962         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82963         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82964         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82965         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82966         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82967         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82968         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82969         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82970         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82971         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82972         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82973         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82974         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82975         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82976         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82977         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82978         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82979         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82980         lib/yesno.c, lib/yesno.h:
82981         Update FSF postal mail address.
82982
82983 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82984
82985         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82986         tests/test-memmem.c, tests/test-stpncpy.c:
82987         Update FSF postal mail address.
82988
82989 2005-05-13  Bruno Haible  <bruno@clisp.org>
82990
82991         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82992         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82993         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82994         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82995         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82996         Add support for 64-bit integers in the MSVC compiler.
82997
82998 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82999
83000         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83001
83002 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83003
83004         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83005
83006 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83007
83008         * doc/getdate.texi (General date syntax): Don't say that date
83009         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83010         Problem reported by Nic Ferrier.
83011
83012 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83013
83014         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83015         specified in ai_socktype. Fix invalid ai_protocol
83016         check. ai_protocol is usually set to 0 or depending on
83017         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83018         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83019         ai_socktype / ai_protocol in the returned addrinfo structure.
83020
83021 2005-05-10  Simon Josefsson  <jas@extundo.com>
83022
83023         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83024         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83025
83026 2005-05-10  Karl Berry  <karl@gnu.org>
83027
83028         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83029         (from http://www.gnu.org/licenses).
83030         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83031         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83032         fdl.texi suffices.
83033
83034 2005-05-10  Karl Berry  <karl@gnu.org>
83035
83036         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83037         (COPYING.DOC): remove.
83038
83039         * config/srclist-update: new FSF address.
83040
83041 2005-05-10  Derek Price  <derek@ximbiot.com>
83042
83043         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83044         possible.
83045
83046 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83047             Bruno Haible  <bruno@clisp.org>
83048
83049         * modules/inet_ntop: New file.
83050         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83051         inet_ntop.
83052
83053 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83054             Bruno Haible  <bruno@clisp.org>
83055
83056         * m4/inet_ntop.m4: New file.
83057
83058 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83059             Bruno Haible  <bruno@clisp.org>
83060
83061         * lib/inet_ntop.h: New file.
83062         * lib/inet_ntop.c: New file, from glibc with modifications.
83063
83064 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83065
83066         * modules/time_r (License): Change to LGPL.
83067         * modules/extensions (License): Change to LGPL.  Actually,
83068         the license is more permissive than that, but currently gnulib-tool
83069         doesn't know how to handle more-permissive licenses.
83070
83071         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83072         Problem reported by Dave Love.
83073
83074 2005-05-08  Jim Meyering  <jim@meyering.net>
83075
83076         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83077         blank.
83078
83079 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83080
83081         * modules/argmatch (Depends-on): Add stdbool.
83082         * modules/backupfile (Depends-on): Likewise.
83083         * modules/chdir-long (Depends-on): Likewise.
83084         * modules/closeout (Depends-on): Likewise.
83085         * modules/cycle-check (Depends-on): Likewise.
83086         * modules/dirname (Depends-on): Likewise.
83087         * modules/fnmatch (Depends-on): Likewise.
83088         * modules/fsusage (Depends-on): Likewise.
83089         * modules/fwriteerror (Depends-on): Likewise.
83090         * modules/getcwd (Depends-on): Likewise.
83091         * modules/getloadavg (Depends-on): Likewise.
83092         * modules/hard-locale (Depends-on): Likewise.
83093         * modules/makepath (Depends-on): Likewise.
83094         * modules/mountlist (Depends-on): Likewise.
83095         * modules/nanosleep (Depends-on): Likewise.
83096         * modules/posixtm (Depends-on): Likewise.
83097         * modules/quotearg (Depends-on): Likewise.
83098         * modules/readtokens (Depends-on): Likewise.
83099         * modules/readtokens0 (Depends-on): Likewise.
83100         * modules/readutmp (Depends-on): Likewise.
83101         * modules/save-cwd (Depends-on): Likewise.
83102         * modules/strftime (Depends-on): Likewise.
83103         * modules/userspec (Depends-on): Likewise.
83104         * modules/utimecmp (Depends-on): Likewise.
83105         * modules/xgetcwd (Depends-on): Likewise.
83106         * modules/xnanosleep (Depends-on): Likewise.
83107         * modules/xstrtod (Depends-on): Likewise.
83108         * modules/yesno (Depends-on): Likewise.
83109
83110 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83111
83112         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83113         needless checks.
83114
83115 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83116
83117         Merge from coreutils.  Among other things,
83118         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83119         * lib/fd-safer.c: New file.
83120         * lib/fcntl-safer.h, open-safer.c: Remove.
83121         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83122         * lib/dup-safer.c: Include unistd-safer.h first.
83123         Don't include errno.h.
83124         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83125         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83126         * lib/file-type.c: Rely on file-type.h change.
83127         * lib/getloadavg.c: Include unistd-safer.h.
83128         (getloadavg): Use safer open.
83129         * lib/getusershell.c: Include "stdio-safer.h".
83130         (getusershell): Use safer fopen.
83131         * lib/long-options.c (long_options): Use NULL rather than 0.
83132         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83133         'free'.
83134         * lib/modechange.c: Likewise.
83135         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83136         (MODE_DONE): New constant.
83137         (struct mode_change): Remove 'next' member.
83138         (make_node_op_equals): New function; like the old one of the
83139         same name, except it allocates an array.
83140         (mode_compile, mode_create_from_ref): Use it.
83141         (mode_compile): Allocate result as an array, not a linked list.
83142         Parse octal string ourself, so that we catch mistakes like "+0".
83143         (mode_adjust): Arg is an array, not a linked list.
83144         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83145         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83146         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83147         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83148         Remove.  This is now stat-macros.h's job.
83149         (talloc): Remove.  All callers replaced by xalloc, so that
83150         our invokers don't have to worry about reporting memory failures.
83151         (make_node_op_equals): Remove.
83152         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83153         New constants.
83154         (struct mode_change): Moved here from modechange.h.
83155         (mode_append_entry): Remove.
83156         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83157         apps to have incorrect behavior.  Use simpler algorithm for head
83158         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83159         Detect more invalid usages rather than having somewhat-random behavior.
83160         Don't insert an "a=" action, as that leads to incorrect behavior.
83161         (mode_compile, mode_create_from_ref): Return NULL on error instead
83162         of an enum, since now there's only one way to have an error.  All
83163         callers changed.
83164         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83165         at the correct time.  Simplify calculation of "+u" and its ilk.
83166         Don't mishandle "+X".
83167         (mode_free): Remove "register" and localize decls.
83168         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83169         (struct mode_change): Move to modechange.c; callers don't
83170         need to see this stuff.
83171         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83172         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83173         (mode_change, mode_adjust): Reflect the new signatures noted above.
83174         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83175         that might redefine system include files.
83176         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83177         (my_usleep): Use NULL rather than (void *) 0.
83178         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83179         Use siginterrupt to specify that system calls should be interrupted.
83180         (rpl_nanosleep): Move initialization of suspended closer to call of
83181         my_usleep.
83182         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83183         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83184         (desirable_utmp_entry): New function.
83185         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83186         using x2nrealloc, to simplify logic.
83187         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83188         size calculation.  Do not assume utmp file is a regular file.
83189         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83190         (READ_UTMP_CHECK_PIDS): New constant.
83191         * lib/save-cwd.c: Include unistd-safer.h.
83192         (save_cwd): Use fd_safer.
83193         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83194         [!_LIBC] Include "stat-macros.h" instead.
83195         * lib/unistd-safer.h (fd_safer): New decl.
83196
83197 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83198
83199         * modules/getloadavg (Depends-on): Add unistd-safer.
83200         * modules/getusershell (Depends-on): Add stdio-safer.
83201         * modules/lstat (Depends-on): Remove xalloc.
83202         * modules/mkstemp (Depends-on): Add stat-macros.
83203         * modules/modechange (Depends-on): Remove xstrtol.
83204         Add stat-macros, xalloc.
83205         * modules/save-cwd (Depends-on): Add unistd-safer.
83206         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83207         * modules/unistd-safer (Files): Add lib/fd-safer.c
83208         (Makefile.am): Remove lib_SOURCES.
83209
83210         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83211         Remove fcntl-safer; unistd-safer supersedes it.
83212
83213 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83214
83215         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83216         AC_HEADER_STAT.
83217         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83218         (gl_PREREQ_CHOWN): Remove.
83219         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83220         it.  Don't require AC_HEADER_STAT.
83221         (gl_PREREQ_LSTAT): Remove.
83222         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83223         Don't require AC_HEADER_STAT.
83224         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83225         (gl_PREREQ_RMDIR): Remove.
83226         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83227         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83228         the stat-macros module a prerequisite.
83229         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83230         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83231         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83232         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83233         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83234         variable names.
83235         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83236         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83237         variable prefixes.
83238         * m4/fcntl-safer.m4: Remove.
83239         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83240         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83241         Invoke gl_PREREQ_FD_SAFER.
83242         (gl_PREREQ_FD_SAFER): New macro.
83243         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83244         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83245         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83246         Remove duplicate call to AC_LIBOBJ(readutmp).
83247         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83248
83249         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83250         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83251
83252 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83253
83254         * MODULES.html.sh (Misc): Add byteswap.
83255
83256 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83257
83258         * modules/getcwd (Depends-on): Add extensions.
83259         * modules/openat (Depends-on): Likewise.
83260
83261 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83262
83263         * modules/byteswap: New file.
83264
83265 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83266
83267         * m4/byteswap.m4: New file.
83268
83269 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83270
83271         * lib/byteswap_.h: New file.
83272
83273 2005-04-25  Karl Berry  <karl@gnu.org>
83274
83275         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83276
83277 2005-04-25  Albert Chin  <china@thewrittenword.com>
83278
83279         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83280         Toolkit C bug.
83281
83282 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83283
83284         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83285         (func_ln_if_changed): Remove forcibly for no error message
83286         in case file does not exist.
83287
83288 2005-04-19  Simon Josefsson  <jas@extundo.com>
83289
83290         * gnulib-tool (Options): Make --symlink mean --symbolic.
83291
83292 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83293
83294         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83295
83296 2005-04-16  Simon Josefsson  <jas@extundo.com>
83297
83298         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83299
83300 2005-04-15  Simon Josefsson  <jas@extundo.com>
83301
83302         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83303
83304 2005-04-15  Simon Josefsson  <jas@extundo.com>
83305
83306         * gnulib-tool: Rename --symlink to --symbolic.
83307
83308 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83309
83310         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83311         symbolic links to files instead of copying/moving.  Add --aux-dir,
83312         specifying directory relative --dir where auxiliary build tools
83313         are placed.
83314
83315 2005-04-14  Bruno Haible  <bruno@clisp.org>
83316
83317         * modules/allocsa (License): Change to LGPL.
83318         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83319
83320 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83321
83322         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83323         that "UTC +1 second" continues to work.  Problem reported
83324         by Dmitry V. Levin.
83325         (relunit_snumber): New rule.
83326         (relunit): Use it.
83327
83328 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83329
83330         * lib/getdate.y (universal_time_zone_table): New constant.
83331         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83332         universal_time_zone_table.
83333         (lookup_zone): Prefer universal_time_zone_table to
83334         local_time_zone_table, so that "GMT" time stamps are allowed in
83335         London during the summer.  Problem reported by Ian Abbott.
83336
83337 2005-04-12  Jim Meyering  <jim@meyering.net>
83338
83339         * lib/human.c (humblock): Set *options even when returning due to
83340         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83341         warning from gcc-4.
83342
83343 2005-04-09  Jim Meyering  <jim@meyering.net>
83344
83345         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83346         -Wuninitialized: initialize tm0.tm_year.
83347
83348 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83349
83350         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83351         count, since there's no maximum.  All uses changed.
83352         Add member dsts_seen.
83353         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83354         not being INT_MAX.
83355         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83356         Use pc_rels_seen to decide whther a date is absolute.
83357
83358         * lib/getdate.y (number): Don't overwrite year.
83359         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83360         check.
83361
83362 2005-04-02  Simon Josefsson  <jas@extundo.com>
83363
83364         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83365         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83366
83367 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83368
83369         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83370         where no absolute path name can be longer than PATH_MAX.
83371
83372 2005-03-27  Jim Meyering  <jim@meyering.net>
83373
83374         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83375
83376 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83377
83378         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83379         "one's complement" -> "ones' complement" in comment, as per Knuth.
83380         "value of type" -> "type or expression" in comment.
83381         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83382
83383 2005-03-26  Jim Meyering  <jim@meyering.net>
83384
83385         Comment nits.
83386         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83387         Correct typos: s/or/of/.
83388
83389 2005-03-26  Jim Meyering  <jim@meyering.net>
83390
83391         * modules/check-include-files: Move to ../ and rename to...
83392         * check-module: ...this.
83393
83394 2005-03-25  Jim Meyering  <jim@meyering.net>
83395
83396         * modules/xvasprintf (Files): Add xalloc.h.
83397
83398 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83399
83400         * modules/gettext (Files): config/config.rpath ->
83401         build-aux/config.rpath
83402         * modules/iconv (Files): Likewise.
83403         Problem reported by Oskar Liljeblad.
83404
83405 2005-03-23  Jim Meyering  <jim@meyering.net>
83406
83407         * modules/check-include-files: New script to check for
83408         missing dependencies, multiple includes, etc.
83409
83410         * modules/c-strtold (Depends-on): Add xalloc.
83411         * modules/c-strtod (Depends-on): Add xalloc.
83412         * modules/hash (Depends-on): Add xalloc.
83413         (Files): Remove lib/xalloc.h.
83414
83415         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83416         * modules/userspec (Files): Add lib/inttostr.h.
83417
83418 2005-03-23  Jim Meyering  <jim@meyering.net>
83419
83420         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83421
83422 2005-03-22  Jim Meyering  <jim@meyering.net>
83423
83424         * modules/stat-macros: New module.
83425         * modules/canonicalize, modules/euidaccess, modules/file-type,
83426         * modules/filemode, modules/lchown, modules/makepath,
83427         * modules/rmdir, modules/stat: Depend on new stat-macros module
83428         rather than listing lib/stat-macros.h manually.
83429         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83430
83431 2005-03-22  Jim Meyering  <jim@meyering.net>
83432
83433         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83434
83435 2005-03-22  Bruno Haible  <bruno@clisp.org>
83436
83437         * config/srclist.txt: Replace target directory 'config' with
83438         'build-aux'.
83439         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83440         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83441         ../build-aux/.
83442
83443 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83444
83445         * modules/chdir-long (Depends-on): Add mempcpy.
83446
83447         * modules/acl, modules/backupfile, modules/c-strtod,
83448         modules/c-strtold, modules/canon-host, modules/canonicalize,
83449         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83450         modules/exclude, modules/exitfail, modules/file-type,
83451         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83452         modules/getdate, modules/getline, modules/getpagesize,
83453         modules/getpass, modules/getugroups, modules/group-member,
83454         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83455         modules/inttostr, modules/long-options, modules/makepath,
83456         modules/md5, modules/memcasecmp, modules/memcoll,
83457         modules/modechange, modules/mountlist, modules/path-concat,
83458         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83459         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83460         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83461         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83462         modules/strftime, modules/strndup, modules/strverscmp,
83463         modules/timespec, modules/unlocked-io, modules/userspec,
83464         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83465         modules/yesno:
83466         Remove lib_SOURCES line from Makefile.am section, as this is now
83467         done automatically by the corresponding Autoconf macro.
83468
83469 2005-03-21  Jim Meyering  <jim@meyering.net>
83470
83471         Changes imported from coreutils.
83472
83473         * lib/cycle-check.c: Don't include xalloc.h.
83474
83475         * lib/path-concat.c: Don't include assert.h.
83476         (path_concat): Remove assertion that would have triggered
83477         for ABASE starting with more than one slash.
83478         Reported by Andreas Schwab.
83479
83480         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83481         properly when ABASE is an absolute file name.
83482         Correct the description of this function.
83483         Include <assert.h>.
83484         Add an assertion and a test driver.
83485         This fixes a bug introduced on 2004-07-02.
83486         Andreas Schwab reported the resulting failure of cp --parents:
83487         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83488
83489 2005-03-21  Jim Meyering  <jim@meyering.net>
83490
83491         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83492         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83493
83494 2005-03-21  Jim Meyering  <jim@meyering.net>
83495         and  Paul Eggert  <eggert@cs.ucla.edu>
83496
83497         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83498         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83499         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83500         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83501         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83502         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83503         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83504         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83505         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83506         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83507         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83508         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83509         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83510         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83511         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83512         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83513         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83514         for these modules.
83515
83516 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83517
83518         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83519         (which shouldn't happen), generate nothing instead of returning 0
83520         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83521
83522 2005-03-16  Bruno Haible  <bruno@clisp.org>
83523
83524         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83525         HAVE_LONGLONG_64BIT.
83526
83527 2005-03-16  Bruno Haible  <bruno@clisp.org>
83528
83529         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83530         HAVE_LONGLONG_64BIT.
83531
83532 2005-03-16  Bruno Haible  <bruno@clisp.org>
83533
83534         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83535         HAVE_LONGLONG_64BIT.
83536
83537 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83538
83539         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83540         reliably distinguish strftime failure from empty output on POSIX
83541         hosts.
83542
83543 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83544
83545         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83546         (iconv_string): Don't guess a size-zero buffer, as that might cause
83547         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83548         result would be 'too large', where 'too large' is (heuristically)
83549         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83550         overflow concerns.  This will prevent some unwanted malloc failures
83551         when the inputs are very large.
83552
83553 2005-03-15  Karl Berry  <karl@gnu.org>
83554
83555         * config/srclist.txt (config.rpath): from gettext.
83556         * config/config.rpath: update.
83557
83558 2005-03-15  Bruno Haible  <bruno@clisp.org>
83559
83560         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83561         to 'negate'.
83562
83563         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83564         variable.
83565
83566         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83567         results.
83568
83569 2005-03-14  Simon Josefsson  <jas@extundo.com>
83570
83571         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83572         <fx@gnu.org>.
83573
83574 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83575
83576         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83577         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83578         intprops.h.
83579         * lib/strtol.c: Likewise.
83580
83581 2005-03-14  Jim Meyering  <jim@meyering.net>
83582
83583         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83584         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83585         to be nonzero so that we (and caller) can detect the difference
83586         between a valid zero-length expansion and an error return, even
83587         when the underlying strftime fails before writing anything into
83588         that location.
83589
83590 2005-03-14  Bruno Haible  <bruno@clisp.org>
83591
83592         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83593         Update from GNU gettext 0.14.3.
83594
83595 2005-03-10  Jim Meyering  <jim@meyering.net>
83596
83597         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83598
83599 2005-03-10  Jim Meyering  <jim@meyering.net>
83600
83601         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83602         so that this module works on systems without fchdir.
83603
83604 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83605
83606         Factor int-properties macros into a single file, except for
83607         glibc-related files.
83608         * lib/intprops.h: New file.
83609         * lib/getloadavg.c: Include it instead of limits.h.
83610         (INT_STRLEN_BOUND): Remove.
83611         * lib/human.c: Include intprops.h.
83612         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83613         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83614         302/1000.
83615         * lib/inttostr.h: Include intprops.h instead of limits.h.
83616         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83617         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83618         for consistency with intprops.h.
83619         (time_t_is_integer, twos_complement_arithmetic): Use them.
83620         * lib/sig2str.h: Include <signal.h>, intprops.h.
83621         (INT_STRLEN_BOUND): Remove.
83622         * lib/strftime.c (TYPE_SIGNED): Remove.
83623         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83624         * lib/strtol.c: Adjust comments to match intprops.h.
83625         * lib/userspec.c: Include intprops.h.
83626         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83627         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83628         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83629         instead of rolling our own expressions.
83630         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83631
83632         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83633         instead of int.
83634         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83635         the right thing even if adding 1900 would overflow.  Similarly
83636         for tm_mon + 1 and tm_yday + 1.
83637         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83638         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83639         (DO_SIGNED_NUMBER): New macro.
83640         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83641
83642 2005-03-07  Bruno Haible  <bruno@clisp.org>
83643
83644         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83645
83646 2005-03-07  Bruno Haible  <bruno@clisp.org>
83647
83648         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83649
83650 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83651
83652         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83653         (func_import): Only replace files via --import when they have actually
83654         changed.
83655
83656 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83657
83658         * m4/mmap-anon.m4: New file.
83659         * m4/pagealign_alloc.m4: New file.
83660
83661 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83662             Bruno Haible  <bruno@clisp.org>
83663
83664         * modules/pagealign_alloc: New file.
83665         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83666
83667 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83668             Bruno Haible  <bruno@clisp.org>
83669
83670         * lib/pagealign_alloc.h: New file.
83671         * lib/pagealign_alloc.c: New file.
83672
83673 2005-03-03  Bruno Haible  <bruno@clisp.org>
83674
83675         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83676         Use an all-permissive copyright notice, recommended by RMS.
83677
83678 2005-03-02  Bruno Haible  <bruno@clisp.org>
83679
83680         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83681         of AIX, the replacement has to be done only after <string.h> is
83682         included, therefore not in config.h. stpncpy.h does the replacement,
83683         and stpncpy.c uses it.
83684
83685 2005-03-02  Bruno Haible  <bruno@clisp.org>
83686
83687         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83688         stpncpy.c uses it.
83689
83690 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83691
83692         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83693         The workaround isn't strictly needed for POSIX conformance, and
83694         it's too much of a pain to configure and maintain.  We'll ask
83695         people to fix their kernels instead.
83696         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83697         (NANOSLEEP_BUG_WORKAROUND): Remove.
83698         (xnanosleep): Remove the workaround.
83699
83700 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83701
83702         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83703         Reported by Derek Price.
83704         (Include): Add "timespec.h".
83705
83706         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83707
83708 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83709
83710         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83711         to detect nanosleep bug.
83712
83713 2005-03-01  Bruno Haible  <bruno@clisp.org>
83714
83715         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83716
83717 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83718
83719         * modules/gethrxtime: New file.
83720         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83721         (Depends-on): Add gethrxtime.
83722         (configure.ac): Add gl_XNANOSLEEP.
83723         (Makefile.am): Remove lib_SOURCES line.
83724
83725 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83726
83727         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83728         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83729
83730 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83731
83732         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83733         * lib/timespec.h (gettime): Return void, since it always
83734         succeeds now.  All uses changed.
83735         * lib/gettime.c (gettime): Likewise.
83736         [HAVE_NANOTIME]: Prefer nanotime.
83737         Assume gettimeofday succeeds, as POSIX requires.
83738         Assime time () succeeds, since other code already does.
83739         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83740         (timespec_subtract): Remove.
83741         (NANOSLEEP_BUG_WORKAROUND): New constant.
83742         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83743         things considerably.  Use it only on GNU/Linux hosts, since the
83744         workaround shouldn't be needed elsewhere.
83745
83746 2005-02-24  Bruno Haible  <bruno@clisp.org>
83747
83748         * modules/gettext (Files): Add m4/glibc2.m4.
83749
83750 2005-02-24  Bruno Haible  <bruno@clisp.org>
83751
83752         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83753         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83754         * m4/progtest.m4:
83755         Update from GNU gettext 0.14.2.
83756         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83757
83758 2005-02-24  Bruno Haible  <bruno@clisp.org>
83759
83760         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83761         * lib/config.charset: Update from GNU gettext 0.14.2.
83762
83763 2005-02-24  Bruno Haible  <bruno@clisp.org>
83764
83765         * lib/gettext.h: Update from GNU gettext 0.14.2.
83766
83767 2005-02-23  Simon Josefsson  <jas@extundo.com>
83768
83769         * m4/iconvme.m4: New file.
83770
83771 2005-02-23  Jim Meyering  <jim@meyering.net>
83772
83773         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83774         change.
83775         Thanks to Bruno Haible for catching it.
83776
83777 2005-02-22  Simon Josefsson  <jas@extundo.com>
83778
83779         * modules/iconvme: New file.
83780
83781         * MODULES.html.sh: Add iconvme.
83782
83783 2005-02-22  Simon Josefsson  <jas@extundo.com>
83784
83785         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83786
83787 2005-02-22  Simon Josefsson  <jas@extundo.com>
83788
83789         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83790
83791 2005-02-22  Jim Meyering  <jim@meyering.net>
83792
83793         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83794         s/ifndef/ifdef/.
83795
83796 2005-02-20  Neil Conway  <neilc@samurai.com>
83797
83798         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83799         returned by OSX/Darwin if the specified buffer is not large
83800         enough for the hostname.
83801
83802 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83803
83804         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83805         pass it to _help, otherwise the latter coredumps trying to
83806         dereference state.root_argp.
83807
83808 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83809
83810         * modules/chdir-long (Depends-on): Add memrchr.
83811         * modules/memrchr (Files): Add lib/memrchr.h.
83812         (Include): "memrchr.h".
83813
83814 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83815
83816         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83817
83818 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83819
83820         * lib/memrchr.h: New file.
83821         * lib/chdir-long.c: Include it.
83822         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83823         Don't bother including stddef.h.
83824
83825 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83826
83827         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83828         inclusion.
83829         Include <sys/types.h>, for dev_t.
83830         (ME_DUMMY, ME_REMOTE): Move from here....
83831         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83832         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83833         Dmitry V. Levin.
83834         Include mountlist.h first, to test the interface.
83835
83836 2005-01-29  Bruno Haible  <bruno@clisp.org>
83837
83838         * lib/progname.c (program_name): Initialize.
83839         Needed when linking statically on MacOS X.
83840
83841 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83842
83843         Sync from coreutils.
83844         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83845         (Depends-on): Add c-strtod.
83846         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83847
83848 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83849
83850         Sync from coreutils.
83851         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83852
83853         Remove files that are specific to coreutils.
83854         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83855
83856 2005-01-28  Bruno Haible  <bruno@clisp.org>
83857
83858         * modules/javacomp: New file.
83859         * MODULES.html.sh (Java): Add javacomp.
83860
83861 2005-01-28  Bruno Haible  <bruno@clisp.org>
83862
83863         * m4/javacomp.m4: New file, from GNU gettext.
83864
83865 2005-01-28  Bruno Haible  <bruno@clisp.org>
83866
83867         * lib/javacomp.sh.in: New file, from GNU gettext.
83868         * lib/javacomp.h: New file, from GNU gettext.
83869         * lib/javacomp.c: New file, from GNU gettext.
83870
83871 2005-01-26  Simon Josefsson  <jas@extundo.com>
83872
83873         * lib/gai_strerror.c: Use GPL in header.
83874
83875 2005-01-26  Bruno Haible  <bruno@clisp.org>
83876
83877         * modules/javaexec: New file.
83878         * MODULES.html.sh (Java): Add javaexec.
83879
83880 2005-01-26  Bruno Haible  <bruno@clisp.org>
83881
83882         * m4/javaexec.m4: New file, from GNU gettext.
83883
83884 2005-01-26  Bruno Haible  <bruno@clisp.org>
83885
83886         * lib/javaexec.sh.in: New file, from GNU gettext.
83887         * lib/javaexec.h: New file, from GNU gettext.
83888         * lib/javaexec.c: New file, from GNU gettext.
83889
83890 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83891
83892         * modules/lchown (Depends-on): Remove lchown.h
83893
83894 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83895
83896         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83897         must be defined if the header file was not found, in order
83898         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83899
83900 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83901
83902         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83903         initializers for struct pentry_state.
83904         (__argp_error): Check return value of __asprintf
83905         (__argp_failure): Translate error message
83906
83907         * lib/argp-parse.c: Removed braces around the expansion of N_()
83908
83909 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83910
83911         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83912         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83913         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83914         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83915         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83916         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83917         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83918         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83919         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83920         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83921         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83922         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83923         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83924         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83925         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83926         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83927         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83928         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83929         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83930         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83931         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83932         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83933         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83934         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83935         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83936         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83937         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83938         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83939         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83940         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83941         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83942         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83943         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83944         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83945         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83946         Use an all-permissive copyright notice, recommended by RMS.
83947
83948 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83949
83950         * modules/chdir-long (Depends-on): Remove mempcpy.
83951
83952 2005-01-21  Jim Meyering  <jim@meyering.net>
83953
83954         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83955         same value as for Solaris 9.
83956
83957         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83958         component length.  This included changing the parameter to be
83959         of type `char *' rather than `char const *'.
83960         * lib/chdir-long.h (chdir_long): Update prototype.
83961
83962         * lib/openat.c (fdopendir, fstatat): New functions.
83963         * lib/openat.h: Include headers required for use of DIR and struct
83964         stat.
83965         [AT_SYMLINK_NOFOLLOW]: Define.
83966         (fdopendir, fstatat): Add prototypes.
83967
83968 2005-01-21  Bruno Haible  <bruno@clisp.org>
83969
83970         * modules/classpath: New file.
83971         * MODULES.html.sh (Java): Add classpath.
83972
83973 2005-01-21  Bruno Haible  <bruno@clisp.org>
83974
83975         * lib/classpath.h: New file, from GNU gettext.
83976         * lib/classpath.c: New file, from GNU gettext.
83977
83978 2005-01-20  Simon Josefsson  <jas@extundo.com>
83979
83980         * modules/version-etc-fsf: New file.
83981
83982 2005-01-20  Simon Josefsson  <jas@extundo.com>
83983
83984         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83985         * lib/version-etc.c: Remove version_etc_copyright.
83986         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83987         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83988
83989 2005-01-20  Simon Josefsson  <jas@extundo.com>
83990
83991         * lib/base64.h (isbase64): Add.
83992
83993         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83994         using a unsigned prototype, don't inline.
83995         (base64_decode): Use it.
83996
83997 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83998
83999         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84000         it.
84001
84002 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84003
84004         * lib/save-cwd.c (save_cwd): Remove code to support the case
84005         where fchdir is missing or flaky.
84006
84007 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84008
84009         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84010
84011 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84012
84013         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84014         AC_LIBSOURCES now does this.
84015         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84016         with new ullong_max module.
84017
84018 2005-01-19  Bruno Haible  <bruno@clisp.org>
84019
84020         * modules/sh-quote: New file.
84021         * MODULES.html.sh (Executing programs): Add sh-quote.
84022
84023 2005-01-19  Bruno Haible  <bruno@clisp.org>
84024
84025         * lib/sh-quote.h: New file, from GNU gettext.
84026         * lib/sh-quote.c: New file, from GNU gettext.
84027
84028 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84029
84030         Merge from coreutils.
84031         * m4/ullong_max.m4: New file.
84032         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84033         (gl_MACROS): Assume localeconv exists.
84034
84035 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84036
84037         Merge changes from coreutils, as described below in several
84038         changelogs dated today.
84039
84040         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84041         (O_DIRECTORY): Remove; not needed here, since "." must be
84042         a directory.  All uses removed.
84043         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84044         universal on Suns, and we also need to test for IRIX.
84045         Revamp code to use 'if' rather than '#if'.
84046         Avoid unnecessary comparison of cwd->desc to 0.
84047
84048         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84049         for known valid error numbers rather than observed invalid ones.
84050
84051 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84052
84053         * modules/ullong_max: New file.
84054
84055         * modules/chdir-long, modules/openat: New files.
84056         * modules/save-cwd (Depends-on): Depend on chdir-long.
84057         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84058
84059 2005-01-18  Jim Meyering  <jim@meyering.net>
84060
84061         Merge from coreutils.
84062         * m4/chdir-long.m4, m4/openat.m4: New files.
84063         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84064         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84065         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84066         is sane and DOES follow symlinks.  Besides, testing 20 different
84067         systems found no broken chown implementations.
84068         Prompted by a change in rsync's copy of this macro.
84069         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84070
84071         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84072
84073         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84074         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84075         NULL-means-set-to-current-time semantics.
84076         Remove temporary file immediately, rather than waiting
84077         for configure's at-exit trap code to do it.
84078
84079 2005-01-18  Jim Meyering  <jim@meyering.net>
84080
84081         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84082
84083         * lib/utimens.c (futimens): Account for the fact that futimes
84084         can also fail with errno == ENOSYS or errno == ENOENT.
84085         Patch from Dmitry V. Levin.
84086
84087         Change the name of the robust chdir function from chdir to chdir_long.
84088         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84089         (restore_cwd): Use chdir_long, not chdir.
84090         * lib/chdir-long.c: Renamed from chdir.c.
84091         * lib/chdir-long.h: Renamed from chdir.h.
84092         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84093         Hurd.
84094
84095 2005-01-18  Bruno Haible  <bruno@clisp.org>
84096
84097         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84098         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84099         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84100         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84101         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84102         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84103         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84104         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84105         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84106         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84107         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84108         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84109         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84110         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84111         Use an all-permissive copyright notice, recommended by RMS.
84112
84113 2005-01-18  Bob Proulx  <bob@proulx.com>
84114
84115         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84116         simplify offsetof() macro construct to avoid compile failure with
84117         native HP-UX 11.0 ANSI C compiler.
84118
84119 2005-01-17  Bruno Haible  <bruno@clisp.org>
84120
84121         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84122         redundant because stpncpy.m4 takes care of it.
84123
84124 2005-01-17  Bruno Haible  <bruno@clisp.org>
84125
84126         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84127
84128 2005-01-17  Bruno Haible  <bruno@clisp.org>
84129
84130         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84131         used.
84132
84133 2005-01-17  Bruno Haible  <bruno@clisp.org>
84134
84135         * lib/fwriteerror.h (fwriteerror): Change specification to include
84136         fclose.
84137         * lib/fwriteerror.c: Include <stdbool.h>.
84138         (fwriteerror): At the end, close the file stream. Record whether
84139         stdout was already closed.
84140
84141 2005-01-17  Bruno Haible  <bruno@clisp.org>
84142
84143         * lib/execute.c (environ): Declare if needed.
84144         * lib/pipe.c (environ): Likewise.
84145         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84146
84147 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84148
84149         * modules/argp: Depend on vsnprintf
84150
84151 2005-01-10  Jim Meyering  <jim@meyering.net>
84152
84153         * modules/closeout (Depends-on): Add atexit.
84154
84155 2005-01-06  Bruno Haible  <bruno@clisp.org>
84156
84157         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84158
84159 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84160
84161         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84162         definitions to be after all include files, to avoid collisions.
84163         Problem reported by Bob Proulx.
84164
84165 2005-01-04  Jim Meyering  <jim@meyering.net>
84166
84167         Changes imported from coreutils.
84168         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84169         as the mkstemp template, use a temporary directory and an
84170         8.3-friendly template to avoid trouble on systems like DJGPP.
84171         Reported by Juan M. Guerrero via Stepan Kasal.
84172         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84173         close. Remove the temporary directory right away, rather than waiting
84174         for configure's at-exit trap code to do it.
84175         Suggestion from Stepan Kasal.
84176
84177 2005-01-01  Simon Josefsson  <jas@extundo.com>
84178
84179         * gnulib-tool: Print #include directives when --import'ing.
84180
84181 2004-12-28  Simon Josefsson  <jas@extundo.com>
84182
84183         * tests/test-base64.c: Include required header files.  Remove
84184         unused variables.
84185
84186 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84187
84188         * modules/error (Depends-on): Remove gettext.
84189
84190 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84191
84192         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84193         not needed.  This removes a dependency on the gettext module.
84194         [defined _LIBC]: Do not include <libintl.h>; not needed.
84195
84196 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84197
84198         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84199         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84200
84201 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84202
84203         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84204         HAVE_DECL_STRTOLD.
84205
84206 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84207
84208         * modules/getdate (Depends-on): Remove alloca-opt.
84209
84210 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84211
84212         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84213
84214 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84215
84216         * lib/argp-parse.c: Include <stddef.h>.
84217         (alignof, alignto): New macros.
84218         (parser_init): Don't assume that void * is aligned sufficiently
84219         for struct option.
84220
84221         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84222         need to extend the stack.
84223         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84224         large.
84225
84226 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84227
84228         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84229
84230 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84231
84232         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84233         (2004-10-24) change.  Apparently this was a false alarm.
84234
84235         * modules/getdate: Depend on alloca-opt, not alloca.
84236
84237 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84238
84239         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84240         Remove now-obsolete comment about AIX.
84241         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84242         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84243         (YYMAXDEPTH): New macro.
84244
84245 2004-12-18  Simon Josefsson  <jas@extundo.com>
84246
84247         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84248
84249 2004-12-18  Bruno Haible  <bruno@clisp.org>
84250
84251         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84252
84253 2004-12-18  Bruno Haible  <bruno@clisp.org>
84254
84255         * lib/fatal-signal.c (fatal_signals): Make non-const.
84256         (init_fatal_signals): New function.
84257         (uninstall_handlers, install_handlers): Ignore signals that were set to
84258         SIG_IGN.
84259         (at_fatal_signal): Call init_fatal_signals.
84260         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84261         SIG_IGN.
84262         Reported by Paul Eggert.
84263
84264 2004-12-18  Bruno Haible  <bruno@clisp.org>
84265
84266         * doc/alloca.texi: New file.
84267         * doc/alloca-opt.texi: New file.
84268
84269 2004-12-17  Jim Meyering  <jim@meyering.net>
84270
84271         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84272         Otherwise, install-sh could exit with improper exit status when
84273         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84274
84275 2004-12-16  Simon Josefsson  <jas@extundo.com>
84276
84277         * tests/test-base64.c: Add license.
84278
84279 2004-12-15  Stepan Kasal  <address@hidden>
84280
84281         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84282
84283 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84284
84285         * modules/getcwd (Files): Add m4/d-ino.m4.
84286         Suggested by Mark D. Baushke.
84287
84288 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84289
84290         * lib/getdate.y (textint): New member "negative".
84291         (time_zone_hhmm): New function.
84292         Expect 14 shift-reduce conflicts, not 13.
84293         (o_colon_minutes): New rule.
84294         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84295         (yylex): Set the "negative" member of signed numbers.
84296
84297 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84298
84299         * doc/getdate.texi (Time of day items, Time zone items):
84300         Describe new formats +00:00, UTC+00:00.
84301
84302 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84303
84304         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84305         spurious "-l"s.  Problem reported by Stepan Kasal.
84306
84307 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84308
84309         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84310         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84311
84312 2004-12-04  Simon Josefsson  <jas@extundo.com>
84313
84314         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84315         Vandoorselaere <yoann@prelude-ids.org>.
84316
84317 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84318
84319         Changes imported from coreutils.
84320         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84321         exist.
84322         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84323
84324 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84325
84326         Changes imported from coreutils.
84327         * lib/hard-locale.c: Assume <locale.h> exists.
84328         Include "strdup.h".
84329         (GLIBC_VERSION): New macro.
84330         (hard_locale): Assume setlocale exists.
84331         Rewrite to avoid #ifdef.
84332         Use strdup rather than malloc + strcpy.
84333         * lib/human.c: Assume <locale.h> exists.
84334         (human_readable): Assume localeconv exists.
84335
84336 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84337
84338         * modules/hard-locale (Depends-on): Add strdup.
84339
84340 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84341
84342         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84343         convert T2, not T.  (Imported from libc.)
84344
84345 2004-11-30  Simon Josefsson  <jas@extundo.com>
84346
84347         * modules/restrict (License): Change to LGPL.
84348
84349 2004-11-30  Simon Josefsson  <jas@extundo.com>
84350
84351         * m4/restrict.m4: Add copyright and copying conditions.
84352
84353 2004-11-30  Simon Josefsson  <jas@extundo.com>
84354
84355         * m4/base64.m4: New file.
84356
84357 2004-11-30  Simon Josefsson  <jas@extundo.com>
84358
84359         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84360         base64.
84361
84362         * tests/test-base64.c: New file.
84363
84364         * modules/base64: New file.
84365
84366 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84367
84368         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84369         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84370
84371         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84372
84373 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84374
84375         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84376         (__getcwd.c): Don't restore errno; glibc doesn't.
84377         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84378         first, falling back to our code only if its results look suspicious.
84379         Ensure that the resulting buffer is only as large as necessary.
84380
84381         * lib/readutmp.c: Include readutmp.h first.
84382         Include <errno.h>, since readutmp.h no longer does that.
84383         * lib/readutmp.h: Don't include <errno.h>,
84384         <sys/param.h>, <time.h>; not needed to establish interface.
84385         (errno): Remove decl.
84386         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84387         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84388         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84389
84390 2004-11-28  Simon Josefsson  <jas@extundo.com>
84391
84392         * lib/base64.h, base64.c: New file.
84393
84394 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84395
84396         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84397
84398 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84399
84400         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84401         (Depends-on): Remove pathmax, same.  Add mempcpy.
84402         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84403         (Makefile.am): Append getcwd.h to lib_SOURCES.
84404         (Include): Add getcwd.h.
84405         (Maintainer): Change from Jim Meyering to "all, glibc",
84406         since getdate now uses intended-for-glibc code.
84407         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84408         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84409
84410 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84411
84412         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84413         HP's ANSI C compiler.
84414         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84415         Declaring int functions causes warnings on some modern systems and
84416         shouldn't be needed to compile on ancient ones.
84417         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84418         defined.
84419
84420         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84421         with the following changes.
84422         (__set_errno): Parenthesize properly.
84423         Include <stdbool.h>.
84424         (MIN, MAX, MATCHING_INO): New macros.
84425         (__getcwd): Define with prototype, not K&R form.
84426         Use heuristics to allocate default buffer on stack if possible.
84427         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84428         behavior, and to avoid the PATH_MAX limit when computing
84429         ../../../../...
84430         Use MATCHING_INO to compare inode number to file.
84431         Check for arithmetic overflow in size calculations.
84432         Fix bug in reallocation of dot array that caused getcwd to fail
84433         on directories nested deeper than 75.
84434         Be more careful about saving errno on error.
84435         Do not use realloc; use only free+malloc, as this is a bit
84436         more flexible and avoids a needless copy operation.
84437         Do not inspect st_dev and st_ino for symbolic links; POSIX
84438         doesn't specify the latter.
84439         Check for closedir errors.
84440         Avoid needless casts.
84441         Use "#ifdef weak_alias" around weak_alias, to be like other
84442         glibc code.
84443         The following changes to getcwd.c have effect only when used in
84444         gnulib; they have no effect inside glibc proper.
84445         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84446         as alloca isn't used.
84447         (alloca, __alloca): Likewise.
84448         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84449         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84450         unconditionally, as gnulib assumes C89 or better.
84451         Do not include <sys/param.h>.
84452         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84453         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84454         better.
84455         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84456         Include <dirent.h> in a way that is compatible with modern Autoconf.
84457         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84458         New macros, if not already defined.
84459         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84460         Use "_LIBC", not "defined _LIBC", for consistency.
84461         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84462         a mempcpy module.
84463         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84464         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84465         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84466         credit only to Jim Meyering and adjust the copyright dates.
84467         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84468         <stdlib.h>, <unistd.h>, "pathmax.h".
84469         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84470         (INITIAL_BUFFER_SIZE): Remove.
84471         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84472
84473 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84474
84475         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84476         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84477         Use the _ONCE methods, for efficiency.
84478         Check for fcntl.h.  In test program, include <errno.h>
84479         and <fcntl.h> if available.  Remove old K&R cruft from
84480         test program.  Check for common errors in GNU/Linux,
84481         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84482         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84483         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84484         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84485         name accordingly.
84486         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84487         accommodate new getcwd.c.
84488         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84489         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84490         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84491         that's all we need now.
84492
84493 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84494
84495         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84496         argp-parse.c depends on getopt internals, that means we should
84497         always use our getopt, to be on the safe side.
84498         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84499         order not to spoil the result of an eventual previous invocation
84500         of gl_GETOPT_SUBSTITUTE.
84501
84502 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84503
84504         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84505         redefinition warnings. To avoid them, include the defines
84506         in `#if !defined __need_getopt ... #endif'. The only place
84507         where __getopt_argv_const is used is in definitions
84508         of getopt_long and getopt_long_only below, which are as well
84509         protected by `#ifndef __need_getopt'.
84510         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84511         __need_getopt after including <stdio.h> and <unistd.h> These
84512         headers might have defined it.
84513
84514 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84515
84516         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84517
84518 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84519
84520         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84521         (futimens): New function, which uses futimes if available.
84522         (futimens, utimens): Support timespec==NULL, with same semantics
84523         as utime and utimens.
84524         * lib/utimens.h (futimens): New decl.
84525
84526 2004-11-23  Jim Meyering  <jim@meyering.net>
84527
84528         * lib/getopt_.h: Remove trailing blanks.
84529
84530 2004-11-23  Jim Meyering  <jim@meyering.net>
84531
84532         * lib/__fpending.c: Add comment.
84533
84534 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84535
84536         * modules/canonicalize (Depends-on): Add xreadlink.
84537         Problem reported by James Youngman.
84538
84539 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84540
84541         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84542         New macros.
84543         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84544         optopt): Use them instead of invoking ## directly; otherwise, the
84545         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84546
84547 2004-11-19  Bruno Haible  <bruno@clisp.org>
84548
84549         * lib/strtok_r.c: Move comments from here...
84550         * lib/strtok_r.h: ... to here.
84551
84552 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84553
84554         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84555         implementations that mishandle size_t overflow.
84556
84557 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84558
84559         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84560         might fail.  Problem reported by Yoann Vandoorselaere.
84561         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84562         implementations that mishandle size_t overflow.
84563
84564 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84565
84566         * modules/canon-host (Depends-on): Add strdup.
84567
84568 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84569
84570         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84571
84572 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84573
84574         * lib/canon-host.c: Include "strdup.h".
84575         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84576         Use strdup instead of malloc/strcpy to duplicate strings.
84577
84578         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84579         (human_space_before_unit): New constant.
84580         * lib/human.c (human_readable): Support it.
84581
84582         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84583         (xgetcwd): Set errno correctly when failing.
84584         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84585         the failure is actually due to a PATH_MAX problem.
84586
84587         Further getopt changes to make it more likely that glibc will
84588         buy the changes back.
84589         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84590         (getopt): Use it, so to preserve glibc semantic
84591         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84592         when compiling for libc.
84593         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84594         (getopt_long, getopt_long_only): Use it.
84595
84596         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84597         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84598         (getopt): Argv is now char * const *, as per standard.
84599         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84600         not char *__getopt_argv_const *.
84601         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84602         _getopt_long_only_r): Likewise.
84603         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84604         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84605         _getopt_long_r, _getopt_long_only_r): Likewise.
84606         * lib/getopt_.h (__getopt_argv_const): Remove.
84607         (getopt): Argv is now char * const *, as per standard.
84608
84609         * lib/getdate.y (tORDINAL): New token.
84610         (day, relunit): Allow it for relative times.
84611         (relative_time_table): Use tORDINAL for ordinals.
84612
84613 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84614
84615         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84616         Document that "second" isn't allowed as an ordinal number.
84617
84618 2004-11-16  Jim Meyering  <jim@meyering.net>
84619
84620         * modules/closeout (Depends-on): Add fpending.
84621
84622 2004-11-15  Jim Meyering  <jim@meyering.net>
84623
84624         * lib/closeout.c: Include "__fpending.h" once again.
84625         Include <stdbool.h>.
84626         (close_stdout): Don't fail just because stdout was closed initially,
84627         since some programs don't write to stdout in the normal course of
84628         operation (other than --version and --help), and we don't want this
84629         function to make e.g. `touch file >&-' fail.
84630         But do fail if it was closed and someone has tried to write to it.
84631         E.g., `printf foo >&-' must fail.
84632
84633 2004-11-13  Jim Meyering  <jim@meyering.net>
84634
84635         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84636
84637 2004-11-12  Simon Josefsson  <jas@extundo.com>
84638
84639         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84640         small doc fix is still pending.
84641
84642 2004-11-11  Simon Josefsson  <jas@extundo.com>
84643
84644         * modules/strtok_r: New file.
84645
84646         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84647         strtok_r.
84648
84649 2004-11-11  Simon Josefsson  <jas@extundo.com>
84650
84651         * m4/strtok_r.m4: New file.
84652
84653         * m4/getopt.m4: Replace opterr.
84654
84655 2004-11-11  Simon Josefsson  <jas@extundo.com>
84656
84657         * lib/strtok_r.h, strtok_r.c: New file.
84658
84659 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84660
84661         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84662         of replacing opterr, getopt, etc.  This should handle the
84663         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84664
84665 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84666
84667         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84668         we can stop lying to compilers about the constness of argv when we
84669         are compiled outside glibc.
84670         (getopt, getopt_long, getopt_long_only): Use it.
84671         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84672         _getopt_internal, getopt): Likewise.
84673         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84674         _getopt_long_only_r): Likewise.
84675         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84676         _getopt_long_r, _getopt_long_only_r): Likewise.
84677
84678         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84679         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84680         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84681         the other external symbols.
84682         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84683         declaration, since the above renaming now works around collisions.
84684
84685 2004-11-11  Jim Meyering  <jim@meyering.net>
84686
84687         * lib/linebreak.c: Remove trailing blanks.
84688         * lib/alloca_.h: Likewise.
84689         * lib/acosl.c: Likewise.
84690         * lib/euidaccess.c: Likewise.
84691         * lib/allocsa.h: Likewise.
84692
84693 2004-11-10  Simon Josefsson  <jas@extundo.com>
84694
84695         * m4/getaddrinfo.m4: New file.
84696
84697 2004-11-10  Simon Josefsson  <jas@extundo.com>
84698
84699         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84700
84701 2004-11-10  Simon Josefsson  <jas@extundo.com>
84702
84703         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84704         getaddrinfo.
84705
84706         * modules/getaddrinfo: New file.
84707
84708 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84709
84710         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84711
84712 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84713
84714         * lib/mktime.c (SHR): New macro, which is a portable
84715         substitute for >> that should work even on Crays.
84716         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84717         Problem reported by Mark D. Baushke in
84718         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84719         * lib/getdate.y (SHR): Likewise.
84720         (tm_diff): Use it.
84721         * lib/strftime.c (SHR): Likewise.
84722         (tm_diff): Use it.
84723         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84724         quote_these_too, so that right shifts are well defined.  All uses
84725         changed.
84726
84727 2004-11-10  Jim Meyering  <jim@meyering.net>
84728
84729         Ensure that no close failure goes unreported.
84730         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84731         return early when it seems there's nothing to flush.
84732         Don't include __fpending.h.
84733
84734 2004-11-10  Jim Meyering  <jim@meyering.net>
84735
84736         * modules/closeout (Depends-on): Remove fpending.
84737
84738 2004-11-10  Jim Meyering  <jim@meyering.net>
84739
84740         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84741
84742 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84743
84744         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84745         gl_FUNC_STRFTIME.
84746         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84747         and AC_REQUIRE when possible, to avoid duplicate checks.
84748         Check for <wchar.h>.
84749
84750 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84751
84752         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84753
84754 2004-11-09  Bruno Haible  <bruno@clisp.org>
84755
84756         * m4/sockpfaf.m4: New file.
84757
84758 2004-11-05  Bruno Haible  <bruno@clisp.org>
84759
84760         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84761         Reported by Mark D. Baushke <mdb@cvshome.org>.
84762
84763 2004-11-04  Bruno Haible  <bruno@clisp.org>
84764
84765         2004-09-11  Bruno Haible  <bruno@clisp.org>
84766                 * allocsa.valgrind: New file.
84767         2004-02-06  Bruno Haible  <bruno@clisp.org>
84768                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84769                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84770                 Reported by Christopher Seip <chris.seip@hp.com>.
84771
84772 2004-11-04  Bruno Haible  <bruno@clisp.org>
84773
84774         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84775         (Makefile.am): Distribute it.
84776
84777 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84778
84779         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84780         with errno == ERANGE if the buffer is too small.
84781         Problem reported by Mark D. Baushke.
84782
84783 2004-11-03  Albert Chin  <china@thewrittenword.com>
84784             Paul Eggert  <eggert@cs.ucla.edu>
84785
84786         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84787         equivalent, substitute $ac_type for equivalent type rather than
84788         blindly using uint32_t *always* which won't work if uint32_t is not
84789         available.  Define _UINT32_T to work around typedef of uint32_t if
84790         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84791         2.5.1.
84792
84793 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84794
84795         * m4/jm-macros.m4: Sync from coreutils.
84796         (gl_MACROS): Check for mbrlen, for pathchk.
84797         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84798
84799 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84800
84801         * lib/xreadlink.c (MAXSIZE): New macro.
84802         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84803         size does not exceed MAXSIZE.  Avoid cast.
84804         As suggested by Mark D. Baushke in
84805         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84806         if readlink fails with buffer size just under MAXSIZE, try again
84807         with MAXSIZE.
84808
84809 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84810
84811         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84812
84813 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84814         and  Paul Eggert  <eggert@cs.ucla.edu>
84815
84816         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84817         (get_date): Overparenthesize to avoid GCC warning.
84818
84819 2004-11-02  Bruno Haible  <bruno@clisp.org>
84820
84821         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84822         returns void.
84823
84824 2004-11-02  Bruno Haible  <bruno@clisp.org>
84825
84826         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84827         function returns void.
84828
84829 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84830
84831         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84832         fflush_unlocked, flockfile, funlockfile, funlockfile,
84833         fputs_unlocked, putc_unlocked.
84834
84835 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84836
84837         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84838         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84839         already declared.
84840
84841 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84842
84843         * modules/getdate (Files): Add doc/getdate.texi.
84844         (Depends-on): Add setenv, xalloc.
84845
84846 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84847
84848         * lib/getdate.y: Add support for TZ="foo" within a date string.
84849         Fix some bugs near time_t boundaries.  Reject dates with
84850         out-of-range components, e.g., "Sept 31".
84851         Include <stdlib.h>, "setenv.h", "xalloc.h".
84852         (ISDIGIT_LOCALE): Remove; unused.
84853         Note that the TZ and time functions used here are not reentrant.
84854         (mktime_ok, get_tz): New functions.
84855         (TZBUFSIZE): New constant.
84856         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84857         This requires that we sometimes generate our own TZ="XXX..." setting.
84858
84859 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84860
84861         * doc/getdate.texi: New file, from coreutils with modifications for
84862         the new TZ parsing.
84863
84864 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84865
84866         * lib/mktime.c (not_equal_tm): Remove redundant check.
84867
84868 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84869
84870         * modules/regex (lib_SOURCES): Add regex.c.
84871         Reported by James Youngman in
84872         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84873
84874 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84875
84876         * lib/getdate.y: Use Bison 1.875 features, and some minor
84877         code cleanups.  This change does not affect semantics.
84878         Don't include <stdlib.h>; no longer needed.
84879         Don't include unlocked-io.h; only the "#if TEST" code uses
84880         stdio, and performance isn't crucial there.
84881         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84882         Bison 1.875 features as described below.
84883         All uses of "PC." replaced by "pc->".
84884         (YYSTYPE): Add a forward declaration.
84885         (yylex, yyerror): Use full prototypes in forward decls.
84886         Use "%pure-parser" rather than obsolescent "%pure_parser".
84887         Use %parse-param and %lex-param instead of obsolescent
84888         YYPARSE_PARAM and YYLEX_PARAM.
84889         (meridian_table, month_and_day_table, time_units_table,
84890         relative_time_table, time_zone_table, military_table,
84891         lookup_zone, lookup_word, get_date):
84892         Use NULL instead of 0 where appropriate.
84893         (to_hour): Avoid abort (), to avoid a dependency on
84894         stdlib.h.
84895         (yyerror, yylex): Now accepts parser_control * arg.
84896         (main) [TEST]: Use '\0' rather than 0 for char.
84897
84898 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84899
84900         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84901
84902 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84903
84904         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84905         It's now the caller's responsibility to handle the case where
84906         !HAVE_GETPAGESIZE && !defined getpagesize.
84907
84908         * lib/mktime.c (leapyear): Arg is long int, not int.
84909
84910 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84911
84912         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84913
84914 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84915
84916         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84917         missing.  Problem reported by James Youngman.
84918
84919 2004-10-16  Simon Josefsson  <jas@extundo.com>
84920
84921         * gnulib-tool: Fix comments.  Fix parse problem.
84922         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84923
84924 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84925
84926         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84927         implementation of getopt_long.  Problem reported by Alexander Taler in:
84928         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84929
84930 2004-10-15  Bruno Haible  <bruno@clisp.org>
84931
84932         * gnulib-tool: Untabify. Initialize supplied_libname.
84933         (func_usage): More homogenous output.
84934         (func_modules_transitive_closure, func_modules_to_filelist,
84935         func_emit_lib_Makefile_am): New functions.
84936         (func_import): New function, extracted from big case statement. Use
84937         func_get_license, func_modules_transitive_closure,
84938         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84939         opt_lgpl. Don't use test -a, as it's not portable.
84940         (func_create_testdir): Use func_modules_transitive_closure,
84941         func_modules_to_filelist, func_emit_lib_Makefile_am.
84942
84943 2004-10-15  Bruno Haible  <bruno@clisp.org>
84944
84945         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84946
84947 2004-10-15  Bruno Haible  <bruno@clisp.org>
84948
84949         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84950         the portions belonging to each module.
84951         Suggested by Derek Robert Price <derek@ximbiot.com>.
84952
84953 2004-10-12  Simon Josefsson  <jas@extundo.com>
84954
84955         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84956         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84957         to real functions.
84958
84959 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84960
84961         * modules/vsnprintf: New file.
84962
84963 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84964
84965         * m4/vsnprintf.m4: New file.
84966
84967 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84968
84969         * lib/vsnprintf.h: New file.
84970         * lib/vsnprintf.c: New file.
84971
84972 2004-10-11  Bruno Haible  <bruno@clisp.org>
84973
84974         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84975         vsnprintf.
84976
84977 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84978
84979         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84980
84981 2004-10-07  Bruno Haible  <bruno@clisp.org>
84982
84983         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84984         fits into the provided buffer.
84985
84986 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84987
84988         * lib/diacrit.c, diacrit.h: Add GPL notice.
84989
84990         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84991         notice.
84992         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84993         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84994         This avoids a potential constant-folding bug.
84995
84996 2004-10-05  Bruno Haible  <bruno@clisp.org>
84997
84998         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84999         for the declaration of strsep.
85000
85001 2004-10-05  Bruno Haible  <bruno@clisp.org>
85002
85003         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85004
85005 2004-10-04  Simon Josefsson  <jas@extundo.com>
85006
85007         * modules/memmem: New file.
85008         * tests/test-memmem.c: New file.
85009         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85010
85011 2004-10-04  Simon Josefsson  <jas@extundo.com>
85012
85013         * m4/memmem.m4: New file.
85014
85015 2004-10-04  Simon Josefsson  <jas@extundo.com>
85016
85017         * lib/memmem.h: New file.
85018         * lib/memmem.c: New file, taken from glibc.
85019
85020 2004-10-04  Simon Josefsson  <jas@extundo.com>
85021
85022         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85023         '#ifdef USE_UNLOCKED_IO'.
85024
85025 2004-10-04  Simon Josefsson  <jas@extundo.com>
85026
85027         * config/srclist.txt: Add memmem from glibc.
85028
85029 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85030
85031         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85032
85033         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85034         modules/exclude, modules/getdate, modules/getline,
85035         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85036         modules/getusershell, modules/linebuffer, modules/md5,
85037         modules/mountlist, modules/posixtm, modules/readtokens,
85038         modules/readutmp, modules/regex, modules/sha1,
85039         modules/version-etc, modules/yesno:
85040         Remove dependency on unlocked-io.
85041
85042 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85043
85044         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85045
85046         * m4/unlocked-io.m4: Add copyright notice.
85047         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85048
85049 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85050
85051         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85052         * lib/xmalloc.c (xmemdup): Likewise.
85053         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85054         XFREE): Remove these long-obsolescent macros.
85055         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85056         * lib/xstrdup.c: Remove.
85057
85058         * lib/regex.c (re_comp): Cast gettext return value to char *,
85059         Problem reported by Martin Neitzel via Mark D. Baushke.
85060
85061 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85062
85063         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85064         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85065         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85066         regex.c, sha1.c, version-etc.c, yesno.c:
85067         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85068         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85069         the includer's responsibility.
85070
85071         Sync from coreutils.
85072
85073         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85074         points to the start of a string, as the C Standard says the
85075         resulting behavior is undefined.
85076
85077         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85078         simple -> simple_backups, numbered_existing ->
85079         numbered_existing_backups, numbered -> numbered_backups
85080         to avoid shadowing problems.  All uses changed.
85081         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85082         * lib/backupfile.c (check_extension, numbered_backup):
85083         Rename locals to avoid shadowing 'basename'.
85084         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85085         once.
85086
85087         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85088         * lib/.cvsignore: Add getopt.h.
85089
85090 2004-10-04  Bruno Haible  <bruno@clisp.org>
85091
85092         * modules/README: New file.
85093         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85094         not a module.
85095
85096 2004-10-02  Jim Meyering  <jim@meyering.net>
85097
85098         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85099
85100 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85101
85102         * modules/strsep: New file.
85103
85104 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85105
85106         * m4/strsep.m4: New file.
85107
85108 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85109
85110         * lib/strsep.h: New file.
85111         * lib/strsep.c: New file.
85112
85113 2004-10-01  Simon Josefsson  <jas@extundo.com>
85114
85115         * lib/snprintf.c (snprintf): Handle size==0.
85116
85117 2004-10-01  Simon Josefsson  <jas@extundo.com>
85118             Bruno Haible  <bruno@clisp.org>
85119
85120         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85121         (snprintf): Declare 'args'.
85122
85123 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85124
85125         * lib/snprintf.c: Remove comments as to why each header is needed.
85126
85127 2004-10-01  Bruno Haible  <bruno@clisp.org>
85128
85129         * MODULES.html.sh: Add strsep.
85130
85131 2004-09-30  Simon Josefsson  <jas@extundo.com>
85132
85133         * modules/snprintf: New file.
85134
85135 2004-09-30  Simon Josefsson  <jas@extundo.com>
85136
85137         * m4/snprintf.m4: New file.
85138
85139 2004-09-30  Simon Josefsson  <jas@extundo.com>
85140
85141         * lib/snprintf.h, lib/snprintf.c: New files.
85142
85143 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85144
85145         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85146         (hol_entry_help): Never translate an empty string.
85147         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85148         * lib/argp.h (OPTION_NO_TRANS): New option.
85149
85150 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85151
85152         * modules/argp (Maintainer): Replace Simon Josefsson
85153         by Sergey Poznyakoff.
85154
85155 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85156
85157         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85158         changes merged back into glibc.
85159
85160 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85161
85162         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85163
85164 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85165
85166         * lib/xvasprintf.c: Include xalloc.h.
85167         (xvasprintf): Use xalloc_die, not xmalloc_die.
85168
85169 2004-09-29  Bruno Haible  <bruno@clisp.org>
85170
85171         * modules/alloca-opt: New file, derived from modules/alloca.
85172         * modules/allocsa: Depend on alloca-opt instead of alloca.
85173         * modules/setenv: Likewise.
85174         * modules/vasnprintf: Likewise.
85175         * MODULES.html.sh: Add alloca-opt.
85176
85177 2004-09-28  Simon Josefsson  <jas@extundo.com>
85178
85179         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85180         LGPL, and to replace license template from GPL to LGPL.
85181
85182 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85183
85184         * modules/dummy: Change license to LGPL.
85185
85186 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85187
85188         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85189
85190 2004-09-24  Simon Josefsson  <jas@extundo.com>
85191
85192         * modules/minmax (License): Change from GPL to LGPL.
85193
85194 2004-09-23  Simon Josefsson  <jas@extundo.com>
85195
85196         * gnulib-tool (--import): Typo.
85197
85198 2004-09-23  Simon Josefsson  <jas@extundo.com>
85199
85200         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85201
85202 2004-09-22  Bruno Haible  <bruno@clisp.org>
85203
85204         * modules/*: Add 'License' field.
85205         * gnulib-tool: Accept --extract-license option.
85206         (func_get_license): New function.
85207
85208 2004-09-21  Bruno Haible  <bruno@clisp.org>
85209
85210         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85211         Reported by Simon Josefsson.
85212
85213 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85214
85215         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85216         gl_AC_TYPE_LONG_LONG.
85217
85218 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85219
85220         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85221
85222 2004-09-18  Simon Josefsson  <jas@extundo.com>
85223         and  Paul Eggert  <eggert@cs.ucla.edu>
85224
85225         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85226         calls with autoreconf.  Define GL_LIB.
85227
85228 2004-09-14  Karl Berry  <karl@gnu.org>
85229
85230         * config/srclist.txt: unsync setenv.c, sigh.
85231
85232 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85233
85234         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85235         Problem reported by Bruno Haible in:
85236         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85237
85238 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85239
85240         * config/srclist.txt: Comment out argp-pvh.c.
85241
85242 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85243
85244         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85245         in case some system header has #define'd it.  Problem reported by
85246         Soeren D. Schulze in
85247         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85248
85249 2004-09-09  Karl Berry  <karl@gnu.org>
85250
85251         * regex.[ch]: delete from the root.  These were supposed to be
85252                 synced with emacs cvs, but this has not happened for about
85253                 a year, and anyway nothing else uses emacs regex.[ch].
85254                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85255                 lib/regex[.ch] is untouched.
85256
85257 2004-09-09  Bruno Haible  <bruno@clisp.org>
85258
85259         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85260
85261 2004-09-09  Bruno Haible  <bruno@clisp.org>
85262
85263         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85264         modifications.
85265         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85266
85267 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85268
85269         * modules/xvasprintf: New file.
85270         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85271
85272 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85273
85274         * lib/xvasprintf.h: New file.
85275         * lib/xvasprintf.c: New file.
85276         * lib/xasprintf.c: New file.
85277
85278 2004-09-08  Bruno Haible  <bruno@clisp.org>
85279
85280         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85281
85282 2004-09-08  Bruno Haible  <bruno@clisp.org>
85283
85284         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85285         length is > INT_MAX.
85286         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85287         more.
85288
85289 2004-09-08  Bruno Haible  <bruno@clisp.org>
85290
85291         * lib/stdint_.h: New file, taken from GNU clisp.
85292
85293 2004-09-08  Bruno Haible  <bruno@clisp.org>
85294             Oskar Liljeblad  <oskar@osk.mine.nu>
85295
85296         * modules/stdint: New file.
85297         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85298
85299 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85300
85301         Import from coreutils.
85302         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85303         strings on unbounded length.  alloca's performance benefits aren't
85304         that important here.
85305         (V_STRDUP): Remove.
85306         (parse_with_separator): New function, with most of the internals
85307         of the old parse_user_spec.  Allow user to omit both user and group,
85308         for compatibility with FreeBSD.
85309         Clone only the user name, not the entire spec.
85310         Do not set *uid, *gid unless entirely successful.
85311         Avoid memory leak in some failing cases.
85312         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85313         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85314         (parse_user_spec): Rewrite to use parse_with_separator.
85315
85316 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85317
85318         * modules/userspec: Don't depend on alloca.
85319
85320 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85321
85322         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85323
85324 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85325
85326         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85327         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85328         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85329
85330 2004-08-16  Simon Josefsson  <jas@extundo.com>
85331
85332         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85333         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85334         Add --dry-run for --import.
85335         Let user provided command line parameters override configure.ac
85336         settings.
85337
85338 2004-08-12  Simon Josefsson  <jas@extundo.com>
85339
85340         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85341         as discussed with Paul Eggert in threads rooted at
85342         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85343         and
85344         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85345         Before, the test was empty, and relied on ELIDE_CODE in source
85346         code.)
85347         (gl_PREREQ_GETOPT): New macro.
85348         (gl_GETOPT): Use them.
85349
85350 2004-08-12  Simon Josefsson  <jas@extundo.com>
85351
85352         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85353         * lib/getopt_.h: Renamed from getopt.h.
85354
85355 2004-08-12  Simon Josefsson  <jas@extundo.com>
85356
85357         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85358         Change default library name from libfoo to libgnu.
85359         Now, if you have a configure.ac that says:
85360                 gl_SOURCE_BASE(gl)
85361                 gl_M4_BASE(gl/m4)
85362                 gl_MODULES(error getopt etcetera)
85363                 gl_INIT
85364         you can import all you need by running:
85365                 ../gnulib/gnulib-tool --import
85366
85367         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85368         (Makefile.am): Rewrite, use logic from argz.
85369         (Include): Use <getopt.h> instead of "getopt.h".
85370
85371 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85372
85373         * modules/argp (Files): Add m4/unlocked-io.m4.
85374         (Depends-on): Add extensions.
85375
85376 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85377
85378         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85379         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85380         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85381         Check for program_invocation_name, program_invocation_short_name,
85382         flockfile, funlockfile, features.h, _getopt_long_only_r.
85383
85384 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85385
85386         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85387         its complicated substitute.
85388         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85389         and program_invocation_name.
85390         (__argp_basename) [!_LIBC]: Remove; the only use was
85391         replaced by its body.
85392         (__argp_short_program_name): Change condition from
85393         !defined __argp_short_program_name to
85394         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85395         to match argp-namefrob.h.
85396         (__argp_failure): Don't assume strerror_r returns char *.
85397         * lib/argp-parse.c (N_): Define unconditionally.
85398         (argp_default_options): Fill out initializers with 0 to avoid
85399         gcc warnings.
85400
85401 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85402
85403         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85404         getopt1.c.
85405
85406 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85407
85408         Merge from coreutils.
85409
85410         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85411
85412         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85413         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85414
85415 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85416
85417         Merge from coreutils.
85418
85419         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85420         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85421         for Reliant Unix 5.43.
85422
85423         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85424         (union fooround): Use uintmax_t, not long int.
85425         The rest is a merge from libc:
85426         [defined _LIBC]: Include <shlib-compat.h>.
85427         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85428
85429         * lib/settime.c (settime): Recode to avoid warning with
85430         Sun Forte C 6U2.
85431
85432         * lib/strverscmp.c: Convert to UTF-8.
85433
85434 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85435
85436         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85437         m4/uintmax_t.m4.
85438
85439 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85440
85441         * modules/xalloc-die: New file.
85442         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85443
85444         * modules/md5 (Files): Add m4/uint32_t.m4.
85445         * modules/sha1: Renamed from modules/sha.
85446         (Files):
85447         Rename lib/sha.h to lib/sha1.h.
85448         Rename lib/sha.c to lib/sha1.c.
85449         Rename m4/sha.m4 to m4/sha1.m4.
85450         (lib_SOURCES): Likewise.
85451         (configure.ac): Rename gl_SHA to gl_SHA1.
85452         (Include): sha.h -> sha1.h.
85453
85454 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85455
85456         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85457         * m4/sha1.m4: Renamed from sha.m4.
85458         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85459
85460 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85461
85462         * lib/obstack.h (obstack_empty_p):
85463         Don't assume that chunk->contents is suitably aligned.
85464         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85465         Likewise. Problem reported by Benno in
85466         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85467
85468         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85469         readable.  This could be improved further but it'd take some work.
85470
85471 2004-08-08  Simon Josefsson  <jas@extundo.com>
85472
85473         * modules/xgethostname (Depends-on): Remove exit and error (not
85474         used).
85475
85476         * modules/getpass-gnu: Add getpass.h.
85477         (Depends-on): Add stdbool.
85478         * modules/getpass: Add getpass.h.
85479
85480 2004-08-08  Simon Josefsson  <jas@extundo.com>
85481
85482         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85483         Check getpass declaration.
85484
85485 2004-08-08  Simon Josefsson  <jas@extundo.com>
85486
85487         * lib/xgethostname.c: Don't include error.h (not used).
85488
85489         * lib/getpass.h: Add.
85490         * lib/getpass.c: Include getpass.h first.
85491
85492 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85493
85494         * lib/xalloc-die.c: New file.
85495         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85496         All uses removed.
85497         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85498         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85499         xalloc-die.c.
85500         (_, N_, xalloc_die): Move to xalloc-die.c.
85501         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85502         so that we needn't mess with xalloc_msg_memory_exhausted.
85503
85504         * lib/sha1.h: Renamed from sha.h.
85505         (SHA1_H): Renamed from _SHA_H.
85506         (sha1_ctx): Renamed from sha_ctx.
85507         (sha1_init_ctx): Renamed from sha_init_ctx.
85508         (sha1_process_block): Renamed from sha_process_block.
85509         (sha1_process_bytes): Renamed from sha_process_bytes.
85510         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85511         (sha1_read_ctx): Renamed from sha_read_ctx.
85512         (sha1_stream): Renamed from sha_stream.
85513         (sha1_buffer): Renamed from sha_buffer.
85514         * lib/sha1.c: Likewise; renamed from sha.c.
85515         Do not include <sys/types.h>.
85516         Include <stddef.h> rather than <stdlib.h>.
85517
85518 2004-08-08  Bruno Haible  <bruno@clisp.org>
85519
85520         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85521         FILESYSTEM_PREFIX_LEN.
85522         * lib/progreloc.c: Likewise.
85523         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85524
85525 2004-08-06  Simon Josefsson  <jas@extundo.com>
85526
85527         * modules/progname (Depends-on): Don't depend on stdbool.
85528
85529 2004-08-06  Simon Josefsson  <jas@extundo.com>
85530
85531         * modules/getsubopt: New file.
85532         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85533         getsubopt.
85534
85535 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85536
85537         More merge from coreutils.
85538
85539         * m4/utimens.m4, m4/utimecmp.m4: New files.
85540         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85541         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85542         prereq.m4, sha.m4: Import changes from coreutils.
85543
85544 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85545
85546         More merge from coreutils.
85547         * modules/raise, modules/readtokens0, modules/utimens:
85548         * modules/utimecmp, module/xnanosleep: New files.
85549         * modules/strftime: Add lib/strftime.h.
85550         Change include from <time.h> to "strftime.h".
85551         * modules/yesno: Add lib/yesno.h.
85552         * modules/backupfile: Remove lib/addext.c.
85553         * modules/euidaccess: Add stat-macros.h.
85554         * modules/canonicalize, modules/euidaccess,
85555         modules/filemode, modules/lchown, modules/makepath,
85556         modules/rmdir, modules/stat: Likewise.
85557
85558 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85559
85560         Merge from tar.
85561         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85562         SIZE_MAX is a valid preprocessor constant.
85563         (__argp_basename): Change from "#ifndef _LIBC"
85564         to "#ifndef __argp_short_program_name", so that
85565         we don't compile these functions for tar.
85566
85567         More merges from coreutils.
85568         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85569         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85570         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85571         * lib/addext.c: Remove; no longer needed.
85572         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85573         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85574         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85575         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85576         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85577         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85578         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85579         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85580         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85581         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85582         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85583         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85584         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85585         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85586         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85587         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85588         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85589         Import changes from coreutils.
85590
85591 2004-08-05  Simon Josefsson  <jas@extundo.com>
85592
85593         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85594
85595 2004-08-05  Simon Josefsson  <jas@extundo.com>
85596
85597         * m4/getsubopt.m4: New file.
85598
85599 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85600
85601         Merge from coreutils.
85602
85603         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85604         * m4/getcwd-path-max.m4: New files.
85605
85606         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85607         FILESYSTEM_PREFIX_LEN ->
85608         FILE_SYSTEM_PREFIX_LEN.
85609         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85610         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85611         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85612         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85613
85614         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85615         prerequisite modules now handle the DOS stuff.
85616         Don't check for unistd.h.
85617
85618 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85619
85620         Merge from coreutils.
85621
85622         * lib/.gdb-history: Remove; this doesn't belong here.
85623
85624         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85625         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85626         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85627         * lib/getcwd.c: New files.
85628
85629         * lib/dirname.h: Include <stdbool.h>.
85630         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85631         for consistency with POSIX terminology.  All uses changed.
85632         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85633         (strip_trailing_slashes): Use bool for booleans.
85634         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85635
85636         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85637         sometimes returns a positive errno value even when it succeeds.
85638         (print_errno_message) [!LIBC]: Fall back on strerror if
85639         __strerror_r fails.
85640
85641         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85642         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85643         (longest_relative_suffix): New function.
85644         (path_concat): Use it.  Assume first argument is not NULL.
85645         Port to DOS.  Omit redundant separators.
85646         Report an error instead of returning NULL.
85647         Use mempcpy instead of memcpy.
85648         (xpath_concat): Remove: not declared or used.
85649
85650         * lib/same.h: Include <stdbool.h>
85651         (same_name): Return bool, not int.
85652         * lib/same.c (same_name): Likewise.
85653         (errno): Don't declare; we assume C89 or better now.
85654
85655         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85656         if not already defined.
85657
85658         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85659         * lib/dup-safer.c (errno): Likewise.
85660
85661 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85662
85663         Merge from coreutils.
85664         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85665         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85666         * modules/path-concat: Don't depend on strdup.
85667
85668 2004-08-03  Simon Josefsson  <jas@extundo.com>
85669
85670         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85671         * lib/progname.h: Don't include stdbool.h.
85672
85673 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85674
85675         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85676         * MODULES.html.sh (func_all_modules): Remove fatal.
85677
85678 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85679
85680         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85681
85682 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85683
85684         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85685         working.
85686
85687 2004-08-02  Simon Josefsson  <jas@extundo.com>
85688
85689         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85690         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85691         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85692
85693 2004-08-01  Simon Josefsson  <jas@extundo.com>
85694
85695         * lib/xgetdomainname.c: Include stdlib.h, for free().
85696
85697 2004-07-19  Bruno Haible  <bruno@clisp.org>
85698
85699         * MODULES.html.sh (func_all_modules): Add dummy.
85700
85701 2004-07-16  Simon Josefsson  <jas@extundo.com>
85702
85703         * modules/dummy: New file.
85704
85705 2004-07-16  Simon Josefsson  <jas@extundo.com>
85706
85707         * lib/dummy.c: New file.
85708
85709 2004-07-16  Bruno Haible  <bruno@clisp.org>
85710
85711         * lib/backupfile.h: Add extern "C" for C++.
85712         * lib/closeout.h: Likewise.
85713         * lib/copy-file.h: Likewise.
85714         * lib/findprog.h: Likewise.
85715         * lib/full-write.h: Likewise.
85716         * lib/pathname.h: Likewise.
85717         * lib/progname.h: Likewise.
85718         * lib/stpcpy.h: Likewise.
85719         * lib/stpncpy.h: Likewise.
85720         * lib/strcase.h: Likewise.
85721         * lib/strstr.h: Likewise.
85722         * lib/xalloc.h: Likewise.
85723
85724         * lib/mbswidth.h: Add extern "C" for C++.
85725         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85726
85727 2004-07-13  Robert Millan  <robertmh@gnu.org>
85728
85729         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85730
85731 2004-07-09  Simon Josefsson  <jas@extundo.com>
85732
85733         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85734         failed without this.)
85735
85736 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85737
85738         * modules/chown (Files): Add lib/fchown-stub.c, since
85739         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85740
85741 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85742
85743         * lib/fchown-stub.c: New file.
85744
85745 2004-06-24  Jim Meyering  <jim@meyering.net>
85746
85747         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85748
85749 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85750
85751         * modules/argz: Omit "#include".
85752
85753         * MODULES.html.sh (func_all_modules): Add calloc, to match
85754         2004-06-01 addition of calloc module.
85755
85756 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85757
85758         * m4/argz.m4: New file, which is autoupdated from libtool.
85759
85760 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85761
85762         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85763         libtool.
85764
85765 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85766
85767         * config/srclist-update: Don't insist on "USA." before the
85768         close-comment, as libtool omits the period and puts the */ on a
85769         separate line.
85770         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85771         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85772
85773 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85774
85775         * modules/argz: New file.
85776         * MODULES.html.sh (func_all_modules): Add argz.
85777
85778 2004-06-12  Jim Meyering  <jim@meyering.net>
85779         and  Paul Eggert  <eggert@cs.ucla.edu>
85780
85781         * modules/hash (Files): Add lib/xalloc.h.
85782         * modules/pipe (Depends-on): Add wait-process.
85783         * modules/stat (Depends-on): Add xalloc.
85784         * modules/userspec (Files): Add lib/userspec.h.
85785         * modules/xstrto
85786
85787         Upgrade from gettext-0.13.
85788         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85789         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85790         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85791
85792 2004-06-10  Jim Meyering  <jim@meyering.net>
85793
85794         * lib/calloc.c: New file.
85795
85796 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85797
85798         * lib/getdate.y (yylex): Allow space between sign and number.
85799         Problem reported by Dan Jacobson.
85800
85801 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85802
85803         Merge from coreutils CVS.
85804
85805         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85806         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85807         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85808         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85809         xstrtol.m4: Fix copyright date and/or serial number.
85810
85811         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85812         See if we need an fchown replacement.
85813         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85814         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85815         and use the replacement function if we detect either defect.
85816
85817         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85818         gl_UTIMECMP.
85819
85820 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85821         and  Jim Meyering  <jim@meyering.net>
85822
85823         Merge from coreutils CVS.
85824
85825         * lib/stat-macros.h: New file, with contents from file-type.h
85826         and coreutils' system.h.
85827         * lib/file-type.c: Include "stat-macros.h".
85828         * lib/file-type.h (file_type): Move all macro definitions to new file,
85829         stat-macros.h.
85830
85831         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85832         Wrap old code with this conditional.
85833         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85834         function that does not dereference symlinks.
85835         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85836
85837         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85838         dependency problems.
85839         (xreadlink): Accept new arg SIZE, for efficiency.
85840         All decls and uses changed.
85841         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85842
85843         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85844         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85845
85846         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85847         sysexits.h.
85848
85849 2004-06-01  Jim Meyering  <jim@meyering.net>
85850
85851         * m4/calloc.m4: New file.
85852
85853 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85854
85855         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85856         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85857         Also, fix a typo in a diagnostic.
85858
85859 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85860
85861         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85862         or AC_FUNC_REALLOC.
85863
85864 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85865
85866         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85867         macros to be defined.
85868         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85869         the allocator returns NULL because the requested size is zero.
85870
85871 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85872
85873         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85874         var.  Add comment explaining why libc still defines it.  This
85875         merges the following patch from glibc:
85876         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85877
85878 2004-05-20  Andreas Schwab  <schwab@suse.de>
85879
85880         * m4/free.m4: Replace free if it not known to work, not the other
85881         way round.
85882
85883 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85884
85885         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85886         present in glibc since revision 1.1 of this file.
85887         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85888         obstack_alignment_mask, obstack_alloc, obstack_base,
85889         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85890         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85891         obstack_grow0, obstack_init, obstack_int_grow,
85892         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85893         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85894         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85895         nonexistent functions.
85896
85897 2004-05-18  Karl Berry  <karl@gnu.org>
85898
85899         * config/srclist.txt: break link for vasnprintf.c.
85900
85901 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85902
85903         Port obstack to the AS/400, where pointers are 16 bytes wide and
85904         you cannot cast an integer to a valid pointer.  This patch is
85905         currently waiting to be integrated into glibc; see
85906         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85907
85908         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85909         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85910         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85911         (struct obstack): temp member is now a union of a pointer and
85912         an integer, instead of an integer.  All integer uses changed.
85913         This does not affect the physical layout of struct obstack,
85914         except on hosts (like the AS/400) where the size or alignment of
85915         void * is greater than that of ptrdiff_t.
85916         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85917         __STDC__)]: Store temporary in pointer member of union, not
85918         integer member.
85919         * lib/obstack.c: Include <stddef.h>, for offsetof.
85920         (struct fooalign): Remove; it doesn't need a name.
85921         (union fooround): Change double to long double, and add void *.
85922         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85923         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85924         not a macro.  Hence the values are always int; so remove all
85925         casts-to-int in uses.
85926
85927 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85928
85929         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85930         we can get this patch merged into glibc.
85931
85932 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85933             Paul Eggert  <eggert@cs.ucla.edu>
85934
85935         * m4/argp: Depend on alloca.
85936
85937 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85938             Paul Eggert  <eggert@cs.ucla.edu>
85939
85940         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85941         freecoding.
85942
85943 2004-05-17  Bruno Haible  <bruno@clisp.org>
85944
85945         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85946         precision that consists of a '.' followed by an empty digit string.
85947         Patch by Tor Lillqvist <tml@iki.fi>.
85948
85949 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85950
85951         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85952         for backward compatibility with older code.  We need our own
85953         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85954         it under some other name, and our alloca.h will define it.
85955
85956 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85957             Derek Price  <derek@ximbiot.com>
85958
85959         * lib/alloca.c: Include <alloca.h>, to get our interface.
85960         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85961         include <alloca.h> first.  Use C89 prototype for alloca; this
85962         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85963         Use #elif for simplicity, since we can assume C89 now.
85964         Don't try to source the system alloca.h since it will not be found
85965         and to prevent recursively including its replacement.
85966         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85967         * lib/regex.c: Likewise.
85968
85969 2004-05-16  Derek Price  <derek@ximbiot.com>
85970             Paul Eggert  <eggert@cs.ucla.edu>
85971
85972         getline cleanup.  This changes the getndelim2 API: both order of
85973         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85974         no delimiter).
85975
85976         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85977         interface does that.
85978         (getline): Always use getdelim, so that we don't have two
85979         copies of this code.
85980         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85981         if available.
85982         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85983         (GETNDELIM2_MAXIMUM): New macro.
85984         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85985         instead of the old practice of delim2==0.  All callers changed.
85986         Return -1 on overflow, instead of returning junk.
85987         Do not set *linesize unless allocation succeeds.
85988         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85989         that we include sys/types.h.
85990         * lib/getnline.h: Likewise.
85991         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85992         (getndelim2): Reorder arguments.
85993         * lib/getnline.c (getnline, getndelim):
85994         Don't discard the NMAX argument.
85995         (getnline): Invoke getndelim, to avoid code duplication.
85996         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85997         of (size_t) -1 by callers of the getnline family.
85998
85999 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86000
86001         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86002         Check for gettimeofday.
86003         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86004         Check for settimeofday, stime.
86005
86006 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86007
86008         * lib/nanosleep.c (suspended): Change its type from int to
86009         sig_atomic_t volatile.
86010         (first_call): Make it private to rpl_nanosleep, and have it
86011         be zero initially as that's a bit faster.
86012         (my_usleep): Round up fractional times instead of truncating them,
86013         as this is the usual meaning for 'sleep'.
86014
86015         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86016         doesn't work.
86017         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86018         (ENOSYS): Define if not defined.
86019         (settime): Fall back on stime if it exists and settimeofday fails.
86020         But don't bother with fallbacks if a method fails with errno == EPERM.
86021
86022 2004-05-11  Jim Meyering  <jim@meyering.net>
86023
86024         Prior to this change, the save_cwd caller required read access to the
86025         current directory on most systems (ones with the fchdir function).
86026
86027         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86028         fails, try write-only, and finally, resort to using xgetcwd.
86029
86030 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86031
86032         * lib/obstack.c, obstack.h: Import changes from libc.
86033
86034 2004-04-28  Bruno Haible  <bruno@clisp.org>
86035
86036         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86037         also implicitly appends .exe to executables.
86038         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86039         accepts Windows pathnames.
86040         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86041         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86042         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86043         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86044         Reported by Derek Robert Price <derek@ximbiot.com>.
86045
86046 2004-04-21  Karl Berry  <karl@gnu.org>
86047
86048         * config/srclist.txt (localcharset.c): break sync.
86049
86050 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86051
86052         * m4/host-os.m4: Add a copyright notice.
86053
86054 2004-04-20  Jim Meyering  <jim@meyering.net>
86055
86056         Change UTILS_ to gl_ in AC_DEFINE'd names.
86057         Change utils_- and jm_-prefixed variables, too.
86058         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86059         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86060         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86061
86062         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86063         Don't emit trailing blanks.
86064         Also rename jm_-prefixed variables to have gl_ prefix.
86065
86066         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86067         Also rename jm_-prefixed variables to have gl_ prefix.
86068
86069         * m4/jm-macros.m4: Reflect the renamings.
86070         * m4/prereq.m4: Likewise.
86071
86072 2004-04-20  Jim Meyering  <jim@meyering.net>
86073
86074         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86075         memory.
86076
86077 2004-04-20  Jim Meyering  <jim@meyering.net>
86078             Bruno Haible  <bruno@clisp.org>
86079
86080         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86081         memory when realloc fails.
86082
86083 2004-04-19  Jim Meyering  <jim@meyering.net>
86084
86085         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86086         now that readutmp.c may call `free (0)'.
86087
86088 2004-04-19  Bruno Haible  <bruno@clisp.org>
86089
86090         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86091         * m4/inttypes_h.m4: Likewise.
86092         * m4/stdint_h.m4: Likewise.
86093         * m4/intmax_t.m4: Likewise.
86094         * m4/uintmax_t.m4: Likewise.
86095
86096 2004-04-18  Jim Meyering  <jim@meyering.net>
86097
86098         * m4/prereq.m4: Don't forbid jm_ prefix.
86099
86100         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86101         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86102         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86103         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86104         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86105         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86106         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86107         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86108         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86109         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86110         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86111         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86112         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86113         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86114         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86115         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86116         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86117         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86118         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86119
86120 2004-04-18  Jim Meyering  <jim@meyering.net>
86121
86122         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86123         failure, don't leak memory and do call END_UTMP_ENT.
86124
86125 2004-04-16  Jim Meyering  <jim@meyering.net>
86126
86127         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86128         coreutils' stat program.
86129         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86130
86131 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86132
86133         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86134         C89.
86135         (CHAR_BIT): Remove, since we assume C89.
86136         Include <stdint.h> if available, as per current Autoconf CVS advice.
86137
86138 2004-03-31  Jim Meyering  <jim@meyering.net>
86139
86140         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86141         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86142         * m4/xalloc.m4: Likewise.
86143
86144 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86145
86146         Merge from coreutils.
86147
86148         * m4/inttostr.m4: New file.
86149         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86150         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86151         Require gl_CLOCK_TIME.
86152         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86153
86154 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86155
86156         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86157         not bool, to be more consistent with Unix conventions.
86158         Suggested by Bruno Haible.
86159
86160         Merge from coreutils.
86161
86162         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86163         * lib/umaxtostr.c: New files.
86164
86165         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86166         the usual <time.h> dance.
86167         (get_date): Change signature to support fractional time stamps.
86168         All callers changed.
86169         * lib/getdate.y: Include "getdate.h" first, as we can now
86170         assume C89 and don't need to worry about 'const'.
86171         Similarly, include "unlocked-io.h" near start, not in middle.
86172         Include <limits.h>.
86173         (textint.value): Use long int rather than int.
86174         (textint.digits): Use size_t rather than int.
86175         (BILLION, LOG10_BILLION): New constants.
86176         (parser_control): New member rel_ns.  Members day_ordinal,
86177         time_zone, month, day, hour, minutes, rel_year, rel_month,
86178         rel_day, rel_hour, rel_minutes, rel_seconds
86179         are now long int, not int.  Member seconds is now struct timespec,
86180         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86181         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86182         not int.
86183         (%union.intval): Now long int, not int.
86184         New member timespec.
86185         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86186         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86187         (spec): Now is a timespec or an item list.
86188         (timespec, items): New nonterminals.
86189         (time, rel, relunit, number, get_date):
86190         Add support for fractional seconds.
86191         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86192         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86193         (to_hour): First arg is now long int, not int.
86194         (to_year): Returns long int, not int.
86195         Don't treat year -70 like 70.
86196         (tm_diff): Returns long int, not int.
86197         (lookup_word): Use bool instead of int when appropriate.
86198         (yylex): Use size_t for count, not int.
86199         Detect overflow when parsing large integer constants.
86200         Add support for fractions.
86201         (get_date): Make pointers 'const' if possible.
86202         Use more-portable code to detect integer overflow.
86203         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86204         Don't use ctime; it's not reliable if the year has >4 digits.
86205
86206         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86207         This is for compatibility with BSD.
86208
86209         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86210         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86211         From coreutils' system.h.
86212
86213         * lib/userspec.c: Don't include "posixver.h".
86214         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86215         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86216         compatible extension.  Simplify code by removing a boolean int
86217         that was always nonzero if a string was nonnull.
86218
86219 2004-03-30  Jim Meyering  <jim@meyering.net>
86220
86221         Merge from coreutils.
86222
86223         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86224         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86225         on some systems one must include <grp.h> before it.
86226         Reported by Christian Krackowizer.
86227
86228 2004-03-30  Jim Meyering  <jim@meyering.net>
86229
86230         Merge from coreutils.
86231
86232         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86233
86234         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86235         an empty input stream.
86236
86237         * lib/readtokens.c: Include <stdbool.h>.
86238         (readtoken): Use `size_t' rather than int/long.
86239         All callers adjusted.
86240         Use `bool' rather than `int' where appropriate.
86241         Use memset rather than an explicit loop.
86242         Use x2nrealloc rather than xrealloc.
86243         Allow the use of `\0' as a delimiter.
86244         (readtokens): Likewise.
86245         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86246
86247 2004-03-30  Jim Meyering  <jim@meyering.net>
86248
86249         * m4/realloc.m4: Remove file, since now it does no more than
86250         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86251         the `configure.ac' section of module/realloc.
86252         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86253
86254 2004-03-30  Bruno Haible  <bruno@clisp.org>
86255
86256         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86257         nonnull.
86258
86259 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86260
86261         Merge changes to getloadavg.c from coreutils and Emacs.
86262
86263         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86264         Define to an expression, not to the empty string.
86265         Include cloexec.h and xalloc.h.
86266         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86267         Use set_cloexec_flag rather than rolling our own.
86268         * lib/cloexec.c, lib/cloexec.h: New files.
86269
86270 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86271
86272         * m4/cloexec.m4: New file.
86273
86274 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86275
86276         * lib/getopt.h: Sync with libc CVS.
86277
86278 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86279             Bruno Haible  <bruno@clisp.org>
86280
86281         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86282         mbswidth.
86283
86284 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86285             Bruno Haible  <bruno@clisp.org>
86286
86287         * lib/mbswidth.h: Include <wchar.h> only if
86288         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86289         <wchar.h>.
86290         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86291
86292 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86293
86294         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86295         Sync with libc CVS.
86296         * lib/getopt_int.h: New file, also synced from libc.
86297
86298 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86299
86300         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86301         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86302         Bring back getopt.c, getopt.h, getopt1.c.
86303
86304 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86305
86306         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86307         All uses changed.  Check for sa_sigaction member; this fixes
86308         a bug first reported by Jason Andrade in
86309         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86310
86311 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86312
86313         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86314         '#if' expressions.  Unlike the code it replaces, it does not
86315         depend on (defined _SC_PAGESIZE).  However, it does depend on
86316         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86317         first reported by Jason Andrade in
86318         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86319
86320 2004-02-25  Simon Josefsson  <jas@extundo.com>
86321
86322         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86323
86324 2004-02-25  Simon Josefsson  <jas@extundo.com>
86325
86326         * lib/strdup.h: New file.
86327         * lib/strdup.c: Include it.
86328         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86329         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86330
86331 2004-02-23  Karl Berry  <karl@gnu.org>
86332
86333         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86334         (from fencepost.gnu.org:/gd/gnuorg).
86335
86336 2004-02-23  Karl Berry  <karl@gnu.org>
86337
86338         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86339         * config/srclist.txt: add maintain/standards documents.
86340
86341 2004-02-18  Bruno Haible  <bruno@clisp.org>
86342
86343         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86344         Reported by Derek Robert Price <derek@ximbiot.com>.
86345
86346 2004-02-16  Karl Berry  <karl@gnu.org>
86347
86348         * config/mkinstalldirs, install-sh: update from automake.
86349
86350 2004-02-06  Karl Berry  <karl@gnu.org>
86351
86352         * m4/po.m4: update from gettext 0.14.1.
86353
86354 2004-02-06  Karl Berry  <karl@gnu.org>
86355
86356         * lib/config.charset: update from gettext 0.14.1.
86357
86358 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86359
86360         Add comments and code, prompted by suggestions from Bruno Haible
86361         for sh-quote.
86362         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86363         describing the enum quoting_style values.
86364         * lib/quotearg.c (quotearg_alloc): New function.
86365         (quotearg_buffer_restyled): Treat lone { and } as special.
86366         Treat = as special.  Work around bug with older shells
86367         that "see" a '\' that is really the 2nd byte of a multibyte char.
86368         Quote empty string with shell_quoting_style.
86369
86370 2004-02-03  Bruno Haible  <bruno@clisp.org>
86371
86372         * m4/pipe.m4: New file, from GNU gettext.
86373
86374 2004-02-03  Bruno Haible  <bruno@clisp.org>
86375
86376         * lib/pipe.h: New file, from GNU gettext.
86377         * lib/pipe.c: New file, from GNU gettext.
86378
86379 2004-01-27  Bruno Haible  <bruno@clisp.org>
86380
86381         * m4/execute.m4: New file, from GNU gettext.
86382
86383 2004-01-27  Bruno Haible  <bruno@clisp.org>
86384
86385         * lib/execute.h: New file, from GNU gettext.
86386         * lib/execute.c: New file, from GNU gettext.
86387         * lib/w32spawn.h: New file, from GNU gettext.
86388
86389 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86390
86391         Merge from diffutils.
86392
86393         * lib/file-type.c (file_type): Add typed memory objects.
86394         * lib/file-type.h (S_TYPEISTMO): New macro.
86395
86396         * lib/c-stack.h (c_stack_action): Remove argv argument.
86397         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86398         (die): Don't calculate message unless segv_action returns.
86399         (get_stack_location, min_address_from_argv, max_address_from_argv,
86400         volatile stack_base, volatile_stack_size): Remove.
86401         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86402         that every segmentation violation is a stack overflow.  (Ouch!)
86403         See Debian bug 136249 (still outstanding) for more info about why
86404         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86405
86406 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86407
86408         Exit-status fix from coreutils.
86409
86410         Use exit_failure consistently in place of EXIT_FAILURE,
86411         so that program exit statuses are consistent on failure.
86412
86413         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86414         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86415         * lib/argmatch.h: Comment fix to match the above.
86416         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86417         Now a macro referring to exit_failure, instead of a separate
86418         variable.  Include "exitfail.h" to get it.
86419         * lib/xstrtol.h: Include "exitfail.h".
86420         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86421
86422         * lib/long-options.c (parse_long_options): Use prototype
86423         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86424         for clarity.
86425
86426 2004-01-21  Jim Meyering  <jim@meyering.net>
86427
86428         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86429         so as not to conflict with a different-sized __mktime_internal
86430         function in GNU libc.
86431         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86432         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86433
86434 2004-01-20  Karl Berry  <karl@gnu.org>
86435
86436         * config/config.guess: update from config.
86437
86438         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86439
86440 2004-01-20  Bruno Haible  <bruno@clisp.org>
86441
86442         Safer stack allocation.
86443         * lib/setenv.c: Include allocsa.h.
86444         (alloca): Remove fallback definition.
86445         (freea): Remove macro.
86446         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86447         instead of freea.
86448
86449 2004-01-20  Bruno Haible  <bruno@clisp.org>
86450
86451         * m4/eealloc.m4: New file, from GNU gettext.
86452
86453 2004-01-20  Bruno Haible  <bruno@clisp.org>
86454
86455         * m4/allocsa.m4: New file, from GNU gettext.
86456
86457 2004-01-20  Bruno Haible  <bruno@clisp.org>
86458
86459         * lib/xallocsa.h: New file, from GNU gettext.
86460         * lib/xallocsa.c: New file, from GNU gettext.
86461
86462 2004-01-20  Bruno Haible  <bruno@clisp.org>
86463
86464         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86465
86466 2004-01-20  Bruno Haible  <bruno@clisp.org>
86467
86468         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86469         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86470         specially.
86471
86472 2004-01-20  Bruno Haible  <bruno@clisp.org>
86473
86474         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86475         patch.
86476
86477 2004-01-20  Bruno Haible  <bruno@clisp.org>
86478
86479         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86480
86481 2004-01-20  Bruno Haible  <bruno@clisp.org>
86482
86483         * lib/eealloc.h: New file.
86484
86485 2004-01-20  Bruno Haible  <bruno@clisp.org>
86486
86487         * lib/binary-io.h: Avoid warnings on Cygwin.
86488
86489 2004-01-20  Bruno Haible  <bruno@clisp.org>
86490
86491         * lib/allocsa.h: New file, from GNU gettext.
86492         * lib/allocsa.c: New file, from GNU gettext.
86493
86494 2004-01-18  Karl Berry  <karl@gnu.org>
86495
86496         * doc/gpl.texi, doc/lgpl.texi: new files.
86497
86498 2004-01-18  Karl Berry  <karl@gnu.org>
86499
86500         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86501         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86502
86503 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86504
86505         Merge from coreutils.
86506
86507         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86508         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86509         (gl_DEFAULT_POSIX2_VERSION): Move
86510         the documentation from 'configure' into 'config.hin',
86511         so that 'configure --help' isn't burdened by it and
86512         we don't have to worry about its formatting there.
86513         Reword the documentation so that it's more succinct
86514         and can be run together into a single paragraph.
86515         * m4/same.m4 (gl_SAME): Check for pathconf.
86516
86517 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86518
86519         Merge from coreutils.
86520
86521         * lib/posixver.c: Include posixver.h.
86522
86523         * lib/same.c: Include <stdbool.h>, <limits.h>.
86524         (_POSIX_NAME_MAX): Define if not defined.
86525         (MIN): New macro.
86526         (same_name): If file names are silently truncated, report
86527         that the file names are the same if they are the same after
86528         the silent truncation.
86529
86530         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86531         conversion function.
86532         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86533         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86534         longer needed.
86535
86536 2004-01-15  Jim Meyering  <jim@meyering.net>
86537
86538         Merge from coreutils.
86539
86540         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86541         if no library is required.
86542         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86543         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86544         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86545         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86546         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86547         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86548         value, $ac_cv_search_crypt, if it's "none required".
86549         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86550         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86551         not gl_FUNC_GETLOADAVG.
86552         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86553         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86554
86555 2004-01-15  Jim Meyering  <jim@meyering.net>
86556
86557         Merge from coreutils.
86558
86559         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86560         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86561         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86562
86563         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86564         optional configure-time default.
86565
86566         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86567
86568         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86569
86570 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86571
86572         Merge from coreutils.
86573
86574         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86575         value, $ac_cv_search_nanosleep, if it's "none required".
86576
86577 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86578
86579         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86580         with like-named macro in fnmatch.c.
86581         (EXT): Use an internal constant instead.
86582
86583         Merge fnmatch patches from glibc.
86584         * lib/fnmatch.c (mbsinit): Remove define.
86585         Add libc_hidden_ver (__fnmatch, fnmatch).
86586         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86587         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86588
86589 2004-01-14  Karl Berry  <karl@gnu.org>
86590
86591         * config/install-sh: update from automake.
86592
86593 2004-01-13  Karl Berry  <karl@gnu.org>
86594
86595         * config/install-sh: update from automake.
86596
86597 2004-01-09  Karl Berry  <karl@gnu.org>
86598
86599         * config/install-sh: update from automake.
86600
86601 2004-01-05  Karl Berry  <karl@gnu.org>
86602
86603         * config/config.{sub,guess}: update from config.
86604
86605 2003-12-31  Karl Berry  <karl@gnu.org>
86606
86607         * config/depcomp: update from automake.
86608
86609 2003-12-14  Karl Berry  <karl@gnu.org>
86610
86611         * lib/config.charset: update from gettext-runtime.
86612
86613 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86614
86615         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86616         Bug reported by Alfred M. Szmidt.
86617
86618 2003-12-03  Bruno Haible  <bruno@clisp.org>
86619
86620         * m4/gettext.m4: Upgrade from gettext-0.13.
86621         * m4/po.m4: Upgrade from gettext-0.13.
86622         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86623         * m4/intmax.m4: New file, from gettext-0.13.
86624         * m4/printf-posix.m4: New file, from gettext-0.13.
86625
86626 2003-11-29  Karl Berry  <karl@gnu.org>
86627
86628         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86629
86630 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86631             Bruno Haible  <bruno@clisp.org>
86632
86633         * lib/printf-parse.h: Don't include sys/types.h.
86634         (ARG_NONE): New macro.
86635         (char_directive): Change type of *arg_index fields to size_t.
86636         * lib/printf-parse.c: Don't include sys/types.h.
86637         (SSIZE_MAX): Remove macro.
86638         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86639         Remove unnecessary overflow check.
86640         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86641         fields.
86642
86643 2003-11-25  Bruno Haible  <bruno@clisp.org>
86644
86645         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86646
86647 2003-11-25  Bruno Haible  <bruno@clisp.org>
86648
86649         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86650         gt_TYPE_SSIZE_T.
86651
86652 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86653
86654         * modules/alloca: Remove dependency on xalloc.
86655
86656 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86657
86658         * lib/alloca.c: Remove dependency on xalloc module.
86659         (xalloc_die): Remove.
86660         (memory_full) [!defined emacs]: New macro.
86661         [!defined emacs]: Don't include xalloc.h.
86662         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86663         address arithmetic overflows.  Change datatypes a bit to avoid
86664         unnecessary casts.
86665
86666 2003-11-22  Jim Meyering  <jim@meyering.net>
86667
86668         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86669         s/size/size_t/.
86670
86671 2003-11-21  Karl Berry  <karl@gnu.org>
86672
86673         * config/config.{sub,guess}: update from config.
86674
86675 2003-11-18  Karl Berry  <karl@gnu.org>
86676
86677         * config/config.{sub,guess}: update from config.
86678
86679         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86680
86681 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86682
86683         * README: Mention that S+T cannot overflow if S is the size of
86684         an existing object and T is sufficiently small.
86685
86686 2003-11-17  Jim Meyering  <jim@meyering.net>
86687
86688         On systems without utime and without a utimes function capable of
86689         dealing with a NULL struct utimbuf* argument, this utime replacement
86690         could -- in unusual circumstances -- leak a file descriptor.
86691         * lib/utime.c: Include <unistd.h> and <errno.h>.
86692         (utime_null): Be sure to close `fd' and to preserve errno.
86693         Reported by Geoff Collyer via Arnold Robbins.
86694
86695 2003-11-17  Bruno Haible  <bruno@clisp.org>
86696
86697         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86698         (Depends-on): Add xsize.
86699
86700 2003-11-17  Bruno Haible  <bruno@clisp.org>
86701
86702         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86703
86704 2003-11-17  Bruno Haible  <bruno@clisp.org>
86705
86706         * lib/vasnprintf.c (alloca): Remove fallback definition.
86707         (freea): Remove definition.
86708         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86709         Reported by Paul Eggert.
86710
86711 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86712             Bruno Haible  <bruno@clisp.org>
86713
86714         Protect against address arithmetic overflow.
86715         * lib/printf-args.h: Include stddef.h.
86716         (arguments): Change type of field 'count' to size_t.
86717         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86718         'unsigned int' where appropriate.
86719         * lib/printf-parse.h: Include sys/types.h.
86720         (char_directive): Change type of *arg_index fields to ssize_t.
86721         (char_directives): Change type of fields 'count', max_*_length to
86722         size_t.
86723         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86724         (SSIZE_MAX): Define fallback value.
86725         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86726         instead of 'int' where appropriate. Check a_allocated, d_allocated
86727         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86728         * lib/vasnprintf.c: Include xsize.h.
86729         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86730         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86731         overflow. Avoid wraparound when converting a width or precision from
86732         decimal to binary.
86733
86734 2003-11-16  Bruno Haible  <bruno@clisp.org>
86735
86736         Update from GNU gettext.
86737         * lib/printf-parse.c: Generalize to it can be compiled for wide
86738         strings.
86739         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86740         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86741         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86742         SNPRINTF): New macros.
86743         Don't include <alloca.h> if the file is used inside libintl.
86744         (local_wcslen): New function, for Solaris 2.5.1.
86745         (VASNPRINTF): Use it instead of wcslen.
86746
86747 2003-11-16  Bruno Haible  <bruno@clisp.org>
86748
86749         * lib/xsize.h (xmax): New function.
86750         (xsum, xsum3, xsum4): Declare as "pure" functions.
86751
86752 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86753
86754         * modules/xalloc (Files): Undo latest change, since xalloc.h
86755         no longer needs SIZE_MAX or PTRDIFF_MAX.
86756
86757 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86758
86759         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86760         gl_PTRDIFF_MAX.
86761
86762 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86763
86764         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86765         "return", to pacify some unknown compiler.  Problem reported
86766         by Joerg Schilling.
86767
86768 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86769
86770         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86771         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86772         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86773         heuristic is just as accurate as far as we know, and it removes a
86774         dependency on size_max.m4 and ptrdiff_max.m4.
86775
86776 2003-11-11  Bruno Haible  <bruno@clisp.org>
86777
86778         * modules/xsize (Files): Add m4/size_max.m4.
86779         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86780
86781 2003-11-11  Bruno Haible  <bruno@clisp.org>
86782
86783         * m4/size_max.m4: New file.
86784         * m4/ptrdiff_max.m4: New file.
86785         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86786         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86787         (gl_XALLOC): Invoke it.
86788
86789 2003-11-11  Bruno Haible  <bruno@clisp.org>
86790
86791         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86792         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86793         defined.
86794
86795 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86796
86797         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86798         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86799         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86800         From Bruno Haible.
86801         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86802         not (size_t) -1, since it's defined here.
86803
86804 2003-11-09  Karl Berry  <karl@gnu.org>
86805
86806         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86807
86808 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86809
86810         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86811         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86812         Reject sizes of exactly SIZE_MAX bytes.
86813         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86814         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86815
86816 2003-11-05  Bruno Haible  <bruno@clisp.org>
86817
86818         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86819         SIZE_MAX defined in <limits.h> on Solaris.
86820
86821 2003-11-04  Jim Meyering  <jim@meyering.net>
86822
86823         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86824         variable names, rather than @VAR@.
86825         * modules/poll: Likewise.
86826
86827 2003-11-04  Bruno Haible  <bruno@clisp.org>
86828
86829         * modules/xsize: New file.
86830         * modules/linebreak: Depend on xsize.
86831         * MODULES.html.sh (func_all_modules): Add xsize.
86832
86833 2003-11-04  Bruno Haible  <bruno@clisp.org>
86834
86835         * m4/xsize.m4: New file.
86836
86837 2003-11-04  Bruno Haible  <bruno@clisp.org>
86838
86839         * lib/xsize.h: New file.
86840         * lib/linebreak.c: Include xsize.h.
86841         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86842         argument for overflow.
86843         Suggested by Paul Eggert.
86844
86845 2003-11-03  Karl Berry  <karl@gnu.org>
86846
86847         * config/config.{guess,sub}: update from config.
86848
86849 2003-11-03  Jim Meyering  <jim@meyering.net>
86850
86851         * modules/userspec (lib_SOURCES): Add userspec.h.
86852         (Include): Add "userspec.h".
86853         Improve description.
86854
86855 2003-11-03  Jim Meyering  <jim@meyering.net>
86856
86857         * lib/userspec.c: Include "userspec.h".
86858         * lib/userspec.h: New file.
86859
86860 2003-11-03  Bruno Haible  <bruno@clisp.org>
86861
86862         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86863
86864 2003-11-03  Bruno Haible  <bruno@clisp.org>
86865
86866         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86867         available, to avoid (extremely rare) race condition.
86868         Suggested by Paul Eggert.
86869
86870 2003-11-02  Karl Berry  <karl@gnu.org>
86871
86872         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86873
86874 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86875
86876         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86877         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86878         (read_filesystem_list): Set and use me_type_malloced.
86879         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86880         whatever the type happens to be), for brevity and consistency.
86881         Check for size calculation overflow on Alphas running OSF/1.
86882
86883 2003-10-31  Jim Meyering  <jim@meyering.net>
86884
86885         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86886
86887         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86888
86889 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86890             Bruno Haible  <bruno@clisp.org>
86891
86892         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86893         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86894
86895 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86896
86897         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86898         netbsd*-gnu*.  Suggested by Robert Millan.
86899
86900 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86901
86902         * modules/group-member: Depend on stdbool.
86903
86904 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86905
86906         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86907
86908 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86909
86910         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86911         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86912         after the 'gnu' in these cases.  This fixes some bugs in the
86913         previous change, and is based on suggestions by Robert Millan.
86914
86915 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86916
86917         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86918         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86919         no longer needed.
86920         * lib/quotearg.c (quotearg_n_options): Use it.
86921         * lib/group-member.c: Include <stdbool.h>.
86922         (free_group_info): Arg is now const *; don't free arg.
86923         (get_group_info): Now returns bool and accepts struct group_info *,
86924         rather than returning a malloc'ed struct group_info *.
86925         All uses changed.  Check for overflow in internal size calculation.
86926
86927         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86928         rather than xmalloc/xrealloc.
86929         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86930         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86931         conformance bug: the old code used a pointer after freeing the
86932         storage that it addressed.
86933         * lib/hash.c (hash_initialize): Simplify the code by using
86934         xalloc_oversized rather than doing it by hand.
86935         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86936         the buffer preserved.  Use free and xmalloc instead.
86937         * lib/quotearg.c (quotearg_n_options): Likewise.
86938         Use a simpler test for size overflow.  Don't use xalloc_oversized
86939         because unsigned int might be wider than size_t (!); this suggests
86940         that we should switch from unsigned int to size_t for slot numbers.
86941
86942 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86943
86944         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86945         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86946         NetBSD kernels.  Requested by Richard Stallman.
86947
86948 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86949
86950         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86951         to allocate the returned structure.  Do not allocate a subarray,
86952         as x2nrealloc will do that.
86953         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86954         instead of xnrealloc.
86955         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86956
86957 2003-10-27  Bruno Haible  <bruno@clisp.org>
86958
86959         * lib/stdbool_.h: Better support for BeOS.
86960
86961 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86962
86963         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86964         now uses inline.
86965
86966 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86967
86968         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86969         callers that want to do their own size-overflow checking.  Include
86970         <stdbool.h>, since xalloc_oversized returns bool.
86971         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86972         to use xalloc_oversized.
86973
86974         Add two functions x2realloc, x2nrealloc, for programs that grow
86975         arrays dynamically by doubling their sizes.
86976         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86977         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86978         New functions.
86979
86980         Port to C99 semantics for 'inline' of external functions.
86981         Bug reported by Bruno Haible.
86982         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86983         with the old contents of xnmalloc.
86984         (xnmalloc, xmalloc): Use it.
86985         (xnrealloc_inline): New static inline function,
86986         with the old contents of xnrealloc.
86987         (xnrealloc, xrealloc): Use it.
86988
86989         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86990         that.
86991
86992 2003-10-26  Karl Berry  <karl@gnu.org>
86993
86994         * config/srclist.txt (COPYING.DOC): no longer available from
86995         /gd/gnuorg; don't know where the ultimate source is.
86996
86997 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86998
86999         Fix several address-calculation bugs in the hash modules,
87000         plus some minor code cleanup.
87001
87002         * lib/hash.h: Include <stdbool.h>, for bool.
87003         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87004         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87005         hash_get_n_entries, hash_get_max_bucket_length,
87006         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87007         hash_rehash): Use size_t rather than unsigned.
87008         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87009         hash_get_n_buckets_used, hash_get_n_entries,
87010         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87011         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87012         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87013         Likewise.
87014         (SIZE_MAX): Define if not defined.
87015         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87016         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87017         hash_print):
87018         Use const * when possible.
87019         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87020         (check_tuning): Fix bug: if tuning parameters were very close to
87021         0 or 1, rounding errors could have caused subscript violations.
87022         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87023         (hash_initialize): Add 'fail:' label
87024         to free table and return NULL, and use it to simplify code.
87025         Use calloc rather than clearing the storage ourself.
87026         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87027         buffer size calculations.
87028         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87029         Include <stddef.h>, for size_t.
87030         * lib/hash-pjw.c (hash_pjw): Likewise.
87031         Switch to method described by Bruno Haible.
87032         Include <limits.h>, for CHAR_BIT.
87033         (SIZE_BITS): New macro.
87034
87035 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87036
87037         * m4/getline.m4 (AM_FUNC_GETLINE):
87038         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87039         hosts.  Problem reported by Derek Robert Price in
87040         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87041         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87042         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87043
87044 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87045
87046         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87047         ceiling the allocation at NMAX bytes rather than silently
87048         discarding input bytes before NMAX is reached.  This makes
87049         a difference only if NMAX exceeds SIZE_MAX / 2.
87050
87051         * lib/obstack.c: Merge from glibc.
87052         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87053         Add libc_hidden_def (_obstack_newchunk).
87054         (_obstack_free) [! defined _LIBC]: Remove.
87055         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87056         a clone of the function body.
87057         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87058         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87059
87060         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87061         glibc.
87062         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87063         arg to memcpy.
87064
87065         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87066         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87067         Don't use lvalue casts, as GCC plans to remove support for them
87068         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87069         was also present in the non-GCC version, indicating that this
87070         code had always been buggy and had never been widely used.
87071         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87072         Use the fast variant of each macro, rather than copying the
87073         definiens of the fast variant; that way, we'll be more likely to
87074         catch future bugs in the fast variants.
87075
87076 2003-10-20  Bruno Haible  <bruno@clisp.org>
87077
87078         * modules/wait-process: New file.
87079         * MODULES.html.sh (func_all_modules): Add wait-process.
87080
87081 2003-10-20  Bruno Haible  <bruno@clisp.org>
87082
87083         * m4/wait-process.m4: New file.
87084
87085 2003-10-20  Bruno Haible  <bruno@clisp.org>
87086
87087         * lib/wait-process.h: New file, from GNU gettext.
87088         * lib/wait-process.c: New file, from GNU gettext.
87089
87090 2003-10-19  Jim Meyering  <jim@meyering.net>
87091
87092         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87093         HPUX 10.20.
87094
87095 2003-10-18  Karl Berry  <karl@gnu.org>
87096
87097         * config/config.guess: update from config.
87098
87099 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87100
87101         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87102         (getgroups): First arg is int, not size_t.
87103         Don't let 'free' mangle errno.
87104
87105 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87106
87107         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87108
87109 2003-10-16  Karl Berry  <karl@gnu.org>
87110
87111         * config/config.{guess,sub}: update from config.
87112
87113 2003-10-16  Jim Meyering  <jim@meyering.net>
87114
87115         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87116         memcpy.
87117
87118 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87119
87120         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87121         (SIZE_MAX): Remove.
87122         (new_exclude, add_exclude_file): Initial size no longer needs to
87123         be a power of 2.
87124         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87125         our own address arithmetic overflow checking.
87126
87127         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87128         (fnmatch): Do not alloca more than 2000 wide characters;
87129         instead, use malloc for large buffers.
87130         Check for address arithmetic overflow, and return -1
87131         with errno set to ENOMEM in that case.
87132         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87133         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87134         instead, return -1.  Check for address arithmetic overflow.
87135
87136 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87137
87138         Handle invalid suffixes and overflow independently, so that
87139         callers can treat them independently as needed.  Fix some bugs in
87140         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87141         suffix for a human-readable blocksize.  The major caller-visible
87142         change is the addition of a new
87143         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87144         that both overflow and suffix chars were found.
87145
87146         * lib/human.c (humblock): Don't check separately for invalid suffix
87147         char; that is xstrtoumax's job (now that its bug is fixed).
87148         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87149         INTMAX_MAX]: New macros.
87150         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87151         TYPE_MAXIMUM): New macros.
87152         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87153         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87154         if overflow occurs, as it's what __strtol does and it's more useful
87155         in practice.
87156         (__xstrtol): If __strtol reports some error other than ERANGE,
87157         reflect it to the caller as LONGINT_INVALID.  If it reports
87158         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87159         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87160         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87161         value.
87162         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87163         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87164         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87165         [defined UINTMAX_MAX]: New macros.
87166
87167 2003-10-14  Bruno Haible  <bruno@clisp.org>
87168
87169         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87170
87171 2003-10-14  Bruno Haible  <bruno@clisp.org>
87172
87173         * m4/sig_atomic_t: New file, from GNU gettext.
87174         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87175
87176 2003-10-14  Bruno Haible  <bruno@clisp.org>
87177
87178         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87179         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87180         Also use volatile where needed.
87181
87182 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87183
87184         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87185         Change maintainer from Bruno Haible to 'all'.
87186
87187 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87188
87189         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87190
87191 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87192
87193         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87194         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87195         and define in terms of the other primitives.
87196         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87197         (SIZE_MAX): Define if not already defined.
87198         (array_size_overflow): New function.
87199         (xalloc_die): Abort instead of exiting if 'error' returns.
87200         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87201         (xmalloc, xrealloc): Use them.
87202         (xcalloc): Check for address arithmetic overflow.
87203         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87204         a bit faster than strcpy.
87205
87206 2003-10-10  Simon Josefsson  <jas@extundo.com>
87207
87208         * modules/argp (Depends-on): Add restrict and strcase.
87209
87210 2003-10-10  Simon Josefsson  <jas@extundo.com>
87211
87212         * m4/argp.m4: Add AC_C_INLINE.
87213
87214 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87215
87216         Merge getpass from libc, plus a few fixes.
87217
87218         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87219         Include <stdbool.h>.
87220         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87221         __fsetlocking to empty.
87222         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87223         do include <bits/libc-lock.h>.
87224         Do not include <fcntl.h>; not needed.
87225         [_LIBC]: Include <wchar.h>.
87226         (NOTCANCEL_MODE): New macro.
87227         (flockfile, funlockfile) [_LIBC]: New macros.
87228         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87229         [!_LIBC]: New macros.
87230         (call_fclose): New function.
87231         (getpass): Use it.  Save tty stream separately; this simplifies the
87232         code and makes it more reliable if stdin happens to equal stdout.
87233         Invoke __fsetlocking on tty.
87234         Handle thread cancellation if needed.
87235         Namespace cleanup (use __tcgetattr, __getline).
87236         Use bool for Booleans.
87237         [USE_IN_LIBIO]: Handle wide streams.
87238         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87239         stream might go where.
87240
87241         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87242         doesn't have to include <stdio.h> before us.
87243         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87244         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87245         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87246         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87247         if not declared, so that we can use getpass.c code from libc without
87248         rewriting it.
87249         (flockfile, ftrylockfile, funlockfile): New macros.
87250
87251 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87252
87253         * modules/getpass: Depend on stdbool.
87254
87255 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87256
87257         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87258
87259 2003-10-07  Karl Berry  <karl@gnu.org>
87260
87261         * config/config.{guess,sub}: update from config.
87262
87263 2003-10-06  Jim Meyering  <jim@meyering.net>
87264             Bruno Haible  <bruno@clisp.org>
87265
87266         This lets translators provide better translations for the
87267         "Written by ..." part of --version output.
87268         * lib/version-etc.h: Include stdarg.h.
87269         (version_etc_copyright): Declare as readonly.
87270         (version_etc): Make this function variadic with a NULL-terminated list
87271         of author name strings.
87272         (version_etc_va): New declaration.
87273         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87274         (version_etc_copyright): Declare as readonly.
87275         (version_etc_va): New function. Provide a different translatable string
87276         for each possible number of authors < 10. Abbreviate when there are 10
87277         authors or more.
87278         (version_etc): Make this function variadic. Call version_etc_va.
87279         Suggestion from Gary V. Vaughan.
87280
87281         * lib/long-options.h (parse_long_options): Change prototype: the
87282         authors string is moved to the end and becomes variadic.
87283         * lib/long-options.c: Include stdarg.h.
87284         (parse_long_options): Make this function variadic, too.
87285         Call version_etc_va, not version_etc.
87286
87287 2003-10-06  Bruno Haible  <bruno@clisp.org>
87288
87289         * modules/version-etc-2: Remove file.
87290         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87291
87292 2003-10-06  Bruno Haible  <bruno@clisp.org>
87293
87294         * modules/fatal-signal: New file.
87295         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87296
87297 2003-10-06  Bruno Haible  <bruno@clisp.org>
87298
87299         * m4/fatal-signal.m4: New file.
87300         * m4/signalblocking.m4: New file, from GNU gettext.
87301
87302 2003-10-06  Bruno Haible  <bruno@clisp.org>
87303
87304         * lib/version-etc-2.h: Remove file.
87305         * lib/version-etc-2.c: Remove file.
87306
87307 2003-10-06  Bruno Haible  <bruno@clisp.org>
87308
87309         * lib/fatal-signal.h: New file, from GNU gettext.
87310         * lib/fatal-signal.c: New file, from GNU gettext.
87311
87312 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87313
87314         * README: Rework advice for preventing empty .o files.
87315         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87316         not <sys/types.h>.
87317
87318 2003-10-04  Karl Berry  <karl@gnu.org>
87319
87320         * lib/argp*: update from libc.
87321
87322 2003-10-04  Karl Berry  <karl@gnu.org>
87323
87324         * config/config.{guess,sub}: update from config.
87325
87326 2003-10-02  Bruno Haible  <bruno@clisp.org>
87327
87328         * modules/lchown (Include): Add lchown.h.
87329         * modules/time_r (Include): Use "..." syntax.
87330         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87331
87332 2003-10-01  Simon Josefsson  <jas@extundo.com>
87333
87334         * MODULES.html.sh (func_all_modules): Move gethostname from section
87335         'based on' to section 'lacking' POSIX:2001.
87336
87337 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87338
87339         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87340         to output mode on the same stream.
87341
87342 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87343
87344         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87345         Fix arg typo in previous patch.
87346
87347 2003-09-28  Jim Meyering  <jim@meyering.net>
87348
87349         * lib/error.c: Correct cpp indentation.
87350
87351 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87352
87353         * modules/free: New file.
87354
87355 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87356
87357         * m4/free.m4: New file.
87358
87359 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87360
87361         * lib/minmax.h (MIN, MAX)
87362         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87363         Omit the special code that used __typeof__, since we worry that
87364         it could be more trouble than it's worth.  See:
87365         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87366         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87367
87368         * lib/free.c: New file.
87369
87370 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87371
87372         Trivial fixes to Makefile.am parts of module listings.
87373         * modules/strstr: Append strstr.h to lib_SOURCES.
87374         * modules/strcase: Likewise, for strcase.h.
87375
87376 2003-09-27  Karl Berry  <karl@gnu.org>
87377
87378         * config/mkinstalldirs: update from automake.
87379
87380 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87381
87382         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87383         (error_tail): Do not loop, reallocating temporary buffer, since
87384         the output cannot contain more wide characters than the input
87385         contains bytes, the size must be big enough already.  This avoids
87386         one potential size overflow calculation.  Check for size overflow
87387         when calculating temporary buffer size.  Free temporary buffer
87388         when done, if it was allocated with malloc; this plugs a memory
87389         leak.  Remove casts from void * to pointers, that are no longer
87390         needed now that we're assuming C89 or better.
87391
87392         Merge error changes from glibc.
87393
87394         * lib/error.c, error.h: Update copyright notice header to match glibc.
87395         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87396         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87397         Disable cancellation while printing error.
87398         * lib/error.h: Prepend __ to parameter names.
87399
87400 2003-09-26  Jim Meyering  <jim@meyering.net>
87401
87402         * lib/error.c (error_tail): Move some declarations
87403         into inner scope where the local variables are used.
87404
87405 2003-09-26  Bruno Haible  <bruno@clisp.org>
87406
87407         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87408         stpncpy().
87409         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87410
87411 2003-09-26  Bruno Haible  <bruno@clisp.org>
87412
87413         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87414         (stpncpy): Define as alias for gnu_stpncpy.
87415         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87416
87417 2003-09-25  Simon Josefsson  <jas@extundo.com>
87418
87419         * lib/xgetdomainname.h: New file.
87420         * lib/xgetdomainname.c: New file.
87421
87422 2003-09-25  Simon Josefsson  <jas@extundo.com>
87423             Bruno Haible  <bruno@clisp.org>
87424
87425         * modules/getdomainname: New file.
87426         * modules/xgetdomainname: New file.
87427         * MODULES.html.sh (func_all_modules): Add getdomainname,
87428         xgetdomainname.
87429
87430 2003-09-25  Simon Josefsson  <jas@extundo.com>
87431             Bruno Haible  <bruno@clisp.org>
87432
87433         * m4/getdomainname.m4: New file.
87434
87435 2003-09-25  Simon Josefsson  <jas@extundo.com>
87436             Bruno Haible  <bruno@clisp.org>
87437
87438         * lib/getdomainname.h: New file.
87439         * lib/getdomainname.c: New file.
87440
87441 2003-09-25  Karl Berry  <karl@gnu.org>
87442
87443         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87444
87445 2003-09-25  Karl Berry  <karl@gnu.org>
87446
87447         * config/install-sh: update from automake.
87448
87449 2003-09-25  Bruno Haible  <bruno@clisp.org>
87450
87451         * modules/version-etc-2: New file, from modules/version-etc with
87452         modifications.
87453         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87454
87455 2003-09-25  Bruno Haible  <bruno@clisp.org>
87456
87457         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87458         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87459
87460 2003-09-24  Simon Josefsson  <jas@extundo.com>
87461
87462         * modules/xgethostname: Add xgethostname.h.
87463
87464 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87465
87466         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87467         the buffer associated with the argument.  Bug reported by
87468         Simon Josefsson.
87469
87470 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87471
87472         * README: Document assumptions that 'int' is at least 32 bits
87473         wide, that integer arithmetic is 2's complement without overflow,
87474         that there are no holes in integer values, that adding sizes of
87475         two nonoverlapping objects can't overflow, and that all-bits-zero
87476         yields scalar zero.  Fix spelling and capitalization typos.
87477
87478 2003-09-19  Karl Berry  <karl@gnu.org>
87479
87480         * lib/argp.h: update from libc.
87481
87482 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87483
87484         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87485         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87486         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87487
87488 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87489
87490         * gnulib-tool: Use "test -h", not "test -L", for portability
87491         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87492         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87493         (sed_extract_prog): Issue s commands one-by-one, rather than
87494         using \| in one s command.
87495
87496 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87497
87498         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87499         input error, instead of returning NULL the next time we are called
87500         (and therefore losing track of errno).
87501
87502 2003-09-16  Bruno Haible  <bruno@clisp.org>
87503
87504         * gnulib-tool (func_create_testdir): Warn about duplicated
87505         dependencies.
87506
87507 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87508
87509         * modules/argmatch, modules/fatal, modules/obstack,
87510         modules/xalloc, modules/xgethostname: Sort dependencies by
87511         importance, not alphabetically.
87512
87513 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87514
87515         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87516         fails, so that the caller gets the proper errno.
87517
87518         * lib/readutmp.c (read_utmp): Likewise.
87519         Check for fstat error.  Close stream and free storage
87520         when failing.
87521
87522 2003-09-14  Karl Berry  <karl@gnu.org>
87523
87524         * config/srclist.txt (strdup.c): disable for c89 changes.
87525
87526 2003-09-14  Jim Meyering  <jim@meyering.net>
87527
87528         * lib/getloadavg.c: Correct cpp indentation.
87529         * lib/strdup.c: Likewise.
87530         * lib/vasnprintf.c: Likewise.
87531
87532 2003-09-14  Bruno Haible  <bruno@clisp.org>
87533
87534         * modules/fwriteerror: New file.
87535         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87536
87537 2003-09-14  Bruno Haible  <bruno@clisp.org>
87538
87539         * lib/fwriteerror.h: New file.
87540         * lib/fwriteerror.c: New file.
87541
87542 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87543
87544         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87545         modules/xgethostname, modules/xalloc: Depend on exit.
87546
87547 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87548
87549         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87550
87551         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87552         and AC_MINIX, too, so that their extensions are available.
87553
87554         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87555         This macro has been superseded by gl_BACKUPFILE.
87556
87557         More patches to assume C89 or better.
87558
87559         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87560
87561         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87562         unconditionally.
87563         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87564         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87565         Include <string.h>, <stdlib.h> unconditionally.
87566         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87567         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87568         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87569         headers or for string.h.
87570         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87571         or strtoul.
87572
87573         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87574         headers.
87575         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87576         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87577         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87578         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87579         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87580         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87581         memcpy, memset.
87582         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87583         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87584         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87585         strtol.
87586         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87587         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87588         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87589         strtoul.
87590
87591 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87592
87593         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87594         * lib/obstack.c [!defined _LIBC]: Likewise.
87595         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87596         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87597         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87598
87599         More changes to assume C89 or better.
87600
87601         * lib/error.c (error_tail): Assume vprintf.
87602
87603         * lib/argmatch.c (getenv): Remove decl.
87604         * lib/progreloc.c (get_full_program_name): Define via prototype.
87605         * lib/setenv.c (clearenv): Likewise.
87606         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87607         needed.
87608         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87609         (malloc, memcpy): Remove decls.
87610         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87611         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87612         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87613         (memcpy): Remove macro.
87614         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87615         (__P): Remove.  All uses removed.
87616         (PTR): Remove.  All uses changed to void *.
87617         (CHAR_BIT, NULL): Remove.
87618         (spaces, zeros, memset_space, memset_zero)
87619         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87620         Remove.
87621         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87622         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87623         Define with prototype.
87624         Remove now-unnecessary prototype decl.
87625         (extra_args_spec): Assume ANSI C.  All uses changed.
87626         (extra_args_spec_iso): Remove.
87627         (my_strftime, emacs_strftimeu): Define via prototype.
87628         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87629         unconditionally.
87630         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87631         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87632         (strtoul, strtol): Remove decls.
87633         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87634         LONG_MAX): Remove.
87635         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87636         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87637         (LOCALE_PARAM_PROTO): New macro.
87638         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87639         (INTERNAL (strtol), strtol): Define with a prototype.
87640         (PARAMS): Remove.  All uses removed.
87641         * lib/tempname.c: Include <string.h> unconditionally.
87642         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87643         * lib/xgethostname.c (main): Define with a prototype.
87644         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87645         Include <stdlib.h> unconditionally.
87646         (calloc, malloc, realloc, free): Remove decls.
87647         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87648         Include <stdlib.h> unconditionally.  Sort include file names.
87649         (strtod): Remove.
87650         (xstrtod): Define with a prototype.
87651         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87652         (strtol, strtoul): Remove decls.
87653
87654 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87655
87656         More patches to assume C89 or better.
87657         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87658         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87659         string.h, memchr, STDC_HEADERS.
87660
87661 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87662
87663         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87664         Include <stdlib.h>, <string.h> unconditionally.
87665         Remove now-unnecessary cast to char *.
87666         * lib/strnlen.c: Include <string.h> unconditionally.
87667         * lib/yesno.c (yesno): Define with a prototype.
87668
87669 2003-09-11  Bruno Haible  <bruno@clisp.org>
87670
87671         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87672
87673 2003-09-10  Jim Meyering  <jim@meyering.net>
87674
87675         * lib/error.c: Correct indentation of cpp directives.
87676
87677 2003-09-10  Bruno Haible  <bruno@clisp.org>
87678
87679         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87680         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87681         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87682         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87683         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87684         <stdlib.h> and <string.h> checks.
87685         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87686         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87687
87688 2003-09-10  Bruno Haible  <bruno@clisp.org>
87689
87690         * lib/strcspn.c: Include <string.h> unconditionally.
87691         * lib/strpbrk.c: Include <string.h> unconditionally.
87692         * lib/strstr.c: Include <string.h> unconditionally.
87693         * lib/unicodeio.c: Include <string.h> unconditionally.
87694         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87695         * lib/unsetenv.c: Likewise.
87696         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87697         * lib/yesno.c: Include <stdlib.h> unconditionally.
87698         (rpmatch): Add prototype.
87699
87700 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87701
87702         More patches to assume C89 or better.
87703         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87704         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87705         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87706         or for string.h.
87707         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87708         stdlib.h.
87709         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87710         C headers.
87711         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87712         string.h.
87713         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87714         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87715         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87716         or for string.h.
87717         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87718         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87719         C headers.
87720         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87721         memcpy.
87722         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87723         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87724         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87725         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87726         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87727         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87728         string.h, free.
87729         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87730         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87731         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87732         C headers, or for string.h.
87733         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87734         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87735         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87736         headers, memory.h, stdlib.h, string.h, strings.h.
87737         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87738         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87739         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87740         strchr.
87741         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87742         headers, memory.h, string.h.
87743         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87744         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87745         free.
87746         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87747         headers.
87748         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87749         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87750         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87751         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87752         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87753
87754 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87755
87756         More K&R removal.
87757
87758         * lib/acosl.c (main): Use a prototype.
87759         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87760         tanl.c: Likewise.
87761
87762         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87763
87764         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87765         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87766         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87767         with a prototype.
87768         * lib/getopt.c (const): Remove macro.
87769         Include <string.h> unconditionally.
87770         (my_index): Remove; all uses changed to strchr.
87771         (strlen): Remove decl.
87772         (exchange): Remove forward decl; no longer needed.
87773         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87774         Define with prototype.
87775         * lib/getopt1.c (const): Remove macro.
87776         (getopt_long, getopt_long_only, main): Define with prototype.
87777
87778         * lib/getugroups.c: Include <string.h> unconditionally.
87779
87780         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87781         (getusershell, setusershell, endusershell, readname, main):
87782         Define with prototypes.
87783
87784         * lib/group-member.c: Include group-member.h first.
87785         Include <stdlib.h> unconditionally.
87786
87787         * lib/hard-locale.c: Include hard-locale.h first.
87788         Include <stdlib.h>, <string.h> unconditionally.
87789
87790         * lib/hash.c (free, malloc): Remove decls.
87791         Include <stdlib.h> unconditionally.
87792
87793         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87794         (getenv): Do not declare.
87795
87796         * lib/idcache.c: Include <string.h> unconditionally.
87797
87798         * lib/long-options.c: Include long-options.h first, to test interface.
87799         Include <stdlib.h> unconditionally.
87800
87801         * lib/makepath.c: Include makepath.h first, to test interface.
87802         Include <stdlib.h> and <string.h> unconditionally.
87803
87804         * lib/linebuffer.c: Include <stdlib.h>.
87805         (free): Remove decl.
87806
87807         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87808         stddef.h. rpl_malloc returns void *, not char *.
87809         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87810         prototype.
87811
87812         * lib/md5.h: Include <limits.h> unconditionally.
87813         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87814         (__P): Remove; all uses removed.
87815         * lib/md5.c: Include "md5.h" first.
87816         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87817         md5_buffer, md5_process_bytes, md5_process_block):
87818         Define with prototypes.
87819         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87820         * lib/sha.c: Include "sha.h" first.
87821         Include <stdlib.h>, <string.h> unconditionally.
87822
87823         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87824         * lib/memcmp.c (__ptr_t): Likewise.
87825         * lib/memrchr.c (__ptr_t): Likewise.
87826         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87827         Include <string.h> unconditionally.
87828         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87829         * lib/memchr.c: Include <stdlib.h> unconditionally.
87830         * lib/memchr.c (LONG_MAX): Remove.
87831         * lib/memrchr.c (LONG_MAX): Likewise.
87832         * lib/memchr.c (__memchr): Define via a prototype.
87833         * lib/memrchr.c (__memrchr): Likewise.
87834         * lib/memcmp.c (__P): Remove, and remove all uses.
87835         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87836         Remove forward decls; no longer needed.
87837         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87838         Use types required by C89 in prototype.
87839
87840         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87841         * lib/savedir.c: Likewise.
87842         * lib/mkdir.c (free): Remove decl.
87843         * lib/rmdir.c (rmdir): Define with a prototype.
87844         * lib/savedir.c: Include savedir.h first, to test interface.
87845
87846         * lib/mktime.c (STDC_HEADERS): Remove.
87847         Include <stdlib.h>, <string.h> unconditionally.
87848
87849         * lib/modechange.c: Include <stdlib.h> unconditionally.
87850         (malloc): Remove decl.
87851
87852         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87853         (free): Remove decl.
87854
87855         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87856         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87857         (This type really should be intptr_t, but that's a C99ism.)
87858         (_obstack_memcpy): Remove: all uses changed to memcpy.
87859         Include <string.h> unconditionally.
87860         (struct obstack): Assume __STDC__ for types of members
87861         chunkfun, freefun, extra_arg.
87862         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87863         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87864         obstack_begin, obstack_specify_allocation,
87865         obstack_specify_allocation_with_arg, obstack_chunkfun,
87866         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87867         Remove unprototyped decls and the macros that use them.
87868         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87869         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87870         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87871         (defined __STDC__ && __STDC__)]:
87872         Remove nonprototyped code.
87873         Include <stdlib.h> unconditionally.
87874         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87875         _obstack_allocated_p, _obstack_free, obstack_free,
87876         _obstack_memory_used, print_and_abort):
87877         Define using prototypes.
87878         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87879         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87880         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87881         obstack_next_free, obstack_object_size, obstack_room) [0]:
87882         Remove unused, unprototyped code.
87883
87884         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87885
87886         * lib/physmem.c (physmem_total, physmem_available, main): Define
87887         with prototypes.
87888
87889         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87890         (main): Define with a prototype.
87891
87892         * lib/posixver.c (getenv): Remove decl.
87893
87894         * lib/putenv.c (malloc): Returns void *, not char *.
87895         Include <string.h> unconditionally.
87896         (strchr, memcpy, NULL): Do not define.
87897
87898         * lib/readtokens.c: Include readtokens.h first, to test interface.
87899         Include <stdlib.h>, <string.h> unconditionally.
87900         (init_tokenbuffer): Define with a prototype.
87901
87902         * lib/regex.c (PARAMS): Remove.  All uses removed.
87903         All uses of _RE_ARGS removed, too.
87904         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87905         unconditionally.
87906         (bzero): Assume memset exists.
87907         (memcmp, memcpy, NULL): Remove.
87908         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87909         char, or assignments to local vars of type signed char.
87910         (init_syntax_once, PREFIX(extract_number_and_incr),
87911         PREFIX(print_partial_compiled_pattern),
87912         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87913         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87914         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87915         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87916         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87917         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87918         wcs_compile_range, byte_compile_range, truncate_wchar,
87919         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87920         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87921         count_mbs_length, wcs_re_match_2_internal,
87922         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87923         PREFIX(alt_match_null_string_p),
87924         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87925         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87926         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87927         now-unnecessary declaration, if any.
87928         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87929         regcomp, regexec):
87930         Remove now-unnecessary casts among pointer types.
87931         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87932
87933         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87934         (free): Remove decl.
87935
87936         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87937
87938         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87939         (free): Remove decl.
87940
87941         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87942         * lib/xgetcwd.c: Likewise.
87943
87944         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87945         (free): Remove decl.
87946
87947         * lib/strchrnul.c (strchrnul): Define with a prototype.
87948         Fix bug: c_in was not converted to char before searching.
87949
87950         The following changes are not K&R related:
87951
87952         * lib/group-member.h: Include <sys/types.h>, so that this file is
87953         self-contained.
87954         * lib/makepath.h: Likewise.
87955
87956         * lib/getusershell.c (readname, default_index, line_size, readname):
87957         Use size_t, not int, for sizes.
87958         (readname): If the size overflows, report an error instead of
87959         looping forever.
87960
87961 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87962
87963         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87964         libc.
87965
87966 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87967
87968         * README: New section: portability guidelines.
87969
87970 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87971
87972         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87973         C89 spec.
87974
87975 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87976
87977         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87978
87979 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87980
87981         Assume C89 or better; remove K&R cruft.
87982         A few of these changes were first proposed by Derek Robert Price
87983         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87984
87985         * lib/addext.c: Include <string.h> unconditionally.
87986         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87987         Don't declare getenv or malloc.
87988
87989         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87990         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87991         (NULL): Remove.
87992         (find_stack_direction, alloca): Use prototypes.
87993
87994         * lib/atexit.c (atexit): Define using a prototype.
87995
87996         * lib/basename.c, dirname.c, stripslash.c:
87997         Include <string.h> unconditionally.
87998
87999         * lib/bcopy.c: Include <stddef.h>.
88000         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88001
88002         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88003
88004         * lib/error.h (error, error_at_line, error_print_progname)
88005         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88006         * lib/error.c: Include error.h first, to check interface.
88007         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88008         (VA_START): Remove; all uses changeed to va_start.
88009         (exit, strerror): Remove decls.
88010         (error_print_progname): Prototype uncondionally.
88011         Don't include <errno.h>; no longer needed.
88012         (private_strerror): Remove.
88013         (error_tail): Always define.
88014         (error, error_at_line): Assume C89 or better; always use prototypes.
88015         * lib/fatal.c: Include "fatal.h" first, to test interface.
88016         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88017         (VA_START): Remove; all uses changed to va_start.
88018         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88019         this case.
88020         (exit): Remove decl.
88021         (fatal): Prototype unconditionally.  Assume va_start works.
88022         Abort at end, to pacify gcc.
88023
88024         * lib/euidaccess.c (main): Define with a prototype.
88025
88026         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88027
88028         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88029
88030         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88031         prototypes.
88032         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88033         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88034         (getenv): Remove decl.
88035         (fnmatch): Define using a prototype.
88036         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88037         (FCT): Define using a prototype.
88038
88039         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88040
88041         * lib/gethostname.c: Include <stddef.h>.
88042         (gethostname): Define with prototype.  Length is size_t, not int.
88043
88044 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88045
88046         Assume C89 or better; remove K&R cruft.
88047         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88048         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88049         string.h, getenv, malloc.
88050         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88051         headers.
88052         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88053         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88054         do not check for strerror.
88055         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88056         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88057         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88058         do not check for doprnt or vprintf.
88059         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88060         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88061
88062 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88063
88064         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88065         getversion.c should have been removed then, but was accidentally
88066         preserved.
88067
88068         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88069         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88070
88071 2003-09-08  Karl Berry  <karl@gnu.org>
88072
88073         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88074                 config, forget about prep.
88075
88076         * config/depcomp, missing: update from automake.
88077
88078 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88079
88080         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88081         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88082
88083 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88084
88085         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88086         copy_tm_result.  Bug reported by Simon Josefsson in
88087         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88088
88089 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88090
88091         * m4/time_r.m4: New file.
88092         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88093         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88094         is. Check for timegm declaration.
88095         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88096         Do not check for gmtime_r.
88097         Replace mktime if __mktime_internal does not exist and if mktime
88098         hasn't been replaced already.
88099
88100 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88101
88102         * lib/time_r.c, lib/time_r.h: New files.
88103
88104         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88105         __localtime_r.
88106         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88107         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88108
88109         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88110         __gmtime_r.
88111         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88112         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88113         Include <time_r.h>.
88114
88115         * lib/timegm.c: Switch to glibc implementation, with the following
88116         changes:
88117         [defined HAVE_CONFIG_H]: Include <config.h>.
88118         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88119         (__mktime_internal) [!defined _LIBC]: New decl.
88120         (__gmtime_r) [!defined _LIBC]: New macro and function.
88121         (timegm): Use a prototype, since gnulib assumes C89.
88122         Do not bother declaring tmp to be const, as it's not really usefu.
88123         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88124         (timegm): Declare only if HAVE_DECL_TIMEGM.
88125
88126 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88127
88128         * MODULES.html.sh (func_all_modules): Add time_r.
88129         * modules/time_r: New file.
88130         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88131         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88132
88133 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88134
88135         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88136         Bug reported by Lute Kamstra in
88137         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88138
88139         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88140         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88141         course with correspondingly smaller numbers for tomorrow and
88142         yesterday.  From Tadayoshi Funaba.  Originally installed into
88143         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88144         coreutils merge?).
88145
88146 2003-08-31  Simon Josefsson  <jas@extundo.com>
88147
88148         * modules/timegm: New file.
88149         * MODULES.html.sh (func_all_modules): Add timegm.
88150
88151 2003-08-31  Simon Josefsson  <jas@extundo.com>
88152
88153         * m4/timegm.m4: New file.
88154
88155 2003-08-31  Simon Josefsson  <jas@extundo.com>
88156
88157         * lib/timegm.h: New file.
88158         * lib/timegm.c: New file.  Based on
88159         wget-1.8.2/src/http.c:mktime_from_utc.
88160
88161 2003-08-31  Karl Berry  <karl@gnu.org>
88162
88163         * lib/argp.h: update from libc.
88164
88165 2003-08-28  Bruno Haible  <bruno@clisp.org>
88166
88167         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88168         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88169         followed by '#define fnmatch fnmatch_posix' gives an error.
88170
88171 2003-08-28  Bruno Haible  <bruno@clisp.org>
88172
88173         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88174         warning on QNX, which defines O_BINARY to 000000.
88175
88176 2003-08-27  Jim Meyering  <jim@meyering.net>
88177
88178         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88179         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88180         would fail after 32.  Reported by Danny Levinson.  Details here:
88181         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88182
88183 2003-08-24  Bruno Haible  <bruno@clisp.org>
88184
88185         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88186         MSVC7 <stdio.h> is included later.
88187
88188 2003-08-22  Simon Josefsson  <jas@extundo.com>
88189
88190         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88191
88192 2003-08-20  Karl Berry  <karl@gnu.org>
88193
88194         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88195
88196 2003-08-20  Bruno Haible  <bruno@clisp.org>
88197
88198         * modules/progname: New file.
88199         * MODULES.html.sh (func_all_modules): Add progname.
88200
88201 2003-08-20  Bruno Haible  <bruno@clisp.org>
88202
88203         * lib/progname.h: New file, from GNU gettext.
88204         * lib/progname.c: New file, from GNU gettext.
88205         * lib/progreloc.c: New file, from GNU gettext.
88206
88207 2003-08-19  Jim Meyering  <jim@meyering.net>
88208
88209         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88210         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88211
88212 2003-08-19  Bruno Haible  <bruno@clisp.org>
88213
88214         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88215         more.
88216
88217 2003-08-19  Bruno Haible  <bruno@clisp.org>
88218
88219         * lib/xstrdup.c: Assume <string.h> exists.
88220
88221 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88222
88223         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88224         in makefile rules.
88225
88226 2003-08-18  Jim Meyering  <jim@meyering.net>
88227
88228         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88229         * m4/lib-ld.m4: Likewise.
88230
88231 2003-08-18  Jim Meyering  <jim@meyering.net>
88232
88233         * lib/setenv.h: Indent nested cpp directive.
88234         * lib/vasnprintf.c: Remove trailing blanks.
88235
88236 2003-08-17  Simon Josefsson  <jas@extundo.com>
88237
88238         * modules/xstrndup: New file.
88239         * MODULES.html.sh (func_all_modules): Add xstrndup.
88240
88241 2003-08-17  Simon Josefsson  <jas@extundo.com>
88242
88243         * modules/argp: Fix autoconf macro name. Add more dependencies.
88244
88245 2003-08-17  Simon Josefsson  <jas@extundo.com>
88246
88247         * m4/xstrndup.m4: New file.
88248
88249 2003-08-17  Simon Josefsson  <jas@extundo.com>
88250
88251         * m4/argp.m4: New file.
88252
88253 2003-08-17  Simon Josefsson  <jas@extundo.com>
88254             Bruno Haible  <bruno@clisp.org>
88255
88256         * lib/xstrndup.h: New file.
88257         * lib/xstrndup.c: New file.
88258
88259 2003-08-17  Bruno Haible  <bruno@clisp.org>
88260
88261         * modules/strndup (Files, Include): Add lib/strndup.h.
88262
88263 2003-08-17  Bruno Haible  <bruno@clisp.org>
88264
88265         * modules/euidaccess (Files): Add lib/euidaccess.h.
88266
88267 2003-08-17  Bruno Haible  <bruno@clisp.org>
88268
88269         * lib/strndup.h: New file.
88270
88271 2003-08-17  Bruno Haible  <bruno@clisp.org>
88272
88273         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88274         like AC_GNU_SOURCE.
88275         * modules/extensions (configure.ac): Comment out the invocation of
88276         gl_USE_SYSTEM_EXTENSIONS.
88277
88278 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88279
88280         Merges from coreutils, etc.
88281         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88282         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88283         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88284         fixing a typo.
88285         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88286         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88287
88288 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88289
88290         Document merge from coreutils.
88291         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88292         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88293         * modules/utime: Add m4/utimes-null.m4.
88294
88295 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88296
88297         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88298         space, undoing this 2003-08-12 change:
88299         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88300
88301 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88302
88303         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88304         strtoul.c from libc, undoing this 2003-08-12 change:
88305         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88306
88307 2003-08-16  Jim Meyering  <jim@meyering.net>
88308
88309         Merges from coreutils.
88310         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88311         prefix.  Adjust cache variables similarly.  Create 500 rather than
88312         just 300 files, to exercise bug on Darwin6.5, too.
88313         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88314         $missing_dir.
88315         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88316         AM_SYS_POSIX_TERMIOS.
88317         Reported by mkc@mathdogs.com.
88318         Also change use of $am_cv_sys_posix_termios
88319         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88320         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88321         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88322         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88323         in /proc/mounts until it finds one with matching device number.  This
88324         is unnecessary when the FILE argument *is* a mount point.  No stat call
88325         is necessary in that case.  So, disable the statvfs-testing code on
88326         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88327         as RedHat bug# 84846.
88328         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88329         to 1MB, so as not to render systems with no stack size limit (e.g.,
88330         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88331         Include <unistd.h>.  On some systems,
88332         it is required for the definition of _SC_PAGESIZE.
88333
88334 2003-08-16  Jim Meyering  <jim@meyering.net>
88335
88336         Merge from coreutils.
88337         * lib/xstrtoimax.c: #else #if -> #elif.
88338         * lib/xstrtoumax.c: Likewise.
88339
88340 2003-08-16  Jim Meyering  <jim@meyering.net>
88341
88342         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88343         * m4/utimes.m4: Removed.
88344         * m4/utimes-null.m4: Renamed from utimes.m4.
88345
88346         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88347         to 1MB, so as not to render systems with no stack size limit (e.g.,
88348         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88349         Include <unistd.h>.  On some systems,
88350         it is required for the definition of _SC_PAGESIZE.
88351
88352 2003-08-16  Jim Meyering  <jim@meyering.net>
88353         and Paul Eggert  <eggert@cs.ucla.edu>
88354
88355         Merges from coreutils, etc.
88356
88357         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88358         using the latest version from cvs.  This avoids problems with #line
88359         directives using a vendor (Sun) compiler.
88360         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88361         Don't set GETGROUPS_LIB here; now it's
88362         done via getgroups.m4's wrapper function.
88363         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88364         rather than just in sh-util/configure.in, so that the
88365         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88366         same.
88367         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88368         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88369         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88370         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88371         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88372         Remove code that is now done by the newly-required macros.
88373         Append $(EXEEXT) to DF_PROG.
88374         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88375         Do not invoke or require the following here,
88376         since prereq.m4 or some gnulib .m4 now does this for us:
88377         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88378         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88379         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88380         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88381         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88382         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88383         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88384         AC_FUNC_OBSTACK.
88385         Do not replace the following functions, as this is now the job
88386         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88387         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88388         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88389         atexit getpass, strdup, getpagesize.
88390         Replace 'raise'.
88391         Do not check for the following functions, as this is now the job
88392         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88393         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88394         setregid.
88395         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88396         Check for sys/sysctl.h.
88397         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88398         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88399         of checking for ssize_t ourselves.
88400
88401         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88402         Require every macro that gnulib/modules/* suggests for us.
88403         (jm_PREREQ_ADDEXT): New macro.
88404         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88405         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88406
88407         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88408         (gl_PHYSMEM): Use it.
88409         Also check for `table' function.
88410         Check for new headers and functions.
88411         Add check for sys/sysmp.h.
88412         With suggestions from Kaveh Ghazi.
88413         Ignore headers that are present but cannot be compiled.  This
88414         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88415         C 5.4.
88416
88417 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88418
88419         Document merge from coreutils.
88420         * modules/userspec: Depend on posixver.
88421         * modules/strftime: Depend on tzset.
88422
88423 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88424
88425         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88426         rather than tab, after '#' in shell-script copyright notices.
88427         Suggested by Bruno Haible.
88428
88429 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88430
88431         * config/srclist-update: Use three spaces, rather than tab, after '#'
88432         in shell-script copyright notices.  Suggested by Bruno Haible.
88433         Remove unnecessary parenthesization in regular expression.
88434
88435 2003-08-15  Jim Meyering  <jim@meyering.net>
88436
88437         Merge from coreutils.
88438         * lib/xgethostname.c: Include <stdlib.h>.
88439         (xghostname): Don't exit for anything other than memory-related
88440         failure; just return NULL.
88441         * lib/userspec.c: Include "posixver.h".
88442         (parse_user_spec): Accept `.' as a separator only
88443         in pre-POSIX-200112 mode.
88444         * lib/strtoimax.c: Use #elif rather than #else #if.
88445         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88446         Remove function, now that we can rely on a working tzset function.
88447         [!_LIBC]: Ensure that the required autoconf test has been run.
88448         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88449         Use underlying_strftime for %r.
88450         * lib/sha.c: Merge in some clean-up and optimization changes from
88451         glibc.
88452         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88453         Ensure that it is a multiple of 64.
88454         Rearrange loop exit tests so as to avoid performing an
88455         additional fread after encountering an error or EOF.
88456         * lib/realloc.c: Update copyright date.
88457
88458 2003-08-15  Jim Meyering  <jim@meyering.net>
88459         and Paul Eggert  <eggert@twinsun.com>
88460
88461         Merge from coreutils.
88462         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88463         member but strut utmpx does not.  Needed for AIX 4.3.3.
88464         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88465
88466 2003-08-15  Jim Meyering  <jim@meyering.net>
88467         and Paul Eggert  <eggert@cs.ucla.edu>
88468
88469         Merges from coreutils, etc.
88470         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88471         Require gl_FUNC_TZSET_CLOBBER.
88472         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88473         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88474         members.
88475
88476 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88477
88478         Help the merge from coreutils.
88479         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88480         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88481         * m4/tzset.m4: Use it too.
88482
88483 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88484
88485         * modules/tzset: New file.
88486
88487 2003-08-14  Jim Meyering  <jim@meyering.net>
88488
88489         Merges from coreutils.
88490         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88491         variable names, rather than @FNMATCH_H@.
88492         * modules/alloca: Likewise for $(ALLOCA_H).
88493
88494         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88495         the three copies of the literal target, `fnmatch.h'.
88496         * modules/alloca (alloca.h): Likewise.
88497
88498 2003-08-14  Jim Meyering  <jim@meyering.net>
88499
88500         Merge from coreutils.
88501         * m4/tzset.m4: New file.
88502         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88503         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88504         otherwise, AIX 5.1 systems would end up using the latter.
88505         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88506         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88507         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88508         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88509
88510 2003-08-14  Jim Meyering  <jim@meyering.net>
88511
88512         Merge from coreutils.
88513         * lib/obstack.h: Whitespace changes.
88514         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88515         and xcalloc return values.
88516         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88517         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88518         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88519         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88520         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88521         error from mntctl.
88522         Use mntctl's return value to drive the entry-processing loop, since
88523         we can't rely on the value of the vmt_length member in the last
88524         entry.  On some systems doing so could result in exhausting
88525         virtual memory.  Based in part on a patch from Mike Jetzer.
88526
88527 2003-08-14  Jim Meyering  <jim@meyering.net>
88528         and Paul Eggert  <eggert@twinsun.com>
88529
88530         Merges from coreutils, plus other fixes.
88531         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88532         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88533         for credits and details.  Thanks to Kaveh Ghazi for helping
88534         to keep these files in sync.
88535         (ARRAY_SIZE): Define it.
88536         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88537         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88538         (memcasecmp): Don't assume size_t fits in unsigned int.
88539         Remove casts and duplicate code.
88540         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88541         (memcpy): Remove definition.
88542         Merge in some clean-up and optimization changes from glibc.
88543         [BLOCKSIZE]: Move definition to top of file.
88544         Ensure that it is a multiple of 64.
88545         Rearrange loop exit tests so as to avoid performing an
88546         additional fread after encountering an error or EOF.
88547         * lib/md5.h (md5_uintptr): Define.
88548         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88549         return to the initial working directory.  Preserve errno
88550         for caller.
88551         * lib/idcache.c: Include "xalloc.h".
88552         (xmalloc, xrealloc): Remove decls.
88553         (getuser): Remove casts no longer required in C89.
88554         * lib/human.c: Include stdio.h, for sprintf.
88555         * lib/group-member.c: Include "xalloc.h".
88556         (xmalloc, xrealloc): Remove decls.
88557         (get_group_info): Remove casts no longer required in C89.
88558         * lib/getusershell.c (readname): Remove casts no longer required in
88559         C89.
88560         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88561         * lib/getline.c: Whitespace fix, from coreutils.
88562
88563 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88564
88565         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88566         Check for isascii.
88567
88568         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88569         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88570         Undo previous (whitespace-only) change.
88571
88572 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88573
88574         * lib/exclude.c: Include <ctype.h>
88575         (IN_CTYPE_DOMAIN): New macro.
88576         (is_space): New fn.
88577         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88578         and empty lines.
88579
88580         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88581         Undo previous (whitespace-only) change.
88582
88583 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88584
88585         * config/srclist-update: Change update back to the old behavior,
88586         leaving whitespace alone.  Use one 'sed' command rather than a
88587         pipeline.
88588         (fixlicense): Now a variable, not a function.
88589         (remove_trailing_blanks): Remove.
88590         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88591         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88592         Undo previous (whitespace-only) change.
88593
88594 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88595
88596         Merge from coreutils.
88597         * modules/euidaccess: Add lib_SOURCES, include for new
88598         file euidaccess.h
88599
88600 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88601
88602         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88603         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88604         Normalize leading white space and remove trailing white space.
88605
88606         Merge from coreutils
88607         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88608
88609         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88610         0.12.1.  These files are now being upgraded automatically by
88611         ../config/srclist-update.
88612
88613 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88614
88615         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88616         Normalize leading white space and remove trailing white space.
88617         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88618         notice, as per ../config/srclist-update.
88619
88620         Merge from coreutils.
88621         * lib/euidaccess.h: New file.
88622         * lib/euidaccess.c: Include it.
88623         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88624         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88625         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88626
88627 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88628
88629         * config/srclist-update: Add copyright notice.
88630         (remove_id_lines, remove_trailing_blanks): New constants.
88631         (fixfile): Use them to normalize spacing a bit in copied files.
88632         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88633         Normalize leading white space and remove trailing white space.
88634
88635         * config/texinfo.tex: Sync with texinfo.
88636
88637         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88638         strtoul.c from libc, to merge coreutils whitespace changes.
88639
88640         * config/srclist.txt: Get the following m4 files from gettext:
88641         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88642         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88643         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88644         wint_t.m4.
88645
88646 2003-08-12  Karl Berry  <karl@gnu.org>
88647
88648         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88649         been made.
88650
88651 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88652
88653         * modules/gnu-source, m4/gnu-source.m4:
88654         Remove; we're assuming Autoconf 2.54 or later now.
88655         Suggested by Bruno Haible.
88656         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88657
88658 2003-08-11  Bruno Haible  <bruno@clisp.org>
88659
88660         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88661
88662 2003-08-11  Bruno Haible  <bruno@clisp.org>
88663
88664         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88665         (vasnprintf): Use it instead of wcslen.
88666
88667 2003-08-11  Bruno Haible  <bruno@clisp.org>
88668
88669         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88670         value to ensure that _Bool promotes to int. Use #define for _Bool when
88671         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88672
88673 2003-08-10  Karl Berry  <karl@gnu.org>
88674
88675         * lib/regex.h: update from libc (whitespace fix).
88676
88677 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88678
88679         Merge some files from coreutils.  These changes were
88680         originally made by Jim Meyering.
88681         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88682         many older Unixes require this.
88683         * lib/alloca.c (alloca): Remove cast to argument of free;
88684         no longer needed in C89.
88685         * lib/alloca_.h, regex.h: Fix white space to match
88686         what GNU indent does.
88687
88688 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88689
88690         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88691         apparently Emacs's Unicode mode got confused before my 2003-08-05
88692         checkin.
88693
88694 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88695
88696         * m4/extensions.m4: New file.
88697         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88698         Require gl_USE_SYSTEM_EXTENSIONS.
88699         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88700         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88701
88702 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88703
88704         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88705         * modules/extensions, modules/gnu-source: New files.
88706         * modules/timespec, modules/unlocked-io: Depend on extensions.
88707
88708 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88709
88710         * modules/restrict: New file.
88711         * MODULES.html.sh (func_all_modules): Add restrict.
88712         * modules/regex: Depend on restrict.
88713
88714 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88715
88716         * m4/restrict.m4: New file.
88717         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88718
88719 2003-08-07  Bruno Haible  <bruno@clisp.org>
88720
88721         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88722         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88723
88724 2003-08-07  Bruno Haible  <bruno@clisp.org>
88725
88726         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88727         makes the module 'getndelim2' compatible with the module 'getline'.
88728
88729 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88730
88731         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88732         byte with "\201" to avoid glitches when editing that source file
88733         with multi-gnome-terminal.
88734
88735 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88736
88737         * lib/bumpalloc.h: Remove.
88738
88739 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88740
88741         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88742         * modules/bumpalloc: Remove.
88743
88744 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88745
88746         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88747         GNU coding style.
88748
88749         Merge from coreutils.
88750         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88751         1. From glibc.
88752         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88753         from Karl Berry, implemented by Jim Meyering.
88754         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88755         from Dmitry V. Levin.
88756         Remove anachronistic cast of xrealloc.
88757         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88758         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88759         type. Otherwise, it wouldn't compile with at least /bin/cc on
88760         ymp-cray-unicos9.0.2.X.
88761         Combine two mostly-identical uses of alloca into one.
88762         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88763
88764 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88765
88766         [From Emacs.]
88767
88768         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88769         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88770         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88771         obsolete NLIST_NAME_UNION.
88772         [__GNU__]: Undef BSD and FSCALE.
88773         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88774
88775 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88776
88777         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88778         an enum type, so that it's guaranteed to promote to int.  See:
88779         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88780
88781 2003-08-03  Karl Berry  <karl@gnu.org>
88782
88783         * config/depcomp: update from automake.
88784
88785 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88786
88787         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88788         (strerror): Don't assume that a printable int fits in 14 bytes.
88789
88790 2003-07-31  Bruno Haible  <bruno@clisp.org>
88791
88792         * modules/getpass-gnu: New file.
88793         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88794
88795 2003-07-31  Bruno Haible  <bruno@clisp.org>
88796
88797         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88798
88799 2003-07-24  Karl Berry  <karl@gnu.org>
88800
88801         * config/missing: update from automake.
88802
88803 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88804             Bruno Haible  <bruno@clisp.org>
88805
88806         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88807         * lib/getline.c (getline, getdelim): Likewise.
88808         Remove _GNU_SOURCE define; now it's defined in config.h through
88809         m4/getline.m4.
88810
88811 2003-07-23  Karl Berry  <karl@gnu.org>
88812
88813         * config/config.sub: update from prep.
88814
88815 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88816
88817         * modules/xalloc (Depends-on): Add exitfail.
88818         * modules/xmemcoll: Likewise.
88819
88820 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88821
88822         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88823         over-parenthesization in macros.
88824
88825         Sync with coreutils.
88826
88827         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88828         required by C99.
88829
88830         Use `exit_failure' for xalloc and xmemcoll instead of their own
88831         private exit-failure variables.
88832         * lib/xalloc.h (xalloc_exit_failure): Remove.
88833         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88834         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88835         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88836         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88837         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88838
88839 2003-07-20  Jim Meyering  <jim@meyering.net>
88840
88841         * modules/closeout (Depends-on): Add exitfail.
88842         Suggestion from Bruno Haible.
88843
88844 2003-07-19  Karl Berry  <karl@gnu.org>
88845
88846         * config/config.sub: update from prep.
88847
88848 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88849
88850         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88851         Remove.
88852         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88853         to test that it can stand by itself.  Include "exitfail.h".
88854         Clients should set exit_failure instead.
88855         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88856
88857 2003-07-18  Bruno Haible  <bruno@clisp.org>
88858
88859         * modules/getndelim2: New file.
88860         * modules/getline: Share files with module getndelim2.
88861         * modules/getnline: Depend on getndelim2 instead of sharing files with
88862         it. Add getnline.c to lib_SOURCES.
88863         * MODULES.html.sh (func_all_modules): Add getndelim2.
88864
88865 2003-07-18  Bruno Haible  <bruno@clisp.org>
88866
88867         * m4/getndelim2.m4: New file.
88868         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88869         invoke gl_PREREQ_GETNDELIM2.
88870         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88871         gl_PREREQ_GETNDELIM2.
88872         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88873         gl_GETNDELIM2.
88874
88875 2003-07-18  Bruno Haible  <bruno@clisp.org>
88876
88877         * lib/getndelim2.h: New file.
88878         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88879         getndelim2.h.
88880         (getndelim2): Make non-static. Change return type to ssize_t.
88881         * lib/getline.h: Change argument names.
88882         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88883         * lib/getnline.c: Include getndelim2.h.
88884
88885 2003-07-18  Andreas Schwab  <schwab@suse.de>
88886
88887         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88888
88889 2003-07-17  Karl Berry  <karl@gnu.org>
88890
88891         * config/config.sub: update from prep.
88892
88893 2003-07-17  Bruno Haible  <bruno@clisp.org>
88894
88895         * modules/getnline: New file.
88896         * modules/getline: Add lib/getndelim2.c to source file list.
88897         * MODULES.html.sh (func_all_modules): Add getnline.
88898
88899 2003-07-17  Bruno Haible  <bruno@clisp.org>
88900
88901         * m4/getnline.m4: New file.
88902
88903 2003-07-17  Bruno Haible  <bruno@clisp.org>
88904
88905         * m4/Makefile.am.in: Remove file.
88906         * m4/Makefile.am: Remove file.
88907         * m4/Makefile.in: Remove file.
88908
88909 2003-07-17  Bruno Haible  <bruno@clisp.org>
88910
88911         * lib/getnline.h: New file.
88912         * lib/getnline.c: New file.
88913         * lib/getndelim2.c: New file, extracted from getline.c.
88914         (getndelim2): Renamed from getdelim2, with added nmax argument.
88915         * lib/getline.c: Include getndelim2.c.
88916         (getdelim2): Moved out to getndelim2.c.
88917         (getline, getdelim): Update.
88918
88919 2003-07-17  Bruno Haible  <bruno@clisp.org>
88920
88921         * lib/Makefile.am: Remove file.
88922         * lib/Makefile.in: Remove file.
88923
88924 2003-07-17  Bruno Haible  <bruno@clisp.org>
88925
88926         * configure.in: Remove file.
88927         * Makefile.in: Remove file.
88928
88929 2003-07-17  Bruno Haible  <bruno@clisp.org>
88930
88931         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88932
88933 2003-07-16  Karl Berry  <karl@gnu.org>
88934
88935         * config/srclist-update: was running fixlicense twice, which caused
88936                 texinfo.tex to be nullified for some reason.  Simplify,
88937                 $gplsrc is no longer needed as far as I can see?
88938
88939 2003-07-16  Jim Meyering  <jim@meyering.net>
88940
88941         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88942
88943 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88944
88945         * config/srclist.txt: Get the following files from gettext-runtime/intl
88946         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88947         ref-del.sin.  From Bruno Haible.
88948         * config/srclist-update (fixfile): Change grep pattern again, since the
88949         previous fix didn't work (there was another trailing $).  Use
88950         '[$]' to escape the $s.
88951
88952 2003-07-15  Karl Berry  <karl@gnu.org>
88953
88954         * lib/vasnprintf.c: update from gettext.
88955
88956 2003-07-15  Karl Berry  <karl@gnu.org>
88957
88958         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88959         gets expanded when surrounded by '$'.
88960
88961 2003-07-15  Jim Meyering  <jim@meyering.net>
88962
88963         * modules/save-cwd: Don't depend on error.  From Derek Price.
88964
88965 2003-07-15  Jim Meyering  <jim@meyering.net>
88966
88967         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88968
88969 2003-07-14  Simon Josefsson  <jas@extundo.com>
88970
88971         * modules/mempcpy: New file.
88972         * MODULES.html.sh (func_all_modules): Add mempcpy.
88973
88974 2003-07-14  Simon Josefsson  <jas@extundo.com>
88975
88976         * m4/mempcpy.m4: New file.
88977
88978 2003-07-14  Simon Josefsson  <jas@extundo.com>
88979
88980         * lib/mempcpy.h: New file.
88981         * lib/mempcpy.c: New file.
88982
88983 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88984
88985         * modules/getdate, modules/posixtm: Depend on mktime.
88986
88987 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88988
88989         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88990         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88991         unicodeio.c, unicodeio.h, unlocked-io.h:
88992         Switch from LGPL to GPL.
88993
88994 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88995
88996         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88997         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88998         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88999         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89000         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89001         updated automatically by ../config/srclist-update.  This changes
89002         their license from LPGL to GPL.
89003
89004 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89005
89006         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89007         assumed to refer to the root of the most recent stable gettext version.
89008         * config/srclistvars.sh: Add defaults for eggert.
89009         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89010         Match "This program" as well as "The program".  This is needed
89011         for gettext.
89012
89013 2003-07-14  Jim Meyering  <jim@meyering.net>
89014
89015         Don't emit diagnostics.  Let callers do that.
89016         * lib/save-cwd.c: Don't include "error.h".
89017         (save_cwd): Don't call error.  Ensure that errno is valid
89018         when returning nonzero.
89019
89020         * lib/save-cwd.h (restore_cwd): Update prototype.
89021         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89022         Simplify.  Don't call error upon failure.  Let callers do that.
89023         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89024         when auditing is enabled.  But don't bother updating the #if.
89025
89026 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89027
89028         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89029         it breaks C++ compilation.
89030         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89031
89032 2003-07-10  Simon Josefsson  <jas@extundo.com>
89033
89034         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89035
89036 2003-07-10  Jim Meyering  <jim@meyering.net>
89037
89038         * m4/clock_time.m4: Remove trailing blank.
89039         * m4/intmax_t.m4: Likewise.
89040
89041 2003-07-10  Jim Meyering  <jim@meyering.net>
89042
89043         * lib/vasnprintf.c: Remove trailing blanks.
89044         Make cpp indentation consistent.
89045
89046 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89047
89048         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89049         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89050         Switch from LGPL to GPL.
89051
89052 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89053
89054         * config/srclist.txt: Sort sublists.  Add
89055         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89056         that differ from gnulib for one reason or another; we'd like this list
89057         to be smaller but for now let's document what we have.
89058
89059 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89060
89061         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89062         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89063         and sweeter "eval x=$x".
89064         * config/srclist.txt: Get lib/argp* from glibc.
89065
89066 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89067
89068         * lib/mktime.c: Fix some boundary cases and remove need for floating
89069         point.
89070
89071         Issue a compile-time diagnostic if time_t is floating point, or if
89072         two's complement arithmetic is not in effect, or if arithmetic
89073         right shift does not propagate the sign.  These assumptions were
89074         all in the original code but they weren't checked.
89075
89076         (TIME_T_MIDPOINT, verify): New macros.
89077         (__isleap): Remove; it has integer overflow problems.
89078         (leapyear): New function, without those problems.
89079         (ydhms_tm_diff): Remove; splitting into two parts.
89080         (ydhms_diff): New function, containing the arithmetic part of
89081         the old ydhms_tm_diff function.  Issue a compile-time
89082         diagnostic if we are not using C99 integer division.
89083         Avoid casts when possible.
89084         (guess_time_tm): New function, containing the checking part of
89085         the old ydhms_tm_diff function.  Return the new value, rather than
89086         the difference between it and the old.  Accept a new argument T
89087         so that *T specifies the old value.  Check for overflow in the result.
89088
89089         (__mktime_internal): Use a time_t offset, not a long int offset.
89090         This undoes the 2003-06-04 change, which is no longer needed now
89091         that we have better overflow checking.
89092         (localtime_offset): Likewise.
89093
89094         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89095         and long are 64-bit but int is only 32-bit.
89096         (ydhms_diff): Use long int to store year1 and yday1.
89097         Issue a compile-time diagnostic if long int is not wide enough.
89098
89099         (__mktime_internal): Use long int to store adjusted year and yday.
89100         Use plain C rather than preprocessor commands, if that doesn't
89101         affect efficiency.
89102         Check for overflow (and try to repair) after each probe
89103         rather than checking only at the very end.  This avoids some bugs
89104         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89105         does not equal GMT offset at maximum time).
89106         Use integer to check for overflow rather than floating point; this
89107         is more portable to non-IEEE hosts, and is a tad faster.
89108         When we detect that we are oscillating between two values,
89109         don't check whether tm_isdst has the requested value, since
89110         we already know the answer.  When tm_isdst has the wrong value,
89111         use a different heuristic to find the right one, based on the
89112         extreme values actually observed in practice in tz2003a,
89113         rather than the (overly optimistic) "previous 3 calendar quarters".
89114
89115         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89116         "T const" to accommodate glibc style.
89117         (check_result): Use less-confusing report format.  "long" -> "long int.
89118         (main): Likewise.
89119         Don't loop if the iteration overflows time_t.
89120         Allow a negative step in the iteration.
89121
89122 2003-07-06  Karl Berry  <karl@gnu.org>
89123
89124         * config/depcomp: update from automake.
89125         * config/config.sub: update from prep.
89126
89127 2003-07-03  Karl Berry  <karl@gnu.org>
89128
89129         * config/config.guess: update from prep.
89130
89131 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89132
89133         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89134         xreadlink.c now includes it unconditionally.
89135
89136 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89137
89138         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89139         having it depend on HAVE_SYS_TYPES_H.
89140
89141 2003-07-01  Bruno Haible  <bruno@clisp.org>
89142
89143         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89144         <sys/types.h> should be sufficient.
89145         Reported by Paul Eggert.
89146
89147 2003-06-26  Karl Berry  <karl@gnu.org>
89148
89149         * config/depcomp: update from automake.
89150
89151 2003-06-26  Bruno Haible  <bruno@clisp.org>
89152
89153         * modules/human: Depend on module stdbool.
89154
89155 2003-06-25  Bruno Haible  <bruno@clisp.org>
89156
89157         * modules/readlink: New file.
89158         * modules/xreadlink: Depend on it.
89159         * MODULES.html.sh (func_all_modules): Add readlink.
89160
89161 2003-06-25  Bruno Haible  <bruno@clisp.org>
89162
89163         * m4/readlink.m4: New file.
89164
89165 2003-06-25  Bruno Haible  <bruno@clisp.org>
89166
89167         * lib/readlink.c: New file.
89168
89169 2003-06-22  Karl Berry  <karl@gnu.org>
89170
89171         * config/srclist.txt: update mkinstalldirs from automake.
89172         * config/mkinstalldirs: update.
89173
89174 2003-06-22  Bruno Haible  <bruno@clisp.org>
89175
89176         Portability to mingw32.
89177         * m4/ssize_t.m4: New file, from GNU gettext.
89178         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89179         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89180
89181 2003-06-22  Bruno Haible  <bruno@clisp.org>
89182
89183         * modules/safe-read: Add m4/ssize_t.m4.
89184         * modules/xreadlink: Add m4/ssize_t.m4.
89185
89186 2003-06-20  Bruno Haible  <bruno@clisp.org>
89187
89188         Assume C89, so PARAMS isn't needed.
89189         * lib/unicodeio.h (PARAMS): Remove.
89190         * lib/unicodeio.c: Don't use PARAMS.
89191
89192 2003-06-18  Karl Berry  <karl@gnu.org>
89193
89194         * config/config.{guess,sub}: update from prep.
89195
89196 2003-06-18  Jim Meyering  <jim@meyering.net>
89197
89198         Merge changes from coreutils.
89199         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89200         Remove explicit declarations of xmalloc and realloc.
89201         Include xalloc.h.
89202         (read_utmp): Remove anachronistic cast of xmalloc.
89203
89204 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89205
89206         Assume C89, so PARAMS isn't needed.
89207         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89208         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89209         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89210         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89211         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89212         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89213         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89214         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89215         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89216         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89217         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89218         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89219         no longer needed. Anyway, config.h should always be included before any
89220         other file.
89221
89222 2003-06-11  Simon Josefsson  <jas@extundo.com>
89223
89224         * modules/sysexits: New file.
89225         * MODULES.html.sh (func_all_modules): Add sysexits.
89226
89227 2003-06-11  Simon Josefsson  <jas@extundo.com>
89228
89229         * lib/sysexit_.h: New file.
89230
89231 2003-06-11  Derek Price  <derek@ximbiot.com>
89232
89233         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89234         necessary.
89235
89236 2003-06-11  Bruno Haible  <bruno@clisp.org>
89237
89238         * m4/sysexits.m4: New file.
89239
89240 2003-06-10  Simon Josefsson  <jas@extundo.com>
89241
89242         * lib/argp.h: New file, from glibc.
89243         * lib/argp-ba.c: New file, from glibc.
89244         * lib/argp-eexst.c: New file, from glibc.
89245         * lib/argp-fmtstream.c: New file, from glibc.
89246         * lib/argp-fmtstream.h: New file, from glibc.
89247         * lib/argp-fs-xinl.c: New file, from glibc.
89248         * lib/argp-help.c: New file, from glibc.
89249         * lib/argp-namefrob.h: New file, from glibc.
89250         * lib/argp-parse.c: New file, from glibc.
89251         * lib/argp-pv.c: New file, from glibc.
89252         * lib/argp-pvh.c: New file, from glibc.
89253         * lib/argp-xinl.c: New file, from glibc.
89254
89255 2003-06-10  Simon Josefsson  <jas@extundo.com>
89256
89257         * modules/strchrnul: New file.
89258
89259 2003-06-10  Simon Josefsson  <jas@extundo.com>
89260
89261         * modules/argp: New file.
89262
89263 2003-06-10  Simon Josefsson  <jas@extundo.com>
89264
89265         * m4/strchrnul.m4: New file.
89266
89267 2003-06-10  Simon Josefsson  <jas@extundo.com>
89268
89269         * lib/strchrnul.h: New file.
89270         * lib/strchrnul.c: New file.
89271
89272 2003-06-10  Bruno Haible  <bruno@clisp.org>
89273
89274         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89275
89276 2003-06-07  Karl Berry  <karl@gnu.org>
89277
89278         * config/config.{guess,sub}: update from prep.
89279
89280 2003-06-07  Jim Meyering  <jim@meyering.net>
89281
89282         * modules/strtod: Use $(...) notation, not @...@ for
89283         AC_REPLACE'd variables.
89284         * modules/localcharset: Likewise.
89285
89286 2003-06-07  Jim Meyering  <jim@meyering.net>
89287
89288         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89289         in place of my name in the copyright comment.
89290         Remove definition and uses of __P.
89291
89292         From coreutils.
89293         * lib/stat.c: Don't declare xmalloc explicitly.
89294         Instead, include "xalloc.h".
89295         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89296         xrealloc, and xcalloc return values.
89297         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89298         Improve comment.
89299         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89300
89301 2003-06-07  Bruno Haible  <bruno@clisp.org>
89302
89303         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89304         avoid AC_CONFIG_LINKS.
89305         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89306         fnmatch.h, to avoid AC_CONFIG_LINKS.
89307         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89308
89309 2003-06-07  Bruno Haible  <bruno@clisp.org>
89310
89311         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89312         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89313         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89314         directory.
89315         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89316         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89317         directory.
89318
89319 2003-06-06  Jim Meyering  <jim@meyering.net>
89320
89321         Merge from coreutils.
89322         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89323         Consolidate declarations and initializations of *_base* locals.
89324
89325         Merge from coreutils.
89326         This avoids a core dump on systems without GNU putenv,
89327         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89328         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89329         (unsetenv): New static function, from GNU libc.
89330         (rpl_putenv): Use it.
89331
89332         * lib/modechange.c: Remove trailing blanks.
89333
89334         Merge from coreutils.
89335         * lib/fsusage.c: Remove declaration of statfs.
89336         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89337
89338         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89339
89340 2003-06-06  Jim Meyering  <jim@meyering.net>
89341
89342         * lib/stdbool_.h: Renamed from stdbool.h.in.
89343
89344 2003-06-06  Jim Meyering  <jim@meyering.net>
89345             Bruno Haible  <bruno@clisp.org>
89346
89347         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89348         Adjust Makefile.am snippet not to redirect directly to target.
89349         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89350
89351 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89352
89353         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89354         mismatch, look in future quarters as well as past.  This fixes a
89355         bug when processing fall-backwards gaps immediately after a long
89356         period of daylight-saving time.
89357
89358         * lib/mktime.c: Assume freestanding C89 or better.
89359         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89360         (__P): Remove; not used.
89361         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89362         (mktime, not_equal_tm, print_tm, check_result,
89363         main): Use prototypes.  Use const * where appropriate.
89364         (main): Fix typo in testing code that uncovered by above changes.
89365         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89366
89367 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89368
89369         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89370         locale.h, localeconv.  This merges changes from coreutils.
89371
89372         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89373         It can be removed after the next Autoconf is released.
89374         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89375         needed.
89376
89377 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89378
89379         * lib/mktime.c: Fix Debian bug 177940
89380         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89381         (localtime_offset): Now long int, not time_t, because we want it
89382         to be guaranteed to be signed.  All uses changed.
89383         (__mktime_internal): If overflow would occur when adding offset,
89384         don't add it.
89385
89386         Merge 'human' changes from coreutils.  Rewrite to support
89387         locale-specific notations like thousands separators.
89388         * lib/human.c: Simplify authorship notice.
89389         Include human.h immediately after config.h.
89390         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89391         <limits.h>: Do not include, since human.h does.
89392         (SIZE_MAX, UINTMAX_MAX): New macros.
89393         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89394         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89395         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89396         (power_letter): Renamed from suffixes.
89397         (generate_suffix_backwards): Remove.
89398         (adjust_value): Now takes int style (because of human.h changes)
89399         and long double value (for greater precision on some platforms).
89400         (group_number): New function.
89401         (human_readable): Use it.  Use integer options, not enum.
89402         Put the options before the sizes in the arg list.
89403         Support all the new options.
89404         The old human_readable function has been removed;
89405         use inttostr.h instead.
89406         (human_readable, default_block_size, humblock):
89407         Use uintmax_t, not int, for block sizes.
89408         (human_readable_inexact, block_size_types): Remove.
89409         (block_size_opts): New constant.
89410         (human_options): Renamed from human_block_size, with new signature
89411         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89412         * lib/human.h: Add copyright and authorship notice.
89413         Include <limits.h> and <stdbool.h> unconditionally.
89414         (PARAMS): Remove.  All uses removed.
89415         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89416         (enum human_inexact_style): Remove tag; now a nameless enum.
89417         (human_floor, human_ceiling, human_round_to_even): Now have
89418         values 2, 0, 1 rather than -1, 1, 0.
89419         (human_group_digits, human_suppress_point_zero, human_autoscale,
89420         human_base_1024, human_SI, human_B): New constants.
89421         (human_readable_inexact, human_block_size): Remove.
89422         (human_readable): Size args are now uintmax_t, not int.
89423         (human_options): New decl.
89424
89425         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89426         unnecessary now that we assume C89 or better.  This change
89427         imported from coreutils.
89428
89429         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89430         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89431         in the 2003-05-30 sync from glibc.
89432
89433         .h files should stand alone, but we shouldn't include <sys/types.h>
89434         if we can get away with just <stddef.h>.
89435
89436         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89437         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89438         rather than <sys/types.h>, as we merely need size_t.
89439         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89440         to get size_t.
89441         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89442         Include <stdio.h>, to get FILE.
89443         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89444         memcasecmp.h has included <stddef.h> and all we need is size_t.
89445         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89446         our interface, instead of including <sys/types.h>
89447
89448 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89449
89450         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89451         now, as glibc mktime is buggy on non-glibc systems.
89452
89453 2003-06-03  Karl Berry  <karl@gnu.org>
89454
89455         * config/config.sub: update from prep.
89456
89457 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89458
89459         [from coreutils]
89460         Fix some minor time-related bugs with POSIX time arguments.
89461         Some valid time stamps were being rejected (notably -1, and
89462         time stamps before 1900 on 64-bit hosts).  And some invalid
89463         time stamps were being accepted, e.g. September 31.
89464
89465         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89466         that we can return (time_t) -1 successfully.
89467         * lib/posixtm.c: Likewise.
89468         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89469         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89470         (t): Remove static var.
89471         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89472         of static var.  All uses changed.
89473         (year): Do not reject years before 1900; they can occur with
89474         64-bit time_t.
89475         (posix_time_parse): Do not check for out-of-range components;
89476         that is now the caller's responsibility, since our checks were
89477         only approximations.
89478         (posixtime): Use mktime to check for out-of-range components,
89479         since it knows them exactly.
89480         If mktime returns (time_t) -1, check whether an error actually occurred
89481         by invoking localtime on -1.
89482         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89483         posixtime failures better.
89484         Improve the test data (in comments only).
89485
89486 2003-06-02  Karl Berry  <karl@gnu.org>
89487
89488         * config/mkinstalldirs (version): new variable.
89489         (--version): new option.
89490         (usage): improve message.
89491
89492 2003-05-30  Karl Berry  <karl@gnu.org>
89493
89494         * lib/mktime.c: update from libc.
89495
89496 2003-05-30  Bruno Haible  <bruno@clisp.org>
89497
89498         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89499         * config/config.rpath: Upgrade to gettext-0.12.1.
89500
89501 2003-05-30  Bruno Haible  <bruno@clisp.org>
89502
89503         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89504         * m4/nls.m4: New file, from gettext-0.12.1.
89505         * m4/po.m4: New file, from gettext-0.12.1.
89506         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89507
89508 2003-05-30  Bruno Haible  <bruno@clisp.org>
89509
89510         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89511         * lib/localcharset.h: Likewise.
89512         * lib/localcharset.c: Likewise.
89513
89514 2003-05-29  Karl Berry  <karl@gnu.org>
89515
89516         * config/config.rpath: update from gettext.
89517
89518 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89519
89520         Assume the headers required for C89 freestanding compilers.
89521         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89522         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89523         * m4/human.m4 (gl_HUMAN): Likewise.
89524         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89525         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89526         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89527         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89528         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89529         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89530
89531 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89532
89533         Assume the headers required for C89 freestanding compilers.
89534         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89535         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89536         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89537         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89538         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89539         define, since <limits.h> is guaranteed to do that.
89540         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89541         * lib/exclude.c: Include <stdbool.h> unconditionally.
89542         * lib/tempname.c: Include <stddef.h> unconditionally.
89543         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89544         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89545         <stddef.h> does that.
89546         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89547         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89548         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89549         needed.
89550         * lib/xstrtol.c: Likewise.
89551         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89552         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89553
89554         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89555         warnings on some platforms.
89556
89557         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89558         arbitrarily.
89559
89560 2003-05-26  Jim Meyering  <jim@meyering.net>
89561
89562         Merge in a change from coreutils:
89563         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89564         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89565         that condition, rather than `-1' which is slightly misleading.
89566         Change the name of the cache variable to have the gl_ prefix.
89567         Prompted by a patch from Richard Dawe for DJGPP.
89568
89569 2003-05-24  Karl Berry  <karl@gnu.org>
89570
89571         * config/config.guess: update from prep.
89572
89573 2003-05-22  Karl Berry  <karl@gnu.org>
89574
89575         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89576
89577 2003-05-20  Karl Berry  <karl@gnu.org>
89578
89579         * config/config.guess: update from prep.
89580
89581 2003-05-18  Karl Berry  <karl@gnu.org>
89582
89583         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89584         might actually be set by the user.
89585
89586         * config/depcomp, install-sh, mdate-sh: update from automake.
89587
89588 2003-05-17  Bruno Haible  <bruno@clisp.org>
89589
89590         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89591         invalid expansion for AC_EGREP_CPP.
89592         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89593         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89594         Suggested by Akim Demaille <akim@epita.fr> in
89595         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89596
89597 2003-05-12  Jim Meyering  <jim@meyering.net>
89598
89599         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89600         the space-padded-by-default conversion specifiers, %e, %k, %l.
89601
89602 2003-05-12  Bruno Haible  <bruno@clisp.org>
89603
89604         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89605         the string is longer than 4 KB.
89606
89607 2003-05-11  Karl Berry  <karl@gnu.org>
89608
89609         * config/config.{guess,sub}: update from prep.
89610
89611 2003-05-09  Bruno Haible  <bruno@clisp.org>
89612
89613         * modules/error: Add m4/strerror_r.m4 to file list.
89614
89615 2003-05-03  Bruno Haible  <bruno@clisp.org>
89616
89617         Upgrade to Unicode-4.0.
89618         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89619         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89620         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89621         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89622         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89623         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89624         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89625         Change width of U+E0100..U+E01EF from 1 to 0.
89626
89627 2003-04-25  Jim Meyering  <jim@meyering.net>
89628
89629         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89630         of type size_t, not int.
89631
89632 2003-04-25  Bruno Haible  <bruno@clisp.org>
89633
89634         * lib/copy-file.c: Include <stddef.h>, for size_t.
89635
89636 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89637
89638         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89639         code which expansion is under static control.  Patch imported from
89640         Akim Demaille's patch to Bison; see
89641         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89642
89643 2003-04-14  Bruno Haible  <bruno@clisp.org>
89644
89645         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89646
89647 2003-04-11  Jim Meyering  <jim@meyering.net>
89648
89649         Merge changes from Coreutils.
89650
89651         2003-03-22  Jim Meyering  <jim@meyering.net>
89652
89653         * lib/strftime.c (widen): Cast alloca return value to proper type.
89654
89655         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89656
89657         From GNU libc.
89658         * lib/strftime.c (my_strftime): Handle very large width
89659         specifications for numeric values correctly.  Improve checks for
89660         overflow.
89661
89662         2003-01-19  Jim Meyering  <jim@meyering.net>
89663
89664         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89665         definitions.
89666         (nl_get_alt_digit) [! defined my_strftime]: Define.
89667         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89668         _nl_get_alt_digit and _nl_get_walt_digit.
89669
89670         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89671         libc. These changes have no effect outside of _LIBC.
89672
89673 2003-04-10  Bruno Haible  <bruno@clisp.org>
89674
89675         * modules/findprog: New file.
89676         * MODULES.html.sh (func_all_modules): Add it.
89677
89678 2003-04-10  Bruno Haible  <bruno@clisp.org>
89679
89680         * m4/findprog.m4: New file.
89681         * m4/eaccess.m4: New file.
89682
89683 2003-04-10  Bruno Haible  <bruno@clisp.org>
89684
89685         * lib/findprog.h: New file, from GNU gettext.
89686         * lib/findprog.c: New file, from GNU gettext.
89687
89688 2003-04-05  Jim Meyering  <jim@meyering.net>
89689
89690         Merge changes from Coreutils.
89691
89692         * lib/exclude.h (PARAMS): Remove definition and uses.
89693         * lib/exclude.c: Remove uses of `PARAMS'.
89694
89695         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89696         Add test-cases for DOS filenames. Declare program_name.
89697         (main): Set up program_name.  Patch by Rich Dawe.
89698
89699         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89700         error from mntctl.
89701         Use mntctl's return value to drive the entry-processing loop, since
89702         we can't rely on the value of the vmt_length member in the last
89703         entry.  On some systems doing so could result in exhausting
89704         virtual memory.  Based in part on a patch from Mike Jetzer.
89705
89706 2003-04-04  Bruno Haible  <bruno@clisp.org>
89707
89708         * modules/linebreak: New file.
89709         * MODULES.html.sh (func_all_modules): Add it.
89710
89711 2003-04-04  Bruno Haible  <bruno@clisp.org>
89712
89713         * m4/linebreak.m4: New file.
89714
89715 2003-04-04  Bruno Haible  <bruno@clisp.org>
89716
89717         * lib/linebreak.h: New file, from GNU gettext.
89718         * lib/linebreak.c: New file, from GNU gettext with slight
89719         modifications.
89720         * lib/lbrkprop.h: New file, from GNU gettext.
89721
89722 2003-04-03  Bruno Haible  <bruno@clisp.org>
89723
89724         * modules/utf8-ucs4: New file.
89725         * modules/utf16-ucs4: New file.
89726         * modules/ucs4-utf8: New file.
89727         * modules/ucs4-utf16: New file.
89728         * MODULES.html.sh (func_all_modules): Add them.
89729
89730 2003-04-03  Bruno Haible  <bruno@clisp.org>
89731
89732         * m4/utf-ucs4.m4: New file.
89733         * m4/ucs4-utf.m4: New file.
89734
89735 2003-04-03  Bruno Haible  <bruno@clisp.org>
89736
89737         * lib/utf8-ucs4.h: New file, from GNU gettext.
89738         * lib/utf16-ucs4.h: New file, from GNU gettext.
89739         * lib/ucs4-utf8.h: New file, from GNU gettext.
89740         * lib/ucs4-utf16.h: New file, from GNU gettext.
89741
89742 2003-04-02  Bruno Haible  <bruno@clisp.org>
89743
89744         * modules/binary-io: New file.
89745         * MODULES.html.sh (func_all_modules): Add it.
89746
89747 2003-04-02  Bruno Haible  <bruno@clisp.org>
89748
89749         * lib/binary-io.h: New file, from GNU gettext.
89750
89751 2003-04-01  Bruno Haible  <bruno@clisp.org>
89752
89753         * modules/pathname: New file.
89754         * MODULES.html.sh (func_all_modules): Add it.
89755
89756 2003-04-01  Bruno Haible  <bruno@clisp.org>
89757
89758         * lib/pathname.h: New file, from GNU gettext.
89759         * lib/concatpath.c: New file, from GNU gettext.
89760
89761 2003-03-30  Bruno Haible  <bruno@clisp.org>
89762
89763         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89764
89765 2003-03-30  Bruno Haible  <bruno@clisp.org>
89766
89767         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89768         function chown() doesn't exist.
89769
89770 2003-03-28  Bruno Haible  <bruno@clisp.org>
89771
89772         * modules/copy-file: New file.
89773         * MODULES.html.sh (func_all_modules): Add it.
89774
89775 2003-03-28  Bruno Haible  <bruno@clisp.org>
89776
89777         * m4/copy-file.m4: New file.
89778
89779 2003-03-28  Bruno Haible  <bruno@clisp.org>
89780
89781         * lib/copy-file.h: New file, from GNU gettext.
89782         * lib/copy-file.c: New file, from GNU gettext.
89783
89784 2003-03-18  Jim Meyering  <jim@meyering.net>
89785
89786         * lib/quote.c (quote_n): Fix typo in comment.
89787
89788 2003-03-18  Bruno Haible  <bruno@clisp.org>
89789
89790         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89791         checking.
89792         * m4/onceonly_2_57.m4: Likewise.
89793
89794 2003-03-17  Bruno Haible  <bruno@clisp.org>
89795
89796         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89797         (m4_quote): Remove macro.
89798         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89799
89800 2003-03-14  Jim Meyering  <jim@meyering.net>
89801
89802         Merge changes from Coreutils.
89803         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89804         to be const, in order to avoid warnings.
89805         (obstack_room): Likewise.
89806         (obstack_empty_p): Likewise.
89807
89808 2003-03-14  Bruno Haible  <bruno@clisp.org>
89809
89810         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89811         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89812
89813 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89814
89815         Merge changes from Bison.
89816         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89817         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89818         when compiling Bison 1.875's `bitset bset = obstack_alloc
89819         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89820         * lib/hash.c: Include <stdbool.h> unconditionally.
89821
89822 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89823
89824         * m4/onceonly.m4 (m4_quote): New macro.
89825         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89826         Quote AC_FOREACH variable-expansions properly.
89827
89828 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89829
89830         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89831
89832 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89833
89834         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89835         Reported by Bruce Becker; see:
89836         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89837
89838 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89839             Bruno Haible  <bruno@clisp.org>
89840
89841         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89842         Reported by John Hughes, see
89843         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89844
89845 2003-02-20  Bruno Haible  <bruno@clisp.org>
89846
89847         * MODULES.html.sh (func_all_modules): Add poll.
89848
89849 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89850
89851         * modules/poll: New file.
89852
89853 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89854
89855         * lib/poll_.h: New file.
89856         * lib/poll.c: New file.
89857
89858 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89859
89860         * m4/poll.m4: New file.
89861
89862 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89863
89864         * modules/mathl: New file.
89865
89866 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89867
89868         * lib/mathl.h: New file.
89869         * lib/acosl.c: New file.
89870         * lib/asinl.c: New file.
89871         * lib/atanl.c: New file.
89872         * lib/ceill.c: New file.
89873         * lib/cosl.c: New file.
89874         * lib/expl.c: New file.
89875         * lib/floorl.c: New file.
89876         * lib/frexpl.c: New file.
89877         * lib/ldexpl.c: New file.
89878         * lib/logl.c: New file.
89879         * lib/sincosl.c: New file.
89880         * lib/sinl.c: New file.
89881         * lib/sqrtl.c: New file.
89882         * lib/tanl.c: New file.
89883         * lib/trigl.c: New file.
89884         * lib/trigl.h: New file.
89885
89886 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89887
89888         * m4/mathl.m4: New file.
89889
89890 2003-02-18  Bruno Haible  <bruno@clisp.org>
89891
89892         * MODULES.html.sh (func_all_modules): Add mathl.
89893
89894 2003-02-17  Bruno Haible  <bruno@clisp.org>
89895
89896         * modules/mkdtemp: New module.
89897         * MODULES.html.sh (func_all_modules): Add it.
89898
89899 2003-02-17  Bruno Haible  <bruno@clisp.org>
89900
89901         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89902
89903 2003-02-17  Bruno Haible  <bruno@clisp.org>
89904
89905         * lib/mkdtemp.h: New file, from GNU gettext.
89906         * lib/mkdtemp.c: New file, from GNU gettext.
89907
89908 2003-02-02  Jim Meyering  <jim@meyering.net>
89909
89910         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89911         e.g. glibc-2.2.93.
89912
89913 2003-01-31  Bruno Haible  <bruno@clisp.org>
89914
89915         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89916         'rpl_rename'.
89917         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89918         'rpl_strnlen'.
89919         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89920         'rpl_strtod'.
89921         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89922         'rpl_utime'.
89923
89924 2003-01-31  Bruno Haible  <bruno@clisp.org>
89925
89926         * lib/rename.c: #undef rename before defining rpl_rename.
89927         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89928
89929 2003-01-30  Bruno Haible  <bruno@clisp.org>
89930
89931         * modules/vasnprintf, modules/vasprintf: New modules.
89932         * MODULES.html.sh (func_all_modules): Add them.
89933
89934 2003-01-30  Bruno Haible  <bruno@clisp.org>
89935
89936         * m4/signed.m4: New file, from GNU gettext.
89937         * m4/longdouble.m4: New file, from GNU gettext.
89938         * m4/wchar_t.m4: New file, from GNU gettext.
89939         * m4/wint_t.m4: New file, from GNU gettext.
89940         * m4/vasnprintf.m4: New file.
89941         * m4/vasprintf.m4: New file.
89942
89943 2003-01-30  Bruno Haible  <bruno@clisp.org>
89944
89945         * lib/printf-args.h: New file, from GNU gettext.
89946         * lib/printf-args.c: New file, from GNU gettext.
89947         * lib/printf-parse.h: New file, from GNU gettext.
89948         * lib/printf-parse.c: New file, from GNU gettext.
89949         * lib/vasnprintf.h: New file, from GNU gettext.
89950         * lib/vasnprintf.c: New file, from GNU gettext.
89951         * lib/asnprintf.c: New file, from GNU gettext.
89952         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89953         * lib/vasprintf.c: New file, from GNU gettext.
89954         * lib/asprintf.c: New file, from GNU gettext.
89955
89956 2003-01-29  Bruno Haible  <bruno@clisp.org>
89957
89958         * modules/stpncpy: New module.
89959         * MODULES.html.sh (func_all_modules): Add it.
89960
89961 2003-01-29  Bruno Haible  <bruno@clisp.org>
89962
89963         * m4/stpncpy.m4: New file.
89964
89965 2003-01-29  Bruno Haible  <bruno@clisp.org>
89966
89967         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89968         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89969
89970 2003-01-28  Bruno Haible  <bruno@clisp.org>
89971
89972         * modules/c-ctype: New module.
89973         * MODULES.html.sh (func_all_modules): Add it.
89974
89975 2003-01-28  Bruno Haible  <bruno@clisp.org>
89976
89977         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89978         Paul Eggert.
89979         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89980         Paul Eggert.
89981
89982 2003-01-27  Bruno Haible  <bruno@clisp.org>
89983
89984         * modules/xsetenv: New module.
89985         * MODULES.html.sh (func_all_modules): Add it.
89986
89987 2003-01-27  Bruno Haible  <bruno@clisp.org>
89988
89989         * lib/xsetenv.h: New file, from GNU gettext.
89990         * lib/xsetenv.c: New file, from GNU gettext.
89991
89992 2003-01-23  Jim Meyering  <jim@meyering.net>
89993
89994         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89995         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89996
89997 2003-01-23  Bruno Haible  <bruno@clisp.org>
89998
89999         * modules/minmax: New module.
90000         * MODULES.html.sh (func_all_modules): Add it.
90001
90002 2003-01-23  Bruno Haible  <bruno@clisp.org>
90003
90004         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90005         Eggert.
90006
90007 2003-01-22  Bruno Haible  <bruno@clisp.org>
90008
90009         * modules/exit: New module.
90010         * MODULES.html.sh (func_all_modules): Add it.
90011
90012 2003-01-22  Bruno Haible  <bruno@clisp.org>
90013
90014         * lib/exit.h: New file, from GNU gettext.
90015
90016 2003-01-19  Bruno Haible  <bruno@clisp.org>
90017
90018         * gnulib-tool: Recognize option --extract-maintainer.
90019         (func_get_maintainer): New function.
90020         * modules/*: Add Maintainer entry.
90021
90022 2003-01-16  Jim Meyering  <jim@meyering.net>
90023
90024         * m4/regex.m4: The `regex' struct is both input and output.
90025         Initialize it before each use.  Patch by Tim Waugh.
90026
90027 2003-01-16  Bruno Haible  <bruno@clisp.org>
90028
90029         * MODULES.html.sh: Add a table of contents. Add the module name as
90030         leftmost column. Add hyperlinks.
90031
90032 2003-01-15  Bruno Haible  <bruno@clisp.org>
90033
90034         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90035
90036 2003-01-15  Bruno Haible  <bruno@clisp.org>
90037
90038         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90039         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90040         suffix.
90041
90042 2003-01-15  Bruno Haible  <bruno@clisp.org>
90043
90044         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90045
90046 2003-01-15  Bruno Haible  <bruno@clisp.org>
90047
90048         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90049         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90050
90051 2003-01-14  Jim Meyering  <jim@meyering.net>
90052
90053         * lib/same.c (same_name): Tweak a comment.
90054
90055 2003-01-14  Bruno Haible  <bruno@clisp.org>
90056
90057         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90058         when a string comparison is sufficient.
90059
90060 2003-01-14  Bruno Haible  <bruno@clisp.org>
90061
90062         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90063         'unsigned int'.
90064
90065 2003-01-14  Bruno Haible  <bruno@clisp.org>
90066
90067         * lib/hash-pjw.c: Add comment about low quality of this function.
90068
90069 2003-01-13  Bruno Haible  <bruno@clisp.org>
90070
90071         * modules/stpcpy: Distribute lib/stpcpy.h.
90072         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90073
90074 2003-01-13  Bruno Haible  <bruno@clisp.org>
90075
90076         * modules/*: Add a description.
90077         * modules/strpbrk: Fix Makefile.am snippet.
90078         * modules/strtoimax: Fix dependencies.
90079         * modules/strtoumax: Likewise.
90080
90081 2003-01-13  Bruno Haible  <bruno@clisp.org>
90082
90083         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90084         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90085         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90086
90087 2003-01-13  Bruno Haible  <bruno@clisp.org>
90088
90089         * gnulib-tool (func_create_testdir): Store config/* files in the main
90090         directory.
90091         * config.rpath: Move to ...
90092         * config/config.rpath: ... here.
90093         * modules/gettext: Contains config/config.rpath, not config.rpath.
90094         * modules/iconv: Likewise.
90095
90096 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90097
90098         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90099         to avoid collisions with libcurses and libreadline.
90100
90101         * m4/getstr.m4: Remove.
90102         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90103
90104 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90105
90106         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90107         to avoid collisions with libcurses and libreadline.
90108
90109         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90110         * lib/getstr.h, getstr.c: Remove.
90111         * lib/getline.c: Include "getline.h", to check interface.
90112         Move body of old getstr.c here: this defines MIN_CHUNK and
90113         declares getdelim2, which is renamed from getstr.
90114         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90115
90116         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90117         All uses changed.
90118         * lib/linebuffer.h: Likewise.
90119         (readline): Remove backward-compatibility macro.
90120
90121 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90122
90123         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90124         to avoid collisions with libcurses and libreadline.
90125         * getstr: Remove.
90126         * MODULES.html.sh: Remove getstr.
90127         * modules/getline: Depend on unlocked-io, not getstr.
90128
90129 2003-01-12  Jim Meyering  <jim@meyering.net>
90130
90131         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90132
90133 2003-01-10  Bruno Haible  <bruno@clisp.org>
90134
90135         * modules/alloca: Change Makefile.am requirements. Simplify Include
90136         requirements. Add lib/alloca_.h to file list.
90137
90138 2003-01-10  Bruno Haible  <bruno@clisp.org>
90139
90140         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90141
90142 2003-01-10  Bruno Haible  <bruno@clisp.org>
90143
90144         * lib/alloca_.h: New file.
90145         * lib/getdate.y: Unconditionally include alloca.h.
90146         * lib/makepath.c: Likewise.
90147         * lib/setenv.c: Likewise.
90148         * lib/userspec.c: Likewise.
90149
90150 2003-01-09  Karl Berry  <karl@gnu.org>
90151
90152         * MODULES.html.sh: include `dirname $0` in PATH, to find
90153         gnulib-tool.
90154
90155 2003-01-09  Bruno Haible  <bruno@clisp.org>
90156
90157         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90158         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90159
90160 2003-01-09  Bruno Haible  <bruno@clisp.org>
90161
90162         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90163
90164 2003-01-09  Bruno Haible  <bruno@clisp.org>
90165
90166         * lib/stdbool.h.in: New file.
90167
90168 2003-01-09  Bruno Haible  <bruno@clisp.org>
90169
90170         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90171         * MODULES.html.sh: Likewise.
90172
90173 2003-01-08  Jim Meyering  <jim@meyering.net>
90174
90175         * lib/full-write.c: Undefine and define-away `const' after inclusion
90176         of errno.h, not before.  Suggestion from Bruno Haible.
90177
90178 2003-01-08  Bruno Haible  <bruno@clisp.org>
90179
90180         * modules/full-read: Depend on full-write.
90181
90182 2003-01-08  Bruno Haible  <bruno@clisp.org>
90183
90184         * lib/safe-read.c: Include specification header first, to ensure its
90185         selfcontainedness.
90186         * lib/full-write.c: Likewise.
90187
90188 2003-01-07  Jim Meyering  <jim@meyering.net>
90189
90190         * lib/full-write.c: Rework so that it may serve to define full_read,
90191         too.
90192         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90193
90194 2003-01-07  Bruno Haible  <bruno@clisp.org>
90195
90196         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90197         <inttypes.h>.
90198         * lib/xstrtol.h: Likewise.
90199         * lib/xstrtoimax.c: Likewise.
90200         * lib/xstrtoumax.c: Likewise.
90201         * lib/human.h: Likewise.
90202
90203         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90204         on systems that have <inttypes.h> but not <stdint.h>.
90205
90206 2003-01-07  Bruno Haible  <bruno@clisp.org>
90207
90208         * MODULES.html.sh: Add copyright notice.
90209         (missed_files): Omit CVS directory entries.
90210         (func_module): Make it work with sed-3.02.
90211         * MODULES.txt: Remove file.
90212
90213 2003-01-06  Jim Meyering  <jim@meyering.net>
90214
90215         * lib/version-etc.c: Update year in translatable copyright string.
90216
90217 2003-01-03  Karl Berry  <karl@gnu.org>
90218
90219         * config/config.{guess,sub}: update from prep.
90220
90221 2003-01-02  Karl Berry  <karl@gnu.org>
90222
90223         * doc/COPYING.DOC: belatedly updated to 1.2.
90224
90225 2003-01-01  Karl Berry  <karl@gnu.org>
90226
90227         * gnulib-tool (func_verify_module): report module name $module in
90228         error message, not $1.
90229         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90230         be created, only if it doesn't exist.
90231         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90232
90233 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90234
90235         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90236
90237 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90238
90239         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90240         memcmp if strcoll doesn't work.
90241
90242 2002-12-31  Bruno Haible  <bruno@clisp.org>
90243
90244         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90245         nonempty.
90246
90247 2002-12-31  Bruno Haible  <bruno@clisp.org>
90248
90249         * lib/memcoll.c (STRCOLL): New macro.
90250         (memcoll): Use it.
90251
90252 2002-12-31  Bruno Haible  <bruno@clisp.org>
90253
90254         * lib/localcharset.h: New file.
90255         * lib/localcharset.c: Include it.
90256         * lib/unicodeio.c: Likewise.
90257
90258 2002-12-31  Bruno Haible  <bruno@clisp.org>
90259
90260         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90261         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90262
90263 2002-12-31  Bruno Haible  <bruno@clisp.org>
90264
90265         * lib/getline.h: Include <stddef.h>, for size_t.
90266
90267         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90268         * lib/unicodeio.c: Don't include <stddef.h>.
90269
90270 2002-12-31  Bruno Haible  <bruno@clisp.org>
90271
90272         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90273         HAVE_TM_ZONE.
90274
90275 2002-12-24  Karl Berry  <karl@gnu.org>
90276
90277         * config/config.guess: update from prep.
90278
90279 2002-12-24  Bruno Haible  <bruno@clisp.org>
90280
90281         General infrasructure.
90282         * m4/README: Rewritten.
90283         * m4/onceonly.m4: New file.
90284         * m4/onceonly_2_57.m4: New file.
90285
90286         Module atexit.
90287         * m4/atexit.m4: New file.
90288
90289         Module strtod.
90290         * m4/strtod.m4: New file.
90291
90292         Module strtol.
90293         * m4/strtol.m4: New file.
90294
90295         Module strtoul.
90296         * m4/strtoul.m4: New file.
90297
90298         Module memchr.
90299         * m4/memchr.m4: New file.
90300
90301         Module memcmp.
90302         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90303         (jm_FUNC_MEMCMP): Invoke it.
90304
90305         Module memcpy.
90306         * m4/memcpy.m4: New file.
90307
90308         Module memmove.
90309         * m4/memmove.m4: New file.
90310
90311         Module memset.
90312         * m4/memset.m4: New file.
90313
90314         Module strcspn.
90315         * m4/strcspn.m4: New file.
90316
90317         Module strpbrk.
90318         * m4/strpbrk.m4: New file.
90319
90320         Module strstr.
90321         * m4/strstr.m4: New file.
90322
90323         Module strerror.
90324         * m4/strerror.m4: New file.
90325
90326         Module mktime.
90327         * m4/mktime.m4: Renamed from jm-mktime.m4.
90328         (gl_PREREQ_MKTIME): New macro.
90329         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90330
90331         Module malloc.
90332         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90333         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90334         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90335
90336         Module realloc.
90337         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90338         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90339         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90340
90341         Module strftime.
90342         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90343         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90344         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90345         gl_TM_GMTOFF.
90346         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90347
90348         Module xalloc.
90349         * m4/xalloc.m4: New file.
90350
90351         Module alloca.
90352         * m4/alloca.m4: New file.
90353
90354         Module putenv.
90355         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90356         (jm_FUNC_PUTENV): Invoke it.
90357
90358         Module setenv.
90359         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90360         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90361         when invoked twice.
90362         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90363         gt_FUNC_SETENV.
90364
90365         Module memrchr.
90366         * m4/memrchr.m4: New file.
90367
90368         Module stpcpy.
90369         * m4/stpcpy.m4: New file.
90370
90371         Module strcase.
90372         * m4/strcase.m4: New file.
90373
90374         Module strdup.
90375         * m4/strdup.m4: New file.
90376
90377         Module strnlen.
90378         * m4/strnlen.m4: New file.
90379
90380         Module strndup.
90381         * m4/strndup.m4: New file.
90382
90383         Module xstrtod.
90384         * m4/xstrtod.m4: New file.
90385
90386         Module xstrtol.
90387         * m4/xstrtol.m4: New file.
90388
90389         Module getdate.
90390         * m4/getdate.m4: New file.
90391
90392         Module unlocked-io.
90393         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90394         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90395         * m4/jm-glibc-io.m4n: Remove file.
90396
90397         Module long-options.
90398         * m4/long-options.m4: New file.
90399
90400         Module md5.
90401         * m4/md5.m4: New file.
90402
90403         Module sha.
90404         * m4/sha.m4: New file.
90405
90406         Module getstr.
90407         * m4/getstr.m4: New file.
90408
90409         Module getline.
90410         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90411         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90412         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90413         simply getline. Infoke gl_PREREQ_GETLINE.
90414
90415         Module obstack.
90416         * m4/obstack.m4: New file.
90417
90418         Module hash.
90419         * m4/hash.m4: New file.
90420
90421         Module readtokens.
90422         * m4/readtokens.m4: New file.
90423
90424         Module strverscmp.
90425         * m4/strverscmp.m4: New file.
90426
90427         Module stdbool.
90428         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90429         OSF/1.
90430
90431         Module strtoll.
90432         * m4/strtoll.m4: New file.
90433
90434         Module strtoull.
90435         * m4/strtoull.m4: New file.
90436
90437         Module strtoimax.
90438         * m4/strtoimax.m4: New file.
90439
90440         Module strtoumax.
90441         * m4/strtoumax.m4: New file.
90442
90443         Module xstrtoimax.
90444         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90445         jm_AC_PREREQ_XSTRTOIMAX.
90446         Moved the strtol prerequisites to strtol.m4.
90447         Moved the strtoll prerequisites to strtoll.m4.
90448         Moved the strtoimax prerequisites to strtoimax.m4.
90449
90450         Module xstrtoumax.
90451         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90452         jm_AC_PREREQ_XSTRTOUMAX.
90453         Moved the strtoul prerequisites to strtoul.m4.
90454         Moved the strtoull prerequisites to strtoull.m4.
90455         Moved the strtoumax prerequisites to strtoumax.m4.
90456
90457         Module chown.
90458         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90459         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90460
90461         Module dup2.
90462         * m4/dup2.m4: New file.
90463
90464         Module ftruncate.
90465         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90466         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90467
90468         Module getgroups.
90469         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90470         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90471
90472         Module gettimeofday.
90473         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90474         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90475         gl_PREREQ_GETTIMEOFDAY.
90476
90477         Module mkdir.
90478         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90479         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90480
90481         Module mkstemp.
90482         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90483         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90484         jm_AC_TYPE_UINTMAX_T.
90485         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90486
90487         Module stat.
90488         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90489         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90490
90491         Module lstat.
90492         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90493         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90494
90495         Module timespec.
90496         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90497         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90498         * m4/st_mtim.m4: Indentation.
90499
90500         Module nanosleep.
90501         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90502         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90503         gl_PREREQ_NANOSLEEP.
90504
90505         Module regex.
90506         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90507         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90508         (gl_REGEX): New macro.
90509
90510         Module rename.
90511         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90512         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90513
90514         Module rmdir.
90515         * m4/rmdir.m4: New file.
90516
90517         Module utime.
90518         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90519         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90520         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90521
90522         Module dirname.
90523         * m4/dirname.m4: New file.
90524
90525         Module getopt.
90526         * m4/getopt.m4: New file.
90527
90528         Module unistd-safer.
90529         * m4/unistd-safer.m4: New file.
90530
90531         Module fnmatch.
90532         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90533         declaration.
90534         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90535         (gl_FUNC_FNMATCH_POSIX): New macro.
90536         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90537         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90538         simply fnmatch.
90539
90540         Module exclude.
90541         * m4/exclude.m4: New file.
90542
90543         Module human.
90544         * m4/human.m4: New file.
90545
90546         Module acl.
90547         * m4/acl.m4: Nop.
90548
90549         Module backupfile.
90550         * m4/backupfile.m4: New file.
90551         * m4/d-ino.m4: Indentation.
90552
90553         Module fsusage.
90554         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90555         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90556         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90557
90558         Module dirfd.
90559         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90560         requirements.
90561
90562         Module euidaccess.
90563         * m4/euidaccess.m4: New file.
90564
90565         Module file-type.
90566         * m4/file-type.m4: New file.
90567
90568         Module fileblocks.
90569         * m4/fileblocks.m4: New file.
90570
90571         Module filemode.
90572         * m4/filemode.m4: New file.
90573
90574         Module isdir.
90575         * m4/isdir.m4: New file.
90576
90577         Module lchown.
90578         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90579         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90580
90581         Module makepath.
90582         * m4/makepath.m4: New file.
90583
90584         Module modechange.
90585         * m4/modechange.m4: New file.
90586
90587         Module mountlist.
90588         * m4/mountlist.m4: New file.
90589         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90590         Indentation.
90591
90592         Module path-concat.
90593         * m4/path-concat.m4: New file.
90594
90595         Module pathmax.
90596         * m4/pathmax.m4: New file.
90597
90598         Module same.
90599         * m4/same.m4: New file.
90600
90601         Module save-cwd.
90602         * m4/save-cwd.m4: New file.
90603
90604         Module savedir.
90605         * m4/savedir.m4: New file.
90606
90607         Module xgetcwd.
90608         * m4/xgetcwd.m4: New file.
90609         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90610
90611         Module xreadlink.
90612         * m4/xreadlink.m4: New file.
90613
90614         Module safe-read.
90615         * m4/safe-read.m4: New file.
90616
90617         Module safe-write.
90618         * m4/safe-write.m4: New file.
90619
90620         Module closeout.
90621         * m4/closeout.m4: New file.
90622
90623         Module stdio-safer.
90624         * m4/stdio-safer.m4: New file.
90625
90626         Module getpass.
90627         * m4/getpass.m4: New file.
90628
90629         Module getugroups.
90630         * m4/getugroups.m4: New file.
90631
90632         Module group-member.
90633         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90634         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90635
90636         Module idcache.
90637         * m4/idcache.m4: New file.
90638
90639         Module userspec.
90640         * m4/userspec.m4: New file.
90641
90642         Module gettime.
90643         * m4/clock_time.m4: New file.
90644         * m4/gettime.m4: New file.
90645
90646         Module settime.
90647         * m4/settime.m4: New file.
90648
90649         Module posixtm.
90650         * m4/posixtm.m4: New file.
90651
90652         Module gethostname.
90653         * m4/gethostname.m4: New file.
90654
90655         Module canon-host.
90656         * m4/canon-host.m4: New file.
90657
90658         Module gettext.
90659         * m4/codeset.m4: New file, from gettext-0.11.5.
90660         * m4/gettext.m4: New file, from gettext-0.11.5.
90661         * m4/glibc21.m4: New file, from gettext-0.11.5.
90662         * m4/iconv.m4: New file, from gettext-0.11.5.
90663         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90664         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90665         * m4/inttypes.m4: New file, from gettext-0.11.5.
90666         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90667         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90668         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90669         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90670         * m4/lib-link.m4: New file, from gettext-0.11.5.
90671         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90672         * m4/progtest.m4: New file, from gettext-0.11.5.
90673         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90674         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90675         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90676
90677         Module localcharset.
90678         * m4/localcharset.m4: New file.
90679
90680         Module hard-locale.
90681         * m4/hard-locale.m4: New file.
90682
90683         Module mbswidth.
90684         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90685         onceonly macros.
90686         * m4/mbrtowc.m4: Add comment.
90687
90688         Module memcasecmp.
90689         * m4/memcasecmp.m4: New file.
90690
90691         Module memcoll.
90692         * m4/memcoll.m4: New file.
90693
90694         Module unicodeio.
90695         * m4/unicodeio.m4: New file.
90696
90697         Module rpmatch.
90698         * m4/rpmatch.m4: New file.
90699
90700         Module yesno.
90701         * m4/yesno.m4: New file.
90702
90703         Module exitfail.
90704         * m4/exitfail.m4: New file.
90705
90706         Module c-stack.
90707         * m4/c-stack.m4 (gl_C_STACK): New macro.
90708         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90709
90710         Module error.
90711         * m4/error.m4 (gl_ERROR): New macro.
90712         (jm_PREREQ_ERROR): Use onceonly macros.
90713
90714         Module fatal.
90715         * m4/fatal.m4: New file.
90716
90717         Module getloadavg.
90718         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90719         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90720
90721         Module getpagesize.
90722         * m4/getpagesize.m4: New file.
90723
90724         Module getusershell.
90725         * m4/getusershell.m4: New file.
90726
90727         Module physmem.
90728         * m4/physmem.m4: New file.
90729
90730         Module posixver.
90731         * m4/posixver.m4: New file.
90732
90733         Module quotearg.
90734         * m4/quotearg.m4: New file.
90735
90736         Module quote.
90737         * m4/quote.m4: New file.
90738
90739         Module readutmp.
90740         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90741
90742         Module sig2str.
90743         * m4/sig2str.m4: New file.
90744
90745         Other.
90746         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90747         ulonglong.m4.
90748         * m4/intmax_t.m4: New file.
90749         * m4/d-type.m4: Indentation.
90750         * m4/jm-macros.m4: Update.
90751         * m4/prereq.m4 (jm_PREREQ): Update.
90752         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90753         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90754         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90755         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90756         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90757         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90758         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90759         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90760         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90761         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90762         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90763         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90764         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90765         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90766         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90767         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90768         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90769         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90770         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90771
90772 2002-12-24  Bruno Haible  <bruno@clisp.org>
90773
90774         * MODULES.txt: Update according to m4/ changes.
90775
90776         Module gettext.
90777         * config.rpath: New file, from gettext-0.11.5.
90778
90779         * modules/*: New module descriptions.
90780         * gnulib-tool: New file.
90781         * MODULES.html.sh: New file.
90782
90783 2002-12-21  Karl Berry  <karl@gnu.org>
90784
90785         * doc/fdl.texi: update to version 1.2.
90786
90787 2002-12-19  Karl Berry  <karl@gnu.org>
90788
90789         * config/config.guess: update from prep.
90790
90791 2002-12-18  Bruno Haible  <bruno@clisp.org>
90792
90793         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90794         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90795
90796 2002-12-17  Bruno Haible  <bruno@clisp.org>
90797
90798         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90799         stdlib.h, string.h.
90800
90801 2002-12-17  Bruno Haible  <bruno@clisp.org>
90802
90803         * lib/canon-host.c (strdup): Remove unused declaration.
90804
90805         * lib/fsusage.c: Include full_read.h.
90806         (get_fs_usage): Use full_read instead of safe_read.
90807
90808         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90809
90810 2002-12-12  Karl Berry  <karl@gnu.org>
90811
90812         * config/config.guess: update from prep.
90813
90814 2002-12-11  Bruno Haible  <bruno@clisp.org>
90815
90816         * m4/setenv.m4: New file, from gettext-0.11.5.
90817
90818 2002-12-11  Bruno Haible  <bruno@clisp.org>
90819
90820         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90821         not unsetenv().
90822         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90823         modifications:
90824
90825         2002-12-11  Bruno Haible  <bruno@clisp.org>
90826
90827                 * setenv.c (alloca): Fall back to malloc.
90828                 (freea): New macro.
90829                 (setenv): Use freea() to free memory allocated with alloca().
90830
90831         2002-11-13  Bruno Haible  <bruno@clisp.org>
90832
90833                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90834                 function declarations.
90835                 * unsetenv.c (unsetenv): Likewise.
90836
90837         2002-03-04  Bruno Haible  <bruno@clisp.org>
90838
90839                 Portability to AIX 4.3.3.
90840                 * unsetenv.c: New file, extracted from setenv.c.
90841                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90842
90843         2001-12-20  Bruno Haible  <bruno@clisp.org>
90844
90845                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90846                 use malloc instead. For SunOS 4.
90847
90848         2001-12-11  Bruno Haible  <bruno@clisp.org>
90849
90850                 * setenv.c: Declare alloca.
90851                 (compar_fn_t): New typedef.
90852                 (KNOWN_VALUE, STORE_VALUE): Use it.
90853
90854         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90855         setenv.h.
90856
90857 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90858
90859         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90860         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90861         Choose values that are less likely to collide with system fnmatch
90862         options.
90863         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90864         defined (e.g., a pure POSIX system).
90865         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90866         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90867
90868 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90869
90870         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90871         a pain in practice to deal with generated m4 files.  This change
90872         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90873
90874         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90875         and jm-glibc-io.m4, as they are no longer a special case.
90876         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90877         kludge and the auto-generation stuff.  Check only whether the
90878         functions are declared, not whether they exist, since older hosts
90879         that don't declare the functions can't use the optimization anyway.
90880
90881 2002-12-06  Jim Meyering  <jim@meyering.net>
90882
90883         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90884
90885         Merge in changes from libc's misc/error.c, in preparation
90886         for the merge of gnulib's changes back into libc.
90887
90888         * lib/error.c (_): Define only if not already defined.
90889         Move definition to follow all #include directives.
90890         Include unlocked-io.h only if !_LIBC.
90891         [_LIBC]: Include <libio/libioP.h>.
90892         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90893         (fflush): Tweak definition to use INTUSE.
90894         (putc): Define.
90895
90896 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90897
90898         * lib/alloca.c [defined emacs]: Include "lisp.h".
90899         (xalloc_die) [defined emacs]: New macro.
90900         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90901         [! defined emacs]: Include <xalloc.h>.
90902         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90903         (pointer): Typedef to POINTER_TYPE *.
90904         (malloc): Remove decl; we now always use xmalloc.
90905         (alloca): Use old-style definition, since Emacs needs this.
90906         Check for arithmetic overflow when computing combined size.
90907
90908 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90909
90910         Do not generate unlocked-io.h automatically, since it's easier to
90911         maintain it by hand.
90912
90913         * lib/unlocked-io.h: New file, from GNU diffutils,
90914         but with proper copyright notice and attribution.
90915         * lib/gen-uio: Remove.
90916         * lib/Makefile.am: Add copyright notice.
90917         (libfetish_a_SOURCES): Add unlocked-io.h.
90918         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90919         (DISTCLEANFILES, io_functions): Remove macros.
90920         (EXTRA_DIST): Remove gen_uio.
90921         (unlocked-io.h): Remove rule.
90922
90923 2002-12-04  Jim Meyering  <jim@meyering.net>
90924
90925         Reflect the fact that stat.c and lstat.c are no longer generated.
90926         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90927         (DISTCLEANFILES): Likewise.
90928         (EXTRA_DIST): Likewise.
90929         (all_local): Don't depend on stat.c or lstat.c.
90930         (stat.c, lstat.c): Remove rules.
90931         (EXTRA_DIST): Remove xstat.in.
90932
90933         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90934         * lib/stat.c: New file.  Contents mostly from xstat.in.
90935         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90936         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90937
90938         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90939         too.
90940         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90941
90942 2002-12-03  Jim Meyering  <jim@meyering.net>
90943
90944         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90945         but not semantics, to minimize the differences between these two files.
90946         (safe_read): Change comment to mention SAFE_READ_ERROR.
90947
90948         * lib/safe-read.c (IS_EINTR): Define.
90949         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90950
90951 2002-12-02  Jim Meyering  <jim@meyering.net>
90952
90953         * lib/safe-read.c (EINTR): Define.
90954         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90955         (INT_MAX): Provide fallback.
90956         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90957
90958         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90959
90960 2002-12-02  Bruno Haible  <bruno@clisp.org>
90961
90962         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90963         Define, taken from safe-read.c.
90964         (INT_MAX): Provide fallback.
90965         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90966         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90967
90968         * lib/safe-read.c (EINTR): Remove definition.
90969         (safe_read): Don't use EINTR if it is absent.
90970
90971 2002-12-01  Jim Meyering  <jim@meyering.net>
90972
90973         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90974         zero.
90975         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90976
90977 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90978
90979         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90980         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90981         with `if (! (value < limit)) abort ();', for readability.
90982
90983 2002-11-26  Karl Berry  <karl@gnu.org>
90984
90985         * lib/strdup.c: copy from libc again, with jim's ok.
90986         * lib/.cppi-disable: re-add strdup.c
90987
90988 2002-11-25  Karl Berry  <karl@gnu.org>
90989
90990         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90991         instead of "strtol.c".
90992
90993 2002-11-25  Karl Berry  <karl@gnu.org>
90994
90995         * config/install-sh: update from automake for variable quoting, $0 in
90996         error msgs, etc.
90997
90998         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90999         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91000         entry.
91001
91002 2002-11-25  Jim Meyering  <jim@meyering.net>
91003
91004         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91005
91006 2002-11-24  Karl Berry  <karl@gnu.org>
91007
91008         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91009         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91010
91011 2002-11-24  Jim Meyering  <jim@meyering.net>
91012
91013         Update from coreutils:
91014
91015         * lib/mktime.c: Merge in changes from libc.
91016
91017         Avoid a link-time failure on some Linux systems.
91018         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91019         (otherwise).
91020         (__mon_yday): Declare with the STATIC attribute.
91021         (__mktime_internal): Likewise.
91022         Based on a report from Greg Schafer.
91023
91024 2002-11-23  Jim Meyering  <jim@meyering.net>
91025
91026         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91027         Use `unsigned', not `int', as type of index.
91028
91029         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91030
91031         * lib/fsusage.c: Remove unneeded parentheses around operands of
91032         `defined'.
91033
91034 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91035
91036         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91037         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91038         so that we can be included first.
91039         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91040         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91041         No need to include stddef.h or sys/types.h any more.
91042         Surround local include files with "", not "<>".
91043         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91044         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91045         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91046         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91047         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91048         (ISPRINT): Remove; no longer needed now that we assume C89.
91049
91050         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91051         Preserve errno.
91052
91053         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91054         quotearg_char): Use SIZE_MAX rather than
91055         (size_t) -1 when we are talking about "infinity".
91056
91057         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91058
91059 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91060
91061         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91062         hint that one should use `if (! x) abort ();' rather than `assert
91063         (x);', and anyway it's one less thing to worry about configuring.
91064         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91065         hash_rehash, hash_insert): Use abort rather than assert.
91066
91067 2002-11-22  Bruno Haible  <bruno@clisp.org>
91068
91069         * lib/safe-read.h: Assume C89. Add comments.
91070         (safe_read): Change return type to size_t.
91071         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91072         byte counts > SSIZE_MAX correctly.
91073         * lib/safe-write.h: New file.
91074         * lib/safe-write.c: New file.
91075         * lib/full-read.h: New file.
91076         * lib/full-read.c: New file.
91077         * lib/full-write.h: Assume C89. Add comments.
91078         * lib/full-write.c: Include safe-write.h.
91079         (full_write): Rewritten to use safe_write.
91080         Suggested by Jim Meyering and Paul Eggert.
91081
91082 2002-11-21  Jim Meyering  <jim@meyering.net>
91083
91084         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91085
91086         Merge in changes from the coreutils.
91087
91088         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91089         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91090         <stdint.h>.
91091         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91092         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91093         int.  Work more efficiently if X is the same width as uintmax_t.
91094         Do not compare X to -1, to avoid bogus compiler warning.
91095         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91096         Don't assume that f_frsize and f_bsize are the same type.
91097
91098         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91099         warning on FreeBSD.
91100
91101         * lib/makepath.c (make_path): Restore umask *before* creating the final
91102         component.
91103         (make_path): Minor reformatting.
91104
91105         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91106         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91107         HAVE_MALLOC/HAVE_REALLOC.
91108
91109         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91110         dummy ones.  At least on GNU/Linux systems, `auto' means something
91111         else.
91112         From Michael Stone.
91113
91114 2002-11-21  Bruno Haible  <bruno@clisp.org>
91115
91116         Remove case insensitive option matching.
91117         * lib/argmatch.h (argcasematch): Remove declaration.
91118         (ARGCASEMATCH): Remove macro.
91119         (__xargmatch_internal): Remove case_sensitive argument.
91120         (XARGMATCH): Update.
91121         (XARGCASEMATCH): Remove macro.
91122         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91123         case_sensitive argument.
91124         (argcasematch): Remove function.
91125         (__xargmatch_internal): Remove case_sensitive argument.
91126         (main): Use XARGMATCH instead of XARGCASEMATCH.
91127
91128         * lib/xmalloc.c: Change compile-time error message. Add comment about
91129         required autoconf version.
91130
91131 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91132
91133         Merge argmatch cleanups from Bison.  Assume C89.
91134
91135         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91136         Include stdlib.h, for EXIT_FAILURE.
91137         Always include <string.h>, since we assume C89.
91138         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91139         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91140         Include <stddef.h> instead, since it's all we need for size_t.
91141         (PARAMS): Remove.  All uses removed.
91142         (ARRAY_CARDINALITY): Do not bother to #undef.
91143         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91144         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91145         Remove unnecessary parentheses.
91146         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91147         Insert necessary parentheses.
91148         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91149         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91150
91151 2002-11-19  Bruno Haible  <bruno@clisp.org>
91152
91153         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91154         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91155
91156         * lib/mbswidth.h (PARAMS): Remove macro.
91157         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91158         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91159
91160         * lib/gcd.h (PARAMS): Remove macro.
91161         (gcd): Use ANSI C function declarations.
91162         * lib/gcd.c (gcd): Likewise.
91163
91164 2002-11-15  Bruno Haible  <bruno@clisp.org>
91165
91166         * lib/strcspn.c: Include <stddef.h>.
91167         (strcspn): Use ANSI C function declaration. Change return type to
91168         size_t. Use NULL.
91169         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91170         (strpbrk): Use NULL.
91171         * lib/strpbrk.h (PARAMS): Remove macro.
91172         (strpbrk): Use ANSI C function declaration.
91173         * lib/strstr.c: Don't include <sys/types.h>.
91174         * lib/strstr.h (PARAMS): Remove macro.
91175         (strstr): Use ANSI C function declarations.
91176
91177 2002-11-14  Karl Berry  <karl@gnu.org>
91178
91179         * config/mkinstalldirs: `do' on separate line, instead of
91180         `for var; do'.
91181
91182 2002-11-06  Bruno Haible  <bruno@clisp.org>
91183
91184         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91185         * lib/gcd.c (gcd): Likewise.
91186
91187 2002-11-05  Bruno Haible  <bruno@clisp.org>
91188
91189         * lib/gcd.h: New file, from gettext-0.11.5.
91190         * lib/gcd.c: New file, from gettext-0.11.5.
91191
91192 2002-11-05  Bruno Haible  <bruno@clisp.org>
91193
91194         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91195         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91196         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91197         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91198
91199         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91200         <libintl.h>.
91201         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91202         <libintl.h>.
91203
91204         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91205         * lib/human.c: Include gettext.h instead of <libintl.h>.
91206         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91207         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91208         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91209         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91210         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91211         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91212         (textdomain): Remove definition.
91213         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91214
91215         * lib/long-options.c: Remove include of <libintl.h> and definition of
91216         _.
91217         * lib/same.c: Remove include of <libintl.h> and definition of _.
91218
91219 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91220
91221         * lib/config.charset: A few additions for Solaris.
91222
91223 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91224
91225         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91226         * lib/localcharset.c (locale_charset): Declare as extern "C".
91227
91228 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91229
91230         * lib/config.charset: msdos in uk_UA uses CP1125.
91231
91232 2002-11-04  Bruno Haible  <bruno@clisp.org>
91233
91234         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91235         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91236         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91237         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91238         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91239
91240 2002-11-04  Bruno Haible  <bruno@clisp.org>
91241
91242         * lib/localcharset.c (locale_charset): Don't return an empty string.
91243
91244 2002-11-04  Bruno Haible  <bruno@clisp.org>
91245
91246         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91247         aliases.
91248
91249 2002-11-04  Bruno Haible  <bruno@clisp.org>
91250
91251         * lib/config.charset: Update for newest glibc. Add canonical names
91252         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91253
91254 2002-11-04  Bruno Haible  <bruno@clisp.org>
91255
91256         * lib/config.charset: Add support for NetBSD.
91257
91258 2002-11-04  Bruno Haible  <bruno@clisp.org>
91259
91260         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91261
91262 2002-11-01  Bruno Haible  <bruno@clisp.org>
91263
91264         * configure.in: Add AC_CONFIG_AUX_DIR call.
91265         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91266         test/Makefile.
91267         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91268
91269 2002-09-28  Karl Berry  <karl@gnu.org>
91270
91271         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91272         installed automake until the next release, since changes have been
91273         made.
91274
91275 2002-09-25  Karl Berry  <karl@gnu.org>
91276
91277         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91278         * lib/getopt*: copy from libc/posix.
91279         * lib/gettext.h: copy from gettext.
91280         * lib/.cppi-disable: add strdup.c, gettext.h.
91281
91282 2002-09-25  Karl Berry  <karl@gnu.org>
91283
91284         * config/srclist.txt: enable gettext.h check.
91285         * config/config.{guess,sub}: update from prep.
91286         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91287                 from automake 1.6.3.
91288         See srclist*.
91289
91290 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91291
91292         * regex.c (PATFETCH): Remove the translating fetch.
91293         (PATFETCH_RAW): Rename to PATFETCH.
91294         (set_image_of_range): New fun.
91295         (SET_RANGE_TABLE_WORK_AREA): Use it.
91296         (regex_compile): Don't translate the pattern chars so eagerly.
91297         Only do it when inserting an `exactn' bytecode or when handling
91298         a char-range.
91299         (mutually_exclusive_p): Avoid empty statement.
91300
91301 2002-07-06  Jim Meyering  <meyering@lucent.com>
91302
91303         * m4/README: Don't mention Makefile.am.in.
91304         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91305
91306 2002-07-01  Jim Meyering  <meyering@lucent.com>
91307
91308         * lib/c-stack.c: Include sys/time.h.
91309         From Volker Borchert.
91310
91311 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91312
91313         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91314
91315 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91316
91317         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91318         New macro.  Use it uniformly instead of
91319         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91320         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91321         reported by Vin Shelton.
91322
91323 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91324
91325         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91326         Do not assume SA_SIGINFO behavior.
91327         Bug reported by Jim Meyering on NetBSD 1.5.2.
91328
91329 2002-06-22  Jim Meyering  <meyering@lucent.com>
91330
91331         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91332         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91333
91334         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91335         now that configure.ac uses AC_GNU_SOURCE.
91336         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91337         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91338
91339         Update to latest tools.  Suggestions from Paul Eggert.
91340         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91341         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91342         * m4/fnmatch.m4: Likewise.
91343         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91344         to AC_HEADER_STDBOOL
91345
91346 2002-06-22  Jim Meyering  <meyering@lucent.com>
91347
91348         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91349         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91350
91351 2002-06-22  Jim Meyering  <meyering@lucent.com>
91352
91353         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91354
91355         * lib/exitfail.c, exitfail.h: Likewise.
91356         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91357
91358         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91359         of fnmatch.h.
91360         (EXTRA_DIST): Add fnmatch_loop.c.
91361         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91362
91363         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91364         * lib/fnmatch.c: Update from diffutils-2.8.2.
91365         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91366         * lib/fnmatch.h: Remove file.
91367
91368 2002-06-21  Jim Meyering  <meyering@lucent.com>
91369
91370         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91371         * m4/mbrtowc.m4: Likewise.
91372
91373         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91374         * m4/mbswidth.m4: Reflect name change:
91375         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91376         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91377
91378         * m4/lib-link.m4: Update from gettext-0.11.2.
91379         * m4/gettext.m4: Likewise.
91380
91381         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91382         From Alfred M. Szmidt.
91383
91384 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91385
91386         * lib/file-type.h: Report an error if neither S_ISREG nor
91387         S_IFREG is defined, instead of using a test specific to glibc
91388         2.2.  This should be safe, since POSIX requires S_ISREG and
91389         Unix Version 7 had S_IFREG.  We don't need to check for
91390         <sys/types.h> since we don't use any symbols that it defines.
91391
91392 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91393
91394         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91395         $@-t, so that each temporary file name is unique and valid in the first
91396         8 characters, for operation under DOS.
91397
91398 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91399
91400         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91401
91402 2002-06-15  Jim Meyering  <meyering@lucent.com>
91403
91404         Work even with DJGPP 2.03, which lacks support for symlinks.
91405         From Richard Dawe.
91406         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91407         is defined.
91408         * lib/lchown.c (S_ISLNK): Likewise.
91409
91410 2002-06-15  Jim Meyering  <meyering@lucent.com>
91411
91412         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91413         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91414         have been included before this file.
91415
91416 2002-06-14  Jim Meyering  <meyering@lucent.com>
91417
91418         * lib/file-type.h: Use the version from diffutils-2.8.2.
91419         * lib/file-type.c: Likewise.
91420
91421 2002-06-07  Jim Meyering  <meyering@lucent.com>
91422
91423         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91424         They're needed at least for NetBSD 1.5.2.
91425         ($statxfs_includes): Include those same headers.
91426         ($statxfs_includes): Include sys/vfs.h if available.
91427         ($statxfs_includes): Likewise for sys/statvfs.h.
91428         Check for the following members in both structs statfs and statvfs:
91429         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91430
91431 2002-06-01  Jim Meyering  <meyering@lucent.com>
91432
91433         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91434         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91435
91436 2002-05-28  Jim Meyering  <meyering@lucent.com>
91437
91438         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91439         Reported by Volker Borchert.
91440
91441 2002-05-27  Jim Meyering  <meyering@lucent.com>
91442
91443         Fix a problem seen only on nonconforming systems whereby ls.c's
91444         use of localtime, and then of gettimeofday would cause trouble:
91445         the localtime call used to initialize rpl_gettimeofday's save
91446         mechanism would clobber ls's current local time information so
91447         that in any long listing the first file would always be listed
91448         with date 1970-01-01.  Analysis by Volker Borchert.
91449
91450         * lib/gettimeofday.c (localtime): Undefine.
91451         (rpl_localtime): New function.
91452
91453 2002-05-27  Jim Meyering  <meyering@lucent.com>
91454
91455         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91456         localtime.
91457
91458         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91459         use the replacement function; it wouldn't resolve at link time.
91460         Reported by Volker Borchert.
91461
91462 2002-05-22  Jim Meyering  <meyering@lucent.com>
91463
91464         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91465         file-type.h.
91466         * lib/file-type.h: New file.
91467         * lib/file-type.c (file_type): New file/function.  Extracted from
91468         diffutils.
91469
91470 2002-04-30  Jim Meyering  <meyering@lucent.com>
91471
91472         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91473
91474 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91475
91476         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91477
91478 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91479
91480         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91481         Do not check for alloca.h (no longer used) or stdbool.h (was never
91482         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91483
91484 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91485
91486         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91487
91488 2002-04-29  Jim Meyering  <meyering@lucent.com>
91489
91490         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91491         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91492         Use AC_FUNC_STRNLEN here instead.
91493
91494         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91495         With autoconf-2.53a, it's part of AC_PROG_CC.
91496
91497 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91498
91499         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91500         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91501
91502 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91503
91504         * lib/sig2str.h, lib/sig2str.c: New files.
91505         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91506
91507 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91508
91509         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91510         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91511         of 127, since 64 is the largest conceivable number for ancient
91512         nonstandard hosts.
91513         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91514
91515 2002-04-28  Jim Meyering  <meyering@lucent.com>
91516
91517         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91518
91519 2002-04-24  Jim Meyering  <meyering@lucent.com>
91520
91521         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91522         (jm_PREREQ): Use it.
91523
91524         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91525         mach/mach.h fcntl.h.
91526         Check for this function: setlocale.
91527
91528 2002-04-24  Jim Meyering  <meyering@lucent.com>
91529
91530         * lib/gettext.h: New file, from Gettext.
91531         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91532         (libfetish_a_SOURCES): Add gettext.h.
91533
91534 2002-04-16  Jim Meyering  <meyering@lucent.com>
91535
91536         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91537         ut_pid, ut_id, ut_exit.
91538
91539 2002-04-16  Jim Meyering  <meyering@lucent.com>
91540
91541         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91542         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91543         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91544
91545 2002-04-12  Jim Meyering  <meyering@lucent.com>
91546
91547         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91548         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91549         existence of the getmntinfo function.  Needed for Darwin 5.3.
91550
91551         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91552         This is necessary at least on Darwin 5.3.
91553
91554         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91555         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91556         strnlen.o in the library, and that makes some versions of ranlib
91557         object.
91558
91559 2002-04-12  Jim Meyering  <meyering@lucent.com>
91560
91561         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91562
91563 2002-04-09  Jim Meyering  <meyering@lucent.com>
91564
91565         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91566         to be more precise.  Rather than saying we're checking whether the
91567         function `works', say what we're testing.
91568         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91569         Reported by Bruno Haible.
91570
91571 2002-03-10  Jim Meyering  <meyering@lucent.com>
91572
91573         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91574         Suggestion from Santiago Vila.
91575
91576 2002-03-08  Jim Meyering  <meyering@lucent.com>
91577
91578         * lib/rename.c: Mention that this wrapper is needed also on
91579         mips-dec-ultrix4.4 systems.
91580
91581 2002-03-02  Jim Meyering  <meyering@lucent.com>
91582
91583         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91584         not HAVE_CLOCK_SETTIME.
91585
91586 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91587
91588         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91589         Check for clock_settime.
91590
91591 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91592
91593         * lib/nanosleep.h: Rename to....
91594         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91595
91596         * lib/gettime.c: New file.
91597         * lib/settime.c: New file.
91598         * lib/stime.c: Remove.
91599
91600         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91601         timespec.h.  Remove nanosleep.h.
91602
91603 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91604
91605         * m4/acl.m4: New file.
91606         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91607         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91608
91609 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91610
91611         * lib/acl.c, lib/acl.h: New files.
91612         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91613
91614 2002-02-24  Jim Meyering  <meyering@lucent.com>
91615
91616         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91617         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91618         cause trouble.  Reported by Nelson Beebe.
91619
91620 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91621
91622         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91623         compilers that don't know that xalloc_die never returns.
91624
91625 2002-02-20  Jim Meyering  <meyering@lucent.com>
91626
91627         * lib/getdate.c: Regenerate using bison-1.33.
91628
91629 2002-02-17  Jim Meyering  <meyering@lucent.com>
91630
91631         * config/config.guess (main): Don't use `head -1'; it's no longer
91632         portable. Use `sed 1q' instead.
91633
91634 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91635
91636         * m4/codeset.m4: Upgrade to gettext-0.11.
91637         * m4/gettext.m4: Upgrade to gettext-0.11.
91638         * m4/glibc21.m4: Upgrade to gettext-0.11.
91639         * m4/iconv.m4: Upgrade to gettext-0.11.
91640         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91641         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91642         * m4/lib-ld.m4: New file, from gettext-0.11.
91643         * m4/lib-link.m4: New file, from gettext-0.11.
91644         * m4/lib-prefix.m4: New file, from gettext-0.11.
91645         * m4/progtest.m4: Upgrade to gettext-0.11.
91646
91647 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91648
91649         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91650         (jm_PREREQ): Use it.
91651
91652 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91653
91654         * lib/posixver.c, lib/posixver.h: New files.
91655         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91656
91657 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91658             Bruno Haible  <bruno@clisp.org>
91659
91660         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91661         (fwrite_success_callback): New declaration.
91662         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91663         print_unicode_char. Call failure callback instead of error.
91664         (fwrite_success_callback): New function.
91665         (exit_failure_callback): New function.
91666         (fallback_failure_callback): New function.
91667         (print_unicode_char): Call unicode_to_mb.
91668
91669 2002-01-26  Jim Meyering  <meyering@lucent.com>
91670
91671         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91672         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91673
91674 2002-01-26  Jim Meyering  <meyering@lucent.com>
91675
91676         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91677
91678 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91679
91680         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91681
91682 2002-01-22  Jim Meyering  <meyering@lucent.com>
91683
91684         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91685         Otherwise, some versions of automake would omit the rule that makes
91686         Makefile from Makefile.in.
91687
91688 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91689
91690         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91691         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91692         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91693         (memcoll): Set errno to zero if there is no error.
91694
91695         * lib/quotearg.c (quotearg_buffer_restyled):
91696         Fix bug with quoting buffers containing NUL when backslashing escapes.
91697         This bug was exposed by the other changes in this patch.
91698         (quotearg_n_options): New arg ARGSIZE.
91699         All callers changed.
91700         (quoting_options_from_style): New function.
91701         (quotearg_n_style): Use it.
91702         (quotearg_n_style_mem): New function.
91703
91704         * lib/quotearg.h (quotearg_n_style_mem): New function.
91705
91706 2002-01-19  Jim Meyering  <meyering@lucent.com>
91707
91708         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91709         Remove useless quotes: DF_PROG="df".
91710         * m4/strnlen.m4: New file.
91711
91712 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91713
91714         * lib/backupfile.c (ISDIGIT): Comment fix.
91715         * lib/getdate.y (ISDIGIT): Likewise.
91716         * lib/posixtm.c (ISDIGIT, year): Likewise.
91717         * lib/strverscmp.c (ISDIGIT): Likewise.
91718         * lib/userspec.c (ISDIGIT): Likewise.
91719
91720 2002-01-16  Jim Meyering  <meyering@lucent.com>
91721
91722         * lib/getdate.y: Add three semicolons, each just before a closing
91723         brace. Bison (as of version 1.31) no longer papers over that mistake.
91724
91725 2002-01-05  Jim Meyering  <meyering@lucent.com>
91726
91727         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91728
91729 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91730
91731         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91732         not silently exit merely because the output buffer happens to
91733         have nothing pending.
91734
91735 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91736
91737         See the big note in ../ChangeLog.
91738         * lib/human.c (suffixes): Prefer K to k for 1024.
91739         (generate_suffix_backwards): New function.
91740         (human_readable_inexact): Use it.
91741         * lib/xstrtol.c (__xstrtol): If there is no number but there
91742         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91743         Accept 'K' as well as 'k'.
91744
91745 2001-12-15  Jim Meyering  <meyering@lucent.com>
91746
91747         * lib/regex.h (__restrict_arr): Update from libc.
91748
91749         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91750         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91751         (STREQ): Define.
91752
91753 2001-12-14  Jim Meyering  <meyering@lucent.com>
91754
91755         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91756         Suggestion from Bruno Haible.
91757
91758 2001-12-10  Jim Meyering  <meyering@lucent.com>
91759
91760         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91761         xrealloc, Instead, include "xalloc.h".
91762         (initbuffer): Don't cast xmalloc return value to char*.
91763         (readline): Reword comment.
91764         Don't cast xrealloc return value to char*
91765         Return NULL, not 0.
91766
91767 2001-12-09  Jim Meyering  <meyering@lucent.com>
91768
91769         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91770         about `signed and unsigned type in conditional expression'.
91771         * lib/posixtm.c (posix_time_parse): Likewise.
91772
91773         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91774
91775         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91776         to avoid a pedantic warning.
91777
91778         * lib/getstr.c: Don't include assert.h.
91779         (getstr): Remove warning-evoking assertions.
91780         Return -1 if offset parameter is out of bounds.
91781         Change the type of a local from int to size_t.
91782
91783         * lib/strftime.c (my_strftime_localtime_r): Include this function
91784         definition in the `#if ! HAVE_TM_GMTOFF' block.
91785
91786         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91787         Include xalloc.h instead.
91788
91789 2001-12-02  Jim Meyering  <meyering@lucent.com>
91790
91791         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91792         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91793         included.
91794
91795         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91796         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91797
91798 2001-11-30  Akim Demaille  <akim@epita.fr>
91799
91800         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91801         before being defined.
91802
91803 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91804
91805         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91806         First arg is int, not unsigned.
91807         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91808         (SIZE_MAX, UINT_MAX): New macros.
91809         (quotearg_n_options): Abort if N is negative.
91810         Avoid overflow check on hosts where size_t is 64 bits and int
91811         is 32 bits, as overflow is impossible there.
91812         Fix off-by-one typo that caused unnecessary reallocation.
91813
91814 2001-11-27  Jim Meyering  <meyering@lucent.com>
91815
91816         * lib/tempname.c: Merge with version from libc.
91817         * lib/regex.c: Likewise.
91818
91819         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91820         systems for which STDC_HEADERS is 0, it was not included, resulting in
91821         a warning about an integer-to-pointer conversion problem with getenv.
91822         Reported by Volker Borchert.
91823
91824 2001-11-26  Jim Meyering  <meyering@lucent.com>
91825
91826         * lib/gtod.h: Remove file.
91827         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91828         * lib/gettimeofday.c: Don't include gtod.h.
91829         (GTOD_init): Remove function.
91830         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91831         Suggestion from Volker Borchert.
91832
91833 2001-11-23  Jim Meyering  <meyering@lucent.com>
91834
91835         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91836         it.
91837         * lib/hash.c (struct hash_table): Define it here instead.
91838
91839 2001-11-22  Jim Meyering  <meyering@lucent.com>
91840
91841         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91842
91843 2001-11-20  Jim Meyering  <meyering@lucent.com>
91844
91845         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91846         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91847
91848 2001-11-19  Jim Meyering  <meyering@lucent.com>
91849
91850         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91851         directory.  Use "conftestXXXXXX" as the template.
91852         Suggestion from Paul Eggert.
91853
91854         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91855         immediately, so the test doesn't mistakenly hit the max-open-files
91856         limit.
91857
91858 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91859
91860         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91861         (TEMPORARIES): New macro.
91862         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91863         removes an artificial limitation (e.g. HP-UX 10.20, where
91864         TMP_MAX is 17576).
91865
91866 2001-11-18  Jim Meyering  <meyering@lucent.com>
91867
91868         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91869
91870 2001-11-18  Jim Meyering  <meyering@lucent.com>
91871
91872         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91873         on SunOS 4.
91874
91875         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91876         files will be created before anything else.
91877
91878 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91879
91880         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91881         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91882
91883 2001-11-17  Jim Meyering  <meyering@lucent.com>
91884
91885         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91886         Prompted by a report from Bob Proulx.
91887
91888         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91889         Instead, require UTILS_FUNC_MKSTEMP.
91890
91891 2001-11-17  Jim Meyering  <meyering@lucent.com>
91892
91893         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91894         Now, that's done as part of AC_FUNC_STRTOD.
91895
91896 2001-11-17  Jim Meyering  <meyering@lucent.com>
91897
91898         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91899         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91900         rather than group writable.  Patch by Juan F. Codagnone.
91901
91902         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91903         xrealloc, Instead, include "xalloc.h".
91904
91905         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91906         Remove explicit declarations of xmalloc, xrealloc,
91907         and xstrdup.  Instead, include "xalloc.h".
91908
91909         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91910         unlocked-io.h.
91911         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91912         Likewise.
91913         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91914
91915         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91916         Reported by Padraig Brady.
91917
91918         * lib/mkstemp.c: #undef mkstemp.
91919         Include config.h.
91920         (rpl_mkstemp): Rename from mkstemp.
91921         Protoize.
91922
91923 2001-11-16  Jim Meyering  <meyering@lucent.com>
91924
91925         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91926         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91927         determine the amount of total physical memory, use pstat_getstatic.
91928         HPUX-11 doesn't define _SC_PHYS_PAGES.
91929         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91930         If sysconf couldn't be used to determine the amount of available
91931         physical memory, use both pstat_getstatic and pstat_getdynamic.
91932         Based on a patch from Bob Proulx.
91933
91934 2001-11-10  Jim Meyering  <meyering@lucent.com>
91935
91936         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91937         (jm_PREREQ): Use it.
91938
91939 2001-11-09  Jim Meyering  <meyering@lucent.com>
91940
91941         * m4/jm-macros.m4: Require autoconf-2.52f.
91942         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91943         Use these AC_-prefixed names, not the AM_-prefixed ones.
91944
91945         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91946
91947 2001-11-05  Jim Meyering  <meyering@lucent.com>
91948
91949         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91950
91951 2001-11-04  Jim Meyering  <meyering@lucent.com>
91952
91953         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91954         $DEFS.
91955
91956 2001-11-03  Jim Meyering  <meyering@lucent.com>
91957
91958         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91959         of AC_DEFUN.
91960
91961         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91962         know the name of the variable in the macro definition.
91963
91964 2001-11-03  Jim Meyering  <meyering@lucent.com>
91965
91966         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91967         in argmatch_to_argument call.
91968
91969         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91970         argument.
91971
91972         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91973         e.g., a fault due to an attempt to free a NULL pointer.
91974
91975 2001-11-01  Jim Meyering  <meyering@lucent.com>
91976
91977         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91978         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91979
91980 2001-11-01  Jim Meyering  <meyering@lucent.com>
91981
91982         * lib/dirfd.c, lib/dirfd.h: New files.
91983         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91984
91985         * lib/hash.c (hash_print) [TESTING]: Clean up.
91986
91987 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91988
91989         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91990         to avoid a warning if -Wall.
91991
91992 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91993
91994         * README: New file
91995         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91996         (per RMS's instructions, this is now the canonical source)
91997         * lgpl/, gpl/: New directories.
91998
91999 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92000
92001         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92002
92003 2001-10-21  Jim Meyering  <meyering@lucent.com>
92004
92005         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92006         this code would end up calling gettext even in packages built
92007         with --disable-nls.
92008         * lib/getopt.c (_): Likewise.
92009         * lib/regex.c (_): Likewise.
92010
92011 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92012
92013         * m4/error.m4 (jm_PREREQ_ERROR):
92014         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92015         AC_FUNC_STRERROR_R does that.
92016         Check for strerror declaration.
92017
92018         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92019         are supposed to have them these days.
92020         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92021         Merge changes from latest Autoconf CVS.
92022         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92023         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92024         POSIX decided to standardize on the int flavor of strerror_r.
92025
92026 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92027
92028         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92029         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92030         Use strerror_r that is only a macro, even if it is not a function.
92031         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92032         (private_strerror): Use prototypes, not old-style function definition.
92033         (print_errno_message): New function.
92034         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92035         char*-flavored one.
92036         (error_tail, error, error_at_line): Use it.
92037
92038 2001-10-11  Jim Meyering  <meyering@lucent.com>
92039
92040         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92041         and quote_n (1, ... to avoid clobbering a buffer.
92042
92043 2001-10-05  Jim Meyering  <meyering@lucent.com>
92044
92045         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92046         hash-pjw.h.
92047         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92048         * lib/hash-pjw.h: New file.
92049
92050 2001-09-30  Jim Meyering  <meyering@lucent.com>
92051
92052         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92053         `struct fsstat' has the `f_fstypename' member.
92054         Use that to define FS_TYPE, which is now used to make
92055         the getfsstat link test tighter.
92056
92057 2001-09-30  Jim Meyering  <meyering@lucent.com>
92058
92059         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92060         Include <sys/ucred.h>, for Apple Darwin.
92061         Include sys/mount.h and sys/fs_types.h only if available.
92062         (FS_TYPE): Define.
92063         (read_filesystem_list): Use FS_TYPE.
92064
92065 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92066
92067         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92068         a boolean context.
92069
92070 2001-09-29  Jim Meyering  <meyering@lucent.com>
92071
92072         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92073         [one-argument getmntent function]): Include stdio.h before mntent.h.
92074         SunOS 4.1.x needs it for the declaration of `FILE'.
92075         Patch by Volker Borchert.
92076
92077         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92078         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92079         sys/fs_types.h, and make the link-test for getfsstat guard #include
92080         directives with appropriate #if HAVE_*_H tests so that we can
92081         detect getfsstat on Apple Darwin1.3.7 systems.
92082         Reported by Nelson Beebe.
92083         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92084
92085 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92086
92087         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92088         #defines strtoimax.  Also treat the other strto* functions
92089         like strtoimax.
92090
92091         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92092         Check for strtoul and strtoumax,
92093         as those declarations are made even in the signed case.
92094         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92095         Likewise, for strtol and strtoimax.
92096
92097 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92098
92099         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92100         #defines strtoimax.  Also treat the other strto* functions
92101         like strtoimax.
92102
92103         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92104         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92105         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92106
92107 2001-09-26  Jim Meyering  <meyering@lucent.com>
92108
92109         Most macros in unlocked-io.h had the wrong number of arguments.
92110         * lib/gen-uio: New script.
92111         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92112         * lib/unlocked-io.hin: Remove file.
92113         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92114         rather than trying to embed it here.
92115         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92116         Reported by Padraig Brady.
92117
92118 2001-09-25  Volker Borchert  <bt@teknon.de>
92119
92120         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92121         `result'.
92122
92123 2001-09-24  Jim Meyering  <meyering@lucent.com>
92124
92125         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92126
92127 2001-09-23  Jim Meyering  <meyering@lucent.com>
92128
92129         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92130         instead of the mere test for existence of mntent.h.  The latter
92131         would get a false-positive on AIX 3.4 systems.
92132         In the outer getmntent if-block, don't die if neither of the getmntent
92133         tests succeeds.  Instead, just fall through and continue with the
92134         remaining tests.
92135
92136 2001-09-23  Jim Meyering  <meyering@lucent.com>
92137
92138         * lib/mountlist.c: Remove useless parentheses in #if directives.
92139         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92140         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92141
92142 2001-09-22  Jim Meyering  <meyering@lucent.com>
92143
92144         * m4/gettext.m4: New file.  From gettext.
92145         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92146         * m4/progtest.m4: Likewise
92147         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92148         * m4/glibc21.m4: Likewise.
92149
92150         * m4/libintl.m4: Remove.  No longer used.
92151
92152 2001-09-22  Jim Meyering  <meyering@lucent.com>
92153
92154         * lib/localcharset.c: Update from latest gettext.
92155         * lib/config.charset: Likewise.
92156
92157 2001-09-20  Jim Meyering  <meyering@lucent.com>
92158
92159         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92160         strtoimax.
92161         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92162         strtoumax.
92163
92164 2001-09-20  Jim Meyering  <meyering@lucent.com>
92165
92166         * lib/xstrtol.c (strtoimax): Guard declaration with
92167         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92168         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92169         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92170         (strtoumax): Likewise, for completeness (it wasn't necessary).
92171
92172 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92173
92174         * lib/strtoimax.c (HAVE_LONG_LONG):
92175         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92176         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92177         to work around bug in IBM C compiler.
92178
92179 2001-09-17  Jim Meyering  <meyering@lucent.com>
92180
92181         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92182         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92183         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92184         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92185         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92186         whenever the right hand side need not be expanded by the shell.
92187
92188 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92189
92190         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92191         library.  It's not correct, as some older glibcs are buggy.
92192         fnmatch wasn't fixed until glibc 2.2.
92193
92194         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92195         special shell magic here.
92196
92197 2001-09-16  Jim Meyering  <meyering@lucent.com>
92198
92199         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92200         * m4/jm-macros.m4: Require it.
92201
92202 2001-09-16  Jim Meyering  <meyering@lucent.com>
92203
92204         * lib/mkdir.c: New file.
92205
92206 2001-09-15  Jim Meyering  <meyering@lucent.com>
92207
92208         * m4/jm-macros.m4: Check for help2man.
92209
92210 2001-09-11  Jim Meyering  <meyering@lucent.com>
92211
92212         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92213         The body, by Paul Eggert, was moved here from configure.in.
92214         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92215
92216 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92217
92218         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92219         (jm_PREREQ): Use it.
92220
92221 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92222
92223         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92224         Use ssize_t, not int, to store result of readlink.
92225         Check for ssize_t overflow as well as size_t overflow,
92226         as POSIX says the result of readlink is implementation-defined
92227         when ssize_t overflows.
92228         Remove unnecessary cast to char*.
92229         Use free+malloc instead of realloc, as the storage doesn't need
92230         to be preserved and it's clearer and can be more efficient that way.
92231         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92232         * lib/xreadlink.h (xreadlink): Update prototype.
92233
92234 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92235
92236         * lib/xgetcwd.c: Revert some of the previous change; intead,
92237         fix the HAVE_GETCWD_NULL code to behave more like the
92238         !HAVE_GETCWD_NULL code used to.
92239
92240         Include "xalloc.h".
92241         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92242         invoke xalloc_die.
92243
92244 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92245
92246         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92247         sys/param.h, as pathmax.h includes them.
92248
92249 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92250
92251         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92252         (jm_PREREQ_XGETCWD): New macro.
92253
92254         * m4/getcwd.m4: New file.
92255
92256 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92257
92258         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92259         like the HAVE_GETCWD_NULL code.
92260         Include pathmax.h if not HAVE_GETCWD.
92261         Do not include xalloc.h.
92262         (INITIAL_BUFFER_SIZE): New symbol.
92263         Do not use xmalloc / xrealloc, since the caller is responsible for
92264         handling errors.  Preserve errno around `free' during failure.
92265         Do not overrun buffer when using getwd.
92266
92267 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92268
92269         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92270         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92271         getcwd (NULL, 0).
92272
92273 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92274
92275         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92276         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92277         spotted by Jim Meyering.
92278
92279 2001-09-03  Jim Meyering  <meyering@lucent.com>
92280
92281         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92282         failure.
92283
92284 2001-09-02  Jim Meyering  <meyering@lucent.com>
92285
92286         * lib/error.c: Update from GNU libc.
92287
92288 2001-09-01  Jim Meyering  <meyering@lucent.com>
92289
92290         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92291         Used by df.
92292
92293 2001-09-01  Jim Meyering  <meyering@lucent.com>
92294
92295         * lib/xreadlink.c: New file.
92296         * lib/xreadlink.h: New file.
92297         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92298         xreadlink.h.
92299
92300         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92301         doesn't conflict with sparc Solaris 7's definition in
92302         /usr/include/sys/int_types.h.
92303
92304         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92305         files.
92306         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92307         and strncasecmp as r-values.  Unixware didn't have declarations.
92308
92309 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92310
92311         * lib/xstrtol.h: Add copyright notice.
92312         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92313         LONGINT_INVALID_SUFFIX_CHAR.
92314
92315 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92316
92317         * lib/xstrtol.c (strtoimax): New decl.
92318
92319 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92320
92321         * lib/xgetcwd.c: Don't include pathmax.h.
92322         Include stdlib.h and unistd.h if available.
92323         Include xalloc.h.
92324         (xmalloc, xstrdup, free): Remove decls.
92325         (xgetcwd): Don't assume sizes fit in unsigned.
92326         Check for overflow when computing sizes.
92327         Simplify reallocation code.
92328
92329 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92330
92331         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92332         a directory's st_size can have an arbitrary value, so the old
92333         usage could waste an arbitrary amount of memory.  All uses
92334         changed.
92335         * lib/savedir.h: Update prototype.
92336
92337 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92338
92339         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92340
92341         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92342         old strtoimax.c.
92343
92344         Also, make the following further changes to make this file's
92345         configuration more similar to that of strtol.c:
92346         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92347         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92348         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92349         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92350         changed to signed values.
92351
92352         And make the following changes as well:
92353         Fix copyright notice, as 1999 was missing.
92354         (verify): New macro.
92355         (strtoimax): Check sizes at compile-time, not run-time.
92356         Prefer strtol to strtoll if both work.
92357         (main): Remove; it was not that useful and was a pain to maintain.
92358
92359         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92360
92361 2001-08-31  Jim Meyering  <meyering@lucent.com>
92362
92363         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92364         Use an initial, malloc'd, buffer of length 128 rather than
92365         a statically allocated one of length 1024.
92366
92367 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92368
92369         Simplify code, partly by assuming autoconf 2.52 semantics.
92370
92371         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92372
92373         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92374         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92375         All uses removed.
92376         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92377         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92378         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92379         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92380         jm_AC_HEADER_INTTYPES_H.
92381         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92382
92383         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92384
92385         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92386         Quote first arg of AC_DEFUN.
92387         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92388         since they are needed to parse the include file even if we need
92389         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92390         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92391         but with opposite signedness.
92392
92393 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92394
92395         Merge 'exclude' changes from tar 1.13.22.
92396         This fixes one or two unlikely storage allocation overflow bugs,
92397         but doesn't change user-visible behavior otherwise.
92398
92399 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92400
92401         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92402         (jm_PREREQ_EXCLUDE): New macro.
92403
92404 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92405
92406         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92407         tm to be declared.
92408
92409 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92410
92411         * lib/hash.c: Remove '2001' from copyright notice.
92412
92413 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92414
92415         * lib/full-write.h: New file.
92416         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92417         * lib/full-write.c: Correct credits, as cccp.c no longer
92418         exists and anyway it was so heavily changed from the old cccp
92419         code as to be unrecognizable.  Include full-write.h.
92420         (full_write): Return size_t, with short writes meaning failure.
92421         All callers changed.  This fixes a bug with large buffers
92422         on 64-bit hosts.
92423         * lib/utime.c: Include full-write.h.
92424
92425 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92426
92427         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92428         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92429         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92430         Include if available.
92431         (<xalloc.h>): Include
92432         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92433         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92434         collide with FNM macros.
92435         (struct patopts): New struct.
92436         (struct exclude): Use it, as exclude patterns now come with options.
92437         (new_exclude): Support above changes.
92438         (new_exclude, add_exclude_file):
92439         Initial size must now be a power of two to simplify overflow checking.
92440         (free_exclude, fnmatch_no_wildcards): New function.
92441         (excluded_filename): No longer requires options arg, as the options
92442         are determined by add_exclude.  Now returns bool, not int.
92443         (excluded_filename, add_exclude):
92444         Add support for the fancy new exclusion options.
92445         (add_exclude, add_exclude_file): Now takes int options arg.
92446         Check for arithmetic overflow when computing sizes.
92447         (add_exclude_file): xrealloc might modify errno, so don't
92448         realloc until after errno might be used.
92449
92450         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92451         New macros.
92452         (free_exclude): New decl.
92453         (add_exclude, add_exclude_file): Now takes int options arg.
92454         (excluded_filename): No longer requires options arg, as the options
92455         are determined by add_exclude.  Now returns bool, not int.
92456
92457 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92458
92459         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92460
92461 2001-08-27  Jim Meyering  <meyering@lucent.com>
92462
92463         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92464
92465         * lib/version-etc.c (N_): Remove definition.
92466         Revert most of last change.
92467         Instead, simply don't mark the `Copyright...' string for translation.
92468         Based on advice from Paul Eggert.
92469
92470         * lib/strtoxmax.c: Tweak comment.
92471
92472 2001-08-26  Jim Meyering  <meyering@lucent.com>
92473
92474         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92475
92476         * m4/xstrtoimax.m4: New file.
92477         * m4/xstrtoumax.m4: Add comments explaining why we
92478         AC_REPLACE_FUNCS(strtol).
92479
92480 2001-08-26  Jim Meyering  <meyering@lucent.com>
92481
92482         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92483         of copyright with `%s' so translators don't get an untranslated
92484         message in 2002.
92485         (COPYRIGHT_YEAR): Define.
92486         (version_etc): Use fprintf rather than fputs.
92487         Suggestion from Ulrich Drepper.
92488
92489         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92490
92491         * lib/strtoll.c: New file, from GNU libc.
92492         * lib/xstrtoimax.c: New file.
92493
92494         * lib/xstrtol.h: Add xstrtoimax.
92495         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92496         * lib/strtoimax.c: New file.  Likewise, but first define
92497         STRTOUXMAX_SIGNED.
92498
92499         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92500         ...
92501         * lib/strtoxmax.c: ... then renamed to this.
92502
92503 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92504
92505         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92506         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92507         (jm_AC_TYPE_INTMAX_T): New macro.
92508         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92509
92510         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92511
92512         * m4/longlong.m4: Renamed from ulonglong.m4.
92513         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92514         * m4/uintmax_t.m4: Removed.
92515
92516 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92517
92518         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92519         Port to Solaris 8, where 'sed' requires a space after the 'r'
92520         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92521         Redirect output to $tmp just once.
92522
92523 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92524
92525         * lib/addext.c (<errno.h>): Include.
92526         (errno): Declare if not defined.
92527         (addext): Work correctly when pathconf returns -1 and leaves
92528         errno alone because there is no limit.  Also, work even if
92529         pathconf returns a value greater than SIZE_MAX.
92530
92531 2001-08-12  Jim Meyering  <meyering@lucent.com>
92532
92533         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92534         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92535         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92536         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92537         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92538         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92539         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92540         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92541         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92542         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92543         utime.m4, utimes.m4, xstrtoumax.m4:
92544         Quote the first argument in each use of AC_DEFUN.
92545
92546 2001-08-12  Jim Meyering  <meyering@lucent.com>
92547
92548         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92549         Simply `return getcwd (NULL, 0);'.
92550         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92551         Use 1300 as initial value for length, not PATH_MAX.
92552
92553         * lib/pathmax.h: Clean up cpp syntax.
92554
92555 2001-08-12  Jim Meyering  <meyering@lucent.com>
92556
92557         * lib/gettimeofday.c: New file.
92558         * lib/gtod.h: New file.
92559         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92560
92561 2001-08-05  Jim Meyering  <meyering@lucent.com>
92562
92563         * m4/jm-macros.m4: Require autoconf-2.52.
92564
92565 2001-08-04  Jim Meyering  <meyering@lucent.com>
92566
92567         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92568         stmt, to get in sync with glibc.
92569
92570 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92571
92572         The following changes are from gettext 0.10.39 as maintained by
92573         Bruno Haible.
92574
92575         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92576         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92577         with inverted sense.  All uses changed.
92578
92579         * lib/mbswidth.c: Don't include <limits.h>.
92580         Include <stdlib.h> and <string.h> unconditionally.
92581         (iswcntrl, mbsinit, ISCNTRL): New macros.
92582         (mbsnwidth): Use K&R style function declarations.
92583         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92584         can optimize it when MB_CUR_MAX == 1.
92585         The width of control characters is zero, not 1.
92586
92587 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92588
92589         The following changes are from gettext 0.10.39 as maintained by
92590         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92591
92592         * m4/codeset.m4: Upgrade to serial AM1.
92593         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92594         all uses changed.  Quote first arg of AC_DEFUN.
92595         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92596
92597         * m4/iconv.m4: Upgrade to serial AM2.
92598         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92599         Add --with-libconv-prefix.
92600         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92601         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92602         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92603         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92604         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92605
92606         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92607         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92608         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92609         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92610         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92611         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92612         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92613         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92614         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92615
92616         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92617         string.h any more.
92618
92619         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92620         not the default value.
92621
92622         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92623         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92624         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92625         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92626         Also check for iswcntrl, used for wcwidth fallback.
92627         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92628         to Autoconf 2.13.
92629
92630 2001-08-03  Jim Meyering  <meyering@lucent.com>
92631
92632         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92633         as it was in the original.  Reported by Paul Eggert.
92634
92635 2001-07-16  Jim Meyering  <meyering@lucent.com>
92636
92637         * m4/gettimeofday.m4: New file.
92638         Prompted by a report from Bernhard Baehr.
92639
92640 2001-07-15  Jim Meyering  <meyering@lucent.com>
92641
92642         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92643         stuff. Now it's in ../Makefile.cfg.
92644
92645 2001-07-15  Jim Meyering  <meyering@lucent.com>
92646
92647         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92648         (BUILT_SOURCES): Add unlocked-io.h.
92649         (io_functions): Define.
92650         (unlocked-io.h): New rule.
92651         (DISTCLEANFILES): Add unlocked-io.h.
92652         (all-local): Depend on unlocked-io.h, to ensure it is created.
92653
92654         * lib/unlocked-io.hin: New file
92655
92656         * lib/regex.c: Update from glibc.
92657
92658 2001-07-05  Jim Meyering  <meyering@lucent.com>
92659
92660         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92661         recommendation.
92662         (libfetish_a_SOURCES): Put all .h files here instead.
92663         Remove a thus-exposed (better checks in automake) duplicate and
92664         two unnecessary .h files.
92665
92666 2001-07-04  Jim Meyering  <meyering@lucent.com>
92667
92668         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92669         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92670         distcheck failure.
92671
92672 2001-07-02  Jim Meyering  <meyering@lucent.com>
92673
92674         The following changes were prompted by suggestions from Bruno Haible.
92675
92676         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92677         is now generated.
92678         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92679         definition of EXTRA_DIST.
92680         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92681         ensure that the generated file is created/updated whenever the list
92682         of $(unlocked_functions) is changed.
92683         (jm-glibc-io.m4): New rule.
92684         (unlocked-io.h): New rule -- currently unused.
92685
92686 2001-06-24  Jim Meyering  <meyering@lucent.com>
92687
92688         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92689         unmatched right bracket, rather than kludging it with an extra,
92690         falsely-matching quote in a comment.  Patch by Akim Demaille.
92691
92692 2001-06-11  Jim Meyering  <meyering@lucent.com>
92693
92694         * lib/regex.c: Update from GNU libc.
92695
92696 2001-05-27  Jim Meyering  <meyering@lucent.com>
92697
92698         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92699         Check for ut_type in struct utmp.
92700
92701 2001-05-27  Jim Meyering  <meyering@lucent.com>
92702
92703         * lib/readutmp.h (UT_TYPE): Define.
92704
92705 2001-05-24  Jim Meyering  <meyering@lucent.com>
92706
92707         * lib/argmatch.c: Include "quote.h".
92708         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92709         quote function.  Reported by Göran Uddeborg.
92710
92711 2001-05-22  Jim Meyering  <meyering@lucent.com>
92712
92713         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92714         now that we use the package-supplied version unconditionally.
92715         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92716
92717 2001-05-21  Jim Meyering  <meyering@lucent.com>
92718
92719         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92720         shell syntax errors.
92721
92722 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92723
92724         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92725
92726 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92727
92728         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92729         Don't bother to check library strftime, since
92730         we'll be using our own my_strftime function anyway.
92731         Define my_strftime instead of strftime.
92732
92733 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92734
92735         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92736         which is not yet declared.
92737
92738 2001-05-15  Jim Meyering  <meyering@lucent.com>
92739
92740         * m4/regex.m4: Use proper quoting so brackets appear in the test
92741         program.
92742         Reported by, and with help from, Bruno Haible.
92743
92744 2001-05-13  Jim Meyering  <meyering@lucent.com>
92745
92746         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92747         undefined.
92748
92749 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92750
92751         dirname code cleanup.  base_name now behaves more compatibly
92752         with POSIX basename when given file names that have trailing
92753         slashes, and similarly for dir_name.  Add new primitives
92754         base_len and dir_len.  Put the directory-name-related decls
92755         into dirname.h.
92756
92757         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92758         * lib/backupfile.c (base_name): Likewise.
92759         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92760         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92761         * lib/makepath.c (strip_trailing_slashes): Likewise.
92762         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92763         ISSLASH): Likewise.
92764         * lib/rename.c (strip_trailing_slashes): Likewise.
92765         * lib/same.c (base_name): Likewise.
92766         * lib/stripslash.c (ISSLASH): Likewise.
92767
92768         * lib/addext.c: Include <dirname.h> after size_t is defined.
92769         * lib/backupfile.c: Likewise.
92770
92771         * lib/addext.c (addext): Use base_len to trim redundant
92772         trailing slashes instead of doing it ourselves.
92773         But do not trim the last slash if it is not redundant.
92774
92775         * lib/backupfile.c (find_backup_file_name,
92776         max_backup_version): Use base_len instead of rolling it ourselves.
92777         Handle the case of "" and (on DOS) "C:" correctly.
92778
92779         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92780         needed. Include <string.h>, <dirname.h>.
92781         (base_name): Allow file names ending in slashes, other than names
92782         that are all slashes.  In this case, return the basename followed
92783         by the slashes.  This is more general, and can be used in places
92784         where the original base_name purposely had an assertion failure.
92785         (base_len): New function.
92786
92787         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92788         Do not include <assert.h>; no longer needed.
92789         Include xalloc.h.
92790         (memrchr): Remove decl.
92791         (dir_name_r): Remove.
92792         (dir_len): Renamed from dirlen.  All callers changed.
92793         Rewrite in terms of base_name, for simplicity and consistency.
92794         (dir_name): Never return NULL.  All callers changed.
92795         Do not include <stdlib.h> in test program; no longer needed.
92796         return 0; is fine for test program.
92797
92798         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92799         New macros.
92800         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92801
92802         * lib/path-concat.c (path_concat): Use base_len to compute
92803         base length, not strlen; this means we cannot rely on memcpy
92804         to null-terminate.
92805
92806         * lib/same.c (STREQ): Remove.
92807         (same_name): Handle the case where the basename ends in trailing '/'.
92808
92809         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92810         a slash was stripped.  Do not strip the last slash after a
92811         file system prefix.
92812
92813 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92814
92815         * lib/Makefile.am (libfetish_a_SOURCES):
92816         Add strftime.c, since we now compile it on all hosts.
92817
92818         * lib/strftime.c (my_strftime):
92819         Define to nstrftime if emacs, but only if my_strftime is not defined.
92820         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92821         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92822         Add one more extra argument: a nanoseconds value.
92823         All uses changed.
92824         (ns): New macro.
92825         (my_strftime function): Add %N format.
92826         (emacs_strftimeu): Renamed from emacs_strftime,
92827         with extra ut argument.
92828
92829 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92830
92831         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92832
92833 2001-04-21  Jim Meyering  <meyering@lucent.com>
92834
92835         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92836         doesn't interfere.
92837
92838 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92839
92840         * m4/ftruncate.m4: Check for chsize.
92841         Link with ftruncate.o unconditionally if ftruncate is missing.
92842         This was required when cross-compiling to i586-mingw32msvc.
92843
92844 2001-04-08  Jim Meyering  <meyering@lucent.com>
92845
92846         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92847         recomputed; that's necessary when the offset spans a DST transition.
92848         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92849
92850 2001-04-02  Jim Meyering  <meyering@lucent.com>
92851
92852         * lib/regex.h, regex.c: Update from GNU libc.
92853
92854 2001-03-24  Jim Meyering  <meyering@lucent.com>
92855
92856         * m4/jm-macros.m4: Require autoconf-2.49d.
92857
92858 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92859
92860         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92861
92862 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92863
92864         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92865
92866 2001-03-17  Jim Meyering  <meyering@lucent.com>
92867
92868         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92869         now that the version in autoconf is equivalent.
92870         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92871
92872         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92873         Suggestion from Akim Demaille.
92874
92875         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92876         (jm_PREREQ_TEMPNAME): New function.
92877
92878 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92879
92880         * lib/tempname.c (uint64_t): Define to uintmax_t if
92881         not defined, and if UINT64_MAX is not defined.
92882         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92883         Reported by John David Anglin.
92884
92885 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92886
92887         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92888         resolve alias if codeset is empty.
92889         * lib/config.charset (BeOS): Use wildcard syntax.
92890
92891 2001-03-13  Jim Meyering  <meyering@lucent.com>
92892
92893         * lib/path-concat.c (path_concat)
92894         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92895         concatenating e.g., `C:' and `foo'.
92896         From Bruno Haible.
92897
92898 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92899
92900         * lib/localcharset.c (locale_charset): Don't use
92901         setlocale(LC_CTYPE,NULL). Don't return NULL.
92902         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92903
92904 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92905
92906         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92907         support for DOS/DJGPP.
92908
92909 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92910
92911         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92912         lacks mkstemp.  Compile our own tempname.c if we compile our own
92913         mkstemp.c, as mkstemp relies on tempname.
92914
92915 2001-03-01  Jim Meyering  <meyering@lucent.com>
92916
92917         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92918         AH_VERBATIM really does output its argument verbatim.
92919
92920 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92921
92922         * lib/Makefile.am (libfetish_a_SOURCES):
92923         Add dup-safer.c, fopen-safer.c.
92924         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92925
92926         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92927         * lib/unistd-safer.h: New files.
92928
92929 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92930
92931         The mkstemp replacement is taken from glibc 2.2.2, with some
92932         portability fixes for use outside glibc, as follows:
92933
92934         * lib/tempname.c (struct_stat64): New macro.
92935         (direxists, __gen_tempname): Use it.
92936         This avoids a portability problem with Solaris 8.
92937
92938         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92939         (<stddef.h>, <stdint.h>, <string.h>):
92940         Include only if STDC_HEADERS || _LIBC.
92941         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92942         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92943         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92944         (__set_errno): Define this macro if <errno.h> doesn't.
92945         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92946         Define these macros if <stdio.h> doesn't.
92947         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92948         Define these macros if <sys/stat.h>
92949         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92950         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92951         __xstat64): Define if not _LIBC.
92952         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92953         (__gen_tempname): Invoke gettimeofday only if
92954         HAVE_GETTIMEOFDAY || _LIBC;
92955         otherwise, fall back on plain "time".
92956         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92957
92958         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92959
92960         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92961
92962 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92963
92964         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92965
92966 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92967
92968         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92969         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92970         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92971         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92972
92973 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92974
92975         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92976         Remove workaround macros for hosts that have mbrtowc but not
92977         mbstate_t, as we now insist on proper declarations for both
92978         before using mbrtowc.
92979
92980 2001-02-17  Jim Meyering  <meyering@lucent.com>
92981
92982         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92983         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92984         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92985         UnixWare 7.1.1.
92986
92987         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92988         rather than AC_CACHE_VAL.
92989
92990 2001-02-17  Jim Meyering  <meyering@lucent.com>
92991
92992         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92993         around included file name.
92994
92995         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92996
92997         * lib/strftime.c: Update from GNU libc (the only changes were to
92998         comments).
92999
93000 2001-02-17  Jim Meyering  <meyering@lucent.com>
93001
93002         * lib/regex.c: Update from libc.
93003
93004 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93005
93006         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93007         clash.
93008
93009 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93010
93011         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93012         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93013         Reported by Mark Hounschell via Paul Eggert.
93014
93015 2001-02-07  Jim Meyering  <meyering@lucent.com>
93016
93017         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93018
93019 2001-02-05  Jim Meyering  <meyering@lucent.com>
93020
93021         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93022         it includes the patch required for `large file' support with at least
93023         HP-UX's 10.20 /bin/cc.
93024
93025 2001-02-03  Jim Meyering  <meyering@lucent.com>
93026
93027         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93028         AS_IF, now that it works once again (mysteriously).
93029         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93030
93031 2001-01-30  Jim Meyering  <meyering@lucent.com>
93032
93033         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93034         * m4/chown.m4: Rename conftestchown to conftest.chown.
93035         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93036         s/conftestdir2/conftest.d2/.
93037         * m4/utimes.m4: s/conftestdata/conftest.data/
93038         Inspired by Pavel Roskin's change in autoconf.
93039
93040 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93041
93042         * lib/config.charset: Update for FreeBSD 4.2.
93043
93044 2001-01-27  Jim Meyering  <meyering@lucent.com>
93045
93046         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93047         a use of AS_IF.
93048         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93049
93050 2001-01-26  Jim Meyering  <meyering@lucent.com>
93051
93052         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93053         quotearg.c includes it.
93054
93055 2001-01-26  Jim Meyering  <meyering@lucent.com>
93056
93057         * lib/quotearg.c: Include stddef.h.
93058         * lib/quote.c: Include stddef.h.
93059         Reported by Axel Kittenberger.
93060
93061         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93062         line in double quotes so that it evokes a better diagnostic.
93063         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93064         Reported by Axel Kittenberger.
93065
93066 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93067
93068         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93069         as if it was a `charset'.
93070
93071 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93072
93073         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93074         has const.
93075
93076 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93077
93078         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93079         to avoid a warning.  Add back 'const' to inptr.
93080
93081 2001-01-20  Jim Meyering  <meyering@lucent.com>
93082
93083         Be sure that headers are checked before used in code compiled
93084         for the type checks.
93085         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93086         In place of that, invoke jm_CHECK_ALL_TYPES.
93087         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93088         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93089         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93090         The check for ssize_t was mistakenly run before the test for unistd.h.
93091
93092         The configure-time check for stdbool.h was missing.
93093         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93094         (jm_PREREQ_HASH): New function.
93095
93096 2001-01-17  Jim Meyering  <meyering@lucent.com>
93097
93098         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93099         for autoconf-2.49c.
93100         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93101
93102 2001-01-16  Jim Meyering  <meyering@lucent.com>
93103
93104         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93105         From Bruno Haible.
93106
93107 2001-01-14  Jim Meyering  <meyering@lucent.com>
93108
93109         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93110         foo and bar.  Create conftestdir/ in the script, not in the C code.
93111         Remove directories in the script, not in the C code.
93112         Remove conftestdir{,2} before trying to create the directory.
93113         Make the entire configure script fail if the mkdir fails.
93114
93115 2001-01-14  Jim Meyering  <meyering@lucent.com>
93116
93117         * lib/rename.c: New file.  From Volker Borchert.
93118         Include stdlib.h, string.h or strings.h, and xalloc.h.
93119         Use strip_trailing_slashes rather than open-coding it.
93120
93121 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93122
93123         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93124
93125 2001-01-03  Jim Meyering  <meyering@lucent.com>
93126
93127         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93128         of local `inptr' to avoid warning with some system declarations of
93129         iconv.
93130
93131 2001-01-02  Volker Borchert  <bt@teknon.de>
93132
93133         * m4/rename.m4: New file.
93134         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93135
93136 2001-01-01  Jim Meyering  <meyering@lucent.com>
93137
93138         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93139         even on systems with utmpx.h.  It's necessary for the declaration of
93140         utmp's ut_user member.  Reported by Andreas Jaeger.
93141
93142         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93143         available. They are required for the declarations of getgrgid and
93144         getpwuid resp.
93145         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93146         Reported by Andreas Jaeger.
93147
93148 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93149
93150         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93151         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93152         so `make install' also works in VPATH builds.
93153
93154 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93155
93156         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93157         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93158         can be used in subdirectories.
93159
93160 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93161
93162         * lib/modechange.c: Do not assume that mode_t uses the
93163         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93164         the other-execute bit of FOO even if S_IXOTH != 1.
93165
93166         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93167         WOTH, XOTH, ALLM): New macros.
93168         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93169          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93170         Use them.
93171         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93172         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93173         (mode_compile):
93174         No need to use uintmax_t; unsigned long is long enough.
93175         Don't bother to get suffix since we don't use it.
93176
93177 2000-12-26  Jim Meyering  <meyering@lucent.com>
93178
93179         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93180         better with autoheader.
93181
93182 2000-12-24  Jim Meyering  <meyering@lucent.com>
93183
93184         * lib/hash.c (is_prime): Return explicit boolean values.
93185         (hash_get_first): Return NULL to appease Irix5.6's 89.
93186         Reported by Nelson Beebe.
93187
93188 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93189
93190         * lib/localcharset.c (locale_charset): Add support for Win32.
93191
93192 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93193
93194         * lib/physmem.h, lib/physmem.c: New files.
93195
93196         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93197         (noinst_HEADERS): Add physmem.h.
93198
93199         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93200         't' for compatibility with Solaris 8 sort.
93201
93202 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93203
93204         * lib/config.charset: Add support for BeOS.
93205
93206 2000-12-17  Jim Meyering  <meyering@lucent.com>
93207
93208         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93209         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93210
93211 2000-12-16  Jim Meyering  <meyering@lucent.com>
93212
93213         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93214         N and M) would have treated it like `chown N:N FILE'.
93215
93216         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93217
93218 2000-12-16  Jim Meyering  <meyering@lucent.com>
93219
93220         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93221         SHELLS_FILE to a file name that's useful on djgpp systems.
93222         Include stdlib.h.
93223         (ADDITIONAL_DEFAULT_SHELLS): Define.
93224         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93225         Based mostly on a patch from Prashant TR.
93226
93227 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93228
93229         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93230         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93231         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93232
93233 2000-12-08  Andreas Schwab  <schwab@suse.de>
93234
93235         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93236         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93237
93238 2000-12-07  Jim Meyering  <meyering@lucent.com>
93239
93240         * lib/stripslash.c (ISSLASH): Define.
93241         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93242         `/'.
93243         From Prashant TR.
93244
93245         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93246         (dir_name_r): Declare this function as static.
93247         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93248         manifest itself on a name containing a mix of slashes and
93249         backslashes.
93250         Make this function work with names starting with a DOS-style
93251         drive letter and colon prefix.
93252         (dir_name): Append `.' if necessary.
93253         Based mostly on patches from Prashant TR and Eli Zaretskii.
93254
93255         * lib/dirname.h (dir_name_r): Remove prototype.
93256
93257 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93258
93259         * m4/off_t-format.m4: Remove this file.
93260         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93261
93262 2000-12-06  Jim Meyering  <meyering@lucent.com>
93263
93264         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93265         replacement strtoull, we may well need the replacement strtoul, too.
93266         Check for declarations of strtoul and strtoull.
93267         Check for strtol.  Mainly as a cue to cause automake to include
93268         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93269         Check for limits.h -- strtol.c needs it.
93270
93271 2000-12-05  Jim Meyering  <meyering@lucent.com>
93272
93273         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93274
93275 2000-12-04  Jim Meyering  <meyering@lucent.com>
93276
93277         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93278         Also include memory.h, stdlib.h, unistd.h if appropriate.
93279         Reported by Andreas Jaeger (conflicting declaration of malloc).
93280
93281 2000-12-02  Jim Meyering  <meyering@lucent.com>
93282
93283         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93284         * m4/jm-macros.m4 (jm_MACROS): require it.
93285
93286 2000-12-02  Jim Meyering  <meyering@lucent.com>
93287
93288         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93289
93290 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93291
93292         * lib/memrchr.c: Include <config.h> before any system include file.
93293
93294 2000-11-30  Jim Meyering  <meyering@lucent.com>
93295
93296         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93297
93298 2000-11-30  Jim Meyering  <meyering@lucent.com>
93299
93300         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93301
93302 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93303
93304         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93305
93306 2000-11-26  Jim Meyering  <meyering@lucent.com>
93307
93308         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93309
93310 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93311
93312         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93313         size of (size_t) -1; it's not portable.
93314
93315 2000-11-17  Jim Meyering  <meyering@lucent.com>
93316
93317         * lib/strstr.c: Update from GNU libc.
93318
93319 2000-11-17  Akim Demaille  <akim@epita.fr>
93320
93321         * lib/obstack.h: Formatting changes.
93322         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93323         prevent type checking.
93324         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93325         cast the value to (void *): assigning a `foo *' to a `void *'
93326         variable is valid.
93327         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93328
93329 2000-11-16  Jim Meyering  <meyering@lucent.com>
93330
93331         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93332
93333 2000-11-11  Jim Meyering  <meyering@lucent.com>
93334
93335         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93336
93337 2000-11-10  Jim Meyering  <meyering@lucent.com>
93338
93339         * lib/obstack.h: Update from GNU libc.
93340         * lib/obstack.c: Likewise.
93341
93342 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93343
93344         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93345
93346 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93347
93348         * lib/getusershell.c (setusershell): Use rewind rather than
93349         fseek/fseeko, to avoid configuration hassles with fseeko.
93350         Don't bother opening SHELLS_FILE if shellstream is NULL;
93351         it's not necessary.
93352
93353 2000-11-05  Jim Meyering  <meyering@lucent.com>
93354
93355         * lib/makepath.h (make_dir): Declare.
93356         * lib/makepath.c (make_dir): Remove `static' attribute.
93357         Tweak a comment.
93358
93359 2000-11-04  Jim Meyering  <meyering@lucent.com>
93360
93361         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93362
93363 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93364
93365         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93366         last one in a bucket, advance to the next bucket.
93367
93368 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93369
93370         * lib/fnmatch.c: Do not comment out all the code if we are using
93371         the GNU C library, because in some cases we are replacing buggy
93372         code in the GNU C library itself.
93373
93374 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93375
93376         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93377         (regex_compile): Catch bogus \(\1\).
93378
93379 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93380
93381         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93382         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93383         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93384
93385 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93386
93387         * lib/error.h, getline.h, modechange.h:
93388         Remove "2000" from Copyright line, as the file hasn't been
93389         changed this year other than in the copyright notice.
93390
93391         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93392         was changed this year.
93393
93394 2000-10-29  Jim Meyering  <meyering@lucent.com>
93395
93396         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93397         renaming.
93398         * m4/ls-mntd-fs.m4: Likewise
93399
93400 2000-10-29  Jim Meyering  <meyering@lucent.com>
93401
93402         * lib/xstat.in: Fix grammar in comment.
93403
93404 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93405
93406         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93407         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93408         doesn't define __restrict_arr.
93409
93410 2000-10-28  Jim Meyering  <meyering@lucent.com>
93411
93412         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93413         (jm_PREREQ_MEMCHR): New function.
93414
93415 2000-10-28  Jim Meyering  <meyering@lucent.com>
93416
93417         * lib/memchr.c: Update from libc.
93418         Adjust for portability:
93419         [HAVE_STDLIB_H]: Include stdlib.h.
93420         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93421         Undef __memchr, too.
93422         [!weak_alias]: Define __memchr to memchr.
93423
93424         * lib/regex.c: Update from libc.
93425         * lib/regex.h: Likewise.
93426         * lib/getopt1.c: Likewise.
93427         * lib/memcmp.c: Likewise.
93428
93429         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93430         Avoid using fseek, when possible -- it's broken by design.
93431         Patch by Ulrich Drepper.
93432
93433 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93434
93435         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93436         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93437         Giving in to popular pressure to shut up the compiler with casts.
93438
93439 2000-10-26  Jim Meyering  <meyering@lucent.com>
93440
93441         * lib/strftime.c: Update from libc.
93442
93443 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93444
93445         * regex.c: More `unsigned char' -> `re_char' changes.
93446         Also change several `int' into `re_wchar_t'.
93447         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93448         (PUSH_FAILURE_POINTER): Don't cast any more.
93449         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93450         We want GCC to complain, since this piece of code makes
93451         re_match non-reentrant, which *should* be fixed.
93452         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93453         (EXTEND_BUFFER): Use RETALLOC.
93454         (SET_LIST_BIT): Don't cast.
93455         (re_wchar_t): New type.
93456         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93457         that those two functions will always properly return.
93458         (IMMEDIATE_QUIT_CHECK): Cast to void.
93459         (analyse_first): Use recursion rather than an explicit stack.
93460         (re_compile_fastmap): Can't fail anymore.
93461         (re_search_2): Don't check re_compile_fastmap for failure.
93462         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93463         Now also sets the new value (passed in a new argument).
93464         (re_match_2_internal): Use it.
93465         Also, use a new var `reg' of type size_t when looping through regs
93466         rather than reuse the inappropriate `mcnt'.
93467
93468 2000-10-25  Jim Meyering  <meyering@lucent.com>
93469
93470         * lib/obstack.c: Update from libc.
93471
93472 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93473
93474         * regex.c (regex_compile): Change the way of handling a range from
93475         a char less than 256 to a char not less than 256.
93476
93477 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93478
93479         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93480         NT-Emacs only.
93481         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93482         so that re_search functions only quit when callers expect them to.
93483
93484 2000-10-23  Jim Meyering  <meyering@lucent.com>
93485
93486         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93487         wrong.  That set_locale call must not have any side effects.
93488         From Paul Eggert.
93489
93490 2000-10-22  Jim Meyering  <meyering@lucent.com>
93491
93492         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93493         [CYCLIC]: Remove now-unused definition.
93494
93495         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93496         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93497         Suggestion from Ulrich Drepper.
93498
93499 2000-10-21  Jim Meyering  <meyering@lucent.com>
93500
93501         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93502         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93503         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93504
93505 2000-10-21  Jim Meyering  <meyering@lucent.com>
93506
93507         * lib/dirname.c (memrchr): Declare if necessary.
93508         (dir_name): Remove the restriction that there be no
93509         trailing slashes.  Now, this code skips past them, effectively
93510         ignoring them.
93511         [TEST_DIRNAME] (main): New unit tests.
93512
93513         * lib/memrchr.c: New file from GNU libc.
93514         Undef __memrchr, too.
93515         [!weak_alias]: Define __memrchr to memrchr.
93516         Guard weak_alias use with `#ifdef weak_alias'.
93517
93518 2000-10-21  Jim Meyering  <meyering@lucent.com>
93519
93520         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93521         (dir_name): Use dir_name_r.
93522         * lib/dirname.h (dir_name_r): Declare it.
93523
93524 2000-10-17  Jim Meyering  <meyering@lucent.com>
93525
93526         * lib/quote.h (PARAMS): Define and use.
93527         Reported by Akim Demaille.
93528
93529         * lib/getopt.c: Update from libc.
93530
93531 2000-10-16  Jim Meyering  <meyering@lucent.com>
93532
93533         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93534         setlocale.
93535         From Jan Fedak.
93536
93537 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93538
93539         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93540
93541 2000-09-25  Jim Meyering  <meyering@lucent.com>
93542
93543         * lib/md5.h (rol): Define (from GnuPG).
93544
93545         * lib/sha.c: Give credit (GnuPG) where due.
93546         (M): Use rol rather than open-coding it.
93547         Add a FIXME comment.
93548
93549 2000-09-21  Jim Meyering  <meyering@lucent.com>
93550
93551         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93552         Reported by Michael Stone.
93553
93554 2000-09-20  Jim Meyering  <meyering@lucent.com>
93555
93556         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93557         (noinst_HEADERS): Add sha.h.
93558         Based on code from Scott G. Miller and from GnuPG.
93559
93560 2000-09-18  Jim Meyering  <meyering@lucent.com>
93561
93562         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93563         LIBS. Otherwise, everyone ends up linking with -lelf for some
93564         configurations.
93565         Reported by Mike Stone.
93566
93567 2000-09-15  Jim Meyering  <meyering@lucent.com>
93568
93569         * lib/regex.c: Update from libc.
93570
93571 2000-09-10  Jim Meyering  <meyering@lucent.com>
93572
93573         * lib/getopt.c (_getopt_internal): Update from glibc.
93574
93575 2000-09-09  Jim Meyering  <meyering@lucent.com>
93576
93577         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93578         think it should be used as a general replacement for isascii.
93579         * lib/fnmatch.c: Likewise.
93580         * lib/mbswidth.c: Likewise
93581         * lib/regex.c: Likewise.
93582
93583         Don't use atoi.
93584         * lib/userspec.c: Include sys/param.h and limits.h.
93585         Include xstrtol.h.
93586         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93587         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93588         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93589         UID, GID.  Check range.
93590
93591 2000-09-06  Jim Meyering  <meyering@lucent.com>
93592
93593         * lib/getopt.c (_getopt_internal): Update from glibc.
93594
93595 2000-08-30  Jim Meyering  <meyering@lucent.com>
93596
93597         * lib/strftime.c: Merge in changes from GNU libc.
93598
93599 2000-08-26  Jim Meyering  <meyering@lucent.com>
93600
93601         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93602         * m4/fpending.m4: New file.
93603
93604 2000-08-26  Jim Meyering  <meyering@lucent.com>
93605
93606         * lib/closeout.c: Include "__fpending.h".
93607         (close_stdout_status): Return right away if there's nothing to flush.
93608
93609         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93610         * lib/__fpending.c: New file.
93611         * lib/__fpending.h: New file.
93612
93613 2000-08-20  Jim Meyering  <meyering@lucent.com>
93614
93615         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93616         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93617         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93618
93619 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93620
93621         Improve fileutils installation on systems where running
93622         programs (like install) can't be unlinked.
93623         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93624         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93625
93626 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93627
93628         Standardize on "memory exhausted" instead of "Memory exhausted"
93629         or "virtual memory exhausted".
93630         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93631         "virtual memory exhausted".
93632         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93633         our own message.
93634         * lib/userspec.c (parse_user_spec): Likewise.
93635         * lib/bumpalloc.h: comment fix
93636         * lib/same.c, userspec.c: Include xalloc.h.
93637
93638         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93639         not char *const and pointing to a constant array.
93640         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93641         (xrealloc): Comment fix.
93642
93643         * lib/userspec.c (parse_user_spec):
93644         Don't translate a message until just before returning,
93645         to avoid unnecessary translation.
93646
93647 2000-08-07  Jim Meyering  <meyering@lucent.com>
93648
93649         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93650         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93651         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93652         getgroups.c, gethostname.c, getopt.h, group-member.c,
93653         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93654         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93655         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93656         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93657         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93658         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93659         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93660         yesno.c: Back out Copyright date changes for each file with no change
93661         this year.  This eases coordination with other programs using the same
93662         source code modules.  From Paul Eggert.
93663
93664 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93665
93666         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93667         not char, for compatibility with glibc 2.1.3 strftime.c.
93668
93669 2000-08-03  Greg McGary  <greg@mcgary.org>
93670
93671         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93672         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93673         (EXTEND_BUFFER): Use them.
93674
93675 2000-08-01  Jim Meyering  <meyering@lucent.com>
93676
93677         * lib/dirname.c (ISSLASH): Define.
93678         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93679         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93680         both `\' and `/' may be use as path separators.
93681         Based on a patch from Prashant TR.
93682
93683 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93684
93685         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93686         slot vector a constant, since it might get modified.
93687
93688 2000-07-31  Jim Meyering  <meyering@lucent.com>
93689
93690         * lib/xmalloc.c: Use `virtual memory exhausted', not
93691         `Memory exhausted'.
93692         * lib/obstack.c (print_and_abort): Likewise.
93693
93694 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93695
93696         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93697         buffer, so that the caller can always quote one small
93698         component of a "memory exhausted" message in slot 0.
93699         From a suggestion by Jim Meyering.
93700
93701 2000-07-30  Jim Meyering  <meyering@lucent.com>
93702
93703         * lib/makepath.c (make_path): Quote the other instance, too.
93704
93705         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93706         (STATIC_BUF_SIZE): Define.
93707         (quotearg_n_options): Use only statically allocated storage when
93708         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93709         than STATIC_BUF_SIZE.
93710
93711 2000-07-29  Jim Meyering  <meyering@lucent.com>
93712
93713         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93714         * lib/dirname.c (dir_name): Likewise.
93715
93716         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93717         `/'.
93718
93719         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93720         (dir_name): Assert that there are no trailing slashes.
93721
93722 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93723
93724         * lib/mbswidth.h (mbswidth): Add a flags argument.
93725         (mbswidth): New declaration.
93726         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93727         * lib/mbswidth.c (mbswidth): Add a flags argument.
93728         (mbsnwidth): New function.
93729
93730 2000-07-24  Jim Meyering  <meyering@lucent.com>
93731
93732         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93733
93734 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93735
93736         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93737
93738 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93739
93740         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93741         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93742         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93743         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93744         invoke multibyte primitives.
93745
93746 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93747
93748         * lib/quotearg.c:
93749         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93750         so that mbstate_t is always defined.
93751
93752         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93753         be 1 in at least one GCC installation, and this configuration
93754         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93755         performance on hosts that have mbrtowc but have only unibyte
93756         locales, but I assume these hosts are rare.
93757
93758 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93759
93760         * lib/mbswidth.c (_XOPEN_SOURCE):
93761         Don't define; this causes problems on Solaris 7.
93762         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93763
93764 2000-07-23  Jim Meyering  <meyering@lucent.com>
93765
93766         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93767         too: getgrgid, getpwuid, getuid.
93768
93769 2000-07-23  Jim Meyering  <meyering@lucent.com>
93770
93771         * lib/basename.c (base_name): Add an assertion.
93772
93773 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93774
93775         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93776         shadow its mbsinit function.
93777
93778 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93779
93780         * lib/mbswidth.h: New file.
93781         * lib/mbswidth.c: New file.
93782         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93783         (noinst_HEADERS): Add mbswidth.h.
93784
93785 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93786
93787         * lib/config.charset: Add support for FreeBSD. Improve support for
93788         HP-UX and IRIX 6.
93789
93790 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93791
93792         * m4/mbswidth.m4: New file.
93793         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93794
93795 2000-07-15  Jim Meyering  <meyering@lucent.com>
93796
93797         * lib/makepath.c: Include quote.h.
93798         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93799         corresponding argument in a `quote (...)' call.
93800         Give better diagnostics.
93801
93802         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93803         (noinst_HEADERS): Add quote.h.
93804
93805         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93806         from tar's src/misc.c.
93807         * lib/quote.h: New file.  Prototypes for same.
93808
93809 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93810
93811         From a suggestion by Bruno Haible.
93812         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93813         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93814         to decide whether to define the BeOS workaround macro;
93815         this adjusts to the change to AC_MBSTATE_T.
93816
93817 2000-07-14  Jim Meyering  <meyering@lucent.com>
93818
93819         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93820         jm_AC_TYPE_UINTMAX_T.
93821
93822 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93823
93824         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93825
93826         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93827         quotearg_buffer_restyled): Add support for
93828         clocale_quoting_style.  Undo previous change to
93829         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93830         and "{RIGHT QUOTATION MARK}" msgids.
93831
93832 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93833
93834         From a suggestion by Bruno Haible.
93835         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93836         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93837         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93838         and mbstate_t, to a single-part test that simply defines mbstate_t.
93839         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93840         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93841
93842 2000-07-10  Jim Meyering  <meyering@lucent.com>
93843
93844         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93845
93846         * m4/gnu-source.m4: Output to confdefs.h directly.
93847         Suggestion from Akim Demaille.
93848
93849 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93850
93851         The old behavior of quoting `like this' doesn't look good with
93852         newer, ISO-style fonts.  See:
93853         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93854
93855         Instead, quote "like this" by default.  Let the translator
93856         tailor the locale-specific quoting behavior by providing
93857         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93858
93859         * lib/quotearg.c (N_): New macro.
93860         (gettext_default): New function.
93861         (quotearg_buffer_restyled): Use
93862         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93863         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93864
93865 2000-07-09  Jim Meyering  <meyering@lucent.com>
93866
93867         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93868         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93869
93870         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93871         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93872
93873 2000-07-09  Jim Meyering  <meyering@lucent.com>
93874
93875         * lib/Most files: Update copyright dates to include 2000.
93876
93877 2000-07-08  Jim Meyering  <meyering@lucent.com>
93878
93879         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93880         if not defined.
93881         (xgethostname): Remove now-unnecessary #ifdef.
93882         Move declaration of `err' into loop where it's used.
93883
93884 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93885         and Bruno Haible  <haible@clisp.cons.org>
93886
93887         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93888         only if the test for an object-type mbstate_t fails.  This
93889         prevents us from mistakenly reporting that mbstate_t is a
93890         system object type after we "#define mbstate_t int" to work
93891         around its lack.
93892
93893 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93894         and Bruno Haible  <haible@clisp.cons.org>
93895
93896         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93897
93898 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93899
93900         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93901         to strerror_r.
93902         Include <ctype.h> for use of isalpha.
93903
93904 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93905
93906         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93907         by allocating a larger buffer. Test the gethostname return value for
93908         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93909         returns an error and ENAMETOOLONG isn't defined.
93910
93911 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93912
93913         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93914         dimension.
93915
93916 2000-07-04  Jim Meyering  <meyering@lucent.com>
93917
93918         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93919         of the deprecated AC_CHECKING.
93920
93921 2000-07-04  Jim Meyering  <meyering@lucent.com>
93922
93923         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93924         Reported by Bruno Haible.
93925
93926 2000-07-04  Jim Meyering  <meyering@lucent.com>
93927
93928         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93929         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93930         lacks mbrtowc.
93931
93932 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93933
93934         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93935         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93936
93937 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93938         and Bruno Haible  <haible@clisp.cons.org>
93939
93940         * lib/quotearg.c (mbrtowc):
93941         Assign to *pwc, and return 1 only if result is nonzero.
93942         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93943
93944 2000-07-03  Jim Meyering  <meyering@lucent.com>
93945
93946         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93947
93948 2000-07-03  Jim Meyering  <meyering@lucent.com>
93949
93950         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93951         This is necessary to get a definition of e.g., UTMP_FILE on
93952         HP-UX 10.20.
93953         From Bob Proulx.
93954
93955 2000-07-02  Jim Meyering  <meyering@lucent.com>
93956
93957         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93958
93959         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93960         AC_LIBOBJ(function_name).
93961         * m4/chown.m4: Likewise.
93962         * m4/fnmatch.m4: Likewise.
93963         * m4/ftruncate.m4: Likewise.
93964         * m4/getgroups.m4: Likewise.
93965         * m4/getline.m4: Likewise.
93966         * m4/group-member.m4: Likewise.
93967         * m4/jm-macros.m4: Likewise.
93968         * m4/lstat.m4: Likewise.
93969         * m4/malloc.m4: Likewise.
93970         * m4/memcmp.m4: Likewise.
93971         * m4/nanosleep.m4: Likewise.
93972         * m4/putenv.m4: Likewise.
93973         * m4/realloc.m4: Likewise.
93974         * m4/regex.m4: Likewise.
93975         * m4/stat.m4: Likewise.
93976         * m4/strftime.m4: Likewise.
93977
93978 2000-07-02  Jim Meyering  <meyering@lucent.com>
93979
93980         * lib/quotearg.c (mbstate_t): Don't define here.
93981
93982 2000-07-02  Jim Meyering  <meyering@lucent.com>
93983
93984         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93985
93986 2000-07-01  Jim Meyering  <meyering@lucent.com>
93987
93988         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93989
93990 2000-07-01  Jim Meyering  <meyering@lucent.com>
93991
93992         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93993         problem.
93994
93995 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93996
93997         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93998         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93999
94000 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94001
94002         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94003         per change in ../m4/ls-mntd-fs.m4.
94004         (read_filesystem_list): Ignore symbolic links.
94005
94006 2000-06-29  Jim Meyering  <meyering@lucent.com>
94007
94008         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94009         for declaration of strcmp.
94010
94011         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94012
94013         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94014         Avoid warning by casting result to `char *' to remove `const'.
94015
94016 2000-06-28  Jim Meyering  <meyering@lucent.com>
94017
94018         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94019         included by quotearg.c, for which we perform this test.  From
94020         Bruno Haible.
94021
94022 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94023
94024         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94025         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94026         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94027
94028 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94029
94030         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94031
94032 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94033
94034         savedir now sets errno on failure and invokes xmalloc to get memory.
94035         Fix a couple of other minor bugs while we're at it.
94036
94037         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94038         (NAMLEN): Remove macro.
94039         (malloc, realloc): Remove decls.
94040         (stpcpy): Likewise.
94041         ("xalloc.h"): Include.
94042         (NAME_SIZE_DEFAULT): New macro.
94043         (savedir): Use xmalloc / xrealloc to allocate memory.
94044         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94045         Skip "" directory entries.
94046         Use strlen to calculate directory entry length, since the old method
94047         is rarely used these days and isn't worth supporting.
94048         Don't use a pointer after freeing it.
94049         Check for integer overflow when calculating allocation size.
94050         Use memcpy to copy entries, instead of stpcpy.
94051         Set errno properly when returning NULL.
94052         Check for readdir error.
94053
94054 2000-06-26  Jim Meyering  <meyering@lucent.com>
94055
94056         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94057
94058 2000-06-25  Jim Meyering  <meyering@lucent.com>
94059
94060         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94061         Linux header bug when _XOPEN_SOURCE is defined to 500.
94062
94063 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94064
94065         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94066         deficiency.
94067
94068 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94069
94070         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94071         Include xalloc.h.
94072         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94073
94074 2000-06-24  Jim Meyering  <meyering@lucent.com>
94075
94076         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94077         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94078         for which strerror does return char*, but which lacks a conveniently
94079         accessible declaration of the function.  If the compile-test says
94080         strerror_r doesn't work, then resort to a `run'-test that works on
94081         BeOS and segfaults on DEC Unix.
94082
94083 2000-06-24  Jim Meyering  <meyering@lucent.com>
94084
94085         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94086
94087 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94088
94089         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94090         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94091
94092 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94093
94094         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94095         (mbrtowc, mbstate_t): Define substitutes if
94096         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94097         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94098         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94099
94100 2000-06-23  Jim Meyering  <meyering@lucent.com>
94101
94102         * m4/afs.m4: Add missing AC_MSG_RESULT.
94103         Reported by Bruno Haible.
94104
94105         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94106         Suggestion from Bruno Haible.
94107
94108 2000-06-23  Jim Meyering  <meyering@lucent.com>
94109
94110         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94111
94112 2000-06-21  Jim Meyering  <meyering@lucent.com>
94113
94114         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94115
94116 2000-06-21  Jim Meyering  <meyering@lucent.com>
94117
94118         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94119         (noinst_HEADERS): Add getstr.h.
94120
94121         * lib/getline.c (getstr): Move into a separate file.
94122         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94123         the following changes: new parameter, delim2; both delim[12]
94124         parameters have type `int', not `char'.  The latter would lose
94125         with 8-bit delimiters.
94126         * lib/getstr.h: New file.
94127
94128 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94129
94130         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94131         than 1024, return a memory chunk of least possible size, instead
94132         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94133         Use free/xmalloc instead of xrealloc to avoid copying for very long
94134         paths.
94135
94136 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94137
94138         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94139         the empty string.
94140
94141 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94142
94143         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94144         address, not strdup.  Include <stdlib.h> and don't declare free().
94145
94146 2000-06-19  Jim Meyering  <meyering@lucent.com>
94147
94148         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94149
94150 2000-06-18  Jim Meyering  <meyering@lucent.com>
94151
94152         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94153
94154         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94155         `checking whether...' message to be consistent with that of the
94156         lstat test.
94157
94158 2000-06-18  Jim Meyering  <meyering@lucent.com>
94159
94160         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94161         Besides, these days every porting target provides a mkdir function.
94162
94163         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94164         needed. (this snippet comes from src/system.h).
94165
94166 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94167
94168         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94169
94170 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94171
94172         * lib/human.c (adjust_value): New function.
94173         (human_readable_inexact): Apply rounding style even when
94174         printing approximate values.
94175
94176 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94177
94178         * lib/human.c (human_readable_inexact): Allow an input block
94179         size that is not a multiple of the output block size, and vice versa.
94180         Reported by Piergiorgio Sartor.
94181
94182 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94183
94184         * lib/getdate.y (get_date): Apply relative times after time
94185         zone indicator, not before.  Reported by Todd A. Jacobs.
94186
94187 2000-06-13  Jim Meyering  <meyering@lucent.com>
94188
94189         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94190
94191         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94192
94193 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94194
94195         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94196
94197 2000-06-12  Jim Meyering  <meyering@lucent.com>
94198
94199         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94200         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94201         optional argument.
94202         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94203         the optional argument, `lib'.
94204
94205 2000-06-08  Jim Meyering  <meyering@lucent.com>
94206
94207         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94208
94209 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94210
94211         Rewrite largefile configuration so that we don't need to run
94212         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94213         AC_CANONICAL_HOST in configure.in -- jmm]
94214
94215         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94216         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94217         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94218         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94219         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94220         All uses changed.
94221         Instead of inspecting the output of getconf, try to compile the
94222         test program without and with the macro definition.
94223         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94224         for getconf.  Instead, check for the needed flags by compiling
94225         test programs.
94226
94227 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94228
94229         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94230
94231 2000-06-04  Jim Meyering  <meyering@lucent.com>
94232
94233         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94234         SunOS 4.1.4 for which gid_t is an unsigned type.
94235
94236 2000-06-03  Jim Meyering  <meyering@lucent.com>
94237
94238         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94239         now that autoconf requires that.
94240
94241         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94242         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94243         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94244
94245 2000-06-03  Jim Meyering  <meyering@lucent.com>
94246
94247         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94248
94249 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94250
94251         * m4/glibc21.m4: New file.
94252         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94253
94254 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94255
94256         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94257         newer, don't install charset.alias.
94258         * lib/config.charset: Change the Linux/glibc rules so they become empty
94259         on glibc-2.1 or newer.
94260
94261 2000-06-02  Jim Meyering  <meyering@lucent.com>
94262
94263         * lib/mountlist.c: Back out last change.  Instead, do this...
94264         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94265         me_dummy member using the same `ignore'-testing code.
94266         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94267         fs_type strings.
94268         From Mark D. Roth.
94269
94270 2000-05-29  Jim Meyering  <meyering@lucent.com>
94271
94272         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94273         mounts with the `ignore' attribute.  Based on a patch from
94274         Mark D. Roth.
94275
94276 2000-05-28  Jim Meyering  <meyering@lucent.com>
94277
94278         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94279         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94280         * m4/stat.m4: Likewise.
94281         * m4/lstat.m4: Likewise.
94282         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94283
94284         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94285         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94286
94287 2000-05-26  Jim Meyering  <meyering@lucent.com>
94288
94289         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94290
94291 2000-05-24  Jim Meyering  <meyering@lucent.com>
94292
94293         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94294         autoconf requires that.
94295         * m4/lib-check.m4: Likewise.
94296         * m4/jm-macros.m4: Likewise.
94297         * m4/strftime.m4: Likewise.
94298
94299         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94300         AC_CHECK_DECLS, now that autoconf requires that.
94301
94302 2000-05-22  Jim Meyering  <meyering@lucent.com>
94303
94304         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94305         * m4/lstat.m4: Likewise.
94306
94307 2000-05-22  Jim Meyering  <meyering@lucent.com>
94308
94309         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94310
94311 2000-05-20  Jim Meyering  <meyering@lucent.com>
94312
94313         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94314         (jm_PREREQ): Use it.
94315
94316 2000-05-18  Jim Meyering  <meyering@lucent.com>
94317
94318         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94319         back, too, since it may have been modified by allocate_entry.
94320         (hash_delete): Rewrite to use neither the assignment operator
94321         nor the comma operator in an if-expression.
94322
94323 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94324
94325         * lib/closeout.c:
94326         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94327         Remove; no longer needed.
94328         "quotearg.h": Add include.
94329         (file_name): Do not bother to explicitly initialize to NULL; it's less
94330         efficient on some hosts.
94331         (close_stdout_status): Remove test as to whether stdout was already
94332         closed; it breaks for the case "echo x | sort >&-".
94333         Quote file name colons.
94334         Do not assume that _("write error") lacks format strings.
94335
94336 2000-05-15  Jim Meyering  <meyering@lucent.com>
94337
94338         * lib/version-etc.c (version_etc_copyright): Update the copyright
94339         string used in all --version output.
94340
94341 2000-05-14  Jim Meyering  <meyering@lucent.com>
94342
94343         * lib/closeout.c (close_stdout_set_file_name): New function.
94344         (close_stdout_status): Use new file-scoped global.
94345         Return right away if fstat says the stdout file descriptor is invalid.
94346         * lib/closeout.h (close_stdout_set_file_name): Declare.
94347
94348 2000-05-10  Jim Meyering  <meyering@lucent.com>
94349
94350         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94351         (close_stdout_set_status): New function.
94352         * lib/closeout.h (close_stdout_set_status): Declare.
94353
94354 2000-05-09  Jim Meyering  <meyering@lucent.com>
94355
94356         * m4/gettext.m4: Rename this...
94357         * m4/libintl.m4: ...to this.
94358
94359 2000-05-08  Jim Meyering  <meyering@lucent.com>
94360
94361         * lib/long-options.c: Don't include closeout.h.
94362         (parse_long_options): Don't call close_stdout for --version.
94363
94364 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94365
94366         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94367         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94368         2.1.3 bug.  This avoids a clash when files like regex.c define
94369         _GNU_SOURCE.
94370
94371 2000-05-06  Jim Meyering  <meyering@lucent.com>
94372
94373         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94374         (AC_REPLACE_FUNCS): Add strnlen.
94375
94376         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94377         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94378
94379         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94380         AC_SEARCH_LIBS call for nanosleep.
94381         (LIB_NANOSLEEP): Set and AC_SUBST.
94382
94383 2000-05-06  Jim Meyering  <meyering@lucent.com>
94384
94385         * lib/strnlen.c: Undefine __strnlen and strnlen.
94386         [!weak_alias]: Define __strnlen to strnlen.
94387
94388         * lib/atexit.c: New file, from libiberty.
94389
94390 2000-05-06  Jim Meyering  <meyering@lucent.com>
94391
94392         * lib/closeout.c (close_stdout_status): Also check for errors on the
94393         stderr stream.
94394
94395 2000-05-05  Jim Meyering  <meyering@lucent.com>
94396
94397         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94398         AC_SEARCH_LIBS call for clock_gettime.
94399         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94400
94401         * m4/search-libs.m4: Update from autoconf.
94402
94403         su doesn't work on Solaris 2.6.
94404         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94405         <shadow.h>.  Reported by Dragos Harabor.
94406
94407 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94408
94409         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94410         memcpy instead of xmalloc, xrealloc, path_concat.
94411         (locale_charset): Treat empty environment variables as absent.
94412         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94413
94414 2000-05-04  Jim Meyering  <meyering@lucent.com>
94415
94416         * lib/getopt.c: Update from glibc.
94417         * lib/obstack.c: Likewise.
94418         * lib/obstack.h: Likewise.
94419         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94420         file
94421
94422         * lib/regex.h: Likewise.
94423         * lib/strndup.c: Likewise.
94424         * lib/strnlen.c: New file, from glibc.
94425
94426 2000-05-03  Jim Meyering  <meyering@lucent.com>
94427
94428         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94429
94430 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94431
94432         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94433         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94434         compile-time test, rather than inspecting host and OS, to
94435         decide whether to define _LARGEFILE_SOURCE.
94436
94437 2000-05-01  Jim Meyering  <meyering@lucent.com>
94438
94439         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94440
94441         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94442         Based on a patch from Bruno Haible.
94443
94444 2000-05-01  Jim Meyering  <meyering@lucent.com>
94445
94446         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94447
94448 2000-04-29  Jim Meyering  <meyering@lucent.com>
94449
94450         * lib/path-concat.c: Declare strdup only if it's not defined.
94451         * lib/canon-host.c: Likewise.
94452
94453 2000-04-28  Jim Meyering  <meyering@lucent.com>
94454
94455         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94456         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94457         is included first, then limits.h is included by locale.h by libintl.h.
94458         From John David Anglin.
94459
94460 2000-04-25  Jim Meyering  <meyering@lucent.com>
94461
94462         * lib/makepath.c (S_IRWXUGO): Define.
94463         (make_path): Always perform explicit chmod if MODE specifies any
94464         of the `special' permission bits.  Prompted by a bug report against
94465         install from Mate Wierdl and Joost van Baal.
94466
94467 2000-04-18  Jim Meyering  <meyering@lucent.com>
94468
94469         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94470         (jm_PREREQ): Use it.
94471
94472 2000-04-18  Jim Meyering  <meyering@lucent.com>
94473
94474         * lib/README: New file.
94475
94476         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94477         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94478
94479 2000-04-17  Jim Meyering  <meyering@lucent.com>
94480
94481         Get it right :-)
94482         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94483         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94484         Suggestion from Akim Demaille.
94485
94486 2000-04-17  Jim Meyering  <meyering@lucent.com>
94487
94488         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94489         the definition of it to rpl_strftime also defined-away the system's
94490         declaration.
94491
94492 2000-04-15  Jim Meyering  <meyering@lucent.com>
94493
94494         Use `C' to denote so-called `contiguous' files, the same way
94495         that tar does.
94496         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94497         (ftypelet): Use S_ISCTG.
94498         From Michael Deutschmann.
94499
94500 2000-04-14  Jim Meyering  <meyering@lucent.com>
94501
94502         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94503         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94504         clobbered.
94505
94506 2000-04-14  Jim Meyering  <meyering@lucent.com>
94507
94508         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94509
94510 2000-04-13  Jim Meyering  <meyering@lucent.com>
94511
94512         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94513         AH_VERBATIM to insert required #ifndef into config.h.in.
94514         Suggestion from Akim Demaille.
94515
94516 2000-04-12  Jim Meyering  <meyering@lucent.com>
94517
94518         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94519         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94520         Christian Krackowizer.
94521
94522         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94523         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94524         (AC_SYS_LARGEFILE): Require.
94525         (AM_C_PROTOTYPES): Require.
94526
94527 2000-04-08  Jim Meyering  <meyering@lucent.com>
94528
94529         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94530         names don't conflict.  Reported by Eli Zaretskii.
94531
94532 2000-04-07  Jim Meyering  <meyering@lucent.com>
94533
94534         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94535         sys/types.h, to work around system header problems on AIX 3.2.5.
94536         From Bruno Haible.
94537
94538 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94539
94540         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94541         bug.  Deal with the different error behavior of Irix iconv.
94542
94543 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94544
94545         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94546         IRIX if the installer said otherwise.
94547
94548 2000-04-05  Jim Meyering  <meyering@lucent.com>
94549
94550         Portability tweaks required for ultrix4.3.
94551         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94552         (jm_CHECK_DECLS): Add getutent to the list of functions.
94553         (_jm_DECL_HEADERS): Add utmpx.h.
94554         From John David Anglin.
94555
94556         * m4/strftime.m4: Back out the 2000-04-02 change.
94557         Instead of that change, simply undefine putenv in the test program.
94558
94559 2000-04-05  Jim Meyering  <meyering@lucent.com>
94560
94561         Portability tweaks required for ultrix4.3.
94562         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94563         getutent.
94564         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94565         * lib/canon-host.c: Declare strdup.
94566         * lib/path-concat.c: Likewise.
94567         From John David Anglin.
94568
94569 2000-04-04  Jim Meyering  <meyering@lucent.com>
94570
94571         Be more DOS 8.3-friendly.
94572         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94573         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94574         * lib/Makefile.am: Reflect renaming.
94575         Reported by Eli Zaretskii.
94576
94577         Use a temporary file name that won't clash with `charset.alias'
94578         in the DOS 8.3 name space.
94579         * lib/Makefile.am (charset_tmp): Define.
94580         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94581         (uninstall-local): Likewise.
94582         Reported by Eli Zaretskii.
94583
94584 2000-04-03  Jim Meyering  <meyering@lucent.com>
94585
94586         * m4/gettext.m4: Fix typo in comment.
94587
94588         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94589         textutils/configure.in).  Suggestion from Paul Eggert.
94590         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94591
94592 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94593
94594         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94595         variable in the shell rather than using putenv, which isn't
94596         portable.  This avoids the configure-time inter-test dependency
94597         on the potentially-renamed putenv function.
94598
94599 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94600
94601         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94602         before checking struct stat.st_blksize, so that
94603         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94604
94605 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94606
94607         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94608         since strftime.c uses HAVE_STRFTIME to decide whether to use
94609         the underlying strftime.
94610
94611 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94612
94613         * lib/time/strftime.c (my_strftime): Make sure we call the system
94614         strftime, not ourselves, when invoking the underlying strftime.
94615
94616 2000-03-24  Jim Meyering  <meyering@lucent.com>
94617
94618         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94619         (charset_alias): Define.
94620         (install-exec-local): Factor out common code.
94621         (uninstall-local): Split lines longer than 80.
94622         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94623         (SUFFIXES): Define.
94624         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94625         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94626
94627 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94628
94629         * lib/config.charset: Output a line containing "Packages using this
94630         file".
94631         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94632         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94633         ref-del.sed): New rules.
94634
94635 2000-03-17  Jim Meyering  <meyering@lucent.com>
94636
94637         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94638         Otherwise, include <strings.h>
94639
94640 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94641
94642         * lib/unicodeio.c (utf8_wctomb): New function.
94643         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94644         format instead of in UCS-4 with platform dependent endianness.
94645
94646 2000-03-10  Jim Meyering  <meyering@lucent.com>
94647
94648         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94649         From Marco Franzen.
94650
94651 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94652
94653         * lib/savedir.c (savedir): Work even if directory size is
94654         negative; this can happen with some screwy NFS configurations.
94655
94656 2000-03-06  Jim Meyering  <meyering@lucent.com>
94657
94658         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94659         if it's NULL (because we ran out of memory).  From Bruno Haible.
94660
94661 2000-03-05  Jim Meyering  <meyering@lucent.com>
94662
94663         * lib/localcharset.c ("path-concat.h"): Include.
94664         (get_charset_aliases): Use path_concat instead of ANSI string
94665         concatenation.
94666
94667         * lib/unicodeio.h (PARAMS): Define.
94668         Use it to guard prototype.
94669
94670 2000-03-04  Jim Meyering  <meyering@lucent.com>
94671
94672         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94673         for lib/localcharset.c.
94674
94675 2000-03-04  Jim Meyering  <meyering@lucent.com>
94676
94677         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94678         installing into it.
94679         (uninstall-local): Uncomment this rule so `make distcheck' works
94680         once again.
94681
94682         * lib/unicodeio.c (<errno.h>): Include it.
94683         (errno): Declare if not defined.
94684
94685         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94686
94687         * lib/config.charset: New version, incorporating remarks from a linux
94688         i18n mailing list.  From Bruno Haible.
94689
94690 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94691
94692         * m4/codeset.m4: New file.
94693         * m4/iconv.m4: New file.
94694         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94695
94696 2000-03-03  Jim Meyering  <meyering@lucent.com>
94697
94698         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94699
94700 2000-03-02  Jim Meyering  <meyering@lucent.com>
94701
94702         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94703         the messages come out on separate lines.
94704
94705         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94706         rather than jm_CHECK_DECLARATIONS.
94707         * m4/decl.m4: Remove now-unused file.
94708
94709         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94710         geteuid.
94711
94712 2000-03-02  Jim Meyering  <meyering@lucent.com>
94713
94714         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94715
94716 2000-03-01  Jim Meyering  <meyering@lucent.com>
94717
94718         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94719         * lib/unicodeio.c: Likewise.
94720
94721 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94722
94723         * lib/config.charset: New file.
94724         * lib/localcharset.c: New file.
94725         * lib/unicodeio.h, lib/unicodeio.c: New files.
94726         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94727         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94728         (noinst_HEADERS): Add unicodeio.h.
94729         (all-local, install-exec-local, charset.alias): New targets.
94730
94731 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94732
94733         * lib/quotearg.c (ALERT_CHAR): New macro.
94734         (quotearg_buffer_restyled): Use it.
94735
94736 2000-02-27  Jim Meyering  <meyering@lucent.com>
94737
94738         * m4/check-decl.m4: Add getenv to the list.
94739
94740 2000-02-27  Jim Meyering  <meyering@lucent.com>
94741
94742         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94743         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94744
94745         * lib/backupfile.c: Guard inclusion of stdlib.h with
94746         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94747         Declare malloc if needed.
94748
94749         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94750         `#ifndef HAVE_DECL..'
94751         now that autoconf always defines the HAVE_DECL_ symbols.
94752         * lib/human.c: Likewise.
94753         * lib/same.c: Likewise.
94754         * lib/strtoumax.c: Likewise.
94755
94756         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94757         declaration check was not run.
94758         * lib/hash.c: Likewise.
94759         * lib/human.c: Likewise.
94760         * lib/same.c: Likewise.
94761         * lib/strtoumax.c: Likewise.
94762
94763         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94764         `.', then first look up the entire `.'-containing string as a login
94765         name.
94766
94767 2000-02-23  Jim Meyering  <meyering@lucent.com>
94768
94769         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94770         in place of my hack.
94771
94772 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94773
94774         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94775         (textint): New typedef.
94776         (parser_control): Member year changed from int to textint.
94777         All uses changed.
94778         (YYSTYPE): Removed; replaced by %union with int and textint members.
94779         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94780         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94781         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94782         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94783         (date, number, to_year): Use width of number in digits, not its value,
94784         to determine whether it's a 2-digit year, or a 2-digit time.
94785         (yylex): Store number of digits of numeric tokens.
94786         Reported by John Kendall.
94787
94788         (parser_control): Changed from struct parser_control to typedef (for
94789         consistency).  All uses changed.
94790
94791         (tID): Removed; not used.
94792         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94793
94794 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94795
94796         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94797         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94798
94799 2000-02-12  Jim Meyering  <meyering@lucent.com>
94800
94801         * lib/userspec.c (ISDIGIT): Define it.
94802         (isdigit): Remove definition.
94803         (is_number): Use ISDIGIT, not isdigit.
94804         <libintl.h>: Include.
94805         (_ and N_): Define.
94806         (parse_user_spec): Mark translatable strings.
94807
94808 2000-02-10  Jim Meyering  <meyering@lucent.com>
94809
94810         With these changes, nanosleep.[ch] are finally enough like the other
94811         lib/* replacement files to compile on a few more losing systems.
94812
94813         * lib/nanosleep.h: Don't include config.h.
94814         Remove prototype from declaration of nanosleep.
94815         (PARAMS): Remove now-unneeded definition.
94816         * lib/nanosleep.c: #undef nanosleep.
94817         (rpl_nanosleep): Rename from nanosleep.
94818
94819 2000-02-10  Jim Meyering  <meyering@lucent.com>
94820
94821         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94822         gnu_nanosleep to rpl_nanosleep.
94823
94824 2000-02-09  Jim Meyering  <meyering@lucent.com>
94825
94826         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94827         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94828
94829 2000-02-08  Akim Demaille  <akim@epita.fr>
94830
94831         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94832         `[' and `]' and remove uses of `changequote'.
94833         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94834         (AC_SYS_LARGEFILE): Likewise.
94835         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94836         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94837         of changequote.
94838         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94839         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94840         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94841         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94842
94843 2000-02-05  Jim Meyering  <meyering@lucent.com>
94844
94845         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94846         Remove explicit use of AC_HEADER_TIME.  It is required by
94847         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94848         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94849         in autoconf whereby the expansion of the latter ended up preceding
94850         the expansion of its prerequisite, AC_HEADER_TIME.
94851         Reported by Volker Borchert.
94852
94853 2000-02-03  Jim Meyering  <meyering@lucent.com>
94854
94855         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94856
94857 2000-02-03  Jim Meyering  <meyering@lucent.com>
94858
94859         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94860         rather than with `#if HAVE_UTMPNAME'.
94861
94862 2000-02-02  Jim Meyering  <meyering@lucent.com>
94863
94864         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94865         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94866         Reported by Eli Zaretskii.
94867
94868 2000-02-01  Jim Meyering  <meyering@lucent.com>
94869
94870         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94871
94872 2000-01-31  Jim Meyering  <meyering@lucent.com>
94873
94874         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94875         functions.  Add the time.h and sys/time.h headers along with the
94876         AC_REQUIRE'ment of AC_HEADER_TIME.
94877
94878 2000-01-31  Jim Meyering  <meyering@lucent.com>
94879
94880         * lib/nanosleep.h (nanosleep): Guard declaration with
94881         `#if ! HAVE_DECL_NANOSLEEP'.
94882         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94883         the declaration in that vendor's sys/timers.h.
94884         Reported by Christian Krackowizer.
94885
94886         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94887         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94888         (ISPRINT): Likewise.
94889         Reported by Tom Tromey.
94890
94891 2000-01-30  Jim Meyering  <meyering@lucent.com>
94892
94893         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94894
94895         * m4/prereq.m4 (utmp_includes): Define.
94896         Check for ut_user and ut_name members in both struct utmpx
94897         and struct utmp.
94898
94899 2000-01-30  Jim Meyering  <meyering@lucent.com>
94900
94901         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94902         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94903         header files where only utmpx.ut_user is declared.
94904
94905         * lib/readutmp.h (UT_USER): Define.
94906
94907 2000-01-29  Jim Meyering  <meyering@lucent.com>
94908
94909         * m4/lib-check.m4: New file containing library-related checks from
94910         fileutils and sh-utils (textutils had none).
94911
94912 2000-01-28  Jim Meyering  <meyering@lucent.com>
94913
94914         * m4/perl.m4: Change format of warning message to look more like that
94915         from the missing script.  Suggestion from François Pinard.
94916
94917 2000-01-25  Jim Meyering  <meyering@lucent.com>
94918
94919         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94920         well as time.h in the compile check.
94921         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94922         Fix typo in cross-compiling case: s/yes/no/.
94923
94924 2000-01-23  Jim Meyering  <meyering@lucent.com>
94925
94926         * m4/jm-macros.m4: Move df-related tests here from
94927         fileutils/configure.in
94928
94929         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94930         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94931
94932         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94933         s/space/ac_fsusage_space/.
94934         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94935
94936         * m4/ftruncate.m4: New file (derived from part of
94937         fileutils/configure.in).
94938         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94939         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94940
94941         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94942         AC_SUBST these here, rather than just in sh-util/configure.in, so
94943         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94944         all the same.
94945         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94946         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94947         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94948         (AC_SUBST(POW_LIBM)): Likewise.
94949         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94950
94951 2000-01-23  Jim Meyering  <meyering@lucent.com>
94952
94953         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94954         obstack.c.
94955
94956 2000-01-22  Jim Meyering  <meyering@lucent.com>
94957
94958         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94959
94960         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94961
94962         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94963         configure.in
94964         (AC_CHECK_HEADERS): Likewise for sh-utils.
94965         (AC_CHECK_HEADERS): Likewise for textutils.
94966         Merge the three lists of headers.
94967
94968         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94969         from fileutils' configure.in.
94970
94971         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94972         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94973         check-decl.m4.
94974
94975         * m4/check-decl.m4: Use #if rather than #ifdef.
94976         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94977         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94978         (_jm_DECL_HEADERS): Define new function.
94979         (jm_CHECK_DECLARATIONS): Require it.
94980
94981 2000-01-22  Jim Meyering  <meyering@lucent.com>
94982
94983         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94984         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94985         Required for some AIX systems.  Reported by Christian Krackowizer.
94986         [TESTING] (main): New function.
94987
94988         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94989         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94990         letters.
94991
94992         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94993         iswprint.
94994
94995         * lib/strverscmp.c (ISDIGIT): Define.
94996         (strverscmp): Use ISDIGIT, not isdigit.
94997
94998 2000-01-19  Jim Meyering  <meyering@lucent.com>
94999
95000         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95001         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95002         defines `struct timespec' in <sys/time.h>
95003
95004         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95005         Thanks to Akim for explaining.
95006
95007 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95008
95009         * lib/nanosleep.c (nanosleep):
95010         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95011         POSIX.1 doesn't require SA_INTERRUPT and some systems
95012         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95013         it's been part of POSIX.1 since day 1 (in 1988).
95014
95015 2000-01-17  Jim Meyering  <meyering@lucent.com>
95016
95017         * lib/interlock: Remove unused file.  Reported by François Pinard.
95018
95019 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95020
95021         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95022         alert, backslash, formfeed, and vertical tab unnecessarily in
95023         shell quoting style.
95024
95025 2000-01-16  Jim Meyering  <meyering@lucent.com>
95026
95027         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95028         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95029         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95030         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95031
95032 2000-01-16  Jim Meyering  <meyering@lucent.com>
95033
95034         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95035         because the latter didn't work.
95036
95037 2000-01-15  Jim Meyering  <meyering@lucent.com>
95038
95039         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95040         (AC_REPLACE_FUNCS): Add memcpy and memset.
95041         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95042         Add strpbrk.
95043         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95044
95045 2000-01-12  Jim Meyering  <meyering@lucent.com>
95046
95047         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95048         (jm_PREREQ): Use it.
95049         (jm_PREREQ_READUTMP): New macro.
95050         (jm_PREREQ): Use it.
95051
95052 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95053
95054         Quote multibyte characters correctly.
95055         * m4/c-bs-a.m4: New file.
95056         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95057         (jm_PREREQ): Use it.
95058
95059 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95060
95061         * m4/uintmax_t.m4: Port to autoconf 2.13.
95062
95063 2000-01-08  Jim Meyering  <meyering@ascend.com>
95064
95065         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95066         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95067
95068 2000-01-04  Jim Meyering  <meyering@ascend.com>
95069
95070         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95071         jm_STRUCT_DIRENT_D_TYPE.
95072         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95073         jm_STRUCT_DIRENT_D_INO.
95074         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95075         jm_STRUCT_UTIMBUF.
95076         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95077         renamings.
95078         * m4/utime.m4: Likewise.
95079
95080         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95081         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95082
95083 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95084
95085         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95086         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95087
95088 2000-01-02  Jim Meyering  <meyering@ascend.com>
95089
95090         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95091         remember if this is necessary.
95092
95093 1999-12-26  Jim Meyering  <meyering@ascend.com>
95094
95095         * m4/jm-macros.m4: Use it here.
95096         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95097
95098 1999-12-23  Jim Meyering  <meyering@ascend.com>
95099
95100         * m4/jm-macros.m4: Check for clock_gettime (moved from
95101         fileutils/configure.in)
95102         Check for gettimeofday.
95103
95104 1999-12-20  Jim Meyering  <meyering@ascend.com>
95105
95106         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95107         autoconf-2.14a-1999-12-20.
95108
95109 1999-12-19  Jim Meyering  <meyering@ascend.com>
95110
95111         * m4/lstat-slash.m4: New file.
95112         * m4/jm-macros.m4: Use the new macro:
95113         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95114
95115 1999-12-07  Jim Meyering  <meyering@ascend.com>
95116
95117         * m4/perl.m4: Require that File::Compare be available, too.
95118         Too many systems seem to lack it.
95119
95120         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95121         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95122
95123 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95124
95125         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95126         problem with the QNX 4.25 shell, which doesn't propagate exit
95127         status of failed commands inside shell assignments.
95128
95129 1999-11-17  Jim Meyering  <meyering@ascend.com>
95130
95131         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95132
95133 1999-11-07  Jim Meyering  <meyering@ascend.com>
95134
95135         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95136
95137 1999-11-06  Jim Meyering  <meyering@ascend.com>
95138
95139         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95140         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95141
95142 1999-11-05  Jim Meyering  <meyering@ascend.com>
95143
95144         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95145         configure.in of textutils, fileutils, and sh-utils into this one
95146         (shared between those packages) file.
95147         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95148         AC_STRUCT_ST_BLKSIZE.
95149
95150 1999-11-03  Jim Meyering  <meyering@ascend.com>
95151
95152         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95153         of AC_CHECK_TYPE checks includes unistd.h.
95154         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95155         Suggestion from Akim Demaille.
95156
95157 1999-10-30  Jim Meyering  <meyering@ascend.com>
95158
95159         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95160         m4-quoted string.
95161         * m4/ls-mntd-fs.m4: Likewise.
95162         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95163         * m4/jm-winsz1.m4: Likewise.
95164
95165         * m4/const.m4: Remove file, since the fix made it into the experimental
95166         version of autoconf.
95167         * m4/mktime.m4: Likewise.
95168
95169         * m4/check-type.m4: Remove file, now that the latest version of
95170         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95171
95172         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95173         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95174         AC_CHECK_TYPE.
95175
95176 1999-10-04  Jim Meyering  <meyering@ascend.com>
95177
95178         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95179
95180 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95181
95182         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95183         2.95.1 bug with HP-UX 10.20.
95184
95185 1999-09-17  Jim Meyering  <meyering@ascend.com>
95186
95187         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95188         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95189         due to missing strdup (against sh-utils-2.0).
95190
95191 1999-08-29  Jim Meyering  <meyering@ascend.com>
95192
95193         * m4/jm-macros.m4: Require jm_BISON.
95194         * m4/bison.m4: New file.
95195
95196 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95197
95198         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95199         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95200
95201 1999-08-05  Jim Meyering  <meyering@ascend.com>
95202
95203         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95204         to avoid conflicts with `conftest' on 8+3 filesystems.
95205         Suggestion from Eli Zaretskii.
95206
95207 1999-08-04  Jim Meyering  <meyering@ascend.com>
95208
95209         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95210         fileutils and sh-utils (textutils's getline test was inadequate).
95211         (AM_FUNC_GETLINE): Run this test.
95212         (AC_CHECK_FUNCS): Check for getdelim.
95213         Reported by Bob Proulx.
95214
95215 1999-08-02  Jim Meyering  <meyering@ascend.com>
95216
95217         * m4/jm-macros.m4: Add a comment.
95218
95219 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95220
95221         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95222         <inttypes.h> defines strtoumax as a macro (and not as a
95223         function).
95224
95225 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95226
95227         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95228         that we can shift, multiply and divide unsigned long long
95229         values; Ultrix cc can't do it.
95230
95231 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95232
95233         * m4/mktime.m4: New file, which is a preview of what should appear
95234         in the next public autoconf release.
95235
95236 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95237
95238         * m4/lfs.m4: Remove this file.
95239         * m4/largefile.m4: New file.  It contains the old contents of
95240         lfs.m4, except that all names with prefix AC_LFS have been
95241         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95242         compatible with future autoconf versions.  Also, some minor m4
95243         quoting problems have been fixed.
95244
95245 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95246
95247         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95248         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95249         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95250         and simplify the shell code.
95251
95252 1999-08-01  Jim Meyering  <meyering@ascend.com>
95253
95254         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95255         m4.
95256
95257 1999-07-20  Jim Meyering  <meyering@ascend.com>
95258
95259         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95260
95261 1999-07-15  Jim Meyering  <meyering@ascend.com>
95262
95263         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95264
95265 1999-05-22  Jim Meyering  <meyering@ascend.com>
95266
95267         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95268
95269 1999-05-20  Jim Meyering  <meyering@ascend.com>
95270
95271         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95272         Add a colon after each `then' in case $4 is empty.
95273
95274 1999-05-16  Jim Meyering  <meyering@ascend.com>
95275
95276         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95277
95278 1999-05-10  Jim Meyering  <meyering@ascend.com>
95279
95280         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95281
95282         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95283         AC_FUNC_MKTIME.
95284
95285 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95286
95287         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95288
95289 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95290
95291         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95292         not CPPFLAGS, so that linking works correctly in IRIX.
95293
95294 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95295
95296         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95297
95298 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95299
95300         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95301         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95302         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95303         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95304         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95305
95306         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95307
95308 1999-04-20  Jim Meyering  <meyering@ascend.com>
95309
95310         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95311         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95312         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95313
95314 1999-04-18  Jim Meyering  <meyering@ascend.com>
95315
95316         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95317         * m4/jm-macros.m4: Use it.
95318
95319 1999-04-06  Jim Meyering  <meyering@ascend.com>
95320
95321         * m4/strftime.m4: Remove test for %f.
95322
95323 1999-03-29  Jim Meyering  <meyering@ascend.com>
95324
95325         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95326         superset of the AC_TYPE_* checks in the textutils, fileutils,
95327         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95328         AC_TYPE_PID_T.
95329
95330 1999-03-28  Jim Meyering  <meyering@ascend.com>
95331
95332         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95333         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95334         replaced e.g., in the *.sh files of the sh-utils.
95335
95336 1999-03-20  Jim Meyering  <meyering@ascend.com>
95337
95338         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95339         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95340         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95341
95342 1999-03-19  Jim Meyering  <meyering@ascend.com>
95343
95344         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95345
95346 1999-03-12  Jim Meyering  <meyering@ascend.com>
95347
95348         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95349
95350 1999-03-07  Jim Meyering  <meyering@ascend.com>
95351
95352         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95353         declared.
95354
95355 1999-02-17  Jim Meyering  <meyering@ascend.com>
95356
95357         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95358         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95359
95360 1999-02-07  Jim Meyering  <meyering@ascend.com>
95361
95362         * m4/group-member.m4: New file -- extracted from sh-utils'
95363         configure.in.
95364
95365         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95366         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95367
95368 1999-02-06  Jim Meyering  <meyering@ascend.com>
95369
95370         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95371         * m4/fnmatch.m4: Likewise.
95372         * m4/getgroups.m4: Likewise.
95373         * m4/lstat.m4: Likewise.
95374         * m4/malloc.m4: Likewise.
95375         * m4/putenv.m4: Likewise.
95376         * m4/realloc.m4: Likewise.
95377         * m4/regex.m4: Likewise.
95378         * m4/stat.m4: Likewise.
95379         * m4/strftime.m4: Likewise.
95380         Suggestion from Alain Magloire.
95381
95382         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95383         * m4/fnmatch.m4: Likewise.
95384         * m4/getgroups.m4: Likewise.
95385         * m4/getline.m4: Likewise.
95386         * m4/lstat.m4: Likewise.
95387         * m4/malloc.m4: Likewise.
95388         * m4/memcmp.m4: Likewise.
95389         * m4/putenv.m4: Likewise.
95390         * m4/realloc.m4: Likewise.
95391         * m4/regex.m4: Likewise.
95392         * m4/stat.m4: Likewise.
95393         * m4/strftime.m4: Likewise.
95394         Suggestion from Alain Magloire.
95395
95396         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95397         an argument.
95398
95399         * m4/regex.m4: Add a run-time Test for proper operation of
95400         re_compile_pattern.
95401
95402 1999-01-31  Jim Meyering  <meyering@ascend.com>
95403
95404         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95405
95406 1999-01-30  Jim Meyering  <meyering@ascend.com>
95407
95408         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95409
95410         * m4/jm-mktime.m4: Make this a wrapper around the official
95411         AM_FUNC_MKTIME rather than my private copy, now that the official one
95412         is up to date.
95413         * m4/mktime.m4: Remove file.
95414
95415         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95416         * m4/uptime.m4: Likewise.
95417         * m4/uintmax_t.m4: Likewise.
95418
95419 1999-01-28  Jim Meyering  <meyering@ascend.com>
95420
95421         * m4/jm-macros.m4: Use jm_AFS.
95422         * m4/afs.m4: New file (from fileutils' configure.in).
95423
95424         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95425         * m4/chown.m4: Likewise.
95426         * m4/d-ino.m4: Likewise.
95427         * m4/d-type.m4: Likewise.
95428         * m4/fnmatch.m4: Likewise.
95429         * m4/getgroups.m4: Likewise.
95430         * m4/gettext.m4: Likewise.
95431         * m4/jm-mktime.m4: Likewise.
95432         * m4/jm-winsz2.m4: Likewise.
95433         * m4/lcmessage.m4: Likewise.
95434         * m4/ls-mntd-fs.m4: Likewise.
95435         * m4/malloc.m4: Likewise.
95436         * m4/memcmp.m4: Likewise.
95437         * m4/putenv.m4: Likewise.
95438         * m4/realloc.m4: Likewise.
95439         * m4/st_mtim.m4: Likewise.
95440         * m4/strftime.m4: Likewise.
95441
95442 1999-01-16  Jim Meyering  <meyering@ascend.com>
95443
95444         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95445         (ARGMATCH_DIE_DECL): Define.
95446
95447 1999-01-12  Jim Meyering  <meyering@ascend.com>
95448
95449         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95450         Reported by Lars Hecking.
95451
95452 1999-01-10  Jim Meyering  <meyering@ascend.com>
95453
95454         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95455         gross kludge.
95456         * m4/inttypes_h.m4: Likewise.
95457         * m4/lstat.m4: Likewise.
95458         * m4/malloc.m4: Likewise.
95459         * m4/readdir.m4: Likewise.
95460         * m4/realloc.m4: Likewise.
95461         * m4/st_dm_mode.m4: Likewise.
95462         * m4/stat.m4: Likewise.
95463         * m4/utimbuf.m4: Likewise.
95464         * m4/utimes.m4: Likewise.
95465
95466         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95467         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95468         comments in config.h.in are meaningful.
95469
95470         * m4/jm-macros.m4: Require autoconf-2.13 here.
95471
95472         * m4/regex.m4: By default, don't use the included regex.c on systems
95473         with glibc 2.  Suggestion from Uli Drepper.
95474
95475 1999-01-02  Jim Meyering  <meyering@ascend.com>
95476
95477         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95478
95479 1998-12-18  Jim Meyering  <meyering@ascend.com>
95480
95481         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95482         Based on a suggestion from Lars Hecking.
95483
95484 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95485
95486         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95487
95488 1998-11-16  Jim Meyering  <meyering@ascend.com>
95489
95490         * m4/lfs.m4: Double-quote the `uname...` expression.
95491
95492 1998-11-14  Jim Meyering  <meyering@ascend.com>
95493
95494         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95495         * m4/stat.m4: Likewise.
95496
95497 1998-11-03  Jim Meyering  <meyering@ascend.com>
95498
95499         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95500         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95501
95502 1998-10-18  Jim Meyering  <meyering@ascend.com>
95503
95504         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95505
95506 1998-10-17  Jim Meyering  <meyering@ascend.com>
95507
95508         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95509         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95510         calls for those previously hard-coded headers.  Instead, take a new
95511         parameter.
95512         (jm_CHECK_DECLARATIONS): Reflect interface change.
95513         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95514         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95515
95516         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95517
95518 1998-10-14  Jim Meyering  <meyering@ascend.com>
95519
95520         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95521         instead of "TZ=America/Vancouver".  From Paul Eggert.
95522
95523 1998-10-11  Jim Meyering  <meyering@ascend.com>
95524
95525         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95526         This adds a test for a recently added compatibility fix for mktime.c.
95527         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95528
95529 1998-09-27  Jim Meyering  <meyering@ascend.com>
95530
95531         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95532
95533         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95534         ../configure.in, including a change from Gordon Matzigkeit to allow
95535         cross-compiling for the Hurd.
95536
95537         * m4/glibc.m4: New file/macro to test for the GNU C Library
95538         versions 1 and 2.  From Gordon Matzigkeit.
95539         Indent.
95540
95541 1998-09-21  Jim Meyering  <meyering@ascend.com>
95542
95543         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95544
95545 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95546
95547         Port nanosecond-resolution times to UnixWare 2.1.2 and
95548         pedantic Solaris 2.6.
95549
95550         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95551         AC_STRUCT_ST_MTIM.
95552         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95553         Generate name of ns member, instead of just 1 or undef.
95554         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95555
95556 1998-08-15  Jim Meyering  <meyering@ascend.com>
95557
95558         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95559         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95560         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95561         instead of jm_TYPE_SSIZE_T.
95562
95563 1998-08-12  Jim Meyering  <meyering@ascend.com>
95564
95565         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95566
95567 1998-08-02  Jim Meyering  <meyering@ascend.com>
95568
95569         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95570         in acconfig.h manually.
95571
95572 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95573
95574         * m4/st_mtim.m4: New file.
95575
95576 1998-07-28  Jim Meyering  <meyering@ascend.com>
95577
95578         * m4/utimes.m4: Undef stat.
95579
95580 1998-07-25  Jim Meyering  <meyering@ascend.com>
95581
95582         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95583         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95584
95585 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95586
95587         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95588         uid and gid actually remain unchanged.
95589
95590 1998-07-07  Jim Meyering  <meyering@ascend.com>
95591
95592         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95593
95594 1998-07-04  Jim Meyering  <meyering@ascend.com>
95595
95596         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95597         to prove that this macro can be used in packages without regex.c.
95598
95599 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95600
95601         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95602         is to be used.
95603
95604 1998-07-03  Jim Meyering  <meyering@ascend.com>
95605
95606         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95607
95608         * m4/gettext.m4: New file -- from gettext-0.10.35.
95609         * m4/lcmessage.m4: Likewise.
95610         * m4/progtest.m4: Likewise.
95611
95612         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95613         * m4/jm-macros.m4: Require the new macro.
95614
95615 1998-06-29  Jim Meyering  <meyering@ascend.com>
95616
95617         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95618         for the definition of NGROUPS (used in a system header included
95619         by sys/mount.h).
95620
95621 1998-06-28  Jim Meyering  <meyering@ascend.com>
95622
95623         * m4/ls-mntd-fs.m4: New file.
95624         * m4/fstypename.m4: New file.
95625
95626         * m4/jm-macros.m4: Require the new macro.
95627         * m4/jm-glibc-io.m4: New file.
95628
95629 1998-05-19  Jim Meyering  <meyering@ascend.com>
95630
95631         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95632         * m4/lchown.m4: New file.
95633
95634         * m4/Makefile.am.in: New file.
95635         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95636
95637 1998-05-14  Jim Meyering  <meyering@ascend.com>
95638
95639         * m4/Makefile.am (EXTRA_DIST): Add them.
95640         * m4/jm-macros.m4: New file.
95641         * m4/utimbuf.m4: New file.
95642
95643 1998-05-12  Jim Meyering  <meyering@ascend.com>
95644
95645         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95646
95647 1998-05-11  Jim Meyering  <meyering@ascend.com>
95648
95649         * m4/isc-posix.m4: New file.
95650
95651 1998-05-10  Jim Meyering  <meyering@ascend.com>
95652
95653         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95654
95655 1998-05-09  Jim Meyering  <meyering@ascend.com>
95656
95657         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95658         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95659         with automake.
95660
95661         * m4/ssize_t.m4: New file.
95662         * m4/mktime.m4: Remove file -- the new automake has this now.
95663
95664 1998-04-26  Jim Meyering  <meyering@ascend.com>
95665
95666         * m4/assert.m4: New file.
95667         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95668
95669 1998-04-05  Jim Meyering  <meyering@ascend.com>
95670
95671         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95672         (jm_PREREQ): Use it here.
95673
95674 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95675
95676         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95677         in acconfig.h.
95678
95679 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95680
95681         * m4/prereq.m4: New file.
95682         * m4/error.m4: New file.
95683         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95684
95685 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95686
95687         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95688         cache-check for the same variable -- that defeated the purpose of
95689         the test; the test program was never run.  This was a problem only
95690         on systems with losing getline functions -- HP-UX 10.20 is one.
95691         Reported by Bjorn Helgaas.
95692
95693 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95694
95695         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95696
95697 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95698
95699         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95700
95701         * m4/const.m4: New file.  Use an initializer in this declaration
95702         typedef int charset[2]; const charset x;
95703         Reported by Bob Glickstein.
95704
95705 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95706
95707         * m4/chown.m4: Fix reversed types on -1 args to chown.
95708         From Kaveh Ghazi.
95709
95710 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95711
95712         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95713         Add lseek and memchr.
95714
95715         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95716         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95717         have a 20-character limit on names.
95718
95719 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95720
95721         * m4/inttypes_h.m4: New file.
95722         * m4/uintmax_t.m4: New file.
95723         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95724
95725
95726         -----
95727
95728         Local Variables:
95729         coding: utf-8
95730         End:
95731
95732         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95733
95734         Copying and distribution of this file, with or without
95735         modification, are permitted provided the copyright notice
95736         and this notice are preserved.